on 08-06-2010 8:57 AM
HI,
I want to know if it's possible to copy ui elements at runtime. For example, I have transparent container with various settings for width, height and so on. At runtime, I want to make a new Transparent Container with the same settings as a Transparent Container already in the view. Is there some function to make a copy of a view element? Or do I have to set each setting for the new transparent container?
Best regards,
Peter
Hi Peter,
There is no feature to copy the settings of a UI element to create a new one at runtime. You will have to specify the properties one by one.
Regards,
Shyam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Code in wdDoModifyView. I have not tested the code though. I hope it works!
// get reference of the tc to copy
IWDTransparentContainer source = (IWDTransparentContainer)view.getElement("TransparentContainerToCopy");
// create a new tc
IWDTransparentContainer target = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class,"TransparentContainerCopied");
// use copy corresponding
WDCopyService.copyCorresponding(source,target);
// add newly created tc to view
......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.