cancel
Showing results for 
Search instead for 
Did you mean: 

Reuse Views in a Window

Denis_Müller
Participant
0 Kudos

Hello

i have a view. On this view is a tabstrip. There are some tabs. The content of tab1 and tab 4 should be the same. Here i will have an new tabtrip. So it is really the same view.

If i embedded the view to the containers i get an error.

Can i reuse a view in one window?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Denis,

I don't quite see why you create two tabs for the same content??

Lets set it simple, its not possible to use a view more than once in a single window.

If you use the "embed view" function it should not be visible to embed if you try to do this the second time.

Jos

Denis_Müller
Participant
0 Kudos

ok, i try to explan it.

tab1 = my links -> only where i registered for

tab4 = all links

if you click on tab1 you get an overview about links (only my links). when you click on the link you get a page where you can see something about the content of the link

if you click on tab4 you get also an overview about links (all links). now you should see the same page. Here is content different because it is dynamically build on.

can you follow me?

Former Member
0 Kudos

Hi Denis,

I get what you mean.

Perhaps you can try to add a ViewContainerUiElement to each tab.

Now on your window you can embed a view to each ViewContainer and then it must be possible to add the view to tab 1 and 4.

Good luck!

Jos

Denis_Müller
Participant
0 Kudos

ok that is the way i tested it too.

the problem is that i need 2 different views in that way.

if i tried to embed on view to 2 different viewcontainer in the window i get an error.

Former Member
0 Kudos

Can you provide the Errormessage ?

Maybe this yould help.

You are doing this statically, right ?

Denis_Müller
Participant
0 Kudos

the error message is:

The View X is already visible in window A of component ABC.

i get this error when i start the programm in the browser

i tried it statically an dynamic.

Former Member
0 Kudos

OK, I could reproduce this ...

I think you should try to create the the subview as a separate Webdynpro-Application.

Then you should define this Application as component usage in the View with the tabs.

This should work.

Best regards, Matthias

Denis_Müller
Participant
0 Kudos

i tried it.

first i create an Application. then i create the subview and embed it to the window.

after that i embed the window of the new version to my program and i get the same error

Former Member
0 Kudos

SO you created a webdypro component lets say ZTEST1.

There you create a view TESTVIEW1.

Insert the tabstrip with 2 Tabs. Each Tab contains a UI-Container lets say VC1 and VC2.

Then you create a new Webdypro componenent ZTEST2.

There you create a view TESTVIEW2

In TestView1 you create a componentUsage SUBVIEW1 for TESTVIEW2 from Component ZTEST2

Then you create another componentusage SUBVIEW2 for TESTVIEW2 from Component ZTEST2.

In the Window of Ztest1 you embedd TESTVIEW1.

In TESTVIEW1 you now see VC1 and VC2. embedd SUBVIEW1 to VC1 and SUBVIEW2 to VC2.

Is that what you did ?

regards, Matthias

Former Member
0 Kudos

Is your problem know solved ?

Denis_Müller
Participant
0 Kudos

sry, i had no time since Tuesday.

i test it later.

Denis_Müller
Participant
0 Kudos

ok it works very fine

thanks for your help