Jump to content

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

Recommended Posts

Posted

It seems that to use a field in calculation in a layout, that field has to be physically present in that layout (in this case the field content is a related lookup from a separate file). Is this true? If so, can I have the field present in the layout, but somehow hide it? Thanks in advance!

Posted

Hello Jason,

No, it's not true.

Fields must be present on a layout in order for script steps such as Copy [ ], Paste [ ], Insert [ ] or Replace [ ] to access them, but they are *not* required in order for calculations to work either in script steps such as Set Field [ ] or in standard calculation fields (as created in the define fields dialog). wink.gif

Posted

More specifically - they are ONLY needed if you will be editing them on screen, or using them ONLY for the copy, paste, paste result or replace, script steps. They do not need to be present for Set Field script steps, or for a stored search script.

Posted

Jason Goldsmith said:

...just tuck them in a corner and make the text and textbox the same color as the background?

That's a good start, but I suggest that you also:

1. turn ooff the option to "Allow entry ibnto field" in the Field Format dialog, and

2. Call up the 'Object Size' dialog from the View menu, click on the scalle to change it to px and enter height and width specs of 1 and 1 respectively (ie into the bottom two fields in the dialog).

3. Position your (now 1 pixel by 1 pixel) field at the far left of the screen and lock it in place.

Once you have completed the above steps, the presence of your field will go undetected by your users (in fact you'll hardly notice it yourself!). smile.gif

Posted

I never really tried, but it sounds like if you turn off the 'Allow entry' option, you will not be able to copy, paste, insert, replace and relookup in scripts with that field.

When I need to do these actions in scripts, I first move to a layout 'raw' or 'work' where all fields are present. Obviously, it is a layout the user eventually doesn't know anything about. This way I never need to 'hide' fields anywhere.

Just my two cents on this topic.

Posted

Logixx said:

I never really tried, but it sounds like if you turn off the 'Allow entry' option, you will not be able to copy, paste, insert, replace and relookup in scripts with that field.

Hello Logixx,

When you do try, you'll find out that you are mistaken. The script commands over-ride the field format option.

Logixx said:

I first move to a layout 'raw' or 'work' where all fields are present. Obviously, it is a layout the user eventually doesn't know anything about.

Sounds like a recipe for file bloat - not to mention a security 'hole'. There should be no need to fill your files up with 'dummy' layouts of this kind - and there is every reason not to. wink.gif

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