Service Help – UrlRegisterPost
The Sharperlight service offers a wide variety of presentation methods, each with its own set of parameters.
In this post, we will introduce the following method from among the various presentation methods available.
http://abcd.com/mdService1Rest/UrlRegisterPost/…
{sharperlight service url}/Help#UrlRegisterPost
|
When an URL address becomes too long for IE’s length limitations of around 2040 chars you can register them and get an ID back.
This unique Id is then passed as &urlRegKey=xxxxxx and the Service will retrieve all the URL parameters recorded against the ID.
Other parameters can be mixed with urlRegId and the Service will override the Id contents with those on the URL line. Note: Registered URL data will not last forever and will be auto cleaned up by the Service depending on how many are already in the list and time Generally the URL id will be good for 5 minutes and if you recall it within that time it will live another 5 minutes If you register the same id again it will simply update the existing details The unique ID is returned in the response text of the POST http://abcd.com/mdService1Rest/UrlRegisterPost
POST data would look something like this below where it’s just the parameters or it could be the whole URL address and the Service will strip of the root address
query=Test.DrillThroughX&qmode=report&fltOrderDate=&fltOrderDate_2=&fltAccount=%3CALL%3E&fltAccount_2=&salt=1323056184316Z&docH=RL&drillpid=&drillid=9415f54a-98d6-4490-80d9-a088810ac4cf&outf1=2001%2F05%2F17&outf2=4&&outf3=8847.3000&&usid=06efaa9ad84e48c3b1cd3bb35051c3d8Z&rtype=silverlight
Once you have an unique ID you can then make calls to the Server using &urlRegId=xxxxx http://abcd.com/mdService1Rest/Report/?urlRegId=tWHtheVwwAqqcUp0il23Wjkdc4&usid=b7352d0b574345d6a2a21d8b585a164bZ |
|
| urlRegId=[xxx] |
Supply your own unique Id instead of letting the Service generate one. Make sure it’s unique enough not to be mixed up with other applications |
| response=[json|text] | The default is text the json response will be in this format e.g. [ { id: “12345ABCDEF” } ] |
| callback=[MyFunc] | JSON Callback function (Optional) &callback=MyFunc results in MyFunc( [ { id: “12345ABCDEF” } ] ); |
