cancel
Showing results for 
Search instead for 
Did you mean: 

ValueHelp showing [Object Promise] instead of value

jacek_zebrowski3
Explorer
0 Kudos
81

Hi !

I have problem with additionalBinding definition of valueHelp:

 

 

: { lineItem: [{ position: 29 }],
  identification: [{ position: 29 }] }
  .textArrangement: #TEXT_LAST
  @Consumption.valueHelpDefinition: [{ entity: { name: 'zqm_claims_code_gr_head',

                                          element: 'qcodegrp' }
                                          }]

  qmgrp;
  : { lineItem: [{ position: 39 }],
  identification: [{ position: 39 }] }
  .textArrangement: #TEXT_LAST
  @Consumption.valueHelpDefinition: [ { entity: { name: 'zqm_claims_code_head',                                                                     
                                            element: 'code' },
  additionalBinding: [{ localElement: 'qmgrp', element: 'qcodegrp', usage: #RESULT }
  ]}]
  @Consumption.filter.selectionType: #SINGLE
  @Consumption.filter.multipleSelections: false
  qmcod;

 

Error im getting is :
Error creating contexts for 

/sap/opu/odata4/sap/zqm_claims_srv/srvd_f4/sap/zqm_claims_code_gr_head/0001;ps=%27srvd-zqm_claims_srv-0001%27;va=%27com.sap.gateway.srvd.zqm_claims_srv.v0001.et-zqm_claims_qmel.qmgrp%27/zqm_claims_code_gr_head with start index 0 and length 2 - Error: Unsupported type: com.sap.gateway.srvd_f4.zqm_claims_code_gr_head.v0001.zqm_claims_code_gr_headType

    at Object.formatLiteral ( ... }

any hints on how i can fix the issue ?

 

View Entire Topic
naveen_k1
Product and Topic Expert
Product and Topic Expert
0 Kudos

 

Please check these steps:

  • Validate Entity and Element Names:

    • Ensure that the entity names 'zqm_claims_code_gr_head' and 'zqm_claims_code_head' exist.
    • Ensure that the elements 'qcodegrp' and 'code' are correctly defined within these entities.
  • Consistency in Data Types:

    • Verify that the data types of 'qmgrp' and 'qcodegrp' match in the CDS view