get the unid of selected documents and save to scoped variable

后端 未结 3 1057
南笙
南笙 2021-01-27 23:23

I\'ve a viewPanel1 with checkboxes. By clicking on a button I would like to save the univ id\'s (comma seperated) of the selected items to a scoped variable. I tried this :

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-27 23:54

    What you could do is the following

    var vPanel = getComponent("viewPanel");
    docIdArray = viewPanel.getSelectedIds();
    sessionScope.put("SelectedIds",@Implode(docIdArray,","));
    

提交回复
热议问题