I¨m working quite a while with XPages, and this must be a rookies question: I want to place my common actions like "Save Document", "Edit", "Cancel" in the Action Bar in the upper part of the OneUI of the extlib (Place Bar). I succeeded to get any basic (or other) nodes in the place bar, but I can only give them client side JS, not the usual server side JS which I gave to a button.
Am I missing sth? Of course I searched (here + google), but cannot find any answer for this simple question.
Hope you can "push me into the right direction" ....
thx, Uwe
Add the buttons "Save" and "Edit" as
xe:basicLeafNode
to the action barand define the code you want to execute as SSJS code in
xe:applicationLayout
'sonItemClick
eventYou can test in onItemClick event with
context.getSubmittedValue()
for basicLeafNode's submitValue and get to know this way which button was clicked.