hclleapforum

Open full view…

Example of .getSelected()

derek_e
Mon, 16 Sep 2019 22:25:28 GMT

Working with the Item.getSelection() function associated with the Table object. Object Description item.getSelection() Returns the Business Object of the selected row or null if there is no selection. Does anyone have a short example of how to implement this. Tried this with no luck: tableBO = BO.F_Table1; selected = tableBO.getSelection(); It gives me this error: There was an error executing the onClick event code on item , page Page 1, form Form 1. Caused by: TypeError: tableBO.getSelection is not a function

christopher_dawes
Mon, 23 Sep 2019 18:18:45 GMT

The function is a UI function, not a BO one. The proper reference is page.F_Table1.getSelection().