Building SM 9.3x URL for interaction. (632 Views)
Reply
Occasional Advisor
benishue
Posts: 6
Registered: ‎05-13-2013
Message 1 of 4 (632 Views)
Accepted Solution

Building SM 9.3x URL for interaction.

Hi,

 

I'm trying to build a link URL for SM interaction (all the examples returned when searching in google were about "incident").

 

I have set the "querySecurity" to false in the webtier web.xml .  What else needs to be done?

What URL parameters are needed besides the interaction ID?

 

 

Shimon

 

 

 

Honored Contributor
DimitarPeychev
Posts: 297
Registered: ‎11-01-2011
Message 2 of 4 (620 Views)

Re: Building SM 9.3x URL for interaction.

Hi,

 

If you want to add parameters in a Web client URL like the serverPort and lang parameter you need to use this syntax:

.../sm/index.do?serverPort=7999&lang=fr


Note: The second parameter in the URL is attached with the ampersend & character, not with an additional question mark ?


A list of all Client parameters for Web Client can be found in the Helpserver in chapter

Guides and reference > System Configuration Parameters > Client parameters for Web clients
The list of the available language parameters depends on the installed language packs. The table "language" in ServiceManager shows the active languages,
could be for example
fr = French

de = German

es = Spanish

 

Please note that in order to use some of these parameters like the port one you need this to be activated in the web.xml for the server port one that would be this section in the web.xml:

 
      <param-name>honorUrlPort</param-name>
      <param-value>true</param-value>
HP Support
If you find that this or any post resolved your issue, please be sure
to mark it as an accepted solution.
Please also give kudo if you find it interesting :)
Occasional Advisor
benishue
Posts: 6
Registered: ‎05-13-2013
Message 3 of 4 (613 Views)

Re: Building SM 9.3x URL for interaction.

Thanks,

 

but what is the format for the query parameters?

 

something like that?

 

http://mySMserver.com:8080/webtier-9.32/index.do?query=interaction.id="SD10034"&<Extra Parameters ? >

 

Shimon

 

 

Honored Contributor
DimitarPeychev
Posts: 297
Registered: ‎11-01-2011
Message 4 of 4 (589 Views)

Re: Building SM 9.3x URL for interaction.

Hi,

 

 

Generating Web tier URL queries
If you have installed a Web tier, you can have Service Manager server generate URL queries to your Web tier that display specific records in your applications. You can use these generated URL queries to programmatically send links to your users when records are opened, updated, or closed. Service Manager offers the following out-of-box methods for generating valid Web tier URL queries.

Create custom JavaScript that uses the makeSCWebURL method. You can invoke your custom JavaScript from a macro or RAD expression.
Create custom notification records that use the Web tier URLs defined in the system information record.
When a user clicks on a generated URL query (link), Service Manager requires the user to log in before displaying the requested data, although the user can bypass the login screen if you have enable trusted sign-on on the Web tier.

By default, the Service Manager server secures Web tier URL queries by including a unique hash key in the URL. This unique key prevents people from modifying the URL and attempting to access restricted parts of your system. If the URL query does not match the unique hash key, Service Manager displays a warning message in the log file.

If you want to generate URL queries outside of Service Manager you can disable the unique hash key using the querysecurity parameter. Disabling this parameter in the Service Manager initialization file allows the server to accept URL queries without a unique hash key. If you disable the security hash, access to tables is controlled by the Document Engine. To restrict access to tables through the Document Engine, you must enable security features such as format control or application profiles that restrict access at the operator level.

Web tier URL format

Service Manager requires generated web tier URLs to use the following format.

http://myserver.mydomain.com:myport/SM/index.do?ctx=docEngine
&file=incidents&query=incident.id=%22SD1001%22
&queryHash=89472347&action=&title=Interaction%20;SD1001

HP Support
If you find that this or any post resolved your issue, please be sure
to mark it as an accepted solution.
Please also give kudo if you find it interesting :)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.