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

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

Recommended Posts

Posted

Hi Guys,

I have a script that filters for a range of dates by the following:

go to field[datefield]

Enter Find Mode(pause)

Perform FInd

I enter a date range using an entry like:

01/01/2004..01/31/2004

I would like to display the entered date range in the header of a report.

Can someone steer me in the right direction?

Posted

Start your script in Browse mode and enter your date range into to a global field g_dateRange:

Enter Browse Mode

go to field [select/Perform, "g_dateRange"]

Pause/Resume Script []

Insert Calculated Result [select; "datefield"; "g_dateRange"]

Enter Find Mode []

Perform FInd

(I'm not sure, if "Insert calculated result" exists in FM5; otherwise you would have to use copy and paste, I think.)

Afterwards you can simply display the global field in the report header. Or use a calculation field which extracts the date range more properly (ie. " until " instead of the "

Posted

"insert calculated result" does exist in FM5

Thanks for the tip!

However, now when I run the script I'm getting the message:

"this field is not modifiable"

Posted

Transpose the Insert Calculated Result and Enter Find Mode steps or you're changing the data in Browse mode and not entering criteria for a find.

Posted

Y E S ! ! !

Transposing "insert calculated result" and "enter find mode" was the answer!

That's it.!

Some say don't sweat the small stuff. But I can sure get lost in it.

THANK YOU

This topic is 7460 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.