• Binary
    February 3, 2020 at 8:10 am #5654

    Hello,

    when a new row is added to a table, the content of the first column, first row should be copied.
    I don’t know how to adress the first item.

    Tried:
    On row add by user:

    var ersteSpalte = ${farmServername}.getText();
    return {farmServername:ersteSpalte};

    and different variations.
    farmServername is the name of the variable as well as the the control id of the field in the table.

    BTW: Is this something you can look up? While a lot of stuff is well documentated, I was unable to find out how to adress items in a lot of cases. Not even in the red book “Deliver Modern UI for IBM BPM with the Coach Framework and Other Approaches”.

    • This topic was modified 3 years, 1 month ago by Binary.
    SPARK Support
    February 25, 2020 at 9:44 am #5690

    Hi Binary,

    You should be able to duplicate the contents of the first row by getting a reference to the Table control, get the first row with getRecord(0), then access the property name of the row:

    table = page.ui.get(“/Table1”);
    Returns:   subclass {context: _ef6, _contentBoxTemplates: Array(0), _counter: 3, _bindingHandles: {…}, _impactedByMultipleLists: false, …}

    row = table.getRecord(0)
    Returns:  {streetNumber: “1230”, route: “”, locality: “”, administrativeAreaLevel1: “”, administrativeAreaLevel2: “”, …}streetNumber: “1230”route: “”locality: “”administrativeAreaLevel1: “”administrativeAreaLevel2: “”administrativeAreaLevel3: “xxd”postalCode: “”country: “”formatted: “”components: {items: Array(1), listAllSelectedIndices: Array(0), te: “Add”}__getObjCtx: ƒ (a)__proto__: Object

    table.add({streetNumber: row.streetNumber})

    Regards,

    Stephen P.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search