on 04-09-2009 3:28 PM
Is there a URL to SET session properties? I know I can get a list of them by calling "/XMII/PropertyAccessServlet?mode=list&Content-Type=text/xml", but is there a way to set them in a similar manner?
Use:
Service=PropertyAccessService&Mode=Store&PropName=XXX&PropValue=YYY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all, If you want me to start a new thread let me know...
I'm having funky, although repeatable, results using the URL to set a session parameter via AJAX call,
which always gets a Successful message.
/XMII/PropertyAccessServlet?mode=Store&PropName=plantId&PropValue=60
I am verifying the session parameter 2 ways:
1. Refresh the page and view source (I took the lt and gt out)
...............span id="savedPlantId" style="visibility:hidden;"
2. AJAX call to /XMII/PropertyAccessServlet?mode=List
Quirk #1: I see the value in the span. I do not see it in the servlet list.
Quirk #2: I can change the value a couple (2 or 3 times) then it doesn't change after that
Quirk #3: When it stops changing via the AJAX call, I can still change it with a browser URL
http://<server>:50000/XMII/PropertyAccessServlet?mode=Store&PropName=plantId&PropValue=199
Any hints or ideas?
Yes, I am trying to use a single pixel applet, but having trouble with that too! See a different post.
I really would prefer to use the URL as there is no visual indication to the user
and an applet (and JVM) doesn't have to load.
--Amy Smith
--Haworth
Oh, and P.S. Is there a mode=Delete to remove the session parameter?
I haven't experienced the problem, yet. I can confirm the MII version tomorrow.
Out of curiosity, how are you calling the URL? I know through AJAX, but more specifically.
I am using the jQuery library and the .ajax method. I am using the "async: false" property. I know, an asynchronous call isn't really AJAX, but it ensures the URL action is completed before continuing, which might just be your problem. If you are truly doing asynchronous calls, your span may be refreshing before the session property is being set. Just a hunch.
As far as the delete mode of the PropertyAccessService, I'm not really sure. Maybe someone who "knows" the bowels can comment on that.
I am using straight javascript. I did wait until I got the response back with the Successful message before I did anything else.
if (createRequest()) {
request.onreadystatechange = handleResponse;
request.open('GET', url, true);
request.send(null);
}
I changed it to an synchronous call
if (createRequest()) {
request.open('GET', url, false);
request.send(null);
var xmlDoc = request.responseText;
...
Same "Quirks", although another symptom discovered. I saw the session param in the servlet list a few times and thought that Quirk#1 was fixed, but now it isn't showing any more. I don't think I changed anything as I was just trying to document the tests.
--Amy Smith
Hi Ryan,
No, I have not put in a support call. I don't even know if SAP would accept a support call on an unpublished "feature". So, I didn't even try. I am using
<APPLET name="saveSessionParameters" CODE="iCommand"
CODEBASE="/XMII/Classes/" ARCHIVE="illum8.zip" HEIGHT="1" WIDTH="1" MAYSCRIPT>
<PARAM NAME="InitialUpdate" VALUE="false">
</APPLET>
And JavaScript: document.saveSessionParameters.setPropertyValue('plantId', plantId);
There is an issue with Java 1.6+ and this is WAY too slow. For the time being, as this is an
internal itranet app and our standard is 1.5.7, we are OK. That will need a resolution
eventually though. I'm hoping it is better in MII 12.1.
--Amy Smith
--Haworth
Ryan --
The URL with AJAX is working in 12.0.8 Build(21).
/XMII/PropertyAccessServlet?mode=Store&Content-Type=text/xml&PropName=myNum&PropValue=1
That will save us from having to load any applets for ECC transactions. The majority of our shop floor PCs will not need the Java plugin. Which, considering the PCs on the floor is a very good thing.
--Amy Smith
--Haworth
so every user who knows this url can change the session properties ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
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.