Home » Developer & Programmer » Forms » How to get information from previous row (Was appended to "Canvas scroll bars..")
How to get information from previous row (Was appended to "Canvas scroll bars..") [message #396454] Mon, 06 April 2009 17:08 Go to next message
jaki09
Messages: 11
Registered: March 2009
Junior Member
Hello sir,

please help me on this issue. This is my form layout...
COUNTRY	REG.NUM	START_DATE	END_DATE
US	R1111	3-Mar-2009	10-Apr-2009
CAN	P4444	5-Apr-06	
US	R2222		

Today is 06-Apr-2009 and the first record will end_date on 10th april.

The third record is creating by user for same country with different reg.number. and my question is the start_date will not allow less than first record end_date.

That means third record start_date should be greater than
10-Apr-2009.

what to write the code and where to write.(In when validate item or when new record instance and what to write because it has to check previous record)

Please help me out.

Thanks in Advance
Jaki
[EDITED by DJM: applied [code] tags to sample data]

[Updated on: Tue, 07 April 2009 19:27] by Moderator

Report message to a moderator

Re: How to get information from previous row (Was appended to "Canvas scroll bars..") [message #396807 is a reply to message #396454] Wed, 08 April 2009 01:57 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Put the code in the When-Validate-Item of the 'Start_date'. IF the date in the item is not correct, issue a message and raise a form-trigger-failure.

david

David
Previous Topic: Correct trigger for GO_RECORD, GO_ITEM
Next Topic: to use d2kwutil.dll and d2kwutil.pll
Goto Forum:
  


Current Time: Sat Dec 10 09:13:34 CST 2016

Total time taken to generate the page: 0.04225 seconds