Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multiple Dropdown problem

Hi,

I have created an application having multiple text edit box with a langage selection drop down box before every textedit box. Language drop down contain several languages which are R/3 specific ie , languages are fetched from R/3 from an RFC. I have bind model node Language containing one attribute to another value node LanguageInfoNode containing 4 attribute correponding to each dropdown using following code. Refer only else part of IFELSE block for Language

// code for getting data from RFC

wdThis.wdGetQlt_Rfc_HandlerInterface().executeGetLOV(IConstant.cDATAELEMENT);

objGet_LovNode = wdContext.nodeZq_Get_Lov();

objLanguageNode = wdContext.nodeLanguage();

objLanguageInfoNode = wdContext.nodeLanguageInfo();

// objRoleNode = wdContext.nodeRole();

for(int i = 0; i < objGet_LovNode.size() ;i++ ){

objGet_LovElement = objGet_LovNode.getZq_Get_LovElementAt(i);

// objRoleElement = objRoleNode.createRoleElement();

objLanguageInfoElement = objLanguageInfoNode.createLanguageInfoElement();

// if(objGet_LovElement.getZdata_Element().equals(IConstant.cROLE)){

// objRoleElement.setRoleType(objGet_LovElement.getZdata_Ele_Desc());

// objRoleNode.addElement(objRoleElement);

// }

else if(objGet_LovElement.getZdata_Element().equals(IConstant.cLANGUAGE)) {

objLanguageInfoElement.setLanguage(objGet_LovElement.getZdata_Ele_Desc());

objLanguageInfoNode.addElement(objLanguageInfoElement);

}

}

for(int k = 0; k<objLanguageInfoNode.size(); k++){

objLanguageInfoElement = objLanguageInfoNode.getLanguageInfoElementAt(k);

objLanguageElement = objLanguageNode.createLanguageElement();

objLanguageElement.setLang_AdtFindings(objLanguageInfoElement.getLanguage());

objLanguageElement.setLang_CARCancComments(objLanguageInfoElement.getLanguage());

objLanguageElement.setLang_CARCancReason(objLanguageInfoElement.getLanguage());

objLanguageElement.setLang_ExtnAppComments(objLanguageInfoElement.getLanguage());

objLanguageElement.setLang_ExtnReason(objLanguageInfoElement.getLanguage());

objLanguageNode.addElement(objLanguageElement);

}

I m getting the languages in every drop down , but whenever i selects any language in one of the dropdown it gets reflects in all other dropdown. My requirement is to get every dropdown with all language and depending on selected language in individual dropdown I should be able to write text in that language in the text edit box.

Former Member
Former Member replied

Hi Poonam,

As the same node is binded to all the dropdown then if you try to change the value at one place it would be reflected everywhere. Thus, you might need to define different nodes for all the dropdowns.

Regards,

Murtuza

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question