cancel
Showing results for 
Search instead for 
Did you mean: 

Reuseage of View in another component

Former Member
0 Kudos

Hi All,

I want to reuse of view into another component.

I have cheked the source componet which has so many views part of it and has one interface view as part of component interface.

My question is "now we can use required view in another component using "component usage" else need to create separate interface view in component interface for the view before reuse of it.

If we need to create interface view then do we need to create separate winow. Please provide solution on this.

Thank you,

ChaBalan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First thing, If you want to use a view of say component A in component B then you need to create a component interface corresponding to that view if not present.

Now to create component interface you have to create a interface view, and if you go to runtime repository and try to create a new interface view then in the pop up you will see a option 'mapped to window', there you can enter only window name. So, it means that your view(which ever you want to access outside of source component) should be assigned to a window, and then you can assign that window to a interface view.

I hope your doubt should be clear.

Thanks

Raman.

Former Member
0 Kudos

H Raman,

Interface view already created for the main window and "item Status" as well assigned to that window along with n number of views assigend.

When i use this interface view in another component all (Five) views are displaing in the UI which ever assigned to that window.

But i want that particular view. Is there any possible to set condition for particular view to display dynamically else need to create separate window and interface for new window.

i created new window assined view to that new window in Run time Rep but it is not allow to save whereas view already assigned to main window. Can i create copy of the view and assign to new window and create component interface.

If i create copy then enhancement of the view will be copied or need to enhance view again.

Hope you understand the issue.

Thank you,

Cha

Former Member
0 Kudos

Can i create copy of the view and assign to new window and create component interface.

---Yes, you can create copy of the view and assign it to new window and create component interface.

If i create copy then enhancement of the view will be copied or need to enhance view again.

--once you copy a view, standard view will be copied, if you want to make any changes then you have to make those changes in the copied view after enhancing that.

let me know if you have any more doubts.

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

As per your information. i have copied the view from SLO component to COM Component instead of creating Component interfrace and so.

Now view in Complaint component. Now i have done the following steps.

1. Added view in viewset in Run time Repository.

2. Created Navigation Link

3. Created O/P Plug and Created code to link with Navigation Link.

4. Creted EH Method and called the O/P Method and then assigned the EH method to "Do_Handle_Event" Method.

5. Created code in Viewset Htm.

Now i able to see the Tab in Ui. If i click then page is blank. View is not display here.

Kindly suggest what i have missed here.

Thank you,

Cha

Former Member
0 Kudos

Hey, i think you mis interpret me, you should not copy view from SLO component to COM Component.

You have to copy the view in that SLO component only, and bring it using component usage/component interface, so that functionality of that view works similar to standard view.

Thanks

Raman

Former Member
0 Kudos

Hi Raman,

Thank you. issue solved.

Thank you,

Cha

Answers (1)

Answers (1)

Former Member
0 Kudos

can you send the component name and view name which u want to reuse ?

Former Member
0 Kudos

Hi Asen,

Simply Says "Item Status" view from Sales order to Compliants.

Source

Component : ICCMP_BT_SLO

View : Slo1IStatus

Target

Component : ICCMP_BT_COM

View : ItemExtViewSet

For Creation of Component Interface in ICCMP_BT_SLO

-


1. created new window say "Small window"

2. Assigned "item Status" view to newly created window (Small window) in runtime repository.

3. Created Component interface with the new window (Small window).

When i try to save received the run time error as " View already assigned to main window or viewset or viewarea".

So shall i create copy of the item status view and can assign it to small window?

If we do create copy then copied view will have all functionality of view whereas view already enhanced by some other.

Awaiting for your responce.

Thank you,

Cha

Former Member
0 Kudos

You need to create copy of that status view.

Thanks

Raman