Skip to Content

Problem with SAP Overview Page card navigation

Hello,

as I am trying out the fairly new SAP Overview Page plugin with WebIDE, I have stumbled upon quite a number of difficulties. One of which is the navigation from the list card's lineitem to an external application. To be more precise - I am having problems with the single quotes ( the ' ) surrounding the parameters that I am trying to pass inside the url.

The navigation constructs the url with:

#WBSElement-changeWBSElementStatus?WBSElement={ID2}&WBSElementObject={ID1}, like

#WBSElement-changeWBSElementStatus?WBSElement='TESTELEMENT'&WBSElementObject='TESTOBJECT'


which does not navigate to the right wbs element, however, if I remove the quotes surrounding the parameters, the navigation works as it should and navigates me to the testelement wbs.

Here's the annotation I used to implement the navigation:


<Annotation Term="UI.LineItem">
       <Collection>
                <Record Type="UI.DataField">
                            <PropertyValue Property="Label" String="{@i18n&gt;@WBS_ELEMENT}">
                                <Annotation Term="UI.MultiLineText"/>
                            </PropertyValue>
                            <PropertyValue Property="Value" Path="WbsElement"/>
                </Record>
                <Record Type="UI.DataField">
                            <PropertyValue Property="Value" Path="Description"/>
                </Record>
                <Record Type="UI.DataField">
                            <PropertyValue Property="Label" String="{@i18n&gt;@BASIC_START_DATE}">
                                <Annotation Term="UI.MultiLineText"/>
                            </PropertyValue>
                            <PropertyValue Property="Value" Path="WbsBasicStartDate"/>
               </Record>
               <Record Type="UI.DataField">
                            <PropertyValue Property="Label" String="{@i18n&gt;@BASIC_FINISH_DATE}">
                                <Annotation Term="UI.MultiLineText"/>
                            </PropertyValue>
                            <PropertyValue Property="Value" Path="WbsBasicFinishDate"/>
               </Record>
               <Record Type="UI.DataFieldWithUrl">
                            <PropertyValue Property="Value" Path="WbsElement"/>
                            <PropertyValue Property="Url">
                                <Apply Function="odata.fillUriTemplate">
                                    <String>https://demo.test.demo.com:1111/sap/bc/ui2/flp/FioriLaunchPad.html?sap-client=400#WBSElement-changeWBSElementStatus?WBSElement={ID2}&amp;WBSElementObject={ID1}</String>
                                    <LabeledElement Name="ID1">
                                        <Apply Function="odata.uriEncode">
                                            <Path>WbsObject</Path>
                                        </Apply>
                                    </LabeledElement>
                                    <LabeledElement Name="ID2">
                                        <Apply Function="odata.uriEncode">
                                            <Path>WbsElement</Path>
                                        </Apply>
                                    </LabeledElement>
                                </Apply>
                            </PropertyValue>
               </Record>
    </Collection>
</Annotation>

Can I maybe remove the quotes somehow or is there another way to achieve this type of navigation (has to be with url)?

Mario 😊

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2016 at 10:31 AM

    You can try removing the below lines.

    <Apply Function="odata.uriEncode">


    </Apply>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.