cancel
Showing results for 
Search instead for 
Did you mean: 

Change wdp component configuration?

Former Member
0 Kudos

Hi all,

We have a table with a list of entires and upon clicking any entry, it then loads a separate view which uses mdm web dynpro component configurations. Depending on the entry that is clicked we use the setConfiguration method to set the project name and component name. The problem is when a user goes back and selects a different entry then we cannot run setConfiguration method again as it gives a "WDRuntimeException - duplicate name for child node".

Is it possible to change the configuration of an mdm component usage? or to run the setConfiguration method more than once?

Thanks

Yassir

Accepted Solutions (0)

Answers (1)

Answers (1)

govardan_raj
Contributor
0 Kudos

hi yassir ,,

as the error suggests that duplicate name for the child node  when clicking an entry for second time , are  you creating any dynamic node, in that case when you are going back or clicking on another entry , or when the view is loading again , try to delete child node and other components that are being created dynamically . i.e if a table is created dynamically , then when the view is loading for second time write the code as follows

iwdtable tableifExists = (iwdtable)view.getelement("tableid"');

if(null != tableifExists)

   tableifExists.destroy();

Regards

Govardan Raj S

Former Member
0 Kudos

Hi Govardan,

I am not creating any dynamic context nodes/attributes but it seems that when the setConfiguration method is called there are some dynamic nodes being created automatically.

Yassir

govardan_raj
Contributor
0 Kudos

hi yassir ,

can u please post the code that you are using on click of any entry

Regards

Govardan

Former Member
0 Kudos

public void setupView(String projName, String searchComp, String resultComp, String itemComp) {

     try{

           wdThis.wdGetMasterSearchInterface().setConfiguration(projName, searchComp);  

           wdThis.wdGetMasterResultInterface().setConfiguration(projName, resultComp);

           wdThis.wdGetMasterItemInterface().setConfiguration(projName, itemComp);

           wdThis.wdGetMasterItemEditInterface().setConfiguration(projName,itemComp);

     } catch (ConfigurationException e){

           e.printStackTrace();

     }

}

govardan_raj
Contributor
0 Kudos

hi yassir ,

here im not able to find any code which creates dynamic node automatically , instead same method setConfiguration is being used with different parameters , can u post the code that is available in this method also.

Regards

Govardan Raj

Former Member
0 Kudos

Govardan, the setConfiguration method is part of the MDM Java API and I am unable to see the code in this method.