SAP UI5 Overlay Container not working from MII

Hi,
I'm unable to use the overlay container control of SAPUI5 from MII Workbench.
My code is as below(copied from Demo Kit):
<!DOCTYPE HTML>
<html>
<HEAD>
  <TITLE>Overlay Container Test</TITLE>
  <META http-equiv="X-UA-Compatible" content="IE=edge">
  <META http-equiv='cache-control' content='no-cache'>
  <META http-equiv='expires' content='0'>
  <META http-equiv='pragma' content='no-cache'>
  <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>
  <script id="sap-ui-bootstrap" type="text/javascript" 
  src="resources/sap-ui-core.js" 
  data-sap-ui-theme="sap_goldreflection"  
  data-sap-ui-libs="sap.ui.ux3, sap.ui.commons"> 
  </script> 
<script type="text/javascript">
function handler(oEvent) {
  alert("Event '"+oEvent.getId()+"' triggered");
var oOverlayContainer = new sap.ui.ux3.OverlayContainer();
oOverlayContainer.addContent(new sap.ui.commons.TextView({text: "Some Content ..."}));
oOverlayContainer.attachClose(handler);
oOverlayContainer.attachOpen(handler);
oOverlayContainer.attachOpenNew(handler);
var oButton = new sap.ui.commons.Button({
  text: "Open Overlay Container",
  press: function(oEvent){
  if(!oOverlayContainer.isOpen()){
  oOverlayContainer.open();
oButton.placeAt("sample1");
</script>
</HEAD>
<body class='sapUiBody'>
  <div id='sample1'></div>
</body>
</HTML>
On execution, it is not displaying the content. I'm using MII 14.0 SP0. The SAPUI5 SCA file is properly installed. The ux3 library is in sap.ui folder still the overlay container is not created.
Please share your valuable thoughts.
Regards,
Prashant

Hi Prashant,
I tried your above code and also added the part to add the overlay container on click of "Add" button.
It works fine.
Please find below the code that worked for me:
<!DOCTYPE HTML>
<HTML>
<HEAD>
  <TITLE>UI5</TITLE>
  <META http-equiv="X-UA-Compatible" content="IE=edge">
  <META http-equiv='cache-control' content='no-cache'>
  <META http-equiv='expires' content='0'>
  <META http-equiv='pragma' content='no-cache'>
<!--  <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT> -->
  <script id="sap-ui-bootstrap" type="text/javascript"
  src="/sapui5/resources/sap-ui-core.js"
  data-sap-ui-theme="sap_goldreflection" 
  data-sap-ui-libs="sap.ui.ux3,sap.ui.commons,sap.ui.table">
  </script>
<script type="text/javascript">
// Create a TabStrip instance
var oTabStrip1 = new sap.ui.commons.TabStrip("TabStrip1");
oTabStrip1.setWidth("100%");
oTabStrip1.setHeight("300px");
// 1. Tab1
var oLayout1 = new sap.ui.commons.layout.MatrixLayout("Matrix1", {columns: 1, width: "100%"});
oLayout1.setWidths(['150px']);
  var Equipment_Rows;
  var currData;
  var Equip_ID = 0;
  var Equip_Desc;
  var Equip_Type;
  var Last_Calib;
  var Next_Calib;
  var count = 0;
  //Create a panel instance
  var oPanel1 = new sap.ui.commons.Panel({
  width : "100%",
  showCollapseIcon: false,
  //Set the title of the panel
  oPanel1.setTitle(new sap.ui.core.Title({
  text : "Equipment"
var i = 1;
function handler(oEvent) {
  alert("Event '"+oEvent.getId()+"' triggered");
var oOverlayContainer = new sap.ui.ux3.OverlayContainer();
oOverlayContainer.addContent(new sap.ui.commons.TextView({text: "Some Content ..."}));
oOverlayContainer.attachClose(handler);
oOverlayContainer.attachOpen(handler);
oOverlayContainer.attachOpenNew(handler);
  oPanel1.addButton(new sap.ui.commons.Button({
  text : "Add",
  tooltip: "Add equipment",
  lite: true,
      icon : "sap-icon://add-equipment",
  id : 'add' + i,
  press : function() {
  alert("overlay container should open");
if(!oOverlayContainer.isOpen()){
  oOverlayContainer.open();
  //Table here
  var oTable = new sap.ui.table.Table({
  //title: "Dynamic Table",
  id : 'equiptable',
  visibleRowCount: 5,
  firstVisibleRow: 1,
  selectionMode: sap.ui.table.SelectionMode.Single,
  navigationMode: sap.ui.table.NavigationMode.Paginator,
  fixedColumnCount: 5,
  editable:false
  // define the Table columns
  var oControl1 = new sap.ui.commons.TextView({text:"{EquipID}"}); // short binding notation
  oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "SAP Equipment ID"}), template: oControl1}));
  var oControl2 = new sap.ui.commons.TextView({text:"{EquipDesc}"}); // short binding notation
  oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Equipment Description"}), template: oControl2}));
  // create a JSONModel, fill in the data and bind the Table to this model
  var oEquipmentModel = new sap.ui.model.json.JSONModel();
  oTable.setModel(oEquipmentModel);
  oTable.bindRows("/modelData");
  oPanel1.addContent(oTable);
  oLayout1.createRow(oPanel1);
  oTabStrip1.createTab("Equipment",oLayout1);
// Attach the TabStrip to the page
  oTabStrip1.placeAt("sample1");
</script>
</HEAD>
<body class='sapUiBody'>
  <div id='sample1'></div>
</body>
</HTML>
I have not referred to /XMII/JavaScript/bootstrap.js rather to the 2nd script tag which refers to "/sapui5/resources/sap-ui-core.js" and included "sap.ui.ux3" in the data-sap-ui-libs attribute of the script tag.
Do try and let me know if your issue is resolved.
Regards,
Ria

Similar Messages

  • Navigation Link not working from save search result

    Hello Experts,
    We have a requirement in our application which is created from scratch, I have implemenetd save search  and its working fine, we have some navigation links in result. these links does not work from save search results moreover it works with normal search.
    Can anybody help me out to achieve it.
    Thanks in advance,
    Madhu Omer

    Hi Madhu,
    If you want to trigger cross-component navigation to an overview page, then the following conditions should be satisfied:
    1. Your last outbound plug calls method fire_outbound_plug( ).
    2. The collection passed in fire_outbound_plug( ) contains two entities - a navigation descriptor as the first entity and a root object of the object you want to navigate to as the second entity.
    In your case, is condition 2 satisfied? You can create a navigation descriptor by calling the following method passing its two mandatory importing parameters as indicated:
    CL_CRM_UI_DESCRIPTOR_OBJ_SRV=>CREATE_UI_OBJECT_BASED(
        EXPORTING
            IV_UI_OBJECT_TYPE = * UI object type of object to which you want to navigate *
            IV_UI_OBJECT_ACTION = 'B'            "for Display
    If you keep debugging the standard outbound plugs, then you will see that at some location, SAP will surely be inserting this navigation descriptor object in the collection as first object in the collection when calling fire_outbound_plug( ).
    If you still can't trigger navigation, please mention the BOL objects you are working with, the component you have created and where you have used it.
    Regards,
    Shiromani

  • Some attachment buttons not working from external networks

    Hi guys,
    We have an eSourcing system that we access internally from server.internal.com . We also make this eSourcing system available to external vendors through www.external.com .
    The external access is done using a Citrix AGEE system (reverse proxy, etc.). As part of this, the AGEE has the ability to change the hostname in the URL so the real server is hidden from external vendors. For example, when eSourcing generates a webpage, the AGEE searches through and replaces all http://server.internal.com references to http://www.external.com , and vice-versa for incoming calls.
    This works for about 95% of the content, but there are a fer places where the links are not re-written correctly. One example is the File Attachment buttons when replying to a question. However, other file attachment buttons work correctly.
    1. Does anyone else have a similar situation, using a Citrix or other product for external vendors?
    2. Does anyone have a similar problem where certain links/buttons are not working from external networks?
    3. Does anyone have any suggestions as to how to fix this problem?
    4. Are there any settings that are specific to external access that may need to be set?
    Thanks guys for any help/insight.
    Michael.

    SAP has re-written some of their code to help rectify the problem. We have also been working with Citrix to provide additional fixes. If anyone else has these problems, apply the latest patch of eSourcing and contact Citrix support to get the AGEE changes needed to make it work.
    Michael

  • Dashboard link is not working from BI Publisher

    Dashboard link is not working from BI Publisher. Please let me know How to fix this problem.

    Please somebody guide me.
    Dashboard link is working fine from the Apps Server Machine. But the link is not working from other machines. Do I need to setup machine.domain:<port_number> any where.
    Thanks,
    Vara

  • My mail is not working from my ipod i looked it up it says it trouble shooting but its not giving me anything to fix it can someone help me?

    My mail is not working from my iPod touch. I looked it up and it says it trouble shooting? But they are not giving me anything to fix it. I restored my iPod touch to see if that worked and it didnt. Can anyone help me?

    Can you access the account from another device?
    Without you telling use the email provider and type of account we can't really help you.

  • HP Pavilion dv6-6181TX. System Recovery is not working From HP Recovery Manager.

    HP Pavilion dv6-6181TX
    Product No. A3U49PA
    Genuine Windows 7 Home Premium 64
    (but i upgraded it to windows 7 ultimate)
    System Recovery is not working From HP Recovery Manager. so i cant restore my laptop to its original factory condition. (Genuine Windows 7 Home Premium).
    so when i restart my computer and press Esc and then choose F11 i get this message :
    "Windows failed to start. A recent hardware or software change might be the
    cause. To fix the problem:
    1. Insert your Windows installation disc and restart your computer.
    2. Choose your language settings, and then click "Next."
    3. Click "Repair your computer."
    If you do not have this disc, contact your system administrator or computer
    manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000225
    Info: An error occured while attempting to read the boot configuration data."
    i saw this from the forum
    http://h30434.www3.hp.com/t5/Notebook-Recovery/Hp-recovery-manager-problems/m-p/2395473/highlight/tr...
    Had the C partition been split/shrunk to form a new partition previously?
    Does disk management show the HDD as basic or dynamic? (Start>Right-click Computer>Manage>disk management on the left).
    If it has been switched to dynamic (Windows does this automatically when more than 4 partitions are present on the disk), then the F11 recovery partition won't function until it is restored to basic, but I would like to confirm that is the scenario before providing those steps.
    The Disk management shows that my HDD as Dynamic, what should i do then if this is the case and the possible solution to my problem?
    please help me & Thank you for your time,
    This question was solved.
    View Solution.

    If you have more than 4 partitions you will need to delete the extra partition/partitions, then convert the hdd back to Basic.
    Older versions of Partiton Wizard Free work: 
    http://www.sevenforums.com/tutorials/26829-convert-dynamic-disk-basic-disk.html
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13

    File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
    I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
    Thanks

    I hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
    Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
    I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print

  • In 5s, personal hot spot does not work from time to time. Not detected

    In 5s, personal hot spot does not work from time to time. Iphone does not get detected on Wi-fi or bluetooth. Restarting or rebooting does not help.  

    Settings, general, reset and reset network settings. Clear out your network settings and set personal hotspot again.
    also avoid special characters making a password. hashtags or open brackets for example doesn't work too good.

  • File sharing is not working from pc to imac os x 10.9.2

    file sharing is not working from pc to imac os x 10.9.2

    Hello there Karen,
    It sounds like you are having to power cycle your modem to get internet back every single day. We can start by troubleshooting your Airport Express to help isolate the issue. I would first perform a Soft Reset, then test the issue again. If needed as a last resort I would then perform a Hard Reset:
    Soft reset
    Connect the device to power and wait for it to complete its start up process. To learn more about the start up process, please see All about Wi-Fi base station Status Lights (LED).
    Press and hold the reset button with a pen, pencil, or straightened paperclip for 1 full second, then release it. The light (LED) will begin flashing amber, indicating that the device is in soft reset mode.
    From the AirPort menu bar item, choose the network created by the device (the network name does not change).
    Open AirPort Utility from Applications > Utilities.
    Select the base station, then click Edit (The Edit window will indicate that the base station is in Soft Reset mode).
    Move through the tabs to make changes to your passwords or other settings as needed, and click Update and Continue as required
    Quit AirPort Utility.
    Hard reset
    Press and hold the reset button with a pen, pencil, or straightened paperclip until you see the status light (LED) start to flash amber rapidly, which should occur after about five seconds.
    Release the button and the device will reset.
    Wait about a minute for the base station to finish restarting, then open AirPort Utility from Applications > Utilities.
    Select the base station from Other Wi-Fi Devices, then click Edit.
    Select the Other Options button.
    Select "Restore previous settings" and click Next until you get to the final window.
    AirPort Utility will indicate that Setup is complete. Click Done.
    Quit AirPort Utility.
    Resetting an AirPort base station FAQ
    http://support.apple.com/kb/ht3728
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Blend Overlay is not working in Safari over site's background image

    My message is concerning the website (below) called
    suspendedinsound.com.
    The blend mode, Overlay, is not working on several of my
    movie clips in the Safari browser.
    The Flash swf and html is published with a transparent
    background. I put a bg image (via CSS) in the html code. The
    objects with overlay (the large animating gold rings and
    play/stop/mute buttons), are not "overlaying" over the html's
    background image. They look yellow or cream instead of being very
    subtle (dark reddish brown). This is only a problem in the Safari
    browser. Looks great in Firefox and IE.
    Anybody have a solution?
    Thanks
    -loren
    http://www.suspendedinsound.com

    Transparent background is a less than robust publishing
    option for Flash. As you've seen, it can produce some unreliable
    results.

  • Asm link not working from kolkata

    hi
    http://www.oracle.com/technology/tech/linux/asmlib/install.html
    this link is not working from india / kolkata.
    what to do?

    javadev991 wrote:
    Now working.
    What?
    Just cross check certain things
    - The servlet you specified in Form Action is correct
    - The Form Method must be POST not GET
    - The query string param you are specifying in URL which is classifiedsearchtype, You are trying to get the same param in the servlet. It is case sensitive.

  • My iPhoto dose not work from 0:00 Sunday. I was deleting and downloaded again but dosn't work! Why?

    My iPhoto '11 dose not work from 0:00 Sunday. I was deleting and downloaded againg but the problem is same.

    Sorry but we need more to go on thatn it does not work
    what happens? what does not happen? what error messages to you get? if it crashes post the first 50 lines of the carash report
    LN

  • Hey mine avg link scanner is not working from the day i installed firefox 4 ....how to fix it plz help ?

    hey mine avg link scanner(add-on) is not working from the day i installed firefox 4 ....how to fix it plz help ?
    it was working fine with firefox's previous version ? but i like the interface & looks of firefox 4.......so i didnt want to swicth to 3.6 help me ?

    if i reinstall that avg antivirus then is this will fix my problem

  • Recently Iam purchased a Iphone from U.S, but iam residing in India, so can any body tell me in india how can i get support as my phone charger is not working from where in india i can replace i

    Recently Iam purchased a Iphone from U.S, but iam residing in India, so can any body tell me in india how can i get support as my phone charger is not working from where in india i can replace it

    gosharma wrote:
    What if we have Applecare? Applecare is worldwide. Isnt it?
    Not on an iPhone.

Maybe you are looking for