cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch Control on the Popup Window in BSP pages

former_member202682
Participant
0 Kudos

Dear Friends,

I have created a BSP page and have created a popup Page using "phtmlb:popupMenu".Here my window pop's up but the control remains on the main page ,whereas i want to switch my control to the popuped window.Is there anything in phtmlb which can help me to swicth my control to the popuped window as well please send me any link that will help me get better knowledge about what all new things i can use in BSP pages using phtmlb.

Thanks in Advance,

Ashwini.

Accepted Solutions (1)

Accepted Solutions (1)

RenaldWittwer
Contributor
0 Kudos

Hi Ashwini,

have a look to OSS Note 886677. It seems that this Note describes your problem:

<i>When using both a linkReference and a linkTarget='_blank' for popupMenu entries, it so happens that the new window will be opened in the background, and not on top. This really confuses end-users, as they expect the requested information to be visible.</i>

There is a correction.

Hope that helps!

Best regards

Renald

Answers (2)

Answers (2)

former_member202682
Participant
0 Kudos

Hello Friends

Thanks for your Valuable inputs.

Sebastian i tried LinkTarget = "blank_"

but it doesn't solve my problem of Active Pop up.

Vijay my whole code is using Phtmlb then too in tried using return popitup and Window.open

but am not able to get a popup.May be i will have to try it again.

Mithlesh the code u suggested is just the layout of Menu bar as well no popup screen is active.

Renald ,i notes u told really helped me to get the reason behind Active screen.

the Version i am using does not support the Packages and hence i will have to apply the patch.

This can't be done immediate so may be after i do it ,i will come to know where it will help me to solve my propblem.The note describes my problem and would in better position to solve my Problem.

Thanks for the help.

Ashwini

Former Member
0 Kudos

Hi ashwini sonar

Have a look at

BSP application :  SBSPEXT_PHTMLB
               BSP Pages       :  popupMenu.htm
                                  and
                                  popupMenuSample.htm

CHeers,

VIjay Raheja

former_member202682
Participant
0 Kudos

Hi Vijay,

I have gone thru BSP application : SBSPEXT_PHTMLB and the pages popupMenu.htm and popupMenuSample.htm ,it does help me a bit,but my main prob is still unsolved i want my Popuped screen to be acitve instead the main screen frm where i click my popupbutton.This application also has the same prob whnever i click any list value,second screen which popups is not Active,the control still remains on popupMenu.htm and instead of popupMenuSample.htm , whereas i want my control to be on popupMenuSample.htm and this screen to be active.

Thanks,

Ashwini.

Former Member
0 Kudos

Hi Ashwini,

even if I only guess what you want:

- To have the popupMenu initially visible set the attribute firstLevelVisible = "TRUE".

- Having a submenu initially visible seems not to bee a nice thing but should also work with attribute firstLevelVisible = 'TRUE'.

- Having the page focused wich is opened by the popupMenuItem set the attribute LinkTarget = "_blank"

If you mean something else, please post the you use.

Regards,

Sebastian

Former Member
0 Kudos

HI Ashwini Sonar

Use this code.This will pop up Page2.htm in New window.And focus will reamin on that.No need to use PHTMLB MENU tag for that.

-


<htmlb:button id            = "popup"
              text          = "Pop up Window"
              design        = "standard"
              onClick       = "popup"
              onClientClick = "return popitup('page2.htm?value_pass=<%= value_to_pass %>')"/>

-


or u can use

WINDOW.OPEN instead of RETURN POPITUP

Example:

window.open("page2.htm", "NameOfnew page")

CHeers,

Vijay Raheja

Former Member
0 Kudos

Hi Ashwini

I am using this code and its working fine here....

Just chk if your problem is solved using this code sample...



<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="phtmlb" prefix="phtmlb" %>
<htmlb:content design = "design2003" >
  <htmlb:page  title  = "Test" >
    <htmlb:form>
      <table class    = "lightblue"
             width    = "150" height="386">
 
      <phtmlb:popupTrigger id            = "TG_LEFT"
                           isInteractive = "TRUE"
                           popupMenuId   = "P_LEFT" >
        <htmlb:textView id   = "TX_LEFT"
                        text = "POP UP MENU" />
      </phtmlb:popupTrigger>
<td>
<phtmlb:popupMenu id="P_LEFT">
<phtmlb:popupMenuItem menuItemId = "menuItem1"
text = "text1"
enabled="TRUE" />
<phtmlb:popupMenuItem menuItemId = "menuItemId2"
text = "text2"
enabled="TRUE" />
<phtmlb:popupMenuItem menuItemId = "menuItemId3"
text = "text3"
enabled="TRUE" />
<phtmlb:popupMenuItem menuItemId = "menuItemId4"
text = "text4"
enabled="TRUE" />
</phtmlb:popupMenu>
</TD>
     </table>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

It might solve your problem

Have a nice time

Cheers:)

Mithlesh