Jump to content

Form not working


This topic is 6651 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I created a database for tracking PC inventory and trouble tickets last summer. It took a fair amount of help from users here to get the web portion going and now I've been away from it that I'm not even sure where to start looking on this issue.

at http://helpdesk.chesaningschools.net/FMPro?-db=Helpdesk.fp5&-format=helpdesk.html&-lay=Technicians%20View&-view

(password is support) I've got a form that brings up a room list based on the building selected. That list should come from a filemaker database called room. I've attached all of the related files. If someone could help me get this resolved I would greatly appreciate it.

Thanks,

Brad

filemaker.zip

Link to comment
Share on other sites

Two ways exist for dynamically filling the Room select list:

1. Query the database each time the building changes; or

2. Use Javascript to do the change.

With Javascript you would pre-load a Javascript array with all of the values, then use an "onchange=" within the Select tag to reload the Option list.

Good Luck.

Garry

Link to comment
Share on other sites

To speed-up the page loading you may want to have a look at what is happening on the "Technicians View" Layout. You can even use a cut-down version for the web.

Also, you may be able to cut-down on the amount of data loading into the browser by abbreviating the Javascript. A bit like this:

[FMP-InlineAction: -db=Room.fp5, -sortfield=Building, -sortfield=Room, -max=all, -findall]

[FMP-Record]if ("[FMP-Field:Building]" == cB) { aR[i++] = "[FMP-Field:Room]"; } else { if (cB != "") { aBR[j++] = aR; var aR = new Array(); i = 0; }; cB = "[FMP-Field:Building]"; aR[i++] = "[FMP-Field:Room]"; };[/FMP-Record]

[/FMP-InlineAction]

Garry

Link to comment
Share on other sites

The page is taking about 10 sec to load into my browser. However, it is doing a fair amount of work.

If the loading time is a problem, ways exist to attempt to speed it up a bit. One of those is to cut down on the amount of characters sent to the browser. Another way may be to remove any unneccessary "Calculation" fields from the Layout.

All the best.

Garry

Link to comment
Share on other sites

  • 3 weeks later...

When you goto the "Application" preferences to configure the "Web Companion" plug-in you will see a checkbox for enabling/disabling "Instant Web Publishing".

IWP is the system FM uses to generate its own pages. Whereas Custom Web Publishing (CWP) is the system for publishing your own pages with CDML tags.

All the best.

Garry

Link to comment
Share on other sites

This topic is 6651 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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