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
9 replies
Subscribers
7 subscribers
Views
2190 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi I am working in version 7.9 currently. My requirement is that I have an
komalc3
A Score Level 1
over 9 years ago
Hi
I am working in version 7.9 currently. My requirement is that I have an editable grid and only one column is supposed to be editable such that when a row is selected in the grid then only that row's column should be editable. The same column for all the other rows should be read only.
Currently what I am doing is that I have made the grid and when only one row is selected in the grid then I display a section below the grid and save the changes made by the user for a particular column by storing it in database such that the user doesn't get a hint that the database is hit, he feels that by just clicking on submit button in the section the changes get reflected in the grid.
Can anyone please suggest me how can I fulfill my requirement.
Thanks in advance!!
Is it possible.
OriginalPostID-158772
OriginalPostID-158772
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 9 years ago
You could create a boolean list of readOnly all set to true. Pass this to your rowLayout expression and set the readOnly attributes of all fields accordingly. On selection of an item also set the readOnly on the same index to false. Using the processWriter plugin you can save the data in background without submitting the form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rahul Gundu
over 9 years ago
Hi komal, please find the code, i feel it meets your requirement..
and let me know, if you find any difficulty while executing
Solution.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
komalc3
A Score Level 1
over 9 years ago
Thanx Stefan for your suggestion.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
komalc3
A Score Level 1
over 9 years ago
Thanx Rahul, the code is working as desired :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
komalc3
A Score Level 1
over 9 years ago
Rahul, the code works fine if I select only one row, but if I select all the rows in the grid then by default one row's column becomes editable which ideally should not. PFA Issue 1 for the screenshot for the same.
Moreover, say I have three rows and I am trying to select two rows at a time, I am not able to. PFA Issue 2.1 and Issue 2.2 for the screenshot of the same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rahul Gundu
over 9 years ago
Hi komal,
i haven't test that scenario. But using the new code a user can edit multiple rows. Please replace the code with existing one.
Replace.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
komalc3
A Score Level 1
over 9 years ago
Hi Rahul,
Thanx for replying!!
Can you please elaborate as to what are you trying to do in "rule!TDS_isEmpty".
It is not clear from the file.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rahul Gundu
over 9 years ago
Hi Komal,
Please find the below code. for "TDS_isEmpty"
/*
Input: array (Any Type)
*/
or(
length({ri!array})<=0,
isnull(ri!array)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
komalc3
A Score Level 1
over 9 years ago
Hi Rahul
Thanx for all your help :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel