Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

@ObjectModel.text.element is not working when I use WITH_INTENT_BASED_NAVIGATION

former_member525004
Discoverer
1,771

HI guys,

I hope its okay to ask about CDS annotation here. If not kindly point me to the right direction(much appreciated)

I'm trying to create a navigation to the standard work order fiori app.

So its like Work Order Description(100024) <== the entire thing is a like a hyperlink

my current code is making the description a hyperlink and my work order number goes missing.


Here is my CDS annotation

      @Search.defaultSearchElement: true
      @ObjectModel.readOnly: true
      @ObjectModel.enabled: true
      @ObjectModel.text.element: ['WorkOrderDesc']
      @UI.lineItem:[{ position : 10,
                          label: 'Work Order',
                    importance : #HIGH,
                           type: #WITH_INTENT_BASED_NAVIGATION,
           semanticObjectAction: 'display',
                          value: 'WorkOrderNumber'
                    }]
      @Consumption.semanticObject: 'TestMaintenanceOrder'
  key WorkOrderNumber,

      @EndUserText: { label:  'Work Order Description' }
      @UI.lineItem:[{ position : 15, label: 'Work Order Description', importance : #HIGH }]
      @UI.hidden: true
      WorkOrderDesc,

HI guys,

I hope its okay to ask about CDS annotation here. If not kindly point me to the right direction(much appreciated)

I'm trying to create a navigation to the standard work order fiori app.

So its like Work Order Description(100024) <== the entire thing is a like a hyperlink

my current code is making the description a hyperlink and my work order number goes missing.


Here is my CDS annotation

      @Search.defaultSearchElement: true
      @ObjectModel.readOnly: true
      @ObjectModel.enabled: true
      @ObjectModel.text.element: ['WorkOrderDesc']
      @UI.lineItem:[{ position : 10,
                          label: 'Work Order',
                    importance : #HIGH,
                           type: #WITH_INTENT_BASED_NAVIGATION,
           semanticObjectAction: 'display',
                          value: 'WorkOrderNumber'
                    }]
      @Consumption.semanticObject: 'TestMaintenanceOrder'
  key WorkOrderNumber,

      @EndUserText: { label:  'Work Order Description' }
      @UI.lineItem:[{ position : 15, label: 'Work Order Description', importance : #HIGH }]
      @UI.hidden: true
      WorkOrderDesc,
0 REPLIES 0