James,
If you're using the Extension Library you can use the JSON RPC service ("Remote Service" in the component palette) to do this. But first I would ask if those values change or are specific to a certain user, click or are different between sessions? If so, I would look at using the sessionScope instead, unless it's specific to a click then I would use viewScope. If you have more than one user clicking those links, using the applicationScope those values will be changing for everyone, not just the current user. If I understood your post correctly and these values are coming from a view then I assume these values are specific to the current user. To learn more about the scoped variables see this article http://www-10.lotus.com/ldd/ddwiki.nsf/dx/xpages-scoped-variables.htm.
But onto the RPC, this allows you to define a SSJS method that can be called via CSJS. To do this follow the below procedure:
- Put the RPC control on your page or on a top level page so the same RPC is available everywhere
- Give it an ID and a usable Service Name - The service name is what will be used to access the RPC via CSJS
- Define your methods and any arguments they may require
Now that you have an RPC on the page with a service name of "myRPC" and let's say a method of "setApplicationScope" and 2 arguments "varName" and "varValue" you can call it from CSJS like:
myRPC.setApplicationScope("orgNumber",arlist.getColumnValue("tx_orgid"));
The JSON RPC is a great tool for allowing/facilitating communication with the server via CSJS.
Keith