With a button i need to save current layout of current page.Then i need to get current style (top,left…) of specified panel, and save it into a notes document.
I tried (server-side):
panel = getComponent(“panel1”);
dominodoc.replaceItemValue(“style”,panel.style);
But with this codes obtain default style, not current style object.
Or i tried (client-side):
var element = dojo.byId(“#{id:panel1}”);
var temp = ‘#{javascript:database.getview(“xxx”).getFirstDocument.replaceItemValue(“style”,"’ + element.style + ‘")}’;
But with this codes, it set item style into notes document → “element.style”.
Any suggest?
Thanx in advance!