Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Encode Space in URL Parameters

From: maximomaximo1964 (2012-11-29 17:06)

Hi,

I want to pass an URL from Maximo to Live Link. Below is the URL. If the variable values don't have space, it would work. If any of the values have a space, it wouldn't work. In other words, if the value of MANUFACTURER.name is "ONDEO DEGREMONT", the URL would stop at word ONDEO.
Does anyone have a solution for this?
http://bpl-ll9testapp1.dcwasa.com:9081/livelink/livelink.exe?func=LL.getlogin&NextURL=/livelink/livelink.exe?func=assetutils.workorderdocs%26manuname={MANUFACTURER.name}%26modelnum={ASSETSPECMODEL.alnvalue}%26assetclass={ASSETSPECCLASS.alnvalue}%26assettype={ASSETSPECSUBCLASS.alnvalue}&username=test-wwtuser1&password=12345678
Thanks,
Rose


From: andrew.tess (2012-11-29 18:25)

Spaces encode as %20. %26 is "&".
One option is to have some processing of the Manufature name to conver the space to %20.
Alternativly, the interpretation of the space is handled by the web server. For the Microsoft IIS server a space is translated to %20 automatically. There are most likly setting in the HTTP server you are using to handle this. The how to do that is a bit out of my scope.
Hope this can guide you to a solution!
Andy
--- In MAXIMO@yahoogroups.com, "maximomaximo1964" <maximomaximo1964@...> wrote:
>
> Hi,
>
> I want to pass an URL from Maximo to Live Link. Below is the URL. If the variable values don't have space, it would work. If any of the values have a space, it wouldn't work. In other words, if the value of MANUFACTURER.name is "ONDEO DEGREMONT", the URL would stop at word ONDEO.
>
> Does anyone have a solution for this?
>
> http://bpl-ll9testapp1.dcwasa.com:9081/livelink/livelink.exe?func=LL.getlogin&NextURL=/livelink/livelink.exe?func=assetutils.workorderdocs%26manuname={MANUFACTURER.name}%26modelnum={ASSETSPECMODEL.alnvalue}%26assetclass={ASSETSPECCLASS.alnvalue}%26assettype={ASSETSPECSUBCLASS.alnvalue}&username=test-wwtuser1&password=12345678
>
> Thanks,
>
> Rose
>


From: Maximo Maximo (2012-11-30 05:17)

Andy,
Thank you for your reply. Do you know if there is a way to convert the space to 20% in Maximo Application Designer? If not, I think we have to check the web server for Live Link to see if we can make some adjustment.
Thanks again,
Rose
________________________________
From: andrew.tess <atess@hdsmail.ucsd.edu>
To: MAXIMO@yahoogroups.com
Sent: Thursday, November 29, 2012 1:25 PM
Subject: [MAXIMO List] Re: Encode Space in URL Parameters

 
Spaces encode as %20. %26 is "&".
One option is to have some processing of the Manufature name to conver the space to %20.
Alternativly, the interpretation of the space is handled by the web server. For the Microsoft IIS server a space is translated to %20 automatically. There are most likly setting in the HTTP server you are using to handle this. The how to do that is a bit out of my scope.
Hope this can guide you to a solution!
Andy
--- In MAXIMO@yahoogroups.com, "maximomaximo1964" <maximomaximo1964@...> wrote:
>
> Hi,
>
> I want to pass an URL from Maximo to Live Link. Below is the URL. If the variable values don't have space, it would work. If any of the values have a space, it wouldn't work. In other words, if the value of MANUFACTURER.name is "ONDEO DEGREMONT", the URL would stop at word ONDEO.
>
> Does anyone have a solution for this?
>
> http://bpl-ll9testapp1.dcwasa.com:9081/livelink/livelink.exe?func=LL.getlogin&NextURL=/livelink/livelink.exe?func=assetutils.workorderdocs%26manuname={MANUFACTURER.name}%26modelnum={ASSETSPECMODEL.alnvalue}%26assetclass={ASSETSPECCLASS.alnvalue}%26assettype={ASSETSPECSUBCLASS.alnvalue}&username=test-wwtuser1&password=12345678
>
> Thanks,
>
> Rose
>