cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi everyone, Does anyone know how to arrange this list on my checkbox posted using array from table? to another checkbox? If anyone could help or give some reference. Thankyou.

Note: Its better if the arrangement is based on the numbering on the another column. Please see attached image of table.

0 Likes
View Entire Topic
0 Likes

If you want to arrange the checkbox values according to the other dimension member, then one thing you can do. You can make the "Rank_Countries" the ID and "City Branch" as the description. And then you can just use a for loop to add the "City Branch" values to the Check Box which will be sorted according to the ID.

Please upvote, if this answer helps you.

gfsampayan28
Explorer
0 Likes

Question Sir argha2000 how can I do that if the list on the checkbox is cascaded from the list in the radio button? I just need to arrange the list according to the of rank_countries in the table?

gfsampayan28
Explorer
0 Likes

CheckboxGroup_1.removeAllItems();

res = Tbl_Retail_1.getDataSource().getResultSet({"Hemisphere_Globe":Checkbox_HemisphereList_arry});

console.log(res);

for (a=0; a<res.length; a++){

CheckboxGroup_1.addItem(res[a]["Rank_Branch"].id,res[a]["City_Branch"].description);

num

}

Note: After doing this one I still cant arrange the order of the displayed branch on the checkbox.