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
16 replies
Subscribers
9 subscribers
Views
6086 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I am populating a grid Layout based on the selection from a
mohamedt808
over 10 years ago
Hi All,
I am populating a grid Layout based on the selection from a grid field.Now i am trying to add delete button to grid layout to delete individual rows and am facing issues.
can anyone suggest possible solutions or examples related to it??
attachments.zip
OriginalPostID-138567
OriginalPostID-138567
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 10 years ago
Have you had a look at this?
forum.appian.com/.../SAIL_Recipes.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 10 years ago
Thanks for the suggestion, but it didn't workout.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 10 years ago
Error message says: Interface Definition: Expression evaluation error in rule 'rule_rows': An error occurred while executing a save: Expression evaluation error : The save target is a with() variable (local!newdatasubset:[startIndex=1, batchSize=25, sort=[field=last, ascending=true], totalCount=1, data=[id:elizabeth.ward,first:Elizabeth,last:Ward,email:elizabeth.ward@example.com], identifiers=1]). The save target must be a load() variable, process variable, or node input (or a rule input passed one of those three). with() variables are reinitialized with each evaluation and therefore cannot be used as save targets.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 10 years ago
Do you have an example of your updated SAIL? Sometimes it's easier to implement the example I've linked above and then adapt it to match your requirements.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
padmanabhanv
over 10 years ago
As the error says, you cannot save into a local variable defined inside a 'with' function. The error will be resolved if you change it to a load
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 10 years ago
Tried that as well, when i use load() function instead of selected records all the records are getting populated into the grid layout.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 10 years ago
I have to use with() as i am having selection in my first Grid Field, which populates the data for the grid layout.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 10 years ago
Are you saying that you have a first grid field which, upon selection, populates a second grid field? In that case, you should only need a with() around the second grid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 10 years ago
Please check the attachment.I have two grids, first one is a grid field with selection, and the second grid is a grid layout which is based on the records that are selected in the first grid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
praveenj
over 10 years ago
Even if it worked, second grid (grid layout) where you have delete icon, it will only delete the data from newdatasubset. So you need move the delete to the top level grid. You can use the second level grid to display additional info. See the changed code which is attached.
Hope this helps.
attachments.zip
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>