Jump to content
Server Maintenance This Week. ×

calculation to get field name


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

Recommended Posts

Why do you need the field name?

I don't know about the OP, but I use it for indirection methods all the time. Let's say you have a script that insert's the current time into a field, rounded to the nearest 5 min. increment; then let's say you need to be able to set 10 different time fields with this script, depending on the button a user clicks. I send the script a parameter with the field name I want to set, then use the 'Set Field by Name' step to set the specified field.

 

Use this function to get the field name as text:

GetFieldName ( Table::Field ) = "Table::Field"

 

To extract just the field name portion of a fully-qualified field name, I use this calculation:

GetValue (
    Substitute ( GetFieldName ( Table::Field ) ; "::" ; ¶ ) ;
    2
) = "Field"
Link to comment
Share on other sites

thank you works great

 

I need the field name because I have lots of container fields that I store pictures in . I have named the fields after a specific web page and I will need to the names of the fields to easily make a  text function  that I can use to substitute code in dreamweaver. 

Link to comment
Share on other sites

Sounds questionable.

 

Sounds like they should be related records where the attribute (page name or whatever) is one field; and the image is another field

  • Like 2
Link to comment
Share on other sites

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