cancel
Showing results for 
Search instead for 
Did you mean: 

Method to return XML - query ,Transaction -

IntegrationCPI
Participant
0 Kudos

Hi ,

I want to store the XML returned for the below( if the style sheet is not provided ) in the XML variable and then transofrm this dynamically based on the choice .

<SERVLET NAME="Illuminator">

<PARAM NAME="QueryTemplate" VALUE="CustomQuery">

<PARAM NAME="" VALUE=" <PARAM NAME="StyleSheet" VALUE=" "">

Please let me know if there is any method exist in XMII . I am aware that i can execute the same query using URL .

Thanks

Kishore K V

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member211944
Active Participant
0 Kudos

Hi,

There is no direct method to update a particular value in the XML element which you want to do.

But you can do it a trasaction but i dont know this solution is usefull to you or not.

logic used could be :

iterate on the PARAM elements of the XML.

check for the PARAM name

if PARAM name equals "StyleSheet" set the value in the PARAM what ever you need.

at the end of this iteration, the XML variable will be updated with new value.

regards,

Rohit

Former Member
0 Kudos

Hi Kishor

You can pass style sheet name in URL and based on that you can dynamically change style sheets.

Use


<PARAM NAME="StyleSheet" VALUE="{StylesheetName}">

Where StylesheetName is parameter passed in url like

http://<server>/XMII/CM/PageName?StylesheetName=test.xsl

Regards

Anshul

IntegrationCPI
Participant
0 Kudos

Thnaks Anshul !

But i want this to do in the Page instead passing the style sheet . Would like to know is there any existing method which i can call.