Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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.

This topic is 6960 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.