Home » Developer & Programmer » Forms » problem in NEXT ITEM
problem in NEXT ITEM [message #195755] Mon, 02 October 2006 03:01 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

I have a problem in using in "next item"

see this code
IF(GET_ITEM_PROPERTY(:SYSTEM.CURRENT_BLOCK||'.'||:SYSTEM.CURRENT_ITEM,INSERT_ALLOWED)= 'FALSE') THEN
LOOP         	
NEXT_ITEM;	
exit WHEN ((:SYSTEM.CURRENT_BLOCK <> Vblock_name) OR
(GET_ITEM_PROPERTY(:SYSTEM.CURRENT_BLOCK||'.'||:SYSTEM.CURRENT_ITEM,INSERT_ALLOWED)= 'TRUE')
         	);
END LOOP;         	
END IF;	


this code to make the cursor on the first field in my form have insert allowed with 'yes'

it works fine when the form contain records (table is not free)
if the form doesnot contain records (table us free) it the loop is working as inifinite loop


N.B
the first item in my form has initial value and set insert allowed to no
(this to make the cursor go to the next item when insert)


Thanks for everyone Helped and Helping me

[Updated on: Mon, 02 October 2006 03:02]

Report message to a moderator

Re: problem in NEXT ITEM [message #195877 is a reply to message #195755] Mon, 02 October 2006 19:44 Go to previous message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

When will
 ((:SYSTEM.CURRENT_BLOCK <> Vblock_name 

become true. And when you met the insert_allowed property = true? What exactly you want to do?
Previous Topic: passing data through forms
Next Topic: Closing forms when opening new ones
Goto Forum:
  


Current Time: Wed Dec 07 04:51:38 CST 2016

Total time taken to generate the page: 0.15990 seconds