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

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

Recommended Posts

Posted

Hello

I have attached my first attempt at a script. The idea is simple. Via a value list in the 'type' field , in the 'project' table, I wish to create a new record in the ddf table, if I choose ddf from the value list. I figure this would be not too difficult ... but I think I was wrong. Can anyone help?

Many thanks in advance

Untitled.fp7.zip

Posted (edited)

You need to grab the proid into a variable first before you navigate off the project layout

plus you don't want to replace but you want to use Set Field.

Hope that helps

Edited by Guest
changed image
Posted (edited)

It is also important to know HOW you plan to select from the value list. Can a user always only select ONE? If you use a checkbox and there may be multiple entries then using = will not work for you.

Can that value be one of multiple values in the field or will it be the only value?

Edited by Guest
Posted

I got to work. I forgot to put in the 'create new record' line. thank you. Incidentally, this is for a drop down value list solution.

Last question, what does $ do?

Posted (edited)

$Variable is a local Variable. If you write $$Variable, then it would become Global Variable.

Edit:

From FM help,

Variable:

"In a calculation, a symbol or name that represents a value. Use the SetVariable script step to specify the name, value, and repetition of the variable. Names prefixed by $ are local variables available only within the current script. Prefix the name with $$$ to make the variable available throughout the current file (global). Local and global variables can have the same name but they are treated as different variables"

Hope it helps...

Edited by Guest

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