Question on using submitLink() with gridLyaout()

Hi ,
In Appian 7.11 version ...We are using gridLayout() to show data in grid. We want one a!richTextDisplayField () column is configured as SubmitLink(). Where we need to show save two values like one primary key and one is submit value.
Behaviour of this link changing always sometimes we can save both values , sometimes we can save only submit button value not primary key. Any pointer regarding this will be helpful. Refer sample code below :

a!richTextDisplayField(
label: " Number" & ri!index,
value: a!richTextItem(
text: ri!items[ri!index].number,
style: if(
ri!items[ri!index].number = ri!txtSearchedNumber,
"STRONG",
"NORMAL"
),
link: a!submitLink(
label: ri!items[ri!index].number,
value: ri!items[ri!index].number,
saveInto: {
a!save(
ri!inumerToSearch,
ri!items[ri!index].number
),
a!sa...

OriginalPostID-199296

OriginalPostID-199296

  Discussion posts and replies are publicly visible

Parents
  • Hi Varsha..
    By looking at the above code snippet, the issue is in saveinto attribute of the link field component. Find below the updated code:
    link: a!submitLink(
    label: ri!items[ri!index].number,
    value: ri!items[ri!index].number,
    saveInto: {
    a!save(
    ri!inumerToSearch,
    save!value
    ),
                                   a!save(
    ri!buttonValue,
    "search"
    )
    },
    confirmMessage: "Do you want to view another Invoice"
    )

    Hope this helps..
Reply
  • Hi Varsha..
    By looking at the above code snippet, the issue is in saveinto attribute of the link field component. Find below the updated code:
    link: a!submitLink(
    label: ri!items[ri!index].number,
    value: ri!items[ri!index].number,
    saveInto: {
    a!save(
    ri!inumerToSearch,
    save!value
    ),
                                   a!save(
    ri!buttonValue,
    "search"
    )
    },
    confirmMessage: "Do you want to view another Invoice"
    )

    Hope this helps..
Children
No Data