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
3 replies
Subscribers
7 subscribers
Views
2114 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
In SAIL Recipes ,following code snippet is there for desigining inline editable
georgej
over 9 years ago
In SAIL Recipes ,following code snippet is there for desigining inline editable grid. I have a question related to the partial function used here. For the supporting rule "ucItemRowEach" ,there is a parameter called "index". What value goes into this "index" parameter during run time.How does this partial function resolve during run time ; as per documentation we need to provide parameters for partial functions in a paranthesis following the function.
rows: a!applyComponents(
function: rule!ucItemRowEach(
items: local!items,
index: _,
itemsToken: local!itemsToken
),
array: if(or(isnull(local!items), count(local!items) < 1), {}, 1+enumerate(count(local!items))),
arrayVariable: local!itemsToken
)
OriginalPostID-155367
OriginalPostID-155367
Discussion posts and replies are publicly visible
0
srirams761
A Score Level 2
over 9 years ago
Hi George,
The "array" value gets passed to the "index" param
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rahul Gundu
over 9 years ago
Hi georgej,
in your code snippet, Enumerate will return array of integers and this Array of integers are passed as input's to index.
a!applycomponents will evaluate "ucItemRowEach" function for each element in the array.
if you need more info, go through the link.
forum.appian.com/.../System_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
To clarify, the index value tells each iteration of rule!ucItemRowEach which index within the array of items it is referring to. rule!ucItemRowEach then displays or updates the value(s) at that index.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel