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.

How to use a script?

Featured Replies

How to use a script?

I am new to CWP with XSLT and am trying to learn how to use a link with a script. I have taken the xslt home page made with Site Assistant and want to create a login link that will take the user to proper page when logining in. Here is what Site Assistant produced:

Login

If my link is http://localhost/fmi/xsl/my_stylesheet.xsl?-db=my_database&-lay=my_layout&-grammar=fmresultset&-script=login_cwp

Where does it go in the above xsl?

Thanks in advance - Sam

In connection also with your previous question about images:

Writing XSLT stylesheets is nothing else than mixing

xsl:... instructions that parse your XML result tree

with plain HTML, text or XML, that forms your output.

  • Author

Thanks Martin, so far it is not working. I replaced:

Login

With:

Login

And I get the following message:

The entity name must immediately follow the & in the entity reference. 

(XML-0067)

I don't have a clue as to what I should be doing here

Thanks again - Sam

Sorry, forgot to say that one has to replace & with &

  • Author

Martin, we will get there yet. Here is what I did:

Login

And I get this error:

The entity "amp-lay" was referenced, but not declared.

(XML-0190)

I have not ideal what the above means.

Thanks again - Sam

Please read carefully. You forgot the ; after each &amp

  • Author

Martin, I compain about my clients not reading all the time. Thanks that did it.

Sam

  • Author

Martin, how would I use a script to automatically have the signed in client taken directly to their records? This has me stumped. I have the home.xslt that was created by site assistant. There will be an enter button for the client. I would then like the script to get the client's AccountName and then go to the appropriate records for that client.

Presently I am using IWP which works great except for occasional problems the clients have with the Block Pop-Up Windows. I am exploring CWP as another option to IWP. I have a script that does what I described above, but the concept seems different in CWP.

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.