on 08-19-2008 3:55 AM
Hi guys,
I want to send bulk data from one page to another, how can I achieve this in MII, I noticed there is a HTTP Post action block in the WEB, it may be what I am looking for, could you please give me some sample code about how to send data from one page, and how to get the data from another page. Thanks a lot.
Regards,
Tony.
hi
i think rick's idea is nice.
and maybe you can also try the Applet.setProperty(),Applet.getProperty() method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, Tony
where is ur data from? is it on ur local pc or just from the page, i mean the data is typed in through UI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you realize that APPLETS query the data themselves? Aside from a roundabout data source push into a parameter in a BLS transaction underneath an XacuteQuery, the APPLETS request their own data and you cannot force data into them via javascript, etc. APPLETS run on the client and communicate with the server.
Regards,
Jeremy
Here's a twist: You can actually store the content as a string in the user session, and using "bound parameters" in a BLS transaction along with an Xacute Query, can deliver them back to any other "consumer" applets. This way, the data can be stored in memory and can be specific to a single user "context".
Hi Rick,
I am using Queue actions to share the data between pages now. The background is: I have around 11 pages. First there is a Main page and search button on it. Click on the search button will trigger a icommand to retrieve data from db via bunch of complicated SQLs, then these "raw data" will be sent to a Queue. Also several of links will be enabled on the Main page after search. Click on a link will open a new page which will get "raw data" from the Queue, calculate and display them via certain applet. The design is to ensure "get data from db one time" because it is a time consuming action.
Thanks,
Tony.
Rick,
I use the same queue id, but the message id is generated randomly using "guid" function of MII (Queue_Put.ID=guid)in Main page, then I use JS code as follows to pass the message id to other pages.
url = "certain_page.htm" + "?MsgID=" + var_MsgID...
window.open(url, ...)
The reason I send the message id rather than message itself in the url is url has the size limit and the message content is rather big.
This will ensure the unique message id in the every session.
The problem is when to delete the message, I am going to keep the queue but delete the message when user close the main page, is it a right design?
Thanks,
Tony.
You could set the your values in session using the API applet.setPropertyValue(String strPropName, String strPropValue) and later get this property value from session using the API applet.getPropertyValue(String strPropName).
We have used these APIs in some of our applications and works very well. But only the usual isssue with storing values in session is cleaning these session values at the right time.
Thanks,
Sara
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.