cancel
Showing results for 
Search instead for 
Did you mean: 

display custom BO data(one field) as drop down values

NagaPrakashT
Contributor
0 Kudos

Hi Experts,

I have created a custom BO with two fields Field-A and Field-B. I want display the Field-B data as drop-down values based on Field-A dynamically.

Field-A    Field-B

A              1

A              2

B             45

C             3

When i select A only 1 and 2 values should be displayed as drop down values.

Thanks,

Naga

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Naga

have a look to the following similar post

Former Member
0 Kudos

Hi Naga,

Are you dependent on modeling it the way you have done (with field A and B as described?)

The reason I ask is, we have created something similar.

We have defined a value mapped to list to be displayed in a dropdown.

However to do this, I recommend an entirely different BO data structure.

With your structure this is certainly possible, however it will require quite some (cumbersome) UI-Scripting.

Best regards,

Ludger

NagaPrakashT
Contributor
0 Kudos

Hi Ludger and Mithun,

I want to expose the data contained in custom BO as drop-down not statically defined Code List.

I will have two drop downs.

1. First one should display only A and B(unique).

2, Second drop-down should display values based on first drop-down selected.

Please let me know if you are unable to get my requirement.

Thanks,

Naga

Former Member
0 Kudos

Hi Naga,

I am not entirely sure about your requirement yet so I am still in the requirement analysis mode before suggesting solutions yet.

First:

Is your BO design structure already fixed or do you have room to use subnodes on the bo instead (since this would make things a lot easier)?

Second:

What I understood so far is:

You have a BO 'X' which contains two fields, field A and B.

Here are 4 instances of this BO given:

Field-A    Field-B

A              1

A              2

B             45

C             3


Now you want to have a UI where:

1. You can select in the first field some Value as a Dropdown 'A', 'B', or 'C'

2. After you have selected a Value (e.g. 'A') you want to have the second field presenting a Dropdown with the values from '1', '2'.


Correct?



What I do not understand yet is:

1. Is this UI for the same BO 'X' or a different not yet named BO (Y)?



Best regards,


Ludger Bünger


all4cloud.de

NagaPrakashT
Contributor
0 Kudos

Hi Ludger,

Yes that is exactly what i want.

I will use these UI for filling another BO(Y) as you said.

Thanks,

Naga

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naga,

This is normaly the task of a Business Configuration Object if the values are static.

If the configuration is more dynamic you can go with your BO approach.

But for both approaches have a look at the blogs mentione din the very first reply.

Bye,

    Horst

Former Member
0 Kudos

As I already mentioned, I would suggest to use a somewhat different data structure as follows:


businessobject CodeList {

  element A : Code;

  node B [0,n] {

    element B : Code;

  }

}

With this datastructure what you intend to do is a lot easier.

In the Data Model of our secondary BO:

  1. Create a list data structure
  2. Use a query to load all elements of the Codelist BO
  3. change the properties of the code A dropdown to codelist type "listbound" and bind them to this list structure
  4. Add a sublist to the list bound to the Subnode B
  5. change the properties of the code B dropdown to codelist type "listbound" and bind them to the sublist list structure

That should do.

Best regards,

Ludger

Former Member
0 Kudos

Hi Naga,

Please refer this below blog and discussion for more information :

I hope this will be helpful to you.

Regards,

Mithun