on 12-03-2014 10:43 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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();
}
}
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.