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

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

Recommended Posts

Posted

Hello,

Does anybody know whether it is possible to construct a fieldname in a scriptstep? What I would like to do is to make a loop. In this loop there must be a scriptstep that pastes a result in a field. The name of this field varies all the time, for example the first time the field is 'result1', the second time 'result2' and so on. In order to do this, I would like to change the name of the field with some formula, e.g. 'result+a' in which 'a' becomes higher all the time.

I've already asked this question in the 'fields' thread, but I now realize that this is a better place (newbie after all)

Martin

Posted

You can't change the database structure on the fly like you want to (shouldn't need to), but there are other solutions that will work for you.

create a related db with 2 fields,

field 1 is variable_name Text

field 2 is result

relate it to your main db with a global

eg my_dyna_relation: global = variable_name

now when you want to "Create a field" you set the new name of the field into the global and then set the value of my_dyna_relation::result to the results.

This will create a related record wih the name and result you want.

Charles

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