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
7 replies
Subscribers
7 subscribers
Views
4302 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I'm struggling to find the correct syntax for saving into a nested CDT from
Tim
Certified Lead Developer
over 11 years ago
I'm struggling to find the correct syntax for saving into a nested CDT from a SAIL dashboard. The snippet below creates a valid paragraph field from my nested CDT value but the saveInto causes an error when updating the form. I am using this style of notation because the elements are generated from an apply function so "IncidentVehicle" and "VehicleMake" are dynamic at runtime. The value will save when hard-coding local!dataArray["IncidentVehicle"].VehicleMake but this isn't an option for me as the .field cannot be parameterized.
a!paragraphField(
label: "CDT Data",
value: index(local!dataArray["IncidentVehicle"],"VehicleMake"),
saveInto: index(local!dataArray["IncidentVehicle"],"VehicleMake")
)...
OriginalPostID-94523
OriginalPostID-94523
Discussion posts and replies are publicly visible
Parents
0
Sathya Srinivasan
Appian Employee
over 11 years ago
It need not be a local variable. It can be a rule input, for e.g
If you're creating controls dynamically, I'd assume you'll have some sort of map to say which control and of what type to create for that dynamic page. You would use the same logic to create or pass variables to store the data into.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 11 years ago
It need not be a local variable. It can be a rule input, for e.g
If you're creating controls dynamically, I'd assume you'll have some sort of map to say which control and of what type to create for that dynamic page. You would use the same logic to create or pass variables to store the data into.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data