on 09-28-2016 9:56 AM
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>@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>@BASIC_START_DATE}">
<Annotation Term="UI.MultiLineText"/>
</PropertyValue>
<PropertyValue Property="Value" Path="WbsBasicStartDate"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Label" String="{@i18n>@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}&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
You can try removing the below lines.
<Apply Function="odata.uriEncode">
</Apply>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.