cancel
Showing results for 
Search instead for 
Did you mean: 

XML Path Replacement Help

sap_cohort
Active Contributor
0 Kudos

I'm trying to get this XML Path stuff working and I'm not having a lot of luck. Can anyone tell me what might be wrong with this example? I'm just trying to output the name of the query in a text item.

I have the XML being generated for DP_1. The error message is no help at all. "Error during command processing"


<bi:TEXT_ITEM name="TEXT_ITEM_1" designheight="70" designwidth="200" >
                <bi:WITH_TRAY type="CHOICE" value="X" text="" >
                    <bi:TRAY_SETTINGS type="COMPOSITE" >
                        <bi:CAPTION path="DATA_PROVIDER:DP_1?/BICS_VIEW/QUERY/@text"></bi:CAPTION>
                    </bi:TRAY_SETTINGS>
                </bi:WITH_TRAY>
            </bi:TEXT_ITEM>

Accepted Solutions (0)

Answers (2)

Answers (2)

sap_cohort
Active Contributor
0 Kudos

abandoned using XML Path Replacement

Former Member
0 Kudos

Hi,

Which command did u try to get this done? I think you need to do the following:

1. Add a data provider information item for DP_1.Set it property "Output Display" to on(the checkbox in the web item parameters for the 'data provider information item').

2. Create a command at 'web template' level--Set_Web_Item_Parameters command, for the web item involved.

3. In this command give a hard coded text value say 'Label1'.

4. Execute the report and right click-> View source. Search for the term 'Label1'.

5. Follow the path in the starting from BICS_VIEW till the word 'Label'. Copy this.

6. In the HTML tab in the WAD replace the part value = 'Label1' with path = <result from step5>

Thanks,

Balaji

sap_cohort
Active Contributor
0 Kudos

thanks, it works when I put it at the web template level. Why doesn't it work when I put it in the actual Web Item? All of the SAP Examples show the replacement path in the Web Item Caption Text?