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
6 replies
Subscribers
7 subscribers
Views
2536 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi,here is such a condition, four columns in a grid,a:paragraph, b:text, c:parag
simony
over 12 years ago
Hi,here is such a condition, four columns in a grid,a:paragraph, b:text, c:paragraph, d:text. The operation for the grid which is "Add Item" via JS, but the new row is all empty, I want to set value to them from the below selection in form. Such as here are 4 check boxs A,B,C,D. The value of a,b,c,d in grid are from check box A,B,C,D. When Click a image button,the new row is added and the value of a,b,c,d are correctly set. So,how to achieve populating value in a grid like below condition via JavaScript? Thank you!...
OriginalPostID-42386
OriginalPostID-42386
Discussion posts and replies are publicly visible
0
simony
over 12 years ago
forum.appian.com/.../
The sample in the link can't work.
Anyone can help me?
Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshr
over 12 years ago
On click of the image, can you submit the form, and reload the form with the grid data populated? Is that an option for you?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 12 years ago
I do something similar for a "Copy Last Row" functionality I have added to grids. Try calling this JS after your new row is created:
var RowCount = document.getElementsByName("gridColumnName").length;
document.getElementsByName(GridColumns[0])[RowCount - 1].value = "ValueToShowInGridField1";
document.getElementsByName(GridColumns[1])[RowCount - 1].value = "ValueToShowInGridField2";
document.getElementsByName(GridColumns[2])[RowCount - 1].value = "ValueToShowInGridField3";
document.getElementsByName(GridColumns[3])[RowCount - 1].value = "ValueToShowInGridField4";
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simony
over 12 years ago
Thanks,csteward, but I don't think this can work smoothly for paragraph field. It can work well for text field ,numeric and .etc.Have you tried it for paragraph field?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simony
over 12 years ago
Thanks venkateshr, I considered this way, but when needs to add a row ,it has to refresh the form. That can't optimize the UE.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 12 years ago
That is a good point - I have not been able to test with a paragraph field yet, would have to do a little research.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel