Hi ,
I wanted to display some districts in grid with selection (the data of the grid is coming from a webservice call ,it has only one column and webservice returns a list of string values).
Can I directly use that String array to populate the grid data or Do I need to construct a CDT with identifiers and values in order to achieve the selection above thing.
Based on the selection values from the grid (single or batch selection) , Need to display another read only grid.
Thanks
soujanya
Discussion posts and replies are publicly visible
You can create a paging grid without any cdt structure direct from data which you get from web service like - = load( local!MeetingNote:{"a","b","c"}, with( local!datasubset:todatasubset( local!MeetingNote,a!pagingInfo(1,2) ), a!gridField( label: "Test", totalCount:local!datasubset.totalCount, columns: { a!gridTextColumn( label: "Title", data: { local!datasubset.data }, alignment: "LEFT" ) }, value: a!pagingInfo( startIndex: 1, batchSize: - 1 ) ) )) but if you want sorting on the grid than you have to create a dictionary structure or temporary cdt for this.
Hello Soujanaya
You have to save local!gridSelection also for save the identifier
load(
local!selectedAMUCode_txt,
local!availableRoleCode_txt:{"Thermal Landman","Thermal Geologist","Thermal Engineer","EOR Landman","EOR Geologist","EOR Engineer"},
local!gridSelection: a!gridSelection(
selected: {},
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 10
)
),
with(
local!AMUList_txt:todatasubset(
local!availableRoleCode_txt,local!gridSelection.pagingInfo
{
a!textField(
value:local!AMUList_txt
a!gridField(
totalCount:local!AMUList_txt.totalCount,
columns: {
a!gridTextColumn(
label:"AMU",
data:local!AMUList_txt.data,
alignment: "LEFT"
},
value: local!gridSelection,
saveInto:{
local!gridSelection,
a!save(local!selectedAMUCode_txt,index(save!value, "selected", null))},
identifiers:local!AMUList_txt.identifiers,
selection:true()
}