Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
2232 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, I am unable to save my data in the editable grid into the PV. Can
Will Teoh
over 9 years ago
Hi,
I am unable to save my data in the editable grid into the PV. Can you help me out please?
In the interface code:
a!gridLayout(
headerCells: {
a!gridLayoutHeaderCell(label: "Cost Element"),
a!gridLayoutHeaderCell(label: "Project Manager"),
a!gridLayoutHeaderCell(label: "Split %", align: "RIGHT"),
a!gridLayoutHeaderCell(label: "Category Code"),
/* For the "Remove" column */
a!gridLayoutHeaderCell(label: "")
},
/* Only needed when some columns need to be narrow */
columnConfigs: {
a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
a!gridLayoutColumnConfig(width: "NARROW"),
a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
a!gridLayoutColumnConfig(width: "NARROW")
},
rows: a!applyComponents(
function: rule!TRAVEL_SAIL_costElementItemRow(
items: local!costElements,
index: _,
...
OriginalPostID-184398
OriginalPostID-184398
Discussion posts and replies are publicly visible
Parents
0
Will Teoh
over 9 years ago
... }
),
a!linkField(
label: "Add Link",
labelPosition: "COLLAPSED",
links: a!dynamicLink(
label: "+Add Item",
/*
* For your use case, set the value to a blank instance of your CDT using
* the type constructor, e.g. type!PurchaseRequestItem(). Only specify the field
* if you want to give it a default value e.g. due: today()+1.
*/
value: {splitPercentage: null},
saveInto: {
a!save(local!costElements, append(local!costElements, save!value)),
/*` When modifying the size of the array used in a!applyComponents, */
/* make the same change in the "token" array variable */
a!save(ri!travelCostElementsList_cdt, append(local!costElementsList, save!value))
}
)
)
I am unable to save it into the ri!travelCostElementsList_cdt that will eventually put into the PV that I mentioned. Somewhere that I have missed out??
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Will Teoh
over 9 years ago
... }
),
a!linkField(
label: "Add Link",
labelPosition: "COLLAPSED",
links: a!dynamicLink(
label: "+Add Item",
/*
* For your use case, set the value to a blank instance of your CDT using
* the type constructor, e.g. type!PurchaseRequestItem(). Only specify the field
* if you want to give it a default value e.g. due: today()+1.
*/
value: {splitPercentage: null},
saveInto: {
a!save(local!costElements, append(local!costElements, save!value)),
/*` When modifying the size of the array used in a!applyComponents, */
/* make the same change in the "token" array variable */
a!save(ri!travelCostElementsList_cdt, append(local!costElementsList, save!value))
}
)
)
I am unable to save it into the ri!travelCostElementsList_cdt that will eventually put into the PV that I mentioned. Somewhere that I have missed out??
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data