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

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

Recommended Posts

Posted

Hi All,

I am trying to generate a script that will perform a sub-script based on Status(Currentfieldname).

My script so far is

Enter Browse Mode

Go to Layout [National Report Summary]

Set Field ["Prob_group", """"]

If ["Status(CurrentFieldName)="Tot_P_sent_pakg""]

Perform Script [sub-scripts, "whatever"]

End If

The sub-script works fine and returns the value I want, the current field is a summary field

showing the total of a calculated field. I have not used status functions before and am not

sure if I am on the right track. The objective is for the user to click into a field and run the right

script. If they click into a different field then run a different script. The sub-script performs

a find date range operation via insert calculated result script step.

Anyone have any ideas?

Ta

JB

Posted

If ["Status(CurrentFieldName)="Tot_P_sent_pakg""]

Perform Script [sub-scripts, "whatever"]

End If

To make this work, you must have the "Tot_p_sent_pakg" active. The "status(currentFieldName)" function returns a 1 (true) when that field is active and a zero (false) when the field is not active. A field is active when the cursor is in it and not active when there is no cursor in it (duh:)

You're saying that you have one script that looks witch field is active and perform a script? I think you're better off with seperate scripts witch are individualy connected to those fields.

Jeff

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