Problem on next navigation items [message #191314] |
Tue, 05 September 2006 11:50 |
secchan20
Messages: 31 Registered: April 2005
|
Member |
|
|
Hi,
I have a problem on navigation. My data block has several text items and push buttons which are lined up in the order I like and each item specifies "next navigation item". This order works fine when first the form is executed.
However, the order gets messed up after SET_ITEM_PROPERTY('my_block.itemX',enabled (visible),property_false) gets executed for these items. After typing in the 1st item following pressing the Tab key, the cursor skips the rest and jumps to the last item. SET_ITEM_PROPERY are used so that users cannot type in or push buttons under certain situations. When-Button-Pressed trigger in another block fires these SET_ITEM_PROPERTY.
I tried several ways to fix it, however nothing worked so far. Your advice is appreciated!!!
Sarah
|
|
|
Re: Problem on next navigation items [message #191326 is a reply to message #191314] |
Tue, 05 September 2006 14:25 |
RJ.Zijlstra
Messages: 104 Registered: December 2005 Location: Netherlands - IJmuiden
|
Senior Member |
|
|
Hi Sarah,
When you set the invisible property to false, you 'break' the chain of your navigation.
Suppose you have items A,B,C,D and your navigation (by having set the item property) is from A>B>C>D.
When you set B to invisible, also set for item A the property 'NEXT_NAVIGATION_ITEM' to item C and for C the property 'PREVIOUS_NAVIGATION_ITEM' to item A.
Your problem should be solved then. Of course this will be a lot of coding if you have several possibilities which item(s) will be (in) visible..
You might also try the following:
Put ALL your items (in previous example A,B,C,D) in the same block.
In the navigator place them in the desired order. I think that will work also, without ANY setting of 'next/previous' properties. I'm not sure, test this out.
HTH,
Regards,
Rob Zijlstra
|
|
|
Re: Problem on next navigation items [message #191352 is a reply to message #191326] |
Tue, 05 September 2006 17:52 |
secchan20
Messages: 31 Registered: April 2005
|
Member |
|
|
Thank you Rob. As you suggested I tried Next_Navigation_Item and Previous_Navigation_Item, however it worked until enabled properties were set to false. All items are already in the same block, listed in the order I want, and this also works until enabled properties are set to false.
I just realized that there are notes on Enabled and Visible properties, saying "Setting Enabled (Visible) to false will cause other item property settings to change. Consult the Propagation of Property Changes..."
Where can I find the detailed description of "Propagation of Property Changes"? It seems very hard to find...
Is there any way to put the navigation order back? Removing false enabled property settings solves my problem, except that a user could change the values, which I want to avoid. Would I need to create another data block X that displays A,B,C,D (copy of the original data block Z), and call block A or B depending on a situation although it sounds awful?
Sarah
|
|
|
|
|
|
|