cancel
Showing results for 
Search instead for 
Did you mean: 

ViewContainerUIelement(Map Header view to Main view)

Former Member
0 Kudos

Hi,

Please let me know how to add my header view to another view..

I tried but i could not find where i can map the header view to main view.

Regards,

Kumar K

Accepted Solutions (0)

Answers (3)

Answers (3)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Just create an view container ui element and embed the header view in it. Double click on the window name name, there you'll find the view container name, right click on it and embed the header view.

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

Hi,

Do you mean that you have a ViewContainerUIelement in your main view and you want your header view to be displayed in there. If so, goto windows, right click on the viewcontainer and embed your header view.

Would help if you can be more clear with your query.

Radhika.

Former Member
0 Kudos

Yaah,

I did the same , but i am getting blank page when runing it in browser.

Please help to solve this problem.

Regards,

Kumar K

Former Member
0 Kudos

Goto Windows, and check if you can see your embedded view under the ViewContainer and also check if the default checkbox is checked for the embedded view( header view ).

Regards,

Radhika.

Former Member
0 Kudos

Yaah,

header view is displayed under the Main view in Window.

and i set Main view is my default view. because i need the header view in my main view.

but still show only the main view data only.

Regards,

Kumar K

arjun_thakur
Active Contributor
0 Kudos

HI,

Just create a new view say View1 and make it the default view. Embed it in the main window. Now embed 2 view container in it. One over the another. In the upper one, embed the header view and in the second view container embed the main view. I hope it solves your problem

Regards

Arjun

Former Member
0 Kudos

Hi Kumar,

So your structure is like this ?

Windows:

->Main View

---> ViewContainer

-


> Header View

Now Right click on the Header View and select 'Set as Default'.

Regards,

Radhika.

Former Member
0 Kudos

Yaah Rathika,

same.I gave the set as default to header view which is inside the VUC.

still i am getting only the main view details.

have to change any layout property...?

Regards,

Kumar K

Former Member
0 Kudos

Which layout are you using ?

I would suggest using Matrix Layout and set the ViewContainer as MatrixHeadData.

Also check if your ViewContainer is visible in the Layout tab of the MainView.

Radhika.

Former Member
0 Kudos

Try this thing,

Set the cellBackgroundDedign property of the VCU to some color other than transparent and run the Application. This way you would come to know if alteast if the VCU is displaying in the Output and the Problem is with the Header View or the VCU itself not getting displayed.

Radhika.

Former Member
0 Kudos

I have done the same in Main View.but still facing the same issue.

I did the same in Headerview also..

is it right?

Regards,

Kumar K

Former Member
0 Kudos

Did you set the background color n check if the VCU is getting displayed ?

Also put clear sy-subrc statement in the WDDOINIT method of the Header View and keep a breakpoint and check if the view is getting loaded.

What are you displaying in your Header View ?

Edited by: Radhika Vadher on Jun 2, 2009 11:43 AM

Former Member
0 Kudos

Hi,

Can you be more clear.

Regards,

Lekha.