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.

Featured Replies

Hi there!

I´m beginning to explore xslt stylesheets. I´ve ran into two separate problems at the moment.

1) When I enter foreign signs, e g "å" (I´m swedish) in a field in a search page no records are found in spite of the fact that there are several records that contain this value in the specific field. Something about coding?

2) When trying to edit a record via a detailed record page everything seems to work, the right confirmation page is returned. However, no edit-action is performed in the database.

I have this tag on the detailed page:

but obviosly no record-id is passed to the database.

Some help would be appreciated!

1. Is the indexing language of the field set to swedish?

2. Can you you post both the pages (search and detailed record) here? Then we can better find out where the problem lies, which is nearly impossible to guess just from one line of code given.

  • Author

tidbokningresult.xsl

Tidbokning

Välj lärarsignatur:

selected

1) In all pages, change

<?xml version="1.0" encoding="ISO-8859-1"?> to <?xml version="1.0" encoding="UTF-8"?>

and

to

and save the stylesheets in UTF-8 encoding format (if you have Mac OS X, you can do that e.g. with TextWrangler, Save as, Options)

2)

I assume that you want to show only one record in the details page.

In the details page, there is no definition for the currently selected record, that's why @record-id is empty in the form.

After add the following line:

Change the line

to

If only one record is shown, you can also eliminate the xsl:for-each loops, and use $default-record

In the details page, as you requested. But I don't see a -edit there. The problem is, that you can not mix forms and links (well, you can, but don't expect that form will be submitted when one clicks on the link).

Remove the link and add a button with

  • Author

Tidbokning för 



tidbokningsvar.xsl

Vecka:

Datum: Dag:


9.30-10.30

10.30-11.30

11.30-12.30

13.00-14.00

14.00-15.00

Hmm. Not sure. Could it be that there is an error in tidbokningsvar.xsl ?

You may add the following after for debugging:

  • Author

Tidbokningen är uppdaterad.



Error code 6 according to Appendix B of the Custom Web Publishing Guide means "File is read-only".

Check two things: Does the privilege set used with extended privilege fmxslt allow writes?

Are the permissions of the database set to -rw-rw----?

  • Author

The database privileges were set correctly, but oddly enough MacOSX had changed the privileges for the file during transfer to the server. With that changed I now get the error code 102 which is "Field is missing". That is very strange since the accurate field content is displayed as it should on all pages.

Not only the fields that are displayed but also those where finds and edits are done must be on the web layout.

  • Author

Sure, all fields in the database are on the web-layout.

  • Author

At last!

The problem was the hidden input which didn´t work. It should look like this:

Uppdatera post

Then everything works just fine.

Martin - danke für deine Hilfe und deine schnelle Antworten!

Sorry, now I see the mistake that I have made (I just entered it from mind, no tests or comparison with other forms).

This should work as well:

The trick here is that the user just can hit the return key for submission

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.