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
3055 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Dynamic grid BatchSize
ashman
over 8 years ago
Hi All,
I have a usecase where I need to pass the dynamic values for the batchsize for the grid. Initially grid should have a default value of 25.Then user can able to change the batchsize and I should validate the batchsize should not be less than 1 and greater than 50.I tried with local variables by using "with" and it is not allowing me to save the values.Any help would be appreciate it.
TIA.
OriginalPostID-232411
Discussion posts and replies are publicly visible
Parents
0
ashman
over 8 years ago
with(local!activeBatchSize:25,
a!sectionLayout(firstColumnContents:{a!integerField(
label: "Results per Page",
labelPosition: "ABOVE",
value:ri!batchSize,
saveInto: {
local!activeBatchSize,
a!save(
ri!batchSize,
if(or(save!value=0,save!value<0),ri!batchSize, save!value)
)
},
validations:if(or(tointeger(local!activeBatchSize)=0,tointeger(local!activeBatchSize)<1,tointeger(local!activeBatchSize)>50),"Please enter a number between 1 and 50",{})
)}))
Note:ri!batchSize will be loaded with value 25
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ashman
over 8 years ago
with(local!activeBatchSize:25,
a!sectionLayout(firstColumnContents:{a!integerField(
label: "Results per Page",
labelPosition: "ABOVE",
value:ri!batchSize,
saveInto: {
local!activeBatchSize,
a!save(
ri!batchSize,
if(or(save!value=0,save!value<0),ri!batchSize, save!value)
)
},
validations:if(or(tointeger(local!activeBatchSize)=0,tointeger(local!activeBatchSize)<1,tointeger(local!activeBatchSize)>50),"Please enter a number between 1 and 50",{})
)}))
Note:ri!batchSize will be loaded with value 25
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data