XPages – how to add an agent as the source for a script?

In a previous post I explained how a jQuery script can be used to transform a Notes view into treeview.

At this moment I am trying to implement the same functionality into an Xpage but some questions rise.

In the old-fashioned way you would invoke the script by adding some script tags on your form:

<script src=”/<Computed Value>/WEBOutputCategoryView?openagent&category=Home&viewname=(LUDocs)”></script>

However if I copy and paste the code on an XPage i get the error message:


The reference to entity “category” must end with the ‘;’ delimiter.

Has anyone a clue what the exact code should be like?

5 thoughts on “XPages – how to add an agent as the source for a script?

  1. Matt White 2009-August-4 / 3:16 pm

    Rather than just pasting the HTML directly into the source of your XPage, you’ll want to add a new resource (in the All Properties section of the Xpage) and then compute the URL that you want to link to rather than picking a script library from the database.


  2. quintessens 2009-August-4 / 3:51 pm

    Hej Matt, could you send me an example / screenshot / reference how to do it?

  3. Stephan H. Wissel 2009-August-4 / 5:18 pm

    Matt is right….
    However for the quick and dirty check:


    & category=home


    & amp ; category=home

    The browser translates the & amp ; back to &

    Then when it’s working put it in a proper computed field

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s