Menu

Data from datagrid-field

Help
Robert
2012-01-30
2013-04-25
  • Robert

    Robert - 2012-01-30

    Hi,

    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
    

    Thanks.

     
  • 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: https://github.com/plomino/Plomino/issues
    - register
    - post your questions.

    Thank you
    Eric

     

Log in to post a comment.