|
|
Clarion 6 - General
Started by riaan3 at 10-03-2008 12:01 AM. Topic has 2 replies.
 
 
|
|
Sort Posts:
|
|
|
|
10-03-2008, 12:01 AM
|
riaan3
Joined on 07-03-2007
cape town
Posts 29
|
After successful insert - Insert another record
|
|
|
|
|
Hi
I have an update window which "After successful insert - insert another record" is selected. A date input field "Cus:TheDate" exists on the form for input.
Then I have a local var on the update form
called MyAnotherRecord with Yes and No as radio options.
If the user enter a date and clicks on Yes and clicks on Ok, the date entered + 7 must be displayed in the new update form
that pops up.
I know one must code:
If MyAnotherRecord = 'Yes'
Cus:TheDate = Cus:TheDate + 7
End
Where should this code go?
Thanks
mwroos
|
|
|
|
|
Report
|
|
|
|
10-03-2008, 2:35 AM
|
Shankar
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
Re: After successful insert - Insert another record
|
|
|
|
|
Hi!
The easiest way would be to setup in the "Prime on Insert" (Form Procedure properties) as ::
Variable :: CUS:TheDate
Assignment :: CHOOSE(MyAnotherRecord='Yes', CUS:TheDate+7,CUS:TheDate)
or
CHOOSE(MyAnotherRecord='Yes', CUS:TheDate+7,TODAY())
if you want TODAY() as the default.
Regards
Shankar
|
|
|
|
|
Report
|
|
|
|
10-03-2008, 3:14 AM
|
riaan3
Joined on 07-03-2007
cape town
Posts 29
|
Re: After successful insert - Insert another record
|
|
|
|
|
Thanks, I will do that
mwroos
|
|
|
|
|
Report
|
|
|
|
|
|