Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to create metadata dynamically at runtime ... in odata service

$
0
0

Hi experts

 

In one of my requirement my entity type has 10 fields, so in $metadata i will  get 10 fields in the properties.

 

But from UI side they want only 5 to 6 fields, selecting fields is done at the runtime,

 

So is there any way to change the $metadata properties at runtime, so that we can send only selected fields from backend in $metadata properties

 

Any chages is need to made in MPC_EXT class define() method .

 

 

Ex:-

Consider Employee  entity type having 10 fields, if user selects one option, i have to send only 4 fields in the properties of $metadata

.

If user selects another option, we need to send 8 fields in the properties of $metadata .

 

Any way to do it ... ??

Thanks .....


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>