Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

It's an error or am I missing something...

ipravir
Active Contributor
0 Likes
1,142

Hi,

I was trying two Model dialog box screens with CL_GUI_HTML_VIEWER class.

But getting some strange error, I don’t know. Error will be the right word or something I am missing in program.

Logic I have followed.

  1. Created dialog screen and display HTML information by using the CL_GUI_CUSTOM_CONTAINER=>DEFAULT_SCREEN as parent for the same.
  2. Activated HTML event for the designed button.
  3. When button clicked, another dialog screen will appear, and here I am getting the same view, which is defined for the 1st screen.
  4. But 2nd screen contains some different view.
  5. After analyzed, I have created a container object for screen 1st then changed the PARENT for 1st screen HTML object to declared container as CL_GUI_CUSTOM_CONTAINER. After that i got the same solution what I was expecting.
  6. Provide some hints or solution, how I can achieve the same solution by use CL_GUI_CUSTOM_CONTAINER=>DEFAULT_SCREEN as parent.

Please find the code in attachment.

Test 1: without Container: (error)

Test 2: with Container (Expected)

Regards,

Praveer.

1 ACCEPTED SOLUTION
Read only

ipravir
Active Contributor
0 Likes
1,104

Hi,

Need help on this issue.

Regards,

Praveer.

Hi,

I was trying two Model dialog box screens with CL_GUI_HTML_VIEWER class.

But getting some strange error, I don’t know. Error will be the right word or something I am missing in program.

Logic I have followed.

  1. Created dialog screen and display HTML information by using the CL_GUI_CUSTOM_CONTAINER=>DEFAULT_SCREEN as parent for the same.
  2. Activated HTML event for the designed button.
  3. When button clicked, another dialog screen will appear, and here I am getting the same view, which is defined for the 1st screen.
  4. But 2nd screen contains some different view.
  5. After analyzed, I have created a container object for screen 1st then changed the PARENT for 1st screen HTML object to declared container as CL_GUI_CUSTOM_CONTAINER. After that i got the same solution what I was expecting.
  6. Provide some hints or solution, how I can achieve the same solution by use CL_GUI_CUSTOM_CONTAINER=>DEFAULT_SCREEN as parent.

Please find the code in attachment.

Test 1: without Container: (error)

Test 2: with Container (Expected)

Regards,

Praveer.

4 REPLIES 4
Read only

ipravir
Active Contributor
0 Likes
1,105

Hi,

Need help on this issue.

Regards,

Praveer.

Read only

Former Member
0 Likes
1,104

instead of CL_GUI_CUSTOM_CONTAINER=>DEFAULT_SCREEN why don't you try CL_GUI_CUSTOM_CONTAINER=>SCREEN2 (or screen1)

greetings

Read only

ipravir
Active Contributor
0 Likes
1,104

Hi Altabas,

I have checked this, and it's working fine.

Can you explain why we need to use SCREEN1/2 for this kind of solution..

Regards,

Praveer.

Read only

Former Member
0 Likes
1,104

Hi Praveer,

That the "level" for the screen. level 0 is the GUI window, level 1 is in front of level 0 but below of level 2 and so on...

So when you want to display multiple layers of windows they don't mix up in the same level.

Greetings