cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement Dynamic DropdownList on SDK

fceylan_hs
Participant
0 Kudos

Hi experts,

I need to implement simple process on Extended Business Object in Cloud Applications Studio.

I looked for creating dropdown object in SDK but find out there is no object type like that. So I've created two codelist object to behave like dropdown object.

Each codelist object contain values like;

Then I added those objects into my LeadXbo

Also added those objects as extension field to Lead Screen via UI Designer

In AfterModify event I would like to implement simple if condition on two seperate codelist object. In my case when the 1st dropdown value changed, second dropdown value should be set the designated value.

Since adding an EventHandler is prohibited on standart screen I go back to ABSL coding.

Tried to set codelist object values manually through ABSL coding but cannot find a way how to do it.

Accepted Solutions (0)

Answers (1)

Answers (1)

VVancalbergh
Contributor
0 Kudos

You have to use the values in the "Value" column of your code list. So: "1", "2", "3", ...

fceylan_hs
Participant
0 Kudos

I changed both description and value fields, event is triggered correctly but still second dropdown value doesn't change at all. Is there any SaveChanges method or something like this?

VVancalbergh
Contributor
0 Kudos

The actual Save to the database is triggered by the screen. If the user presses Save (or confirms to save on existing), when an EventHandler on a screen contains the "Save" step, or when a step has an option to save before and/or after the step. So whatever you change in any BO will only ACTUALLY get saved when the screen decides to save.

I recommend debugging your code so you see what you are doing. You can also see what values your dropdown REALLY have.

fceylan_hs
Participant
0 Kudos

When I debug it seems changed the dropdown values but on UI screen nothing happens.. Also tried to use BCC and BCO configuration but their content values are readonly i guess.