Hi,i have a problem, i need to execute client side code in Server side code, It’s possible?
Other question, do you know if i can process checkboxes properties view in a Client side code (Like getSeelectedIds on Server side)?
Thanks a lot.
Hi,i have a problem, i need to execute client side code in Server side code, It’s possible?
Other question, do you know if i can process checkboxes properties view in a Client side code (Like getSeelectedIds on Server side)?
Thanks a lot.
Subject: Re: checkbox view XPage
From 8.5.1 there is an onComplete event in a partial refresh, which allows you to run client-side javascript after your server-side javascript has run. You can pass information to non-visible fields that then allows you to use dojo.byId().value to pick up the relevant outputs from your server-side javascript code.
If you’re looking to access the values of checkboxes in client-side javascript, there’s nothing out of the box for that. You’ll need an id which may require some manipulation of the source code, and use dojo.byId(). The method for accessing the full id in client-side javascript is well documented on various blogs and wikis.
Subject: Re:
Hi Paul, thanks for your comments, but i tried to use that event “onComplete” but doesn’t work for me, i’ll tried to call by dojo.byId or '#(javascript:sessionScope.VARIABLE)a variable to validate any data but it not change, do you have any sample to use that on onComplete?It’s possible? because that sessionScope variable is filled in a ServerSide execution on same button.
Thanks a lot
Subject: Client-Side Javascript from Server-Side Javascript
Camilo
I’ve posted a sample on my blog here, because I’ve responded to some similar queries recently: http://hermes.intec.co.uk/Intec/Blog.nsf/dx/21042010222252HERT3U.htm
Hope it helps
Paul
Subject: Re:Working!!!
Paul,Perfect!! It’s working now.
Thanks a lot