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

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

Recommended Posts

Posted

hey guys i need help on making a script for a record with a field titled "Source #"

I want it to be global if and only if a different field (with a drop-down menu) is set to "Open"

how would you make a button/script to make multiple "Source #" fields global?

Posted

Well you cant script to change the indexing options of a field.

Perhaps you can further explain what you are trying to achieve and we can assist you with a solution.

Posted

1st off it's gov. business... so i can't tell you any information on the database...

but i need to have a field stay constant based off of the "Closed" or "opened" status of a field...

if it's opened it needs to be globalized...

if it's closed i need the field to stay with the old field text

for instance...

record 1-open-version 1

record 2-closed-version 1

record 3-open-version 1

then globalized instance

record 1-open-version 2

record 2-closed-version 1

record 3-open-version 2

record 4,5,6,7...-open-version2

thanks in advance for the help,

Euka

Posted

"if it's opened it needs to be globalized..."

I think you'd better explain what you mean by "globalized".

And as Mr Vodka suggested, tell us your problem.

Posted

by globalized i mean the field is the same on all records except for the one already closed

so if the "opened/closed" field is open it needs to change to a text entered in the "source section" along with every other open field

does this help?

thanks

Posted

There is no such thing as a global with exceptions. You need a calculation field along the lines of:

Case ( Status = "Open" ; result1 ; result2 )

If you want, you can make result1 and/or result2 return data from a global field (the calculation will be forced to unstored in such case).

Posted

ok this is how i set it up...

final.jpg

Here is the link to the photo

the fields on the right are global and are able to change...

i put in calculation

Case ( Closure Status="Open" ; Current Source Title ; Closure Status="Closed" ; Source Title ) 




then 




Case ( Closure Status="Open" ; Current Source Date ; Closure Status="Closed" ; Source Date)




then 




Case ( Closure Status="Open" ; Current Source Library # ; Closure Status="Closed" ; Source Library # )




then




Case ( Closure Status="Open" ;Current Source Document # ; Closure Status="Closed" ; Source Document # )

and it works... BUT ONLY FOR A SINGLE RECORD AT A TIME... I need it to change all "open" records to the current fields...

HELP...

I'm so close i can smell it...

Posted

i think i have it in text...

but if i have it in calculation i can't keep the old text, correct?

i have it on auto-enter mode... could we run a conditional statement to change the Source title, etc. fields to the current source title,etc., HOW would that look?

final.JPG

Posted

I still can't see anything in your screen shot (you're giving us Mac users a bad name...).

And I don't understand what you mean by "keep the old text". The texts need to be kept in text fields. If one of these needs to a global field, the calculation must be unstored - and that can only happen in a calculation field.

Take a look at the attached file - I believe it shows all possible combinations.

Globals.fp7.zip

Posted (edited)

...(you're giving us Mac users a bad name...).

Eukanuba shows Windows XP :qwery:

UPDATE: I know, I know, it looks like something I would do but ...

Edited by Guest
Posted

If I'd have thought of it - and if I could have - and if I wouldn't mind messing with someone else ... then you can bet I'd have been tickled to pull your leg. But alas no, I didn't change it. :jester:

Posted

hey i think i solved it based upon your file... thanks man...

what i did was to create a new layout and have a field called "Current Source Title" which was global in a footer then i had a field called "Original Source Title" as a text-stored value then a calculation based on "source title" which was dependent on whether the Open/closed field status...

thanks guys...

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