as title, i just want my editable grid shows up only 15 rows and able to go next page with arrow.
Discussion posts and replies are publicly visible
https://community.appian.com/b/appmarket/posts/configurable-paging-info
Hi immortalvirgil,
can you please try this code.
a!sectionLayout( contents: { a!richTextDisplayField( align: "RIGHT", value: { a!richTextIcon( icon: "chevron-left", link: a!dynamicLink( saveInto: a!save( ri!pagingInfo, a!pagingInfo( startIndex: ri!pagingInfo.startIndex - ri!pagingInfo.batchSize, batchSize: ri!pagingInfo.batchSize, sort: ri!pagingInfo.sort ) ), showWhen: ri!pagingInfo.startIndex > 1 ), linkStyle: "STANDALONE" ), a!richTextItem( text: { char(32), a!richTextItem( text: { joinarray( { index(ri!pagingInfo, "startIndex", null), char(45), if( ( index(ri!pagingInfo, "startIndex", null) + index(ri!pagingInfo, "batchSize", null) - 1 ) > ri!totalCount, ri!totalCount, ( index(ri!pagingInfo, "startIndex", null) + index(ri!pagingInfo, "batchSize", null) - 1 ) ) }, char(32) ) }, style: "STRONG" ), char(32), joinarray({ "of", ri!totalCount }, char(32)), char(32) } ), a!richTextIcon( icon: "chevron-right", link: a!dynamicLink( saveInto: a!save( ri!pagingInfo, a!pagingInfo( startIndex: ri!pagingInfo.startIndex + ri!pagingInfo.batchSize, batchSize: ri!pagingInfo.batchSize, sort: ri!pagingInfo.sort ) ), showWhen: ri!pagingInfo.startIndex < ri!totalCount - ri!pagingInfo.batchSize ), linkStyle: "STANDALONE" ) } ) })
RoleInputs:
1.totalCount of type integer
2.pagingInfo of type paging info
Thanks,
Baji