Newbies quijote Posted November 29, 2004 Newbies Posted November 29, 2004 Ive been working with claris homepage 3.0 becuase its the only thing i have found that dose CDML. I want to create a page where users can create a new cource. However I cant seem to make the pop up menu work. This is the code i have been using::::: <P><FORM ACTION="FMPro" METHOD="post"> <P><INPUT TYPE="hidden" NAME="-DB" VALUE="ihBHDSCource.fp5"> <INPUT TYPE="hidden" NAME="-Lay" VALUE="crs_edit"> <INPUT TYPE="hidden" NAME="-Format" VALUE="crs_view"> <INPUT TYPE="hidden" NAME="-Error" VALUE="error.htm"><Select name="crs_type"> [FMP-ValueList: crs_type, List=crs_list] <option [FMP-ValueListItem]>[FMP-ValueListItem][/FMP-ValueList] </Select> Any clues? Many thanks
Garry Claridge Posted November 29, 2004 Posted November 29, 2004 Is your problem that the <select> is not rendering into HTML code, however remaining as CDML? If so, you need to have FM "process" the page first, i.e. the page needs to be "called" with something like this: http://myaddress/FMPro?-db=ihBHDSCource.fp5&-format=thepage.html&-view Good Luck. Garry
Newbies quijote Posted November 30, 2004 Author Newbies Posted November 30, 2004 You are a brilliant person. May all deities hold you in high places. but i now have another problem and i know i have seen a solution to it but ill take time to post the question now. My value list only shows the ID numbers (first field) and not the name (second filed) in a related popup menu. I was told it had something to do with making the second filed unique but there is no way that someone's name is unique. I know i have two bens. Can you make a caluclated field that is unique? Would that fix it.
Garry Claridge Posted December 1, 2004 Posted December 1, 2004 Related ValueLists do not work through WebCompanion You can use an [FMP-InlineAction] to achieve the same effect. Or, maybe a Calculated field would be better for your case. All the best. Garry
haret Posted January 11, 2005 Posted January 11, 2005 I'll borrow this thread a bit Garry, you said that related valuelists don't work? I've been strugling to create a pop-up menu on my website that would display values from my "Category1"-valuelist. I would like to use this valuelist to populate a <select> popup when I add records to a portal in FM. Now I just get empty <option></option> tags in my output. My problem is that I cannot populate the <select> tag. I would like to display a valuelist (category1) from my main database (the contents of that valuelist are actually from another database). Is this what you were talking about and is this impossible to do with CDML? Any tips how I could populate the valuelist if it's not possible directly with plain CDML. I've tried [fmp-option], [fmp-valuelist], etc but I just cannot get any values out of my valuelist. This same markup works on other pages with normal valuelists. Many thanks, Haret (and thanks for all the help you've previously given) Btw. forgive my typos, it's midnight here in scandinavia and my english tends to take a turn for the worst when I'm tired
Garry Claridge Posted January 11, 2005 Posted January 11, 2005 Re: my english tends to take a turn for the worst when I'm tired So does mine, and it is the only language I know You can use [FMP-InlineAction] tags to achieve this. For example: ... <select name="Category"> [FMP-InlineAction: -db=otherdb.fp5, -lay=web, -view] [FMP-ValueList: Category, List=Category1] <option value="[FMP-ValueListItem]">[FMP-ValueListItem]</option> [/FMP-ValueList] [/FMP-InlineAction] </select> ... Good Luck. Garry
haret Posted January 16, 2005 Posted January 16, 2005 Thanks a lot for the example. I quess it's time to start learning more about those inlinaction tags.
Recommended Posts
This topic is 7353 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 accountSign in
Already have an account? Sign in here.
Sign In Now