Jump to content

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

Recommended Posts

  • Newbies
Posted

Is there any way to define which value list a field uses by using script maker? Long shot, I know, but I can always hope

  • 3 weeks later...
Posted

HI,

I realize it's been a while since your post so you may have already found a solution to this, but I've been playing around with this one. The best you can do is write the script so that it does:

Go to Field[]

Open ValueLists[] << the script then pauses automatically and waits for the user to chose a value-list

Other script steps...

There is no way to automatically chose one list over another without the users input, unfortunately!

Louisa

Posted

quote:

Originally posted by reagank:

Is there any way to define which value list a field uses by using script maker? Long shot, I know, but I can always hope

You could design a value list (i.e. dynamicValueList) which is the contents of some temp field (i.e. tempValueList) in your database.

In your layouts you set the fields to be using the dynamicValueList. Then you set a script which uses the "Paste Result" step to set the tempValueList field with the results of the "ValueListItems" function, specifying the particular value list that you actually want to use.

In this scenario you have to remember to clear that field before performing this procedure again.

An easier way to do this is to setup the tempValueList field in a file (such as a Menu or Login file) which only has 1 record. The rest of the procedure is the same, but now you only have 1 record to worry about clearing out.

I have done this before with much success. Although awkward to setup it actually works pretty well.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.inthescene.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

Posted

Alternative is ensure your value list is held in a field and then you can source it directly, No? Still going to be pausing for user selection though unless yo are alredy defining their selection then combine PASTE RESULT and calc. are the answer.

Good luck.

Unless that is your trying to define a feild from your script.

quote:

Originally posted by reagank:

Is there any way to define which value list a field uses by using script maker? Long shot, I know, but I can always hope

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