How does onRender work

Questions and answers for designing and implementing forms in Servoy

How does onRender work

Postby nandlalajisingh » Fri Sep 05, 2014 4:41 pm

Hi All,
I am not so much into servoy developing. So, I am getting bit difficulty getting onRender event of form.
Let me explain, what i got- whenever i attach function to onRender event of any element/form then that function will be triggered whenever there is change in that element/form. Right?

Then,why onRender function is not triggered when value is changed in Field.
let me explain my situation. With clicking on different buttons i am changing the value of Field and accordingly i want to change visibility of different icons with different value in Field

Thanks in advance
nandlalajisingh
 
Posts: 15
Joined: Thu Jun 05, 2014 9:14 am

Re: How does onRender work

Postby ROCLASI » Tue Sep 09, 2014 9:52 am

Hi,

As far as I know the onRender event only triggers when the form needs to repaint itself. Touching a field value using code would only trigger a repaint if that field is indeed on the form. If that is not the case then you could force the repaint by using application.updateUI().

However if the field is indeed on the form and the event doesn't trigger I would consider that a bug and you should file it as such with servoy support.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 9 guests