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

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

Recommended Posts

Posted

HI can anyone help, I'm trying to create a pop-uplist based on a field full of words seperated via a space, looks a little like

brown cow field milk calf (you get it!)

I'm doing a string count into another field called key1 (leftwords(keyword,1) and another in to a field called key2 (leftwords(keyword,2) then defining a value list which allows me to specify from key1 and also include key2 but thats as far as it allows me to go

in the html file im using valuelistitems

[FMP-if:currentdatabse.eq.picture.fp5]

<select name="keywords" size=1>

[FMP-valuelist:keywords, list=keywords]

<option>[FMP-valuelistitem]

[/FMP-valuelist]

[/FMP-if]

to create a pop-down menu in the browser, so anyway does anybody know a quick and simple way of counting all the words in the first keyword field so I can create a value list with them all in?

hope this makes some sort of sense to you guys - again any help would be appreciated

rgs

FileMaker Version: 6

Platform: Mac OS X Jaguar

Posted

Hi, rgs Binka! Hmm... admittedly, this is not my field of expertise (pun!), but I have not heard of anyone creating a valuelist from single field separated by spaces, but you can have a valuelist based on a field separated by RETURNs if the field is allowed to store repeating values.

brown

cow

field

milk

calf

udder

--ST

Posted

A quick way is to make a calculation using the Substitute function to replace the spaces in the field with returns, . e.g.

c.key1 defined as: Substitute(key1, " ", "

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