Fragments in sapui5

Hi ,
I have multiple sap.m Bars in my Page,  i want to use one fragment to reuse the bar instead of having multiple bars.
Please help me on this.
Thanks & Regards,
Jayasree.

Helpful links.
SAPUI5 SDK - Demo Kit
https://sapui5.hana.ondemand.com/sdk/docs/guide/454b208d49cb4f169d483e4223674cfd.html
Regards,
kk

Similar Messages

  • Use of Fragments in SAPUI5

    Hi ,
           I am using same layouts(matrix, vertical layous) in different views, can any body help me how can i reuse this layouts across the multiple views usiing fragments.
    Thanks&Regards,
    Jayasree.

    Hi Jayasree,
                        Please refer to this discussion. And also this Blog on using fragments.
    Regards
    Moulika

  • Reusable Component: Fragment with onw controller

    Hi,
    I have written a JS-fragment, which shows a table of files. You can upload/download files from this view.
    All functions are coded within this one Files.fragment.js file.
    I wonder what the best way would be, to have ONE single, own controller for this fragment.
    I dont want to add all function within the "parent" controller.
    The fragment is used on several views within the app.
    Is there any best practise to build more complex, reusable component in UI5?
    Jens

    Hi Jens,
    To my knowledge, Fragments can't have a dedicated controller assigned -- it uses the controller of the calling view:
    Fragments are pieces of UI, just like SAPUI5 MVC views, but without the view control around the content and without their own controller.
    SAPUI5 SDK - Demo Kit
    However, according to the API, you could indeed specify a specific controller so I'm not sure if it would be possible to use a dedicated controller for a Fragment... I have never tried this with Fragments.
    Before Fragments, if I had a complex view, I would have one 'container' or 'parent' view with its controller, and the different inner parts of this container/parent view consisted of other views (which uses the container controller). And only the inner views that were reusable would have their own controller.
    In other words, if it is possible to have a dedicated controller for your reusable Fragment, then that's indeed the way to go IMO

  • Floating fields and fragment subforms in Outlook 2007 do not display correctly

    I'm using LCES Forms 8.0 Update 1 to render a non-interactive HTML forms using dynamic content (customer info). The email appears ok in clients except in Outlook 2007.
    The Floating text and Text Fields appear multiple times on the form (scattered around their placement point on the form) and the subform fragments are appearing with borders surrounding them.
    I have heard that there are issues with Outlook 2007 not displaying HTML correctly. Is there a way to setup the Text Fields/Subforms in Designer so they display correctly in Outlook 2007?
    Thanks!

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Error when using MII with SAPUI5

    I get the following error - "Unable to get value of the property 'getElementsByTagName':object is null or undefined
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
    <meta name="description" content="UI5 table example with local JSON model" />
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
    <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
    <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'>
    <TITLE>SAPUI5 Projects Status - Applications</TITLE>
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"
        type="text/javascript" src="/sapui5/resources/sap-ui-core.js" data-sap-ui-theme="sap_goldreflection"
                      data-sap-ui-libs="sap.ui.core,sap.ui.commons,sap.ui.commons,sap.ui.table">
    </SCRIPT>
    <script>
    var xmlHttp = new XMLHttpRequest();
    var xmlDOM;
      xmlHttp.open("GET","ProjectsStatus/Transactions/ProjectsStatus", false);
      xmlHttp.send();
      xmlDOM = xmlHttp.responseXML.documentElement;
    var opElement = xmlDOM.getElementsByTagName("Row")[0].firstChild;    <<<<<< I get error here - 'getElementsByTagName':object is null or undefined
    var aData = eval(opElement.firstChild.data); 
      /* Define the table, with toolbar controls, update button */ 
    var oTable = new sap.ui.table.DataTable("table", {  
      editable : true, 
      visibleRowCount :5
    oTable.setSelectionMode(sap.ui.table.SelectionMode.Multi); 
    oTable.setToolbar(new sap.ui.commons.Toolbar({items: [ 
    new sap.ui.commons.Button({text: "Update Data", press: updateData}), 
    new sap.ui.commons.Label({text: "First Visible Row"}), 
    new sap.ui.commons.TextField({tooltip: "First Visible Row", width: "30px", change: function(oEvent) { oTable.setFirstVisibleRow(parseInt(oEvent.getParameter("newValue"))); }}),  
    new sap.ui.commons.Label({text: "Visible Row Count"}), 
    new sap.ui.commons.TextField({tooltip: "Visible Row Count", width: "30px", change: function(oEvent) { oTable.setVisibleRowCount(parseInt(oEvent.getParameter("newValue"))); }}) 
    /* Define the table columns */  
    var oControl = new sap.ui.commons.TextView({text:"{Applications}"}); // short binding notation
    oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Applications"}), template: oControl, sortProperty: "lastName", filterProperty: "lastName", width: "100px"}));
    oControl = new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"); // more verbose binding notationt
    oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "PercentComplete"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
    oControl = new sap.ui.commons.TextField().bindProperty("value", "Date_Due"); // more verbose binding notationt
    oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Date_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
    oControl = new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"); // more verbose binding notationt
    oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Testing_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
    /* Define the JSON model */ 
    var oModel = new sap.ui.model.json.JSONModel(); 
    oModel.setData({modelData: aData}); 
    /* Connect the data table to the JSON model */ 
    oTable.setModel(oModel); 
    oTable.bindRows("modelData");     
    oTable.placeAt("content"); 
    /* Function to save the updated data in the grid.*/
    function updateData() { 
    /* get the selected row context  and using the context read the required values from the selected row*/ 
    var selRowContext = oTable.getContextByIndex(oTable.getSelectedIndex());  
    var selectedId = oModel.getProperty("giid", selRowContext); 
    var selectedApp = oModel.getProperty("application", selRowContext); 
    var selectedDate = oModel.getProperty("datedue", selRowContext); 
    document.icmd_common.setQueryTemplate("ProjectsStatus/MDO_Transactions/Projects_MDO_Select"); 
    var commCommandQueryTemplate =  document.icmd_common.getQueryObject(); 
    commCommandQueryTemplate.setParam(1, selectedApplications); 
    commCommandQueryTemplate.setParam(2,selectedPercentComplete); 
    commCommandQueryTemplate.setParam(3, selectedDate_Due); 
    commCommandQueryTemplate.setParam(4, selectedTesting_Due); 
    document.icmd_common.executeCommand(); 
    /* Display a success message */ 
    sap.ui.commons.MessageBox.alert("Actual quantity updated successfully.");  } 
    </script>
    </head>
    <body class='sapUiBody'>
    <h><b>Applications</b></h><br><br>
    <table style="width:100%">
      <div id='content1'></div>
    </table> <br><br><br>
    </body>
    <body class='sapUiBody'>
    <h><b>Applications Changes</b></h><br><br>
    <table style="width:100%">
      <div id='content2'></div>
    </table><br><br><br>
    </body>
    <body class='sapUiBody'>
    <h><b>Infrastructure Changes</b></h><br><br>
    <table style="width:100%">
      <div id='content3'></div>
    </table><br><br><br>
    </body>
    </html>

    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
        <meta name="description" content="UI5 table example with local JSON model" />
        <meta http-equiv='X-UA-Compatible' content='IE=edge' />
        <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
        <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'>
        <TITLE>SAPUI5 Projects Status - Applications</TITLE>
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"
                 type="text/javascript" src="/sapui5/resources/sap-ui-core.js" data-sap-ui-theme="sap_goldreflection"
                            data-sap-ui-libs="sap.ui.core,sap.ui.commons,sap.ui.commons,sap.ui.table">
        </SCRIPT>
        <script>
            function PageLoad()
            GetMDoData();
        // create the DataTable control
            var oTable = new sap.ui.table.Table({editable:true});
            // define the Table columns
            var oControl = new sap.ui.commons.TextView({text:"{Applications}"}); // short binding notation
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Applications"}), template: oControl, sortProperty: "lastName", filterProperty: "lastName", width: "100px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "PercentComplete"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Date_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Date_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Testing_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            // create some local data
            var aData = [
                {Applications: "WVL BOD 9212", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/23/2014" },
                {Applications: "WVL BOD 9211", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/24/2014" },
                {Applications: "WVL BOD 3303", PercentComplete: "75", Date_Due: "6/16/2016", Testing_Due: "6/25/2014" },
                {Applications: "ETW BOD 3304", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/26/2014" },
                {Applications: "CLE BOD 1902", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/27/2014" },
                {Applications: "ISO HAZ", PercentComplete: "80", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
                {Applications: "ISO CWO", PercentComplete: "80", Date_Due: "6/01/2014", Testing_Due: "6/8/2014" },
                {Applications: "WVL 3 Stream ", PercentComplete: "60", Date_Due: "6/29/2014", Testing_Due: "" },
                {Applications: "ISO Integration", PercentComplete: "10", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
                {Applications: "WVL 7 QM Charts", PercentComplete: "15", Date_Due: "6/15/2014", Testing_Due: "" },
                {Applications: "SCB PCO", PercentComplete: "100", Date_Due: "?", Testing_Due: "" },
                {Applications: "SCB Top Chart ", PercentComplete: "10", Date_Due: "5/20/2014", Testing_Due: "" },
                {Applications: "Project Status", PercentComplete: "25", Date_Due: "7/25/2014", Testing_Due: "" },
                {Applications: "WVL LOI", PercentComplete: "100", Date_Due: "4/20/2014", Testing_Due: ""},
                {Applications: "DSS (HTML5)", PercentComplete: "100", Date_Due: "3/31/2013", Testing_Due: ""},
                {Applications: "ETW 3304 BOD Pilot",PercentComplete: "100", Date_Due: "11/16/2013", Testing_Due: ""},
                {Applications: "HTMl 5 Table Tools",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
                {Applications: "ISO JAX",PercentComplete: "100", Date_Due: "7/31/2013", Testing_Due: ""},
                {Applications: "ISO FEN",PercentComplete: "100", Date_Due: "1/10/2014", Testing_Due: ""},
                {Applications: "WVL QM Display",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
        /* =================================== */
        /* Obtain Json object filled with Data*                             <<<<<< This is where it shows "no data" in the table
        /* =================================== */
                var xmlHttp = new XMLHttpRequest();
                var xmlDom;
               xmlHttp.open( "GET", "/XMII/Runner?Transaction=ProjectsStatus/Transactions/ProjectsStatus&OutputParameter=JSONData&Content-Type=text/xml", false );
                xmlHttp.send();
               xmlDom= xmlHttp.responseXML;
      // xmlDom = xmlHttp.responseText;
            // create a JSONModel, fill in the data and bind the Table to this model
    //      var oModel = new sap.ui.model.json.JSONModel();
            var oModel = new sap.ui.model.xml.XMLModel();
            oModel.setData({modelData: xmlDom});
            oModel.setXML(xmlDom);
            oTable.setModel(oModel);
            oTable.bindRows("/element"); //where element is the node that represents that data which forms each row of the table
            // finally place the Table into the UI
            oTable.placeAt("content1");
        </script>
            <script>
        // create the DataTable control
            var oTable = new sap.ui.table.Table({editable:true});
            // define the Table columns
            var oControl = new sap.ui.commons.TextView({text:"{Applications}"}); // short binding notation
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Applications"}), template: oControl, sortProperty: "lastName", filterProperty: "lastName", width: "100px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "PercentComplete"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Date_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Date_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Testing_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            // create some local data
            var aData = [
                {Applications: "ISO IE11 BUG FIXES", PercentComplete: "0", Date_Due: "6/1/2014", Testing_Due: "" },
                {Applications: "ISO Fernley TimeOut", PercentComplete: "0", Date_Due: "6/1/2014", Testing_Due: "" },
                {Applications: "IE 11 Testing", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "IE 11 Testing_ISO Application", PercentComplete: "100", Date_Due: "5/16/2014", Testing_Due: "5/16/214" },
                {Applications: "IE 11 Testing_ISO DSS", PercentComplete: "100", Date_Due: "5/16/2014", Testing_Due: "5/16/214" },
                {Applications: "IE 11 Testing_BOD/EPAmericas", PercentComplete: "100", Date_Due: "5/16/2014", Testing_Due: "5/16/214" },
                {Applications: "IE 11 Testing_TOOLS", PercentComplete: "100", Date_Due: "5/16/2014", Testing_Due: "5/16/214" },
                {Applications: "IE 11 Testing_STATUS", PercentComplete: "100", Date_Due: "5/16/2014", Testing_Due: "5/16/214" },
            // create a JSONModel, fill in the data and bind the Table to this model
            var oModel = new sap.ui.model.json.JSONModel();
            oModel.setData({modelData: aData});
            oTable.setModel(oModel);
            oTable.bindRows("/modelData");
            // finally place the Table into the UI
            oTable.placeAt("content2");
        </script>
        <script>
        // create the DataTable control
            var oTable = new sap.ui.table.Table({editable:true});
            // define the Table columns
            var oControl = new sap.ui.commons.TextView({text:"{Applications}"}); // short binding notation
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Applications"}), template: oControl, sortProperty: "lastName", filterProperty: "lastName", width: "100px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "PercentComplete"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Date_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Date_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            oControl = new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"); // more verbose binding notationt
            oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Testing_Due"}), template: oControl, sortProperty: "name", filterProperty: "name", width: "80px"}));
            // create some local data
            var aData = [
                {Applications: "CIMX", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMX - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMX - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMX - Security", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMX - Integration", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMID", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMID - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMID - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                                        {Applications: "CIMID - Security", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMID - Integration", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMIP", PercentComplete: "99.5", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMIP - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMIP - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMIP - Security", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIMIP - Integration", PercentComplete: "98", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM1", PercentComplete: "99.5", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM1 - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM1 - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM1 - Security", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM1 - Integration", PercentComplete: "98", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM2", PercentComplete: "85", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM2 - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM2 - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM2 - Security", PercentComplete: "90", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM2 - Integration", PercentComplete: "50", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM3", PercentComplete: "85", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM3 - Connections", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM3 - NWDI", PercentComplete: "100", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM3 - Security", PercentComplete: "90", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM3 - Integration", PercentComplete: "50", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM4", PercentComplete: "85", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM4 - Connections", PercentComplete: "0", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM4 - NWDI", PercentComplete: "0", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM4 - Security", PercentComplete: "0", Date_Due: "", Testing_Due: "" },
                {Applications: "CIM4 - Integration", PercentComplete: "0", Date_Due: "", Testing_Due: "" },
            // create a JSONModel, fill in the data and bind the Table to this model
            var oModel = new sap.ui.model.json.JSONModel();
            oModel.setData({modelData: aData});
            oTable.setModel(oModel);
            oTable.bindRows("/modelData");
            // finally place the Table into the UI
            oTable.placeAt("content3");
        </script>
        </head>
        <body class='sapUiBody'>
    <h><b>Applications</b></h><br><br>
    <table style="width:100%">
            <div id='content1'></div>
    </table> <br><br><br>
        </body>
        <body class='sapUiBody'>
    <h><b>Applications Changes</b></h><br><br>
    <table style="width:100%">
            <div id='content2'></div>
    </table><br><br><br>
        </body>
        <body class='sapUiBody'>
    <h><b>Infrastructure Changes</b></h><br><br>
    <table style="width:100%">
            <div id='content3'></div>
    </table><br><br><br>
        </body>
    </html>

  • In iMovie: I open a project that has been finalized. source fragment is missing. I see a yellow triangle with exclamation mark. Why is that and how do I solve the problem?

    in iMovie:
    I open a project that has been finalized. source fragment is missing. I see a yellow triangle with exclamation mark. Why is that and how do I solve the problem?
    please help.
    J. Aalbers

    Shouldn't really be the MPE at fault here ... what is the codec of the footage/sequence/project?
    Second, can you create a new project in PrPro, then in the media browser, import that sequence from the other project?

  • Page Fragment and javascript - need help please

    Hi all..
    I have a page fragment (being used as a header) and am trying to get a text field in this page fragment to recieve a value from a javascript (that is embeded in the page fragment).. see the example below..
    --------------PageFragment1----------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://www.sun.com/web/ui">
    <f:subview id="Fragment1">
    <ui:textField binding="#{Fragment1.textField1}" id="textField1" style="position: absolute; left: 180px; top: 30px; width: 165px; height: 15px">
    <SCRIPT>
    var d = new Date();
    document.getElementById("Fragment1:textField1").value = d.toLocaleString();
    </SCRIPT>
    </ui:textField>
    </f:subview>
    </div>
    My problem is that doesn't matter what I do I cannot set the textField1 value from the script. For the actual application it does need to be a javascript - does anyone know how to do this on a page fragment as opposed to a plain page...
    The actual error I get is on the client side and it states that document.getElementById is null... :( someone please help.
    Thanks in advance.

    You probably need to prepend "form1:" to the id (or whatever your form's id is) One sure fire way to figure this out is choose view source in your browser and search for the target field.

  • "How do I defrag my mac?" "You don't need to, it does it itself" Fragmented Free Space: 99%. READ THIS NOW

    Just a heads up for my fellow Mac users.
    "How do I defrag my mac?"
    "You don't need to, ever. It does it automatically."
    "But it's running really slowly..."
    "Repair permissions or something. Defragging is not necessary on a mac."
    Techtool pro is now defragmenting my mac. Looks like the job's going to take about 4 hours. I thought I'd give everyone the truth about this while waiting (on a different computer obviously)
    The truth is, Apple's defragmenting system ***** BALLS. It has two massive, massive flaws which I feel people urgently need to be made aware of.
    #1: It only defragments files up to 20mb. If you're a movie producer, a songwriter, a photographer, or anything which involves working with many massive files, the built in defragmenting program WILL NOT HELP YOU IN THE SLIGHTEST.
    #2: It only defragments FILES. Free space is ignored, which eventually causes absolutely hrrendous problems.
    Let me give you an analogy here. Imagine your mac's hard drive is a bookcase with lots of books on it.
    File fragmentation is when it can't find a gap in the bookcase big enough for the entire book, so it breaks the book into pieces and srotes them in different gaps.
    Space fragmentation is when there are gaps all over the bookcase, instead of all the books being pushed to one side so there's a long gap elsewhere.
    Apple's built in defragmenting program will only fix the first problem - and even then, it will ignore any book bigger than 20 pages long, if you have bigger books which are broken up, you're screwed.
    Why is space fragmentation a problem? It's a problem because it directly LEADS TO file fragmentation. If there is a large block of free space all in one part of the disk, then an entire file can be written to it. However, if there is no single free block big enough for the file, it HAS NO CHOICE but to fragment it.
    So basically you might have 5 GB free and want to save a 2GB imovie project. That's cool. But what you may not realize is, the biggest single area of free space is only say 600MB. Others are around 300 and 400. Therefore the file MUST be fragmented into all these different areas, which wouldn't be necessary if all the free space was in one area of the disk.
    But apple's built in tools don't do anything about this, at least not in Tiger. PErhaps this has been fixed in later installations but I'm almost certain the same issues exist in leopard.
    Your only option is to buy a defragmenting program. I know this ***** but believe me, this IS something you NEED to do if your activity on your laptop involves disk space - intensive projects. I'm using TechTool Pro which has been recommended to me as hands down the best. It has a number of other functions as well, right now I'm only using the defragmenting tools but it has others for repairing damages disk sectors and other mantainence tools. There are other programs such as iDefrag out there as well.
    Why am I telling you this? I'm telling you because I experienced mind numbing frustration trying to get answers from the Apple community. Google it or ask the question yourself and you will most likely be whacked in the face with the intro to my post here - "You don't need to, it's not necessary, macs do it themselves, blah blah blah"
    Even worse, Apple's own webpage on the subject is nothing short of a disaster. It basically says "You PROBABLY don't need to defragment, unless you work with large files." That's it. You'd expect it to have an extra section saying "If you DO happen to work with large files, here's what you do" but no such section exists. It basically says "You don't need to defrag most of the time, and on the rare occasions when you do, well, too bad, you're screwed."
    I urge everyone to heed this or they will be tearing their hair out at how slow their mac has become and the fact that no one will offer any meaningful advice other than the standard, generic, "Repair permissions" - the Mac equivelant of "have you tried turning it off and on again".
    My disk is at 99% fragmented free space. NINTEY NINE PERCENT. In other words, although I have 25GB of free space, there was not a single contiguous block on the entire machine. I had almost 5,000 fragmented files as well, mostly imovies. Defragmenting got this down to about 300.
    The defrag job is taking more than 4 hours and will probably go on to take a lot longer than that. This machine has been slowly grinding to a halt over the last 3 years and now I know why.
    Please don't listen to anyone. Get yourself a defragmenting folder, and email Apple to tell them it's just not good enough to give their customers half assed answers and inadequate basic maintainence tools. Mac OS X must literally be the only operating system out there where something as basic as defragmenting is not only almost impossible to get answers on, but actually costs money to fix once you DO get answers.
    As customers, we should not accept this any longer. I intend to spread the above message far and wide.
    I LOVE Apple. I've always been "a mac" and I always will be. This in no way a mac bashing post or a windows endorsing one. I wouldn't switch back to windows if you gave me a million euro.
    But sometimes even the best developers can royally f*ck up. This is one of them.
    There is no readon people should be forced to put up with this crap. Absolutely no reason at all. I've had 3 months of crappy performance with no official explanation whatsoever.
    Apple if you're reading this: I love your products. I'm a loyal customer. People are more forgiving than you think, speak up, admit you dropped the ball, and DO something about it in your next updates to Lion and whichever versions of Leopard you are still actively maintaining.
    There's no shame in admitting when you're wrong. The shame is in hiding behind false promises and walls of silence.
    --Loyal customer, but feeling rather betrayed by all this.

    The old rule of thumb was to keep 10-12 GB free. Any lower than that and you will start to have trouble. I was very close to that for a long time and never had any complaints. Now, Lion "encourages" 20% free space (on my newer 250 GB drive) so I try to keep it with more than 50 GB free.
    Do you still have the original memory in that machine too? The metal plate you have to remove in the battery compartment also provides access to the RAM. Your machine will take 2 GB of RAM, possibly 3. You definitely want to max that out too.
    Regardless, you definitely need a new hard drive. When Apple switched to PC components, they had to take a quality hit. These 2.5" notebook hard drives are not very reliable. I'm surprised your hard drive hasn't died by now. I usually get a new hard drive with every major OS upgrade. A $ 50 investment every couple of years is no big deal.
    Unfortunately, you (and I) suffer from being an early adopter in 2006. Those 32-bit machines only accept 2 GB RAM (maybe 3) and are only 32-bit so they can't be upgraded to Lion. Because of this limitation, you won't see as dramatic an improvement as you would with a 2007 machine. If you run more than a couple of applications, your hard drive is always going to have to be doing some VM work. My 2006 machine has even lost its bluetooth. I gave it to my brother. My very similar 2007 Macbook is still running great.
    So, you must get a new hard drive because your old one is likely on death's door. If you don't have at least 2 GB - get it. If you can't afford a new machine, you might want to consider an SSD. That might help mitigate your RAM limitations. You can spend from $ 100 to $ 350 and get a dramatic speed improvement.

  • Problem with popup in a page fragment

    JDev 11.1.2.1
    I'm using the code described here to launch popup from a backing bean.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    How-to launch a popup programmatically from Java
    Starting Oracle JDeveloper 11.1.1.3, instance of af:popup can be opened using a Java method on the RichPopup object. The RichPopup class is the bean implementation of the af:popup ADF Faces tag. To launch a popup from a managed bean, you first need to get a hold on to a rich popup instance, which you can do by searching it on the UIViewRoot or by referencing a JSF component binding – which you create using the "binding" property of the af:popup component tag. To open the popup you then call
    RichPopup.PopupHints ph = new RichPopup.PopupHints(); popup.show(ph);
    It works fine except when the popup is inside a page fragment.
    In IE 7 I get the javascript error message
    "this.getDomNode().parentNode' is null or not an object"
    I have also tried the following code; that works fine except when the popup is inside a page fragment.
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = popup.getClientId(context);
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service =
    Service.getRenderKitService(facesContext,
    ExtendedRenderKitService.class);
    service.addScript(facesContext,
    "AdfPage.PAGE.findComponent('" + popupId + "').show();");
    Any idea how to launch a popup in a page fragment?

    Since this is working for others I'm working on a test case to send to oracle.
    I'll try to give more information.
    Main.jspx
    has a region for Child.jsff using a bounded task flow.
    <af:region value="#{bindings.Child.regionModel}" id="r1"/>
    Child.jsff has a popup bound to backing bean and a button that calls java to open the popup.
    Child.jsff has its own set of bindings. It is not inherting parent bindings.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:resource type="javascript"/>
    <af:group id="g100">
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1" binding="#{TestBacking.testPop}">
    </af:popup>
    <af:commandButton text="testPopup" id="cb1" actionListener="#{TestBacking.test}"/>
    TestBacking.java
    public void setTestPop(RichPopup testPop) {
    this.testPop = testPop;
    public RichPopup getTestPop() {
    return testPop;
         public void test(ActionEvent actionEvent) {
              RichPopup.PopupHints ph = new RichPopup.PopupHints();
              testPop.show(ph);
    Edited by: Phil on Nov 14, 2011 11:53 AM
    Edited by: Phil on Nov 14, 2011 11:58 AM

  • Problem with buttons in page fragment

    Hi,
    I'm developing a jsp-page, which has two page-fragments and one inline frame..
    I've a problem with one page-fragment. This one contains three buttons, for changing the language. When someone pushes the button, it seems that there is no action triggered...
    Here is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:j="http://www.sun.com/creator/jsfcl">
        <f:loadBundle basename="oltbwebapplication.bundle" var="bundle"/>
        <h:outputText binding="#{OltbStatus.mnuBanksys}" id="mnuBanksys" style="left: 96px; top: 0px; position: absolute" value="#{bundle.mnuLac}"/>
        <h:commandButton action="#{OltbStatus.choseNl}" actionListener="#{OltbStatus.btnNl_processAction}" binding="#{OltbStatus.btnNl}" id="btnNl"
            style="left: 432px; top: 0px; position: absolute" value="NL"/>
        <h:commandButton action="#{OltbStatus.choseFr}" binding="#{OltbStatus.btnFr}" id="btnFr" style="left: 480px; top: 0px; position: absolute" value="FR"/>
        <h:commandButton action="#{OltbStatus.choseEn}" binding="#{OltbStatus.btnEn}" id="btnEn" style="left: 528px; top: 0px; position: absolute" value="EN"/>
    </div>Thx in advance
    Ann Carpentier

    Hi Ann,
    I was working with dropdowns in pagefragments consequent to your query. I noticed that there is a problem with the dropdowns too. This especially happens if you have the same components in both the page fragments. For example buttons in both the page fragments or dropdowns in both page fragments etc.
    I have filed a change request on your behalf for the same.
    We thank you for bringing this to our notice.
    Thanks and
    Cheers :-)

  • MacBook Pro "15 2011 model has started crashing. Symptoms: screen distortion/images fragmenting/blue screening. Help!

    Hi everyone!
    I currently own a Macbook Pro '15, 4gb that was purchased in early 2011 running Snow Leopard (my version is currently 10.6.8). For under the past 3 year it has been heavily reliable, and I have not ran in to any software, or hardware issues. However, over the past 3 or so months I have been having issues.
    During May 2014 through to present date I have started experiencing screen glitches. It first began with image distortion, causing the whole system to crash, which would mean I would have to turn it off and reboot the system. Later this turned into a series of screen blurring (consisting of images fragmenting all over the place) and then finally followed with 2 weeks of blue screening on start up, meaning that I could not get into my log user unless I entered safe mode. I should also mention that I have no third party issues.
    After doing some considerable research on apple forums I did what had to be done. In the last two weeks I have wiped my MacBook Pro, re-installed the OS and considered that it was now a process of elimination. For the first week the software seemed to been running smoothly, I wasn't having any failings until I hit the second week – of course, the glitches began all over again and I faced two in the space of a half hour (first my screen split into two during listening to music on spotify with no other applications open in the background, shortly after rebooting I faced a much worse case of my Mac completely dark blue screening with white lines.)
    Now, once again, it only works 'well' on safe mode. I did a check in both modes. Left my computer idle with no programmes running for a half hour and the same thing happened with the screen, went black for a moment, moved the mouse and I received a fragmented screen again. I'm completely fed up at this point, considering I have the bare minimal amount on my Mac, I honestly can't fathom how it's come to this.
    Now considering my model is not even three years old at this stage you can fully understand my frustration since I heavily rely on my laptop for educational purposes, which is making it very difficult to be able to concentrate on any of my studies. If anything, it is causing a great deal of stress. With my product being out of warranty I don't have an obscene amount of money to pay for a new one. When I already paid roughly £1,699 for the product in the first place.
    The worst thing is, I've even done a EtreCheck, this was yesterday (the most recent/last time it was in use)
    Hardware Information:
      MacBook Pro (15-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,2
      1 2 GHz Intel Core i7 CPU: 4 cores
      4 GB RAM
    Video Information:
      AMD Radeon HD 6490M - VRAM: 256 MB
      Color LCD 1440 x 900
      Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
      Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:17:11
    Disk Information:
      Hitachi HTS545050B9A302 disk0 : (465.76 GB)
      - (disk0s1) <not mounted>: 200 MB
      Macintosh HD (disk0s2) / [Startup]: 465.44 GB (152.43 GB free)
      MATSHITADVD-R   UJ-898 
    USB Information:
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
      Apple, Inc. MacBook Pro
    Launch Daemons:
      [not loaded] com.adobe.fpsaud.plist Support
      [not loaded] com.adobe.SwitchBoard.plist Support
      [not loaded] com.microsoft.office.licensing.helper.plist Support
      [not loaded] org.eyebeam.SelfControl.plist Support
    Launch Agents:
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [not loaded] com.hp.messagecenter.launcher.plist Support
    User Launch Agents:
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [not loaded] com.google.keystone.agent.plist Support
      [not loaded] com.spotify.webhelper.plist Support
    User Login Items:
      GrowlHelperApp
      iTunesHelper
    Internet Plug-ins:
      JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
      FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.6.6
      Flash Player: Version: 14.0.0.145 - SDK 10.6 Support
      SharePointBrowserPlugin: Version: 14.1.0 Support
      OnLiveGameClientDetector: Version: OnLiveGameClientDetector 1.0.0 Support
      Silverlight: Version: 5.0.61118.0 - SDK 10.6 Support
      iPhotoPhotocast: Version: 7.0 - SDK 10.7
    Safari Extensions:
      Missing e: Version: 2.14.3
    iTunes Plug-ins:
      Quartz Composer Visualizer: Version: 1.2
    User Internet Plug-ins:
      Picasa: Version: 1.0 - SDK 10.4 Support
    3rd Party Preference Panes:
      Flash Player  Support
      Growl  Support
    Top Processes by CPU:
          6% WindowServer
          1% fontd
          0% soffice
          0% coreservicesd
          0% usbmuxd
    Top Processes by Memory:
      344 MB WebProcess
      143 MB Safari
      135 MB soffice
      53 MB iCal
      45 MB WindowServer
    Virtual Memory Information:
      1001 MB Free RAM
      584 MB Active RAM
      381 MB Inactive RAM
      2.07 GB Wired RAM
      239 MB Page-ins
      0 B Page-outs
    I've had a look to book an appointment at the Genius Bar, but would you believe it, there are no available appointments at my local store! I really would appreciate if anyone could offer any assistance in how to lodge a formal complaint? My days rely on being able to do my work, so whilst I have tried to book a reservation I am at a loss, and pretty much screwed having a Mac that I clearly cannot use functionally.
    If anyone can provide any help, I'd be absolutely most grateful!

    I have done what you suggested. However, I have to disagree with you about the 'third party' comment. Although those minor issues were on there which I picked up on shortly afterwards, they were easily removed. It hasn't CHANGED the symptoms I described about my mac. Both items are removed (growl only tends to make your mac 'lag' and that's not the problem I'm having)
    I am still having all the above issues, regardless of my mac being fully minus third party items. This mac hasn't had any heavy use, or had many applications installed on it ect, there is really no reason for it to be failing. I'd understand if it was old, but it's literally only just passed being 3 years old.
    If you can provide any more help that would be appreciated, thank you!

  • SAPUI5 Application is not working in EP 7.01

    Hi All,
    I have SAPUI5 application developed and hosted in SAP ABAP Web Application server ( GW Server), this app is already integrated with SAP Enterprise Portal 7.01 ( SP15), It is working fine without any issue in Chrome Browser.
    But NOT in IE11 from only Portal.
    Note: the same application is working fine in IE11 by using direct app link from ABAP WAS, the problem is only when the UI5 application is called from Portal iview ( SAPUI5 iview) in IE11.
    Please suggest what could be the reason behind this. is there any other way to run Ui5 application from Portal 7.01 in IE11.
    Thanks
    Sathya

    Thanks Santhosh.
    I am going through the First help link, I have already set the Property(Standard mode - while Launching Portal in new window) from Portal iview, and "Handover Portal stylesheet" to 'NO'
    I hv already gone the remaining Forum threads and Notes as well, but i did not get exact any other help to fix this issue.
    I am getting different Error now - Unable to get property 'addDelegate' of undefined or null reference
    Pls. let me know if you can help me.
    Thanks
    Sathya

  • SAPUI5 in SAP MII 14.0 - error on running index.html

    Dear All,
    I am working on SAP MII 14.0.
    I am trying to run a sample example on SAPUI5 implementation in SAP MII 14.0 taken from link: http://scn.sap.com/community/manufacturing/mii/blog/2013/03/21/making-engaging-ui-on-sap-mii-with-sapui5
    But I got an Error when I tested index.html page !!
    Problem Description:
    My index.html code is :
    <!DOCTYPE HTML>  
    <html><head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <script src="/sapui5/resources/sap-ui-core.js" 
                          id="sap-ui-bootstrap“  type="text/javascript" 
                          data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.viz, sap.ui.ux3" 
                          data-sap-ui-theme="sap_goldreflection" > 
    </script>
      </head>  
          <body class="sapUiBody" role="application">  
          <div id='plantkpiDiv'></div>
    <script>  
      alert("1"); // this comes
      //register the application  
    jQuery.sap.registerModulePath("kpidashboard", "/XMII/CM/547555/SAPUI5/kpidashboard/webcontent"); 
      alert("2");   // this comes
    //instantiate the view
      var plantView = sap.ui.view({id:"idPlantView", viewName:"kpidashboard.PlantView", type:sap.ui.core.mvc.ViewType.JS});  
       //add the view to the div 
    alert("3"); // this does not come
      plantView.placeAt("plantkpiDiv");    
       </script> 
           </body>
    </html>  
    Folder Structure in Workbench is as follows:  /XMII/CM/547555/SAPUI5/kpidashboard/webcontent
    Inside webcontent I have created three files i.e. PlantView.controller.js , PlantView.view.js and index.html.
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
    Timestamp: Tue, 11 Mar 2014 10:32:30 UTC
    Message: Unterminated string constant
    Line: 13
    Char: 260
    Code: 0
    URI: http://inpuneme01:50200/XMII/CM/547555/SAPUI5/kpidashboard/webcontent/index.html?JSESSIONID=G59R-clhqrId7QDW_a_VBOSXQqyvRAEC2ZsB_SAPqh1fgxWruoAQAKceTGLKZ-6J
    Message: failed to load 'kpidashboard.PlantView.view' from /XMII/CM/547555/SAPUI5/kpidashboard/webcontent/PlantView.view.js: SyntaxError: Unterminated string constant
    Line: 41
    Char: 11332
    Code: 0
    URI: http://inpuneme01:50200/sapui5/resources/sap-ui-core.js
    Thanks and Regards,
    Anshul Arora

    Hi Rohit,
    I checked and found that PCo Mgmt service was not started. SO I started it and now I am able to get the XML when I open PCO Mgmt URL in the browser of PCo Server
    But,
    When my agent is running, I don't get Browse button enabled in "Subscription Items" tab.
    When I stop the agent instance, I can see Browse button enabled in "Subscription Items" tab. But when I click on browse, it gives me following error:
    Not sure what's wrong?
    Soham

  • JDeveloper Error while editing jspx with fragments and regions

    Hi,
    I have a jspx page which has multiple regions included with fragments. Everytime i edit JDev is throwing me error. The following is stacktrace
    Thanks in Advance
    Sri
    oracle.adfdtinternal.view.rich.metadata.ADFFacesMetadataMethods:Dec 29, 2011 9:44:19 AM oracle.adfdtinternal.view.rich.metadata.ADFFacesMetadataMethods getShortDescription
    WARNING: Can't find resource for bundle oracle.adfdtinternal.view.rich.resource.AFUTaglibBundle, key REGION__ID
    Started CommandProcessor transaction: Set ID attribute on thread AWT-EventQueue-0 at batch level 1
    Invoking command: Change Attribute
    Started CommandProcessor transaction: Rename ConferenceCompliance.getR5 on thread AWT-EventQueue-0 at batch level 2
    Invoking command: Rename Method
    Started CommandProcessor transaction: Auto Save Actions on thread AWT-EventQueue-0 at batch level 3
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 2
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 1
    Started CommandProcessor transaction: Rename ConferenceCompliance.setR5 on thread AWT-EventQueue-0 at batch level 2
    Invoking command: Rename Method
    Started CommandProcessor transaction: Auto Save Actions on thread AWT-EventQueue-0 at batch level 3
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 2
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 1
    Started CommandProcessor transaction: Rename ConferenceCompliance.r5 on thread AWT-EventQueue-0 at batch level 2
    Invoking command: Rename Field
    Started CommandProcessor transaction: Auto Save Actions on thread AWT-EventQueue-0 at batch level 3
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 2
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 1
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 0
    Performing action Find...[ from oracle.ide.ceditor.CodeEditor ]
    Invoking command: Paste[ from oracle.ide.ceditor.CodeEditor ]
    Invoking command: Paste[ from oracle.ide.ceditor.CodeEditor ]
    Performing action Save[ from oracle.ide.ceditor.CodeEditor ]
    Invoking command: [ from oracle.ide.ceditor.CodeEditor ]
    Started CommandProcessor transaction: Auto Save Actions on thread AWT-EventQueue-0 at batch level 1
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 0
    Performing action Save All[ from oracle.ide.ceditor.CodeEditor ]
    Invoking command: [ from oracle.ide.ceditor.CodeEditor ]
    Started CommandProcessor transaction: Auto Save Actions on thread AWT-EventQueue-0 at batch level 1
    Finished CommandProcessor transaction on thread AWT-EventQueue-0 at batch level 0
    Uncaught exception
    java.lang.RuntimeException: A current ADFContext is not available.
    o.adf.share.ADFContext.findCurrent(ADFContext.java:960)
    o.adf.controller.internal.security.AuthorizationEnforcer.authorizationRequired(AuthorizationEnforcer.java:502)
    o.adf.controller.internal.security.AuthorizationEnforcer.checkPermission(AuthorizationEnforcer.java:72)
    o.adf.controller.internal.security.AuthorizationEnforcer.checkRead(AuthorizationEnforcer.java:411)
    o.adf.controller.internal.metadata.MetadataService.getTaskFlowDefinition(MetadataService.java:211)
    o.adf.controller.internal.dtrt.metadata.MetadataUtils.findTaskFlowDefinition(MetadataUtils.java:30)
    o.adf.controller.internal.dtrt.binding.DTTaskFlowBinding.findPageNames(DTTaskFlowBinding.java:676)
    o.adf.controller.internal.dtrt.binding.DTTaskFlowBinding.findPageDefinitions(DTTaskFlowBinding.java:656)
    o.adf.controller.internal.dtrt.binding.DTTaskFlowBinding.getAllEventConsumers(DTTaskFlowBinding.java:770)
    o.adfdt.model.objects.PageDefinition.getAllEventConsumers(PageDefinition.java:2355)
    o.adfdtinternal.model.ide.contextualevents.panels.EventConsumerPanel.initExecConsumerPathSet(EventConsumerPanel.java:398)
    o.adfdtinternal.model.ide.contextualevents.panels.EventConsumerPanel.init(EventConsumerPanel.java:478)
    o.adfdtinternal.model.ide.contextualevents.panels.EventConsumerPanel.<init>(EventConsumerPanel.java:199)
    o.adfdtinternal.model.ide.contextualevents.panels.ConsumerPanelCustomGUIComponent.getGUIPanel(ConsumerPanelCustomGUIComponent.java:67)
    o.i.inspector.DisplayGroupPanel.componentRendered(DisplayGroupPanel.java:334)
    o.i.inspector.DisplayGroupPanel.render(DisplayGroupPanel.java:286)
    o.i.inspector.DisplayGroupPanel.render(DisplayGroupPanel.java:111)
    o.i.inspector.DisplayGroupPanel.<init>(DisplayGroupPanel.java:72)
    o.i.inspector.VerticalDisplayGroupPanel.<init>(VerticalDisplayGroupPanel.java:28)
    o.i.inspector.DisplayGroupPanelFactory.createDisplayGroupPanel(DisplayGroupPanelFactory.java:20)
    o.i.inspector.PropertyCategoryLayoutPanel.renderDisplayGroup(PropertyCategoryLayoutPanel.java:136)
    o.i.inspector.PropertyCategoryLayoutPanel.displayGroupRendered(PropertyCategoryLayoutPanel.java:125)
    o.i.inspector.PropertyCategoryLayoutPanel.populateRows(PropertyCategoryLayoutPanel.java:92)
    o.i.inspector.PropertyCategoryLayoutPanel.render(PropertyCategoryLayoutPanel.java:77)
    o.i.inspector.VerticalCategoryCollection.expandIfNecessary(VerticalCategoryCollection.java:145)
    o.i.inspector.VerticalCategoryCollection.addCategory(VerticalCategoryCollection.java:125)
    o.i.inspector.PropertiesLayoutRenderer.touchCategoriesWithoutRendering(PropertiesLayoutRenderer.java:75)
    o.i.inspector.PropertiesLayoutRenderer.render(PropertiesLayoutRenderer.java:38)
    o.i.inspector.PropertyInspector.renderPropertiesFrom(PropertyInspector.java:499)
    o.i.inspector.PropertyInspector.render(PropertyInspector.java:386)
    o.i.inspector.PropertyInspector.updatePropertyModel(PropertyInspector.java:366)
    o.i.inspector.PropertyInspector.setPropertyModel(PropertyInspector.java:331)
    o.ii.inspector.InspectorWindowImpl.setModelInNewPropertyInspector(InspectorWindowImpl.java:1336)
    o.ii.inspector.InspectorWindowImpl.refresh(InspectorWindowImpl.java:1195)
    o.ii.inspector.InspectorWindowImpl$1.actionPerformed(InspectorWindowImpl.java:252)
    jx.s.Timer.fireActionPerformed(Timer.java:271)
    jx.s.Timer$DoPostEvent.run(Timer.java:201)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEvent(EventQueue.java:597)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)

    Seems like a good test case to use when filing an SR at https://support.oracle.com

  • Fragment works standalone but not when inserted in a form

    I have a search fragment. When I open the fragment and click "Preview" in designer. I click on the "search" button, and it executes a web service that retrieves info from a database and displays it into a table. Everything is working beautifully. The fragment is set to Interactive, and Dynamic XML form.
    I now create a new form and I insert this search fragment into the form. This form is also set to Interactive, and Dynamic XML form. Now, when I click on the "search" button, all of the javascript behind the button executes (i.e. my messageBox debugging messages) but the web service that retrieves the database info doesn't seem to execute.
    What am I missing? I'm perplexed as to why the fragment works stand-alone but doesn't want to work when incorporated into a parent form.
    Any ideas?

    Nope, no errors in the java debugger console.
    The fragment is an xdp (Adobe XML Form) - with form properties "Interactive Form" and "Dynamic XML Form"
    The "parent" form that contains the fragment is an xdp with the exact same form properties as the fragment.
    Here's what's in the debugger console, just general info:
    Acrobat JavaScript Debugger Functions Version 7.0
    Acrobat Database Connectivity Built-in Functions Version 8.0
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    Anything else I can check?
    --Elaine

Maybe you are looking for