Hi,
I created a form with the view property set to ‘Table view’. The form contains a checkbox, whose dataProvider is a foundset calculation. There is a function bound to the onRender event of the checkbox. When the form is shown, this onRender function is never called no matter what I do.
What could be the reason?
I am using Servoy Developer v. 7.3
please create a case for this issue in our support system : http://www.servoy.com/s
Servoy 7.3.1 in Developer, java 6 update 43, web client & smart client.
I have a TEXT_FIELD element on a form that is based on table A.
The dataprovider in the TEXT_FIELD is a related dataprovider, let’s call it A_to_B.myColumn
I open up a form in a modal dialog where I make a change to a record in table B and I save the change. This change causes the value of A_to_B.myColumn to change.
I see the value change on the main form, but the onRender event I’ve attached to the element doesn’t fire.
I was really hoping it would fire.
Is this a bug, a ‘known limitation’ or am I missing something?
I was also hoping onRender events would fire if a dataprovider value changes as a result to databroadcasting - is that the case?
Thanks.
I’ve narrowed this down further. If I have a form in Record view and I put an onRender method on a field, onRender fires when the a record is selected, and it fires if the user happens to click on that field, but if anything else causes the value in that field to change, onRender does NOT fire. For instance:
- If it is calc, and the user changes a value that the calc depends on, the calc refreshes, but onRender does not fire
- If it is a related dataprovider, and the user changes which record the relation points to, the related dp refreshes, but onRender does not fire
- Even if I put the same field on the form twice, and change the value in one copy of the field, an onRender event placed on the duplicate field will not fire. (I know that’s a useless scenario, it’s just to demonstrate the behavior I’m seeing)
I find this odd because Servoy is clearly ‘re-rendering’ the field - so why doesn’t onRender fire? Is this expected behavior or am I missing something?
Thanks.
Those should work. Please file a case in our support system with a reproducible sample.
Paul
Done. The case for this is: SVY-6136