Skip to Content
0
Jun 13, 2022 at 09:49 PM

Problem trying to get URL on OVP analytics card.

65 Views Last edit Jun 13, 2022 at 10:24 PM 8 rev

Hi all . i am new so bare in mind. I got donut OVP card to work but i am not able to get UI.Identification - Path="Url" to work . When I click on an item on donut card its shows NULL value on browser URL link. I have verified that Url is not null in debugger(segw class) .

I am calling these 3 paths as shown below from JSON file:

UI.Identification,

UI.SelectionVariant,

UI.Chart

If I change Path="Url" to STRING="Intent-action", then clicking works but I want to send path to URL from backend. as i am passing parameters from Odata service(SEGW).

"card05": {
"model": "zge_eam_srv",
"template": "sap.ovp.cards.charts.analytical",
"settings": {
"title": "{{card05_title}}",
"entitySet": "DynamicCardInfoChartSet",
"selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant#monitoring",
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#monitoring",
"identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#monitoring"
}
}

<Annotation Term="UI.Identification" Qualifier="monitoring">
					<Collection>
						<Record Type="UI.DataFieldWithUrl">
							<PropertyValue Property="Url" Path="Url"/>
							<PropertyValue Property="Value" String="monitoring"/>
						</Record>
					</Collection>
</Annotation>
<Annotation Term="UI.SelectionVariant" Qualifier="monitoring">
					<Record Type="UI.SelectionVariantType">
						<PropertyValue Property="Parameters"/>
						<PropertyValue Property="SelectOptions">
							<Collection>
								<Record Type="UI.SelectOptionType">
									<PropertyValue Property="PropertyName" PropertyPath="CardId"/>
									<PropertyValue Property="Ranges">
										<Collection>
											<Record Type="UI.SelectionRangeType">
												<PropertyValue Property="Sign" EnumMember="UI.SelectionRangeSignType/I"/>
												<PropertyValue Property="Option" EnumMember="UI.SelectionRangeOptionType/EQ"/>
												<PropertyValue Property="Low" String="CRMONITORCHART"/>
											</Record>
										</Collection>
									</PropertyValue>
								</Record>
							</Collection>
						</PropertyValue>
					</Record>
</Annotation>
<Annotation Term="UI.Chart" Qualifier="monitoring">
					<Record Type="UI.ChartDefinitionType">
						<!--<PropertyValue Property="Title" String="{@i18n>crHistBy24hrs}"/>-->
						<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Donut"/>
						<PropertyValue Property="Measures">
							<Collection>
								<PropertyPath>MeasureByCRs</PropertyPath>
							</Collection>
						</PropertyValue>
						<PropertyValue Property="MeasureAttributes">
							<Collection>
								<Record Type="UI.ChartMeasureAttributeType">
									<PropertyValue Property="Measure" PropertyPath="MeasureByCRs"/>
									<PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
								</Record>
							</Collection>
						</PropertyValue>
						<PropertyValue Property="Dimensions">
							<Collection>
								<PropertyPath>Dimension</PropertyPath>
							</Collection>
						</PropertyValue>
						<PropertyValue Property="DimensionAttributes">
							<Collection>
								<Record Type="UI.ChartDimensionAttributeType">
									<PropertyValue Property="Dimension" PropertyPath="Dimension"/>
								</Record>
							</Collection>
						</PropertyValue>
						<PropertyValue Property="Actions">
							<Collection/>
						</PropertyValue>
						<PropertyValue Property="Description" String="{@i18n>crHistBy24hrs}"/>
					</Record>
</Annotation><br>