Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8025 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have file (report.fp5) where a user enters information for performing a find and creating a report with data from another file (checklist.fp5).

On the report.fp5 file the user chooses the name (from a list), begining date, end date and a checkbox that let let him choose if he wants the report to have everybody from the name list or only the name he selected.Depending on his selection on the checkbox, a diferent script is run.

>If [checkbox=""]

>Perform Script ["individual report"]

>End if

>if [checkbox="all"]

>Perform Script["group report"]

>End if

If I perform the scripts above individualy by going to the script menu and selecting the script they both work fine, however if I try to perfom them from the script showed above only the group report script works, the individual report stops in the middle.

This is the Individual report script :

>Set Field[date_range, DateToText(date_begining&"..."&DateToText(date_end)]

>Go to Layout [report data]

>Copy [date_range]

>[select Entire Contents]

>Go to related record [name to name]

>[show only related records]

>Peform Script [filename:"checklist.fp5" , "individual report"]

>[sub-script]

can anybody help?:?

Posted

Try changing your first IF statement to and also setting as an else (or adding an exit script before the end IF

>If [ IsEmpty(checkbox) ]

> Perform Script ["individual report"]

>Else

> if [checkbox="all"]

> Perform Script["group report"]

> End if

>End if

This topic is 8025 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.