Data from datagrid-field

  • Robert

    Robert - 2012-01-30


    I have a selection-list field in 'form2' wich I want to fill with data from a datagrid field of 'form1'.

    This is an example of a datagrid value and I need only the data in the position  of each row (a0, b0, c0):

    [, , ]

    Can you help me with my selection-list formula? Until now I have this:

    db = plominoDocument.getParentDatabase() 
    view = db.getView("allForm1")
    ####Here is where I am stucked:
    ####valueslist = [****** in view.getDocumentsByKey('id')]
    return valueslist


  • Eric Brehault

    Eric Brehault - 2012-01-31

    db = plominoDocument.getParentDatabase()
    view = db.getView("allForm1")
    doc = view.getDocumentsByKey('id')
    datagrid_rows = doc.getItem('the_datagrid', )
    result = [row for row in datagrid_rows]
    return result

    NOTE: we are about to close this SF forum, please use GitHub issues service to post questions:
    - go here:
    - register
    - post your questions.

    Thank you


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks