Home » Developer & Programmer » Forms » last navigation block
last navigation block [message #206475] Thu, 30 November 2006 04:06 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

I had a form that contain of 5 block
2 of them are navigable

i need to go to the last navigation block in my form
is there anyway to know the last navigation block in my form
and go to it

  vLASTBLOCK := GET_FORM_PROPERTY(vRUNFORM,LAST_BLOCK);
     vFIRSTBLOCK := GET_FORM_PROPERTY (vRUNFORM,FIRST_NAVIGATION_BLOCK);
    
    GO_BLOCK(vFIRSTBLOCK) ;
      LOOP
	      SET_BLOCK_PROPERTY (:SYSTEM.CURRENT_BLOCK,INSERT_ALLOWED,PROPERTY_TRUE);
	      EXIT WHEN :SYSTEM.CURRENT_BLOCK := vLASTBLOCK ;
	      NEXT_BLOCK;
      END LOOP;



after running this code i got that
vlastblock = (last block in my form not the last navigable one)
so that when the loop is running it doesnot get out
because it only treat with the navigable blocks only
so that the loop doesnot end


thanks for anyone helped and helping me
Re: last navigation block [message #206613 is a reply to message #206475] Thu, 30 November 2006 17:49 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
If you define the First Navigation Data Block at the Form level, then specify the Previous and Next Navigation Data Block properties at the Block level. You would start your loop as you have done, then EITHER use Next_Block until the block found equals your Form level First Navigation Data Block OR use Get_Block_Property(Next_Navigation_Block) and test against your Form level First Navigation Data Block and then do Next_Block.

David
Previous Topic: Creating form Text Feild with Validation as..it should Only have Numbers...
Next Topic: Running Form on Web - Seperate Window
Goto Forum:
  


Current Time: Sat Dec 10 10:36:38 CST 2016

Total time taken to generate the page: 0.22608 seconds