Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

How to deal with context dependant code lists?

$
0
0

Hi ByD studio forum,

recently one of the ByD solution partner raised an interesting questing regarding context dependant codelists. I create this thread to share the question and the answers (provided by Thomas Schneider) to it with the community.

Most of the ByD codelists are context independant and contain a list of unique values. Some of the codelists (i.e. WorkAgreementAdministrativeCategoryCode) are context dependant and the code value is only unique within a certain context, i.e. country, region.

 

Example - WorkAgreementAdministrativeCategoryCode:

 

List IDCode ValueDescription
AT1Hourly
AT2Salaried Employee
AT3Manager
AU1Hourly
AU2Salaried Employee
AU3Manager
BE1Hourly
BE2Salaried Employee
BE3Manager
BR1Salaried Employee

 

 

In a custom BO a element typed with an context dependant codelist is defined and should be placed on a custom UI.

 

import AP.Common.GDT as apCommonGDT;

 

businessobject CodeListMapping_Test {

 

             element CustomerWorkAgreementAdministrativeCategoryCode : WorkAgreementAdministrativeCategoryCode;

 

}

 

 


In UI-Designer however is the required ListID not available by default:

CodeList_UIDesigner.gif

 

 

 

So how can a ByD studio developer deal with context dependant codelist?

 

 

Best regards,

Ralf


Viewing all articles
Browse latest Browse all 1333

Trending Articles



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