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

Extracting Values from Value Lists / Check Boxes


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

Recommended Posts

Posted

Hello,

I have a value list of items with checkboxes. I want a script to cycle through that value list and operate individually on each item that is checked. What is the best way to do this?

Thank you.

Evan Cooney

Posted

Check boxes are simply a way of entering data into fields, so you work with them in the same way.

eg:

If [checkboxfield = "Yes"]

do this

End If

Posted

I understand. Then let me try a different question:

If I have a text field with values (seperated by a new line):

BILL

BOB

GEORGE

ALAN

How can I cycle through those values and perform an operation on each entry? Example: Create a new record with each one of those names as a field value.

Thanks

E

Posted


* Set a global text field gTempList to the contents of your list

Set Field [gTempList, TheListfield]

* Now loop for each item in the list

loop

* If no more items in list, then we are done

Exit Loop If [Length(Substitute(gTempList,"

Posted

Put a pause step inside the loop so you can check to see what is happening to the contents of gTempList. Each time through the loop it should have one less item in it. I'm assuming that the items are separated by a line break since that is how valuelist items are normally separated. If not, then you will have to change the delimiter character from "

Posted

Does it matter that the value is generated from all of another file's values? For example, this value list is composed of all the discIDs from the CoreDisc database. Will this script only work if it is a user defined value list?

Thanks so far.

Posted

It shouldn't matter where you get the values from. However, I noticed an error in the script that I posted. It will get into an endless loop if the list doesn't have a line break at the very end. I edited my previous post to correct the error.

Also, I have attached a sample file.

Process.fp5.zip

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