SoCalMacDude Posted July 11, 2003 Posted July 11, 2003 I'm trying to do a simple search on 2 fields, cc & Unit #, and I get a Javascript error that says check out Status(CurrentError) 4, when I click on the link. I am trying to bring up a detail page from a list of records by populating my link with the Unit # of the part. Here's my link in the template: <a href=FMPro?-DB=InventoryDatabase.fp5& -Format=WBDetails.htm&cc=476252R378&-Unit#=[FMP-FIELD: Unit#]&-Error=WBError.htm&-Find>Details</a> Here's how it comes back populated by web companion: <a href=FMPro?-DB=InventoryDatabase.fp5& -Format=WBDetails.htm&cc=476252R378&-Unit#=BR4778&-Error=WBError.htm&-Find>Details</a> Why won't it bring up my detail pagewhen I click this link? Is -Unit a command?
Unable Posted July 11, 2003 Posted July 11, 2003 "...says check out Status(CurrentError) 4..." Ok. did you check it out? See your copy of FileMaker Help. Find "Status(CurrentError) Function". There you will find that Error 4 answers your question, "Is -Unit a command?".
Unable Posted July 11, 2003 Posted July 11, 2003 One more thing. It is obvious that you are using IWP. The success of your solution is dependent upon your database development abilities and your prescience in how the HTML of IWP is generated. The only control you have of the HTML generation is through your db design. That is why so many of us use CWP. Good luck.
SoCalMacDude Posted July 11, 2003 Author Posted July 11, 2003 Thanks anyway. I found a way to use Record ID to identify & show the record detail, instead of searching that field. I still don't know why it wouldn't search that field. Do you?
Garry Claridge Posted July 11, 2003 Posted July 11, 2003 You are missing the "-lay" tag. Also, you will have problems with "-Unit#", is the name of the field "Unit#" or "-Unit#"; whatever the case you will have to remove the leading "-". All the best. Garry
SoCalMacDude Posted July 13, 2003 Author Posted July 13, 2003 Thanks, Garry. I'm sure the -lay was the problem. I haven't coded this stuff for a while. I'll post a new topic for my current problem with check boxes...
Recommended Posts
This topic is 8073 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