October 30, 200421 yr It is not clear to me if you mean, attach a value list to a field, or have the field equal the value list in some way. To attach a value list to the field, first create the field and the value list. Then go into Layout Mode, Select the Field, Go to Menu >> Format >> Field Format. In the dialog box, select the type of "Style" you want for your value list (it defaults to Pop up list), then select the value list in the drop down menu on the right. If it is the other, there was a recent thread (yesterday and today) called "Checkbox "views" ". It's located in the Topic area for Value Lists. While you are there, take a look around at some of the other subjects, maybe one or two of them will be helpful. Lee
November 27, 200421 yr I tried the function: ValueListItems ( "Respondents" ; "Names" ) According to the documentation, this calc should have the field show all the contents of a particular value list, each item seperated by a return. Cant get it to work. The only thing that shows up in the field is a question mark ? Anyone know how to get this to work? Larry
November 27, 200421 yr Are its storage options set to "Do not store"? Is it a Text result? Are the names exactly right?
November 29, 200421 yr I have something to add to this. I have recently used the valuelistitems function and it does not update until a new record is created. I have it set as a global field. Any ideas? Is this how it is supposed to be? I am using version 7.0v3. -Tanner
November 29, 200421 yr You need to enclose the function within Evaluate or else it will only recalculate when a new record is created. Evaluate( "ValueListItems( Get(FileName); "yourvaluelist" )"; field_on_which_list_is_based ) Whenever field_on_which_list_is_based is changed, the calculation will evaluate. In order to refresh the data onscreen and for immediate calculations, you will need a script to set field_on_which... to itself and Commit Records/Requests.
November 29, 200421 yr Ooohh, Thank you. That works perfectly. One more question if you don't mind. what are the back slashes for?
November 30, 200421 yr A backslash is an escape character in FM 7. It treats the character immediately following it literally. If it weren't for the backslash before the double quotes, each would be treated as a text delimiter instead of as a literal double quote. So "ValueListItems( Get(FileName); " would be seen as text, yourvaluelist would be seen as a field name, and " )" would be seen as text. It basically makes it easier than typing four double quotes for each double quote that you want to appear within the text, as is necessary in previous versions.
Create an account or sign in to comment