is it possible to used a dropdown pagination in a read-only grid table(recordType)? please see the attached image for the sample output. thank you
Discussion posts and replies are publicly visible
Hello,
If you are trying to change the page, then you can refer the below code.
a!localVariables( local!pagesizeSelected, local!data: a!queryRecordType( recordType: 'recordType!{4c73e73b-59fc-4fc9-862b-db723c674daa}PA Country', pagingInfo: a!pagingInfo( startIndex:if( a!isNotNullOrEmpty(local!pagesizeSelected), ((local!pagesizeSelected-1)*10)+1, 1), batchSize:10 ) ).data, { a!dropdownField( placeholder: "select your page size", choiceLabels: {1,2,3,4}, choiceValues:{1,2,3,4}, value: local!pagesizeSelected, saveInto: local!pagesizeSelected ), a!gridField( data: local!data, columns: { a!gridColumn( value: fv!row['recordType!{4c73e73b-59fc-4fc9-862b-db723c674daa}PA Country.fields.{68a8fd97-10c2-4779-9088-c81daec9821d}id'] ), a!gridColumn( value: fv!row['recordType!{4c73e73b-59fc-4fc9-862b-db723c674daa}PA Country.fields.{49a5bbd7-cffd-4981-9510-ffb2fb112cf2}name'] ), a!gridColumn( value: fv!row['recordType!{4c73e73b-59fc-4fc9-862b-db723c674daa}PA Country.fields.{51134b0c-96aa-434b-8a8d-3d8c683d1ea6}group'] ) }, pageSize:length(local!data) ) } )