10-05-2016 07:19 AM
10-05-2016 07:45 AM
The Block UI Styler does not fire a callback with every character you type in a string field. As you have discovered, you must either press enter or move the focus to a different dialog item in order to fire the update callback.
10-06-2016 10:50 AM
10-06-2016 11:23 AM
When you put the cursor in the string field, we say that the string block has focus. If you type something into it and press enter, the update callback will be fired, and conditional block for the string inside the update callback will run.
If you are typing in the string field, and you use the tab key or the mouse to move the focus to a different item in the dialog, then the same thing will happen.
The Block UI Styler does not have any method that will allow you to trigger a callback every time you type in a character in a string field. The callback fires when you indicate that you are finished entering text, using one of the methods described above.
10-06-2016 01:06 PM
There is an open enhancement request to add a "text changed" callback to the BlockUI string block.
ER 7724275
10-06-2016 01:24 PM
10-06-2016 01:25 PM
Correct - I submitted that for a customer in May of this year. I looked it up, and development has not made a comittment one way or the other on that yet.
10-06-2016 01:51 PM
10-07-2016 03:04 AM
10-07-2016 03:44 AM
When you click Apply the dialog is basically closed and reopened, so to keep the values you had you need to set them in the initialize() or dialog_shown() callbacks (or whatever they are called ).
So you need to have a variable in your code to keep the current value of the enum, then use that to set the enum value as the dialog is redisplayed.
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: [NX8.5.3.3 MP11 64bit] Testing: [NX12.0.0.27 MP1]