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
4 replies
Subscribers
7 subscribers
Views
3336 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Pre select the selectable inline grid
RajHasti
over 8 years ago
Hi All,
I have an selectable inline editable grid in screen 1 where I select few values and also I have another screen 2 which has the same grid but I wanted the grid in the screen 2 will be Pre selected with all the values that are selected in screen 1 inline editable grid..
How to do that.Are there any SAIL examples available.Appreciate all the help.
Cheers
RajHasti
OriginalPostID-254056
Discussion posts and replies are publicly visible
Parents
0
davidm403
Certified Lead Developer
over 8 years ago
Hi RajHasti,
I'm assuming that the grid on screen 1 (GridA) and the grid on screen 2 (GridB) both hold the same data. If that's incorrect, please let me know.
In order to pre-select your chosen rows in GridB, you should save the selection from GridA via the SelectionSaveInto parameter, then carry that selection over to GridB on the next form, passing it into the initial calculation of GridB's SelectionValue parameter.
For example, I'd have your forms setup like so:
"Screen 1"
"Rule Inputs" : ri!gridSelection /* Pass this to Screen 2 when the form submits */
"Code":
a!gridLayout(
data: {...},
selectionValue: ri!gridSelection,
selectionSaveInto: ri!gridSelection
)
"Screen 2"
"Rule Inputs" : ri!gridSelection /* Selection value from Screen 1 */
"Code":
a!gridLayout(
data: {...},
selectionValue: ri!gridSelection,
selectionSaveInto: ri!gridSelection
)
If this doesn't answer your question, please feel free to let me know!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
davidm403
Certified Lead Developer
over 8 years ago
Hi RajHasti,
I'm assuming that the grid on screen 1 (GridA) and the grid on screen 2 (GridB) both hold the same data. If that's incorrect, please let me know.
In order to pre-select your chosen rows in GridB, you should save the selection from GridA via the SelectionSaveInto parameter, then carry that selection over to GridB on the next form, passing it into the initial calculation of GridB's SelectionValue parameter.
For example, I'd have your forms setup like so:
"Screen 1"
"Rule Inputs" : ri!gridSelection /* Pass this to Screen 2 when the form submits */
"Code":
a!gridLayout(
data: {...},
selectionValue: ri!gridSelection,
selectionSaveInto: ri!gridSelection
)
"Screen 2"
"Rule Inputs" : ri!gridSelection /* Selection value from Screen 1 */
"Code":
a!gridLayout(
data: {...},
selectionValue: ri!gridSelection,
selectionSaveInto: ri!gridSelection
)
If this doesn't answer your question, please feel free to let me know!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data