Jump to content
Sign in to follow this  
PelicanProductions

"If" calculation where result two equals existing field data

Recommended Posts

I am trying to create a SetField script step that validates a records status and changes the status to "Renewal" if the record has expired, here is the calculaton:

If (

RunSheet_PP::Date >= RunSheet_PP::Validate; "Renewal";"VARIABLE?"

)

Where I have "VARIABLE?" I am looking for a value that will leave the fields existing value unmodified. Please help.

Using FM Pro 8.5 advanced

Thanks

Share this post


Link to post
Share on other sites

Set the field to itself to leave it unmodified.

You could also move the condition from calculation to a script step.

Share this post


Link to post
Share on other sites

I must have misunderstood somthing, if I put "itself" where I had "VARIABLE?" it just replaces all of the valid fields with the text "itself".

Where did I go wrong?

Share this post


Link to post
Share on other sites

You need to use the field's name - unquoted.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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