Jump to content

Set Field


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

Recommended Posts

Can anyone help me better understand "SET FIELD"? I feel like I am going the long way around to get some things done, but I do not understand what SET FIELD truly does, but I see it used all the time by toher developers. I know this is pretty pretty basic, but if someone could HBO (help a Brother Out) I would really appreciate it.

Thanks,

Steve

Link to comment
Share on other sites

ok

Set field allows you to set the contents of any field that allows data to be entered into (basically not calcs)

You specify a field and then you specify what you want that field to contain.

You can set the field with text, numbers or dates.

These can be hard coded by you in the calc dialog such as;

 "I am some text" or 123

You can set a field to the contents of another field by referencing the field in the dialog to pull from

You can combine fields together Field A &" " & Field B

You can even create conditional calcs to determine the information to set.

The other great benefit of Set Field is the field you are setting does NOT have to be on the layout you currently reside on, unlike copy and paste.

HTH....anyone else?

Link to comment
Share on other sites

One shortcoming of the Set Field step is that you cannot determine the target field by a calculation. A workaround for that is to use the step inside a loop as follows:

Step: Go To Field [field1]

Step: Loop

Step: Set Field [ If ( Get(ActiveFieldName) = "DesiredTargetField" ; "desiredOutput" ; Get(ActiveFieldContents) ) ]

Step: Exit Loop If [ Get(ActiveFieldName) = "DesiredTargetField" ]

Step: Go To Next Field

Step: End Loop

Link to comment
Share on other sites

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