Home » Developer & Programmer » Forms » Problem on next navigation items
Problem on next navigation items [message #191314] Tue, 05 September 2006 11:50 Go to next message
secchan20
Messages: 31
Registered: April 2005
Member
Hi,

I have a problem on navigation. Embarassed 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 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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
Re: Problem on next navigation items [message #191355 is a reply to message #191352] Tue, 05 September 2006 18:51 Go to previous messageGo to next message
secchan20
Messages: 31
Registered: April 2005
Member
My coworker helped solve the navigation problem by setting both enabled property and navigable property to true. Thank you!

Sarah
Re: Problem on next navigation items [message #192097 is a reply to message #191355] Sun, 10 September 2006 23:03 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If you have the items in the order you wish to process them then I would suggest NOT populating the Next_Navigation_Item and Previous_Navigation_Item.

David
Re: Problem on next navigation items [message #192109 is a reply to message #191314] Mon, 11 September 2006 00:16 Go to previous messageGo to next message
sandeepk7
Messages: 137
Registered: September 2006
Senior Member

Use
SET_ITEM_PROPERTY('my_block.itemX',navigable,property_true)
after enabling the item.
i.e.
SET_ITEM_PROPERTY('my_block.itemX',Enabled,property_true)
SET_ITEM_PROPERTY('my_block.itemX',navigable,property_true)
Hope tht will work.

Sandy
Re: Problem on next navigation items [message #279551 is a reply to message #192109] Fri, 09 November 2007 00:16 Go to previous message
4crCoffee
Messages: 1
Registered: November 2007
Location: Quebec
Junior Member
Sarah, you saved my life Smile

I Had this problem for the past 2 days. And your solution worked perfectly Very Happy

Thanks Cool

[Updated on: Fri, 09 November 2007 00:16]

Report message to a moderator

Previous Topic: write XML
Next Topic: pound symbol
Goto Forum:
  


Current Time: Thu Feb 13 06:18:02 CST 2025