Addam Posted October 30, 2002 Posted October 30, 2002 Ok... I've been trying to setup a database to be viewable via the web. Unfortunately there is not much help from FMP on this... Setup: FMP5 Unlimited & WSC-IIS OS - NT4.6a WS - IIS I don't know how to display a field's value on the web. This is driving me nuts! I've downloaded Brian Dunnings "CDML" Master Class which helped me alil' but I just can't get the ******* thing to work. I'm not sure if it's a setting or what! I've already set up the Admin to host that particular database. I've set up the database as directed in the WSC connector PDF. The Form properties are right... I tried creating a test, but nothing seems to work. I've got to be missing something! Everyone else seems to have it under control. Can anyone help? I'm ready to scratch the whole thing and give up!
Garry Claridge Posted October 30, 2002 Posted October 30, 2002 Are you able to 'see' FM? Can you use a URL like this: http://IP:port/FMPro?-dbnames IP of the host computer and the port nominated in the WebCompanion setup. Good Luck. Garry
Addam Posted October 30, 2002 Author Posted October 30, 2002 Yup! If I enter in what you requested I get an error... It's a FMP Error so I know it's seeing it. I've attached a screen shot of it. bammo.zip
Garry Claridge Posted October 30, 2002 Posted October 30, 2002 Addam, I wasn't able to read the image in the doc. However, FM is doing something. Is Instant Web Publishing enabled? If it is you should be able to, at least, get a default page. The URL would be: http://IP:port All the best. Garry
Addam Posted October 30, 2002 Author Posted October 30, 2002 I have enabled Instant web publishing and I am getting the default FMP Home page... It looks great, but I need to create my own page... the web companion nav is garbage.
Vaughan Posted October 31, 2002 Posted October 31, 2002 If you need your own page... you probably need to turn off Instant web publishing and go to Custom.
Addam Posted October 31, 2002 Author Posted October 31, 2002 Gotcha! Soo.... I've started using the CDML tool, but I can't get any information out of the database... I'm following all the directions... The HTML Code looks correct. But no info...
Garry Claridge Posted October 31, 2002 Posted October 31, 2002 Firstly, ensure the database is opened and shared by WebCompanion. Then, you need to query the database with either a URL or FORM. A query URL would look like this: http://IP:port/FMPro?-db=mydb.fp5&-lay=mylayout&-format=myhome.html&-findany The "myhome.html" format file should contain the CDML. Hope this is of use. Garry
Addam Posted October 31, 2002 Author Posted October 31, 2002 Please forgive me for my ignorance here. I've created a basic HTML document using the CDML tool. The CDML resides in a form... Here is the HTML code I'm using... Shouldn't this work? Or am I doing it wrong? <HTML> <HEAD> <TITLE>None</TITLE> </HEAD> <BODY> <H2>Show me stuff...</H2> <P><FORM ACTION="FMPro" METHOD="post"> <P><INPUT TYPE="hidden" NAME="-DB" VALUE="bammo.fp5"> <P><INPUT TYPE="hidden" NAME="-recid" VALUE="[FMP-currentrecid]"> <P><INPUT TYPE="hidden" NAME="-lay" VALUE="Layout #1"> <P>Field Name1<BR> <INPUT TYPE="text" NAME="First Name" VALUE="[FMP-Field: First Name]"> <P>Field Name2<BR> <INPUT TYPE="text" NAME="First Name" VALUE="[FMP-Field: Last Name]"> </FORM> </BODY> </HTML>
Garry Claridge Posted October 31, 2002 Posted October 31, 2002 To get this format file/page to "work" you can call it with this URL: http://IP:port/FMPro?-db=bammo.fp5&-lay=Layout%20#1&-format=thepage.html&-findany For "The Page" to submit to the database you will need an Action Tag, e.g.: <input type="submit" name="-edit" value="Edit Rec"> You will also need to name a Format file in the FORM, e.g.: <input type="hidden" name="-format" value="thepage2.html"> All the best. Garry
Vaughan Posted November 1, 2002 Posted November 1, 2002 Get a copy of Home Page 3. It's NLA but it makes learning this stuff simple IMHO. Look around the web for the Trial version -- it's easy to get more than 30 days out of it.
Recommended Posts
This topic is 8128 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