English 中文(简体)
Passing form data to another form via url in lotus
原标题:
  • 时间:2010-01-07 15:43:58
  •  标签:
  • agent
  • lotus

I am working on a new web app in lotus/domino. I am newer to lotus/domino programming, so forgive me for not knowing something simple.

What I am trying to do is display a table of information, with one of the columns containing a link. The link is formatted like [http://server/app.nsf/form?openform&ideaNum=1&var2=foo2]

How can I retrieve the information from the url, to get information from a view or a document?

So far I have tried to access the query string in the webQueryOpen event, but lotus runs the agent before the DOM writes to the browser, the query_string isn t available.

I am not sure how else to get information from one form to another in lotus.

Thanks for the help.

-Kris

最佳回答

If you re passing multiple params in the query_string, you can get Domino to do a bit more of the work for you. There s an Function command - UrlQueryString - that can format the params into a list, delimiting at the "&".

E.g. server/app.nsf/form?openform&ideaNum=1&var2=foo2 becomes a list:

openform ideaNum=1 var2=foo2

To use it, on the destination form create a multi-value text field called something like "QryStringList". Set it to be computed when composed, and set it s value to @UrlQueryString.

In your WebQueryOpen agent, you can access the params as doc.QryStringList(0), docQryStringList(1) and so on, if you re using Lotusscript.

I m fairly sure I put this together using info from the IBM/ldd forum, but the exact source is lost in the mists of time and memory, so apologies if I ve copied someone s post.

问题回答

Just as a follow up, I found that you are able to specify an on form variable named the same as QUERY_STRING. The variable is actually a reserved term for Lotus, so Lotus pre-fetches the variable before running the information out the browser.

Due to the pre-fetching, you are able to access the url information during the webQueryOpen event.

I hope this helps someone else looking for the same type of functionality.

-Kris





相关问题
How to detect Java agents, JVMTI, etc

How does one secure the Java environment when running on a machine you don t control? What is to stop someone from creating a java agent or native JVMTI agent and dumping bytecode or re-writing ...

班轮

我正在使用救生自食注射图书馆,该图书馆将网络应用的按字母顺序编号。 我在Tomcat RV备选办法中具体指明了——javaagent,并向萨尔维特代理人杰尔指出了这一点。

How to create maze walls in NetLogo?

I am trying to create a 5x5 grid with 2 exits and put some walls in it. In other words, I want to create a maze or a labyrinth. I was wondering if there is a way to make a border line thicker or ...

TFS 2010 B2 64-bit build agent "unknown state"

Our TF Server is installed on a Windows 2008 Server (32-bit) and the build service is installed on a 2008 Server 64-bit. When attempting to get the build service going, the agent is reported as being ...

Glassfish Clustering architecture and Node Agents

I am going to be creating an application that will be highly distributed. There will be several "agents" each agent is a source of events, from external devices, ftp or filesystem. These agents will ...

Passing form data to another form via url in lotus

I am working on a new web app in lotus/domino. I am newer to lotus/domino programming, so forgive me for not knowing something simple. What I am trying to do is display a table of information, with ...

Terrarium-like agent interaction framework

I m looking for a framework for agent interaction simulation, where I can deploy some agents and let them interact and watch their evolution. Until now I found Terrarium 2.0 (http://terrarium2....

热门标签