Hello SDN.
We have a WDJ application consists of two WD components: one component is the list of business objects (ListComp) and the second one is the screen with object's attributes (ScreenComp). The application separated to two components since ScreenComp has to be reusable. ListComp used ScreenComp with "onDemand" flag. ScreenComp has a lot of fields and table fields with OVS. For OVS we have developed separate WD comp (GenericSH) and some Java classes which help us to cofigure OVSes. GenericSH is used in ScreenComp with flag "manual". OVSes configured in Component controller of ScreenComp.
OVSes configured and created with usage.createComponentUsageOfSameType() while ScreenView is called. OVSes deleted with usage.deleteComponent() when user leaves ScreenView.
But if user leaves ScreenView and then calls this view again the following error occured:
Cannot create object with the name workKind and rolenameComponentUsages because it already exists.
(workKind is the name of the OVS usage)
So how we can properly delete component usage and then create it again?
We're working with NW 7.31
Regards,
Lev
Add a comment