Page 1 of 1

Hide field on preopenstack

Posted: Tue Aug 11, 2015 11:50 am
by ali yehia
I made stack and card inside it. the card has many fields. I need hide some fields and show it in certain event.

I write code

preOpenStack

hide field "t98"

end preOpenStack


But still t98 appears

What do I do?

Re: Hide field on preopenstack

Posted: Tue Aug 11, 2015 12:31 pm
by richmond62
Um . . .

try this in the card script:

on preOpenCard
hide fld "t98"
end preOpenCard

it works!

Re: Hide field on preopenstack

Posted: Tue Aug 11, 2015 4:15 pm
by dunbarx
Hi.

What Richmond said, and the reason is that the preOpenStack message fires before the card loads. So it is more prudent to put your handler in a place where it is comfortable.

Craig Newman

Re: Hide field on preopenstack

Posted: Tue Aug 11, 2015 6:42 pm
by ali yehia
Thanks all

It is working

Re: Hide field on preopenstack

Posted: Thu Aug 13, 2015 11:05 am
by Klaus
Hi Ali,

you forgot the highly important ON in your first script:

Code: Select all

preOpenStack
   hide field "t98" 
end preOpenStack
This way, the "preopenstack" message does NOT get triggered at all!

Code: Select all

ON preOpenStack
   hide field "t98" 
end preOpenStack
Best

Klaus