Welcome to Clarion Community Sign in | Join | Faq

Clarion 6 - General

Started by riaan3 at 10-03-2008 12:01 AM. Topic has 2 replies.

Print Search
Sort Posts:    
   10-03-2008, 12:01 AM
riaan3 is not online. Last active: 11/9/2008 10:35:18 AM riaan3

Top 25 Posts
Joined on 07-03-2007
cape town
Posts 29
After successful insert - Insert another record
Reply Quote
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 is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: After successful insert - Insert another record
Reply Quote
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 is not online. Last active: 11/9/2008 10:35:18 AM riaan3

Top 25 Posts
Joined on 07-03-2007
cape town
Posts 29
Re: After successful insert - Insert another record
Reply Quote
Thanks, I will do that
mwroos
   Report 
Clarion Communi... » Clarion » Clarion 6 - Gen... » After successful insert - Insert another record

Powered by Community Server, by Telligent Systems