February 1, 200223 yr Here is my code (not exact): [FMP-ValueList: abc, List=xyz] <tr><td>[FMP-ValueListItem: Checked]</td></tr>[/FMP-ValueList] Problem: The value list item does not show up if it is not checked which is what it is suppose to do. The problem is that the html is showing up. In other words, a blank table row/cell shows up. Isn't the value list item that is not checked AND the related html between the [FMP-ValueList] and [/FMP-ValueList] for this value list item not suppose to show up. The result I am getting is a bunch of blank table cells showing up between table cells that are filled with checked value list items. How do I make the HTML between [FMP-ValueList] and [/FMP-ValueList] disappear from value list items that are not checked?
February 1, 200223 yr Are you wanting the results displayed in one data cell or multiple data cells? If just one, try: <tr><td>[FMP-ValueList: abc, List=xyz] [FMP-ValueListItem: Checked][/FMP-ValueList]</td></tr>
February 2, 200223 yr Author MORE EXPLANATION Please: Actually, I am looking for multiple value list items to be placed in their own single cells. I am trying to get every checked value list item into its own cell. This is working except for the items that are not checked. The unchecked items do NOT show up, but the html does (blank rows and cells that would have contained the vaule list item if it had been checked). I am wondering how to make the html (blank cells) disappear. The way I understand it is that everything, including the html between the [FMP-ValueList] and [/FMP-ValueList] should show up for checked items using [FMP-ValueListItem: Checked], but should not show up for unchecked items. Here is some more of my code (Hope it is enough). <table> [FMP-ValueList: abc, List=xyz] <tr> <td>[FMP-ValueListItem: Checked]</td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> </tr> [/FMP-ValueList] [FMP-ValueList: def, List=rst] <tr> <td>[FMP-ValueListItem: Checked]</td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> <td width="15"> </td> </tr> [/FMP-ValueList] </table> [ February 01, 2002, 03:09 PM: Message edited by: bowman ]
February 4, 200223 yr See if you can introduce the [FMP-If] tags to eliminate the unwanted values. This is only a quick thought. I will revisit the question later. All the best. Garry
February 4, 200223 yr I do not use the fmp-valuelist. Inefficient if your were to ask me. Instead I use html to create my pop-ups, checkboxes and radio buttons. In conjunction with that I will use cdml to designate the fields into which the values selected from the html will be sent. This technique has never failed me. The "secret" is to have such fields in your web layout designated as "standard". This same field also can be set up as a fmp pop-up, radio, etc IN A DIFFERENT LAYOUT should that be needed for in-house work. Try it. You may like it. SIMPLIFY ... Keith
February 4, 200223 yr Are you loading/viewing the page directly in the browser? That will be the problem then: the CDML needs to be processed by Web Companion before the values are generated. You need to use a url like: http://www.domain.com/?FMPro-db=name&-lay=layout&-format=filename.htm&-view
February 8, 200223 yr Author Are you loading/viewing the page directly in the browser? That will be the problem then: the CDML needs to be processed by Web Companion before the values are generated. You need to use a url like: http://www.domain.com/?FMPro-db=name&-lay=layout&-format=filename.htm&-view Yeah, see that is what I don't get. I am loading the page like that but the unchecked vaules in the list are not showing but the html (row/cells) are. [ February 08, 2002, 03:14 PM: Message edited by: Bowman ]
February 8, 200223 yr Do the values in your Valuelist contain '<' or '>' or anything else which maybe 'corrupting' the resulting html? Good Luck Garry
February 8, 200223 yr Author No they don't. I have gone through every value list and every character in every value list and I don't see anything that should not be there. I would give a link to this page to look at but I don't have it on the Internet. It is currently in house only. My next plan is to scrap the 20 or so value lists and make each item a field. What fun!
February 9, 200223 yr Since each valuelist relates to one field, you can get by with formatting the field for each valuelist in your web layout as standard. See my earlier posting.
February 9, 200223 yr This how the cdml/html should be to show all of your value list items as cells: <table> <tr>[FMP-ValueList: abc, List=xyz] <td>[FMP-ValueListItem] [FMP-ValueListItem: Checked]</td> [/FMP-ValueList]</tr> The "checked" tag places the value "checked within the <option> tag if you are using selections. Hope this helps. Garry
February 10, 200223 yr Author OK, I will try this. I was thinking that would do the trick so you confirmed by suspicions. I will let you know how it went. Thanks. [ February 10, 2002, 12:05 AM: Message edited by: Bowman ]
Create an account or sign in to comment