Hi,
We are planning to develop an interface to actualize the functions in the attached file,
but we are not sure if Appian can actualize those functions.
If it dose , may you tell us the expressions?
Best regards
Discussion posts and replies are publicly visible
Are you asking if it's possible to have a link on a grid row that can add a row, and another that can copy the data?
Thank you for your replying!
In fact we want to actualize those two functions you said with one click.
a!localVariables( local!data: { { number: 1, name: "Aaa", value: 123, status: "good" } }, a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Number"), a!gridLayoutHeaderCell(label: "Name"), a!gridLayoutHeaderCell(label: "Value"), a!gridLayoutHeaderCell(label: "Status"), a!gridLayoutHeaderCell(label: "Operation"), }, rows: a!forEach( items: local!data, expression: a!gridRowLayout( id: fv!index, contents: { a!textField(readOnly: true, value: fv!item.number), a!textField(readOnly: true, value: fv!item.name), a!textField(readOnly: true, value: fv!item.value), a!textField(readOnly: true, value: fv!item.status), a!richTextDisplayField( value: { a!richTextIcon( icon: "plus", linkStyle: "STANDALONE", link: a!dynamicLink( value: fv!item, saveInto: a!save( local!data, append(local!data, save!value) ) ) ), a!richTextItem( text: " Add a row", linkStyle: "STANDALONE", link: a!dynamicLink( value: fv!item, saveInto: a!save( local!data, append(local!data, save!value) ) ) ) } ) } ) ) ) )
This should get you on the right path.
I used an editable grid with the data based on a local dictionary of data. The magic happens in the save into on the rich text objects. I am using a dynamic link to to append the data used to populate the grid. I am sure this is not 100% what you need but it should get you familiar enough with the design concepts to build out according to your own use case.
Appreciate for your awesome solution! That we can go to next step with this magic .