AnsweredAssumed Answered

Refresh Object after script trigger "OnKeyStroke"

Question asked by lijnbach on Oct 9, 2014
Latest reply on Oct 19, 2014 by lijnbach

Title

Refresh Object after script trigger "OnKeyStroke"

Post

Hello everybody,

I have a button and a field on my LayOut. Both (as well the button as the field) changes when I am in "edit mode". (Get (RecordOpenState) = 1). The value in the field changes, and the button is hidden when in "edit mode". I use the function "Get (RecordOpenState)".

I have a script trigger on the LayOut. It is "OnKeystroke". The script is doing the following:

Refresh Object [ObjectName : Button]

Refresh Object [ObjectName : field]

The strange thing is, the field is updated directly after one keystroke, the button is only updated after the second keystroke. It seems the "refresh object" is working different on a button.

If I use "refresh window", both are only updated after the second keystroke.

I think I am overviewing something, but I can't figure out what. (Using FMP 13 Advanced).

Thanks in advance,

Hans Lijnbach

Outcomes