PageDef.xml executables

What actually iterator object in executable node in page definition file really do?

Tracks the current row in a data collection. The ADF Model iterator binding simplifies tracking the selected row in a robust way, using row keys instead of relying on positional indicators that can change when data is refreshed and positions have changed. In concert with the ADF Faces table and multiselection components, it’s easy to work with single or
multiple selections, and build screens that navigate master/detail information.

Similar Messages

  • How to supply String[] Parameter to actionMethod defined in PageDef.xml

    I use JDev EA
    in AMImpl ,the method like,
    public void test(String arg1,String[] arg2) {
    System.out.print("ok");
    In PageDef.xml ,the actionMethod like ,
    <methodAction id="test"
    InstanceName="BaseManageAppModuleDataControl.dataProvider"
    DataControl="BaseManageAppModuleDataControl"
    MethodName="test" RequiresUpdateModel="true"
    Action="999">
    <NamedData NDName="arg1" NDType="java.lang.String"/>
    <NamedData NDName="arg2" NDType="java.lang.String[]"/>
    </methodAction>
    When i put the parameters to the actionMethod like the following,
    String[] attrNameArr = {"FabricId","CustomerId","CompanyId","Weight","WeightUnit","YarnLang","YarnLat"};
    JUCtrlActionBinding action = (JUCtrlActionBinding)panelBinding.findControlBinding("test");
    ArrayList arg1 = new ArrayList();
    arg1.add("BaseTabCustomerFabricView1");
    arg1.add(attrNameArr); action.setParams(arg1);
    action.doIt();
    it throws Exception .
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.lang.String[] with value:[Ljava.lang.String;@7a2
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:535)
         at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:320)
         at oracle.adf.model.binding.DCMethodParameterDef.resolveParameterValue(DCMethodParameterDef.java:180)
         at oracle.adf.model.binding.DCMethodParameter.resolveParameterValue(DCMethodParameter.java:62)
         at oracle.adf.model.binding.DCInvokeMethod.fetchAndSaveParameterValues(DCInvokeMethod.java:257)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:174)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1250)
         at com.kunteng.fabric.jclientview.base.CustomerFabricSearchDialog.btnSearch_actionPerformed(CustomerFabricSearchDialog.java:547)
         at com.kunteng.fabric.jclientview.base.CustomerFabricSearchDialog.mav$btnSearch_actionPerformed(CustomerFabricSearchDialog.java)
         at com.kunteng.fabric.jclientview.base.CustomerFabricSearchDialog$2.actionPerformed(CustomerFabricSearchDialog.java:195)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at com.kunteng.fabric.jclientview.base.CustomerFabricTableViewFrame.showQueryDlg(CustomerFabricTableViewFrame.java:117)
         at com.kunteng.fabric.jclientview.MainForm.showQueryDlg(MainForm.java:652)
         at com.kunteng.fabric.jclientview.MyJUNavigationBar.doAction(MyJUNavigationBar.java:521)
         at com.kunteng.fabric.jclientview.MyJUNavigationBar.actionPerformed(MyJUNavigationBar.java:449)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ## Detail 0 ##
    java.lang.ClassNotFoundException: java/lang/String[]
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:159)
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:517)
         at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:320)
         at oracle.adf.model.binding.DCMethodParameterDef.resolveParameterValue(DCMethodParameterDef.java:180)
         at oracle.adf.model.binding.DCMethodParameter.resolveParameterValue(DCMethodParameter.java:62)
         at oracle.adf.model.forumID=83, I use JDev EA
    Message was edited by:
    Guo Qinghua

    Repost :)
    I have solved this problem instead of String[] with ArrayList.
    not a good way ,but works .
    thanks

  • How to add other variableIterator in PageDef.xml

    firstly I added the second variableIterator into PageDef.xml file, then i made use of
    DCIteratorBinding iter = panelBinding.findIteratorBinding("secondVariableIter");
    to get it,but iter is null
    thanks

    Try looking here.

  • PageDef.xml is not found when trying to enable MDS

    Our application uses JPA in the back end and fusion in the front end. we donot use databindings for integrating the backend object to the UI. I am trying to enable the mds by following the instructions in http://www.oracle.com/technetwork/developer-tools/jdev/metadataservices-fmw-11gr1-130345.pdf.  Initially using filebasedmetadata service to check if MDS is working in our enviroment. I have configured mds to save table and columns when i change the value for the user it stores the value for that jspx file in chartingBreakdownL1.jspx.xml but when  it is trying to access the changed setting when i log out and log back in it is not able to restore the changed value. in the logs i get this
    59db3<rootKey=StoredKey</sourceBreakdown/chartingBreakdownL1PageDef.xml>,value=null> - unlocked  count=0
    <null> <null> PDCache.getInternal() Cache hit : (/sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml=>NOT_FOUND)
    <null> <null> PDCache.getInternal() Cache hit : (/sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml=>NOT_FOUND)
    </oracle/mds/internal/persistence/file/FileMetadataStoreConnection/> <getDocument> ENTRY /sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    - moRef     = /sourceBreakdown/chartingBreakdownL1PageDef.xml
    - typeQName = {http://xmlns.oracle.com/adfm/uimodel}pageDefinition
    - priorKey  = null
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       base read only = true
    <null> <null> MOKey.create() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       create MOKey
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    - moRef     = /sourceBreakdown/chartingBreakdownL1PageDef.xml
    - typeQName = {http://xmlns.oracle.com/adfm/uimodel}pageDefinition
    - priorKey  = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       base read only from prior key = false
    <null> <null> MOKey.create() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       create MOKey
    Can someone help me in figuring out this issue.
    Bhoopathy

    1) Yes I am using file based MDS.
    2) the changed value is stored in the respective jspx file (chartingBreakdownL1.jspx.xml) when i log out and log back in the values are not restored from this file.
    3) In the log it is looking for the pagedef file  (chartingBreakdownL1PageDef.xml.xml) in the mds repository which is not stored as part of the mds file system. i have this file in the code base and using it for compiling but it is not getting saved to mds file system. It is trying to access this file and it is not able to read the values that is why it is saying "base read only = true". If you need this file is there a way to get this in the mds file repository.
    I am running this locally as a standalone server. i dont have enterpise manager installed. i have enabled the logging in "oracle diagnostics logging configuration" . for oracle.mds i have to set to finest that is why i am able to get the logs.
    thank you for the quick response.
    Bhoopathy

  • Wrong PageDef.xml during ReturnListener execution? Bug?

    Hi Everyone,
    JDeveloper 10.1.3.3.0
    We're facing a strange issue, that we're not sure whether this is by design or whether this is a bug...
    We have a commandLink with a returnListener on page yyy.jspx that calls another page via a dialog:xxx (useWindow=false).
    On page xxx.jspx we have a af:returnActionListener on a command button that is set to return a value.
    In the request backing bean on the returnListener from the commandLink on yyy.jspx, we add a call getBindings to get the BindingContainer to do some OperationBinding stuff. According to the debug on getBindings, it shows it is referring to xxxPageDef.xml instead of the yyyPageDef.xml, even though the returnListener is on a component in yyyPageDef.xml.
    However, if we set the bindings value of an <attributeValues>, it happens on the perspective of yyyPageDef.xml
    We'd like to know whether this is the proper behaviour before we go ahead and code the action bindings to the yyyPageDef while ignoring xxxPageDef. Otherwise, we'll need to put our calls in both xxx and yyy in case this gets changed in the future.
    Is behaviour supposed to be different depending on whether the commandLink useWindow = true or false?
    We believe that this Is this similar to the following thread.
    Re: ADF BC : problem with binding when returning from dialog

    Hi Frank,
    I've checked further, and it is only a problem with <methodActions> when you are returning from a dialog that has useWindow = false.
    yyy.jspx with yyyPageDef.xml calls xxx.jspx via a dialog with useWindow=false.
    xxx.jspx returns using returnActionListener component.
    yyy.jspx in the returnListener backing_bean code:
    When you reference <attributeValues> you get them based on definitions in yyyPageDef.xml
    When you reference <methodActions> you get them based on definitions in xxxPageDef.xml
    We expected the <methodActions> to be calling methods defined in the yyyPageDef.xml, because the returnListener is on a component on yyy.jspx.
    I think this is a bug, and is easily reproduced.

  • What is  the default value of iterator's rangesize in pageDef.xml

    there are two jspx file,one named by browsePage,another editPage.they use the same VO. and i can go into editPage from browsePage by commandButton or commandLink .
    the rangesize of the iterator in browsePage is 10, like this
    <iterator id="SysTabColorView1Iterator" RangeSize="10"
    Binds="SysTabColorView1"
    DataControl="SysManageAppModuleDataControl"/>
    usually in editPage, it like the following
    <iterator id="SysTabColorView1Iterator" RangeSize="10"
    Binds="SysTabColorView1"
    DataControl="SysManageAppModuleDataControl"/>
    now i have a question ,when i dont set the value of RangeSize in editPage, what is the default value of this iterator.
    other business, when i set the value to 1 , it will occur the famous error ,
    JBO-

    Hi,
    if you are browsing to the edit page from the browse page it doesn't matter what the range size is. If you've navigated though the ranges on the browse page then you will be in the correct range set and ranging won't be a problem.
    Brenden

  • Execute command button after user tabs out of inputtext

    All,
    I have a command button which is used to call a webservice. This works fine.
    I also have an Inputtext field. What I want is to execute the action when the user tabs out of the inputtext.
    Does any one have the solution for me ? I've not yet been able to achieve this for instance in a backing bean.
    My code:
    <af:inputText
    value="#{bindings.pEan.inputValue}"
    label="Ean-code"
    required="#{bindings.pEan.mandatory}"
    columns="#{bindings.pEan.displayWidth}"
    autoSubmit="true">
    <af:validator binding="#{bindings.pEan.validator}"/>
    </af:inputText>
    <af:commandButton id="BepaalVoorraad"
    actionListener="#{bindings.GetStockQuote.execute}"
    text="Bepaal Voorraad"
    disabled="#{!bindings.GetStockQuote.enabled}"/>
    The binding from my pageDef.xml:
    <methodAction id="GetStockQuote" MethodName="GetStockQuote"
    RequiresUpdateModel="true" Action="999" DataControl="GetStock"
    InstanceName="GetStock" ReturnName="GetStock.methodResults.GetStock_GetStockQuote_result">
    <NamedData NDName="pEan" NDType="java.math.BigDecimal"
    NDValue="${bindings.GetStockQuote_pEan}"/>
    </methodAction>

    Set the inputText to have autosubmit on, and add a valueChangeListener to it.
    <af:inputText label="Label 1"
    binding="#{backing_untitled1.inputText1}"
    id="inputText1"
    valueChangeListener="#{backing_untitled1.valchange}"
    autoSubmit="true"/>
    In the method of the valueChangeListener call the method that is associated with the button.

  • ADFBC accessing pageDef elements

    Hi, all. Using JDeveloper 10.1.3.3. ADFBC.
    I'm trying to access page parameters
    <executables>
    <page id="PanelTestViewPageDef"
              path="com.test.viewswing.other.pageDefs.PanelTestViewPageDef"/>
    </executables>.
    I can get all executables this way:
    panelBinding.getExecutableBindings(), but I'm
    trying to get only pages and their path parameters for all pages on my frame.
    Can anyone help me?
    Is there any tutorial on this?

    There was a need to recreate frames, that is, release active one and reinstantiate. I managed to do this by releasing all bindings of all panels in that frame, and recreate them when needed.
    I've created generic methods for releasing and creating bindings, but when frame is reinstantiated, I have to create them manually one by one:
            AMethods.createBinding(panelBinding, AConstants.VIEW_APP1_PAGEDEFS_PATH, "PanelTestView1PageDef");
            AMethods.createBinding(panelBinding, AConstants.VIEW_APP1_PAGEDEFS_PATH, "PanelTestSumPageDef");
    I have to call this method as many times as there are page tags in pageDef file.
    I know that panelBinding has somewhere data about pageDef's page path, but I still cannot find it. I would really appreciate if you could show me link to some page where there is explanation how can you reach each pageDef xml property.

  • Error in Java Mapping for Single XML conversion

    We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Synchronous Scenario).
    (ECC -> PI -> Legacy CRM)
    Client has provided a WSDL with Single Node of XML and asking us to pass the whole structure as an single string along with all the nodes of data structure. To perform mapping we are using Java Mapping.
    Message which we are getting after Java Mapping:
    Input
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject">
       <ITEM>
          <sSlsOrderCode>1001</sSlsOrderCode>
          <sDlrCode>A250</sDlrCode>
          <sRejectReason>Z2</sRejectReason>
          <nCircleCode>2</nCircleCode>
       </ITEM>
    </ns0:MT_SOReject_Sender>
    Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"&gt;&lt;ITEM&gt;&lt;sSlsOrderCode&gt;1001&lt;/sSlsOrderCode&gt;&lt;sDlrCode&gt;A250&lt;/sDlrCode&gt;&lt;sRejectReason&gt;Insufficient Stock Balance&lt;/sRejectReason&gt;&lt;nCircleCode&gt;2&lt;/nCircleCode&gt;&lt;/ITEM&gt;&lt;/ns0:MT_SOReject_Sender&gt;</stringinp></MT_Trg>
    Is ther any way from which we can convert &gt; as u201C>u201D and &lt; as u201C<u201D.  Required result is as follows
    Required Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp><?xml version="1.0" encoding="UTF-8"?><ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"><ITEM><sSlsOrderCode>1001</sSlsOrderCode><sDlrCode>A250</sDlrCode><sRejectReason>Insufficient Stock Balance</sRejectReason><nCircleCode>2</nCircleCode></ITEM></ns0:MT_SOReject_Sender></stringinp></MT_Trg>
    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
          * @author user
          * To change the template for this generated type comment go to
          * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
                    public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 //************************Code To Generate The XML Parsing Objects*****************************//    
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
               public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

  • Executing a SQL Command in my bean class

    Hello everyone,
    I'm using JDeveloper 12.1.2.0.0.
    I have an interest in executing a query in my bean method. I've done some research and i still got a code but it can't find the method that the method requires so i tried to added the query in my AppModule and i've added my method as a data control but how can i access it and modify it in my bean method?
    The page with the code that doesn't find the method: http://jjzheng.blogspot.pt/2010/11/run-single-query-in-application-module.html
    Which gives me: "Method 'getDBTransaction' not found"
    The page that creates my method as a data control: http://amit-adf-work.blogspot.pt/2013/09/how-to-execute-sql-using-adf-application.html
    Is any of this the right way? How can i execute a SQL Command in my bean class?
    Regards,
    Frederico.

    This is the code I use
    // GET A METHOD FROM PAGEDEF AND EXECUTE IT
    // get the binding containe
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an Action or MethodAction
    OperationBinding method = bindings.getOperationBinding("YourMethodAction");
    // if there are parameters to set...
    Map paramsMap = method.getParamsMap();
    paramsMap.put("param","value")  ;    
    // execute the method
    method.execute();
    List errors = method.getErrors();
    if (!errors.isEmpty())
       // handle errors here errors is a list of exceptions!
    // no error resume normal work
    Timo

  • XDK and XML Schema

    Hello All!
    I am using standalone Oracle XDK for C 9.2.0.2.0 on Windows NT 4.0. The fragment of my XML schema is shown below:
    <xsd:simpleType name="Text30">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="30"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="CCode">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{5}|\d{8}|\d{12}"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="ReferenceNo">
    <xsd:simpleContent>
    <xsd:extension base="Text30">
    <xsd:attribute name="cCode" type="CCode" use="required"/>
    <xsd:attribute name="docDate" type="xsd:date" use="required"/>
    <xsd:attribute name="TIRPageNo" type="TIRGreenPageNo" use="optional"/>
    <xsd:attributeGroup ref="DeclarType"/>
    </xsd:extension>
    </xsd:simpleContent>
    </xsd:complexType>
    And the part of the instance document looks like:
    <DocNo cCode="10501000 ... />, where "DocNo" is of type "ReferenceNo".
    Then validating my XML document I am always getting error that my "cCode" attribute doesn't match
    pattern. After removing <xsd:pattern value="\d{5}|\d{8}|\d{12}"/> from schema all seems to be OK.
    Why? Where is the error? "\d{5}|\d{8}|\d{12}" is a valid regexp according the W3C XML Schema specification.
    Any help will be appreciated. Thanks.
    Egor Pervouninski
    [email protected]

    Hello All!
    I have localized the problem. Seems to be a bug in XDK for C/C++ 9_2_0_2_0 (and for Java too)!
    Create three files:
    --- error.xsd ---
    <?xml version="1.0" encoding="Windows-1251"?>
    <xsd:schema targetNamespace="urn:xdk:error" xmlns="urn:xdk:error" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:simpleType name="Code">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{1}|\d{2}|\d{3}"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="Root">
    <xsd:attribute name="code" type="Code"/>
    </xsd:complexType>
    <xsd:element name="root" type="Root"/>
    </xsd:schema>
    --- error.xsd ---
    -- error1.xml ---
    <?xml version="1.0" encoding="Windows-1251"?>
    <root xmlns="urn:xdk:error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:xdk:error
    error.xsd" code="1"/>
    --- error1.xml ---
    --- error2.xml ---
    <?xml version="1.0" encoding="Windows-1251"?>
    <root xmlns="urn:xdk:error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:xdk:error
    error.xsd" code="12"/>
    --- error2.xml ---
    Execute: schema.exe error1.xml error.xsd (Java: oraxml.bat -schema error1.xml)
    All OK!
    Execute: schema.exe error2.xml error.xsd (Java: oraxml.bat -schema error2.xml)
    In line 3 of error2.xml:
    LSX-00333: literal "12" is not valid with respect to the pattern
    I have tested the same examples with XML Spy 4.4, MSXML 4.0 and Xerces-C 1.7.0.
    All parsers have validated this examples without any errors... except XDK.
    Egor Pervouninski
    [email protected]

  • About XML interop

    I Know that for using XML Interop I have to produce an XML file like that :
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jdeRequest comment="" environment="PY812" pwd="xxxx" role="*ALL" session="" sessionidle="" type="callmethod" user="BUFFETAUD">
         <callMethod app="" name="LaunchBatchApplication">
              <returnCode code="0"/>
              <params>
                   <param name="szReport">R0006P</param>
                   <param name="szVersionJDE">XJDE0001</param>
                   <param name="cSynch">0</param>
                   <param name="cPrintPreview">0</param>
                   <param name="szDataSourceOverride"/>
                   <param name="mnServerJobNumber">0</param>
                   <param name="cReturn"/>
                   <param name="cJDELogging">0</param>
                   <param name="cTracing">0</param>
                   <param name="cUBELoggingLevel">1</param>
                   <param name="szJobQueue">QBATCH</param>
              </params>
         </callMethod>
    </jdeRequest>
    We are under JDE 8.12 Tools 8.98.2.3 and an AS400 V6R1.
    We are now using Oracle Data Ingrator 11G.
    I would like to know how and where to send using ODI this XML to make JDE execute my call?

    This is from Oracle.
    Please mark the answer as correct if you think it's right.
    JXMLTool (EnterpriseOne 8.98)
    Introduction:
    The JXMLTool is a GUI tool developed by Global Support Services to submit XML requests to ERP enterprise servers. The tool can be used to verify the integrity of the ERP services (kernel configuration, BSFN processing, among others) when testing inbound integrations from XPI and/or other third party systems to ERP. This document contains instructions on how to install and configure the tool.
    Installation and Configuration:
    1) Verify that a supported Java Development Kit (JDK) is installed in the workstation to be used in the test (for example, verify that JDK 1.4.2 is installed).
    Note: It is recommended that the workstation also have an EnterpriseOne 8.12 full client package installed.
    2) Create a new directory in the workstation (for example, C:\JXMLTool).
    3) Copy the following files from the Deployment server to the directory created in step 2:
    e812\system\classes\Base_JAR.jar
    e812\system\classes\JdeNet_JAR.jar
    e812\system\classes\System_JAR.jar
    e812\system\classes\log4j.jar
    e812\system\classes\xerces.jar
    e812\system\classes\xalan.jar
    e812\system\classes\ManagementAgent_JAR.jar
    e812\system\classes\jmxri.jar
    e812\system\classes\commons-httpclient-3.0.jar
    e812\system\classes\commons-logging.jar
    e812\system\classes\ xmlparserv2.jar
    e812\system\classes\ jmxremote_optional.jar
    e812\system\Classes\samples\jdeinterop.ini.templ
    e812\system\Classes\samples\jdelog.properties
    Note: If you have multiple-foundation implemented in the system, make sure the files you are copying match the service pack level installed in the enterprise server.
    4) Rename jdeinterop.ini.templ to jdeinterop.ini. Modify the jdeinterop.ini file copied in step 3 to reflect the correct enterprise server name:
    a) Ensure that parameters glossaryTextServer in [SERVER] section, serviceNameConnect in [JDENET] section, and enterpriseServer, port in [INTEROP] section specify the correct enterprise server name and JDENET port number).
    b) Configure the value of Repository under [INTEROP] section such that it points to the directory created in step 2 (for example, “Repository= C:\JXMLTool”).
    c) Ensure that parameter SecurityServer in [SECURITY] section specify the correct security server.
    d) Configure OCMEnabled to “false” in [OCM] section.
    e) Add the parameter netTrace to [JDENET] section and configure its value as “1” (for example, “netTrace=1”)
    5) Rename jdelog.properties.templ to jdelog.properties. Modify the jdelog.properties file to reflect the characteristics of the machine:
    a) Ensure that jdelog.handler.JDELOG.File points to directory created in step 2 (for example, jdelog.handler.JDELOG.File=C:/JXMLTool/jderoot.log).
    b) Ensure that jdelog.handler.JASLOG.File points to directory created in step 2 (for example, jdelog.handler.JASLOG.File=C:/JXMLTool/jas.log).
    c) Remove comment marks from parameters jdelog.Debug, jdelog.handler.jasdebug, jdelog.handler.jasdebug.File, and jdelog.handler.jasdebug.Level.
    c) Ensure that jdelog.handler.jasdebug.File points to directory created in step 2 (for example, jdelog.handler.jasdebug.File=C:/JXMLTool/jasdebug.log).
    6) Create a new text file using the text editor of your choice (for example, Notepad).
    7)Paste the following text to the new document:
    @echo off
    REM Edit this file to the locations for Java and EnterpriseOne
    REM JDK root directory
    set JAVA_HOME=C:\j2sdk1.4.2_12
    set PATH=C:\j2sdk1.4.2_12\bin
    REM EnterpriseOne Windows client install path
    set OneWorld_HOME=C:\e812
    REM This directory
    set EXAMPLES=C:\Interop\JXMLTool
    REM Set the CLASSPATH environment variable.
    REM The following are libraries that are needed for Connector samples:
    set CLASSPATH=Base_JAR.jar
    set CLASSPATH=%CLASSPATH%;C:\Interop\JXMLTool\
    set CLASSPATH=%CLASSPATH%;C:\Interop\JXMLTool\JXMLTool.class
    set CLASSPATH=%CLASSPATH%;JdeNet_JAR.jar
    set CLASSPATH=%CLASSPATH%;System_JAR.jar
    set CLASSPATH=%CLASSPATH%;log4j.jar
    set CLASSPATH=%CLASSPATH%;xerces.jar
    set CLASSPATH=%CLASSPATH%;xalan.jar
    set CLASSPATH=%CLASSPATH%;ManagementAgent_JAR.jar
    set CLASSPATH=%CLASSPATH%;jmxri.jar
    set CLASSPATH=%CLASSPATH%;commons-httpclient-3.0.jar
    set CLASSPATH=%CLASSPATH%;commons-logging.jar
    set CLASSPATH=%CLASSPATH%;xmlparserv2.jar
    set CLASSPATH=%CLASSPATH%;jmxremote_optional.jar
    set CLASSPATH=%CLASSPATH%;%OneWorld_HOME%\system\classes\
    a) Ensure that "set JAVA_HOME" command sets the variable with correct path to JDK directory (for example, "set JAVA_HOME=c:\jdk142").
    b) Configure value of OneWorld_HOME such that it points to the directory where OneWorld® is installed (for example, “set OneWorld_HOME=C:\e812”).
    c) Ensure that "set EXAMPLES" command sets the variable with the correct path to directory created in step 2 (for example, "set EXAMPLES=C:\JXMLTool").
    d) Configure value of JDEINTEROPINI such that it points to the jdeinterop.ini file you copied in step 3 (for example,
    “set JDEINTEROPINI=%EXAMPLES%\jdeinterop.ini”).
    e) Append the path of the bin directory of the JDK to the PATH variable. For example, add the following line:
    “set PATH=%JAVA_HOME%\bin”
    8) Save the file as setenv.bat in the directory created in step 2 (for example, C:\JXMLTool\setEnv.bat).
    9) Create a new text file using the text editor of your choice (for example, Notepad).
    10) Paste the following text to the new document:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.GregorianCalendar;
    import java.util.Date;
    import javax.swing.JOptionPane;
    import javax.swing.JFrame;
    import com.jdedwards.system.xml.XMLRequest;
    import com.jdedwards.system.net.JdeNetTimeoutException;
    import com.jdedwards.system.net.JdeNetConnectFailedException;
    // Application: JXMLTool
    // Description: Java tool that submits XML requests to OneWorld® enterprise Servers
    // Author: Luis A. Santillo
    public class JXMLTool extends JFrame implements ActionListener {         
    Panel xmlPanel;
    Label ServerNameLabel;
    Label PortNumberLabel;
    TextField PortNumberField;
    TextField ServerNameField;
    TextArea RequestArea;
    TextArea ReplyArea;
    Button submitButton;
    String directory;
    String owServerName;
    String ReplyString;
    int owPortNumber;
    MenuBar mb = new MenuBar();
    Menu fileMenu = new Menu("File");
    Menu helpMenu = new Menu("Help");
    MenuItem openMenuItem = new MenuItem("Open");
    MenuItem exitMenuItem = new MenuItem("Exit");
    MenuItem helpMenuItem = new MenuItem("About");
    public static void main(String args[]) {
    JXMLTool jxmltool = new JXMLTool();
    jxmltool.init();
    public void init () {
    xmlPanel = createXMLPanel();
    this.setSize(640, 480);
    this.setResizable(true);
    this.getContentPane().add(xmlPanel, BorderLayout.CENTER);
    this.setVisible(true);
    openMenuItem.addActionListener(this);
    fileMenu.add(openMenuItem);
    fileMenu.add(new MenuItem("-"));
    exitMenuItem.addActionListener(this);
    fileMenu.add(exitMenuItem);
    helpMenu.add(helpMenuItem);
    mb.add(fileMenu);
    mb.add(helpMenu);
    this.setMenuBar(mb);
    submitButton.addActionListener(this);
    directory = System.getProperty("user.dir");
    private Panel createXMLPanel()
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints constraints = new GridBagConstraints();
    xmlPanel = new Panel();
    xmlPanel.setLayout(gridbag);
    buildConstraints(constraints, 0, 0, 1, 1, 10, 5);
    constraints.fill = GridBagConstraints.NONE;
    ServerNameLabel = new Label("OneWorld® Server Name", Label.LEFT);
    gridbag.setConstraints(ServerNameLabel, constraints);
    xmlPanel.add(ServerNameLabel);
    buildConstraints(constraints, 1, 0, 1, 1, 40, 0);
    constraints.fill = GridBagConstraints.NONE;
    ServerNameField = new TextField("", 20);
    gridbag.setConstraints(ServerNameField, constraints);
    xmlPanel.add(ServerNameField);
    buildConstraints(constraints, 2, 0, 1, 1, 10, 0);
    constraints.fill = GridBagConstraints.NONE;
    PortNumberLabel = new Label("Port Number", Label.LEFT);
    gridbag.setConstraints(PortNumberLabel, constraints);
    xmlPanel.add(PortNumberLabel);
    buildConstraints(constraints, 3, 0, 1, 1, 40, 0);
    constraints.fill = GridBagConstraints.NONE;
    PortNumberField = new TextField("", 20);
    gridbag.setConstraints(PortNumberField, constraints);
    xmlPanel.add(PortNumberField);
    buildConstraints(constraints, 0, 1, 4, 1, 0, 40);
    constraints.fill = GridBagConstraints.BOTH;
    RequestArea = new TextArea("", 10, 80);
    gridbag.setConstraints(RequestArea, constraints);
    xmlPanel.add(RequestArea);
    buildConstraints(constraints, 0, 2, 4, 1, 0, 5);
    constraints.fill = GridBagConstraints.NONE;
    submitButton = new Button("Submit");
    gridbag.setConstraints(submitButton, constraints);
    xmlPanel.add(submitButton);
    buildConstraints(constraints, 0, 3, 4, 1, 0, 40);
    constraints.fill = GridBagConstraints.BOTH;
    ReplyArea = new TextArea("", 10, 80);
    ReplyArea.setBackground(Color.gray);
    gridbag.setConstraints(ReplyArea, constraints);
    xmlPanel.add(ReplyArea);
    return xmlPanel;
    void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx, int wy) {
    gbc.gridx = gx;
    gbc.gridy = gy;
    gbc.gridwidth = gw;
    gbc.gridheight = gh;
    gbc.weightx = wx;
    gbc.weighty = wy;
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() instanceof MenuItem) {
    String label = ((MenuItem)e.getSource()).getLabel();
    if (label.equals("File"));
    if (label.equals("Open")) {
    FileDialog f = new FileDialog(this, "Open File", FileDialog.LOAD);
    f.setDirectory(directory);
    f.show();
    directory = f.getDirectory();
    setFile(directory, f.getFile());
    f.dispose();
    if (label.equals("Exit"))
    System.exit(0);
    if (label.equals("About"));
    if (e.getSource() instanceof Button) {
    if (ServerNameField.getText().equals(""))
    ReplyArea.setText("Error: server name is either null or empty!\nPlease enter new server name.\n");
    else {
    if (PortNumberField.getText().equals(""))
    ReplyArea.setText("Error: port number is either null or empty!\nPlease enter new port number.\n");
    else {
    owServerName = ServerNameField.getText();
    try {
    owPortNumber = Integer.parseInt(PortNumberField.getText());
    ReplyString = submitXMLRequest(RequestArea.getText());
    ReplyArea.setText(ReplyArea.getText() + "\n\n" + ReplyString);
    catch (NumberFormatException nfex) {
    ReplyArea.setText("Error: unable to format port number!\n");
    ReplyArea.setText(ReplyArea.getText() + "Exception: " + nfex +"\nPlease enter new port number.\n");
    public void setFile(String directory, String filename) {
    if ((filename == null) || (filename.length() == 0)) return;
    File f;
    FileReader in = null;
    try {
    f = new File(directory, filename);
    in = new FileReader(f);
    int size = (int) f.length();
    char[] data = new char[size];
    int chars_read = 0;
    while(chars_read < size)
    chars_read += in.read(data, chars_read, size-chars_read);
    RequestArea.setText(new String(data));
    catch (IOException e) {
    ReplyArea.setText(e.getClass().getName() + ": " + e.getMessage());
    finally { try { if (in != null) in.close(); } catch (IOException e) {} }
    public String submitXMLRequest(String xmlIn) {
    GregorianCalendar gregCalendar = new GregorianCalendar();
    String xmlOut = null;
    Date currentDate;
    try {
    ReplyArea.setText(gregCalendar.getTime() + " New XML request.\n");
    ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Creating XML request using text in area above.\n");
    XMLRequest xml = new XMLRequest(owServerName, owPortNumber, xmlIn);
    ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " XML request submitted to " + owServerName + " using port number " + PortNumberField.getText() + ".\n");
    ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Waiting for reply from " + owServerName + ".\n");
    xmlOut = xml.execute();
    catch (JdeNetTimeoutException toex) {
    ReplyArea.setText(ReplyArea.getText() + "\nError: JDENet timed out!\n" + "Exception: " + toex +"\n\n");
    catch (JdeNetConnectFailedException cfex) {
    ReplyArea.setText(ReplyArea.getText() + "\nError: JDENet connect failed!\n" + "Exception: " + cfex +"\n\n");
    catch (java.io.IOException ioex) {
    ReplyArea.setText(ReplyArea.getText() + "\nError: IO Exception!\n" + "Exception: " + ioex +"\n\n");
    currentDate = new Date ();
    gregCalendar.setTime(currentDate);
    ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Reply received from " + owServerName + ".\n");
    return xmlOut;
    public void processWindowEvent(WindowEvent e) {
    if (e.getID() == Event.WINDOW_DESTROY) {
    System.exit(0);
    11) Save the file as JXMLTool.java in the directory created in step 2 (for example, C:\JXMLTool\JXMLTool.java).
    12) Create a new text file using the text editor of your choice (for example, Notepad).
    13) Paste the following text to the new document:
    @echo off
    call setenv.bat
    javac JXMLTool.java
    14) Save the file as build.bat in the directory created in step 2 (for example, C:\JXMLTool\build.bat).
    15) Build the JXMLTool Java application:
    a) Open a new MS-DOS Command Prompt window.
    b) Change the current directory to the directory created in step 2.
    c) Call the build.bat script to compile the Java code and create the JXMLTool Java class.
    d) Verify that JXMLTool.class exists in the directory created in step 2 (for example,
    “C:\JXMLTool\JXMLTool.class”).
    16) Create a new text file using the text editor of your choice (for example, Notepad).
    17) Paste the following text to the new document:
    @echo off
    call setenv.bat
    java -Dconfig_file=jdeinterop.ini JXMLTool
    18) Save the file as run.bat in the directory created in step 2 (for example, C:\JXMLTool\run.bat).
    Usage:
    1) Open a new MS-DOS Command Prompt window.
    2) Change the current directory to the directory created in step 2.
    3) Call the run.bat script to execute the JXMLTool Java application.
    5) In the Java application, enter enterprise server name and port number in appropriate text fields.
    6) Enter the following text in the upper panel:
    <?xml version='1.0' ?>
    <jdeRequest type='callmethod' user='JDE' pwd='JDE' environment='JPD812' session=''>
    <callMethod name='GetEffectiveAddress' app='JXMLTool'>
    <params>
    <param name='mnAddressNumber'>1001</param>
    </params>
    </callMethod>
    </jdeRequest>
    7) Modify the XML information to reflect the characteristics of the system:
    a) Replace user, password, and environment with correct values for your system.
    b) If 1001 is not a valid AddressBook number, replace it with a valid AB number.
    8) Click the button “Submit”.
    9) Verify that an XML reply is received from enterprise server. The reply will be displayed in the lower panel.
    Retrieving an XML Template for BSFN Request:
    1) Repeat steps 1 through 9 in Usage, using the following text in step 6:
    <?xml version='1.0' ?>
    <jdeRequest type='callmethod' user='JDE' pwd='JDE' environment='JPD812'>
    <callMethodTemplate name='GetEffectiveAddress' app='JXMLTool'/>
    </jdeRequest>
    2) Highlight the text in the lower panel, starting with tag “<?xml version='1.0' ?>”.
    3) Press Control (Ctrl) and C keys simultaneously.
    4) Open a new text document using the text editor of your choice.
    5) Paste contents into new text document.
    6) Remove tag “<returnCode=’0’/>”.
    7) Save text document with extension .xml.

  • Refractor  for Pagedef  ?

    Is there any reason why there is no Refractor for PageDef(xml) files. I would expect at least the basic , delete, move, rename ?
    Maybe we can add this as a request for the next version.

    You can refactor pageDef from the main menu.
    Select your file in the tree and between Application and Search options you have Refactor option.
    Hope this helps.
    Joseba
    I've assumed you are using JDeveloper 11g

  • Pagedef package path

    Hi,
    I want my page definition file for my jspx/jsff page in a different package structure. My jsf files are in mysample/pages package. when I create bindings for the page by using data control, the jsf file's corresponding pageDef.xml file is creating in the same package structure --> mysample.pages.
    But, I wany my pageDef xml files to be in a different package --> mysample.pageDefs.
    I can refactor the page def file using the jdeveloper IDE. But I need this setting to be the default and whenever I am creating pageDef files, it should get created in the package I specify.
    Is it possible? How can I include this setting for my project/application?
    Kindly suggest.
    Thanks and regards.

    Hello, I found a good way to solve you problem. for example: if you created the pageDef.xml in test.pageDef.xml , and the default package is : pageDefs, you can right click "test" package, choose : refactor->Move . choose directory "pageDefs".
    Edited by: 862351 on 2011-5-30 上午4:31

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

Maybe you are looking for

  • Not able to create EAR file for WAR file extracted project

    Hi Experts, I am trying to import a WAR file, make changes to the project and create an EAR file for the same. I am not able to remove import errors despite of adding required jar files to it. Also, I am not able to create an EAR file for the same. I

  • Resize cl_gui_dialogbox_container SIZE_CONTROL

    Hello, In most object oriented languages I can catch an event using the signal to execute some process. Typical events like mouse clicks and mouse movements are usually implemented. So are resizing events for windows ... I a beginner in ABAP OO progr

  • Why markupDocumentViewer.fullZoom doesn't work on Fennec 4

    Hi, I tried to use gBrowser.selectedBrowser.markupDocumentViewer.fullZoom to do page zoom on Fennec 4 accroding https://developer.mozilla.org/en/Full_page_zoom., but it doesn't work. Could you help me solve this problem or put some sample code? Thank

  • IMPORT_PROPER return code is 16

    hi gurus, i am installing support pack for ecc 5 and the patch level is sapkb64012 i applyed continues 10,11, 12 and when i am applying 12 it's given dump no users can logon  like syntax error , the tp return code is 16 this is error information plea

  • How to setup an IPSec VPN Tunnel Cisco 2320 Vs RVS4000

    Hello all. This forum has always helped me in all my investigations about VPN and now I'm gonna help everyone with this post. I have succesfully config an IPSec VPN Tunnel by using a Router Scientific Atlanta Cisco 2320 and a RVS4000 4-Port Gigabit S