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
2 replies
Subscribers
7 subscribers
Views
1627 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi Team, I am facing an issue while using radio buttons in editable gridLay
silkik235
over 9 years ago
Hi Team,
I am facing an issue while using radio buttons in editable gridLayout. Radio button selections are not getting refreshed, we have tried attached code snippet. As per my observation, when I try to display the local!itemsToken array in From Layout/Grid Layout's Label then the radio button selections work fine else it is not updating the selections.
Could you please advise? Any help is appreciated!
Interface.txt
OriginalPostID-162023
OriginalPostID-162023
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 9 years ago
I think using the itemsToken array does not work that way. What do you intent to do? Using radiobuttons to allow the user to select a single item only? For that you would need a separate boolen array. I have no working code, but this could be a start
a!radioButtonField(
label: "select " & ri!index,
choiceLabels: {""},
choiceValues: {true()},
value: index(ri!selectedBooleanArray, ri!index, false),
saveInto: {
a!save(ri!selectedBooleanArray, updatearray({}, ri!index, true)),
}
),
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
praveenj
over 9 years ago
If the radio button value is part of local!items array (say boolean variable isActive) then you can use something like this below.
a!radioButtonField(
label: "select " & ri!index,
choiceLabels: {"Yes", "No"},
choiceValues: {true(), false()},
value: ri!items[ri!index].isActive,
saveInto: ri!items[ri!index].isActive
)
We can help if you provide more info on what you are trying to achieve.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel