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
2549 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I would like to know better way to select a row from a grid. Appian 6
foussenik
over 11 years ago
I would like to know better way to select a row from a grid.
Appian 6.5.3...
OriginalPostID-104041
OriginalPostID-104041
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Since you are in an old version you can use a different approach:
1. Use JavaScript validation so the user cannot select more than one. See example at
forum.appian.com/.../48235
In the example I am simply doing a Custom JS Validation.
return window.FormAPI.getValue("favActorCheckbox").id.split("1").length -1 == 1
2. Use JavaScript to uncheck all previously checkboxes except for the one that the user is clicking on. See example at
forum.appian.com/.../48235
his function does the trick:
function checkDoneWhenAnsweredPara(answerFieldInput, doneCheckboxFieldInput) {
var selectedIndex = window.FormDesigner.lastRowEvent;
if (selectedIndex == 0) {
answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput);
} else {
answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput+ '_' + selectedIndex);
}
if (answerField != null && answerField.html() != '') {
doneCheckBox.attr('checked',true);
} else {
doneCheckBox.attr('checked',false);
}
}
In the example, the process model is under Process Models – Forum and is called Checkboxes and Paragraph Grid with a JavaScript file called gridYesNoAndParagraph.js under Default Community > Temporary Documents Knowledge Center > Temporary Documents>JS Libraries.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Since you are in an old version you can use a different approach:
1. Use JavaScript validation so the user cannot select more than one. See example at
forum.appian.com/.../48235
In the example I am simply doing a Custom JS Validation.
return window.FormAPI.getValue("favActorCheckbox").id.split("1").length -1 == 1
2. Use JavaScript to uncheck all previously checkboxes except for the one that the user is clicking on. See example at
forum.appian.com/.../48235
his function does the trick:
function checkDoneWhenAnsweredPara(answerFieldInput, doneCheckboxFieldInput) {
var selectedIndex = window.FormDesigner.lastRowEvent;
if (selectedIndex == 0) {
answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput);
} else {
answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput+ '_' + selectedIndex);
}
if (answerField != null && answerField.html() != '') {
doneCheckBox.attr('checked',true);
} else {
doneCheckBox.attr('checked',false);
}
}
In the example, the process model is under Process Models – Forum and is called Checkboxes and Paragraph Grid with a JavaScript file called gridYesNoAndParagraph.js under Default Community > Temporary Documents Knowledge Center > Temporary Documents>JS Libraries.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data