on 12-08-2016 8:22 AM
Hello Experts,
How to get the metadata in .xsjs service
Ex : I have one "insert.xsjs" service which inserts data into DB . But here the question is how can i get the metadata of the table in which am inserting the value , like we do in .XSOData ($metadata).
Or is it possible to consume the .XSJS in .XSOData .
Regards,
Aisurya
XSJS services do not expose meta-data information like it is done by an XSOData service. If you wanna see the e.g. column information for the table you are inserting data you can get it from system view TABLE_COLUMNS (you can expose that information also via an XSJS or XSOData service if it is necessary for you).
Regarding the question if XSJS coding can be used in XSOData: XSJS coding can be used in XSOData Custom Exits.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.