cancel
Showing results for 
Search instead for 
Did you mean: 

dropdownbyindex

Former Member
0 Kudos

hi experts,

can anyone help.

i have two dropdownbyindex in a view

if i select one dropdown the content of second dropdown changes according to firstdropdown

where i need to write the code and what code i need to approach

advance thank you,

-


vijai

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I am sure, you used same context binding for both dropdowns. I suggest you, if you are using BAPI for dropdowns, use different function modules for each. Use different name (Copy & Rename).

it will solve you problem

Regards

Ravi

Former Member
0 Kudos

hi ravi,

thank you for reply,

i am getting data from oracle BD

-


vijai

Former Member
0 Kudos

Example:


Artists (node)
-- Name (attribute)
Albums (node, supply function = supplyAlbums)
-- Title (attribute)

ArtistSelector (DDByIndex) "texts" -> Artists.Name
AlbumSelector (DDByIndex) "texts" -> Albums.Title

Assign an action "ArtistSelected" to the "onChange" event of ArtistSelector:


void onActionArtistSelected(...)
{
  wdContext.nodeAlbums().invalidate();
}

void supplyAlbums(...)
{
  IArtistsElement artist = wdContext.currentArtistsElement();
  /* create/add elements for this artist to node Albums: */
  ...
}

Armin

Former Member
0 Kudos

hi

The drop down index has a property by name "onSelect". You can bind an action there. Write the code to change the values in the second DDI. This is basically changing the values in nodes based on an other. Hope it helps.

regards

LNV