cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SAP Overview Page card navigation

mario_maisto
Participant
0 Kudos

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-changeW...{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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

You can try removing the below lines.

<Apply Function="odata.uriEncode">


    </Apply>

mario_maisto
Participant
0 Kudos

Yep - that did the trick!
Thank you!

Answers (0)