Hi,
I have the following situation. Is that a bug?
I have a local form variable and this variable is on a form with type HTML AREA
In my script I do the following:
forms.myForm.local_var = '<html><h1>Hello world</h1></html>'
The form is not being refreshed.
When I put a label on that form in stead of the local variable and I do the following:
forms.myForm.elements.myLabel.text = '<html><h1>Hello world</h1></html>'
then I see the form being refreshed. When I have both the label and the local variable on the form, then both are refreshed.
Is this a bug or is there a reason that local variables are not refreshed?
This should work; I tried your example with a button (onAction - assign the new value) and html area. It works fine for me in both clients. Maybe there is something more ?
Well, the form is on a tabpanel which is on another tabpanel.
Maybe there is also the problem. I’ve read that there were problems with tabpanels in webclient and the situation is webclient.
martinh:
Well, the form is on a tabpanel which is on another tabpanel.
Maybe there is also the problem. I’ve read that there were problems with tabpanels in webclient and the situation is webclient.
I also tried with main form → related panel 1 → related panel 2 ; html area in panel 2, button with onaction in main form or panel 2. It works fine for me.
function onaction()
{
forms.test.myvar = '<html><h1>Hello world</h1></html>';
}
OK, I’ll see if I can find what this causes
It looks like that a load of a form earlier than expected, is causing lot of problems.
That was the reason. Because of that early load, I think there was no current record in the foundset, but expected to have one on that form.