Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What's wrong with my code?!

Featured Replies

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? confused.gif

"...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?".

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.

  • Author

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?

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

  • Author

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...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.