How to use getDBTransaction() in the controller class

I use the code below.

OADBTransaction tx = (OADBTransaction) getDBTransaction ();
java.sql.Connection pConncection = tx.getJdbcConnection ();
ConcurrentRequest cr = new ConcurrentRequest (pConncection);


But receiver error not found getDBTransaction method in the cust.oracle.apps.pos.changeorder.webui.extendViewOrderPGCO class below

Should I extend AM and use this code in AM or can I use this code in extended controller.

Thanks for your help.
HP.

OADBTransaction tx = (OADBTransaction) getDBTransaction ();
java.sql.Connection pConncection = tx.getJdbcConnection ();
ConcurrentRequest cr = new ConcurrentRequest (pConncection);

Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(conn);

http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html

Thank you
-Anil
http://oracleanil.blogspot.com

Tags: Oracle Applications

Similar Questions

  • How to get the controller class of the a fxml file open in a tab?

    Hello.
    First of all, sorry for my bad inglish, that is not my language.

    Introduction:
    I work in the skeleton of an enterprisse application in javafx. Generally (in the past), I used swing with InternalFrames MDI form. Search in the web site on how can he do this, I found that the concept of the MDI form is obsolete, is recommended to use a tabpanel structure. I started to develop the application with this concept, but I have a question.

    Scenario:
    I have a main window with:
    -Menu: To access the different options
    -Toolbar: To run the day-to-day operations (open, save, edit, delete and print)
    -TabPanel: To display the dashboard and fxml files opened from the menu.
    -Status bar: To display information.

    [http://www.blueboxmicrosystems.com/fxml.png |] See the image]

    The problem:
    I don't know how to access the methods of the controller of the fxml file on the active tab.

    Note: I have an interface with operations (open, save, edit, delete and print) and the tools of the interface controllers.

    The question:
    How can I me the controller class of the file fxml in the active tab in order to call methods?

    Kind regards

    Published by: user10311523 on 31-mar-2013 20:36

    Published by: m_ilio on 01-Apr-2013 05:40

    Instead of

     Parent root =  FXMLLoader.load(getClass().getResource(fxmlFile));
    

    do

    FXMLLoader loader = new FXMLLoader(getClass().getResource(fxmlFile));
    Parent root = (Parent) loader.load();
    MyControllerType controller = loader.getController();
    // now you'll need to keep track of the controller somewhere, maybe a Map
    

    where of course you replace MyControllerType with classname of your controller.

  • JavaFX how to use WebView load the local HTML page?

    JavaFX how to use WebView load the local HTML page?

    If the HTML code of the files in the class path, which is in the package, the load using one of the following ways:

    String url = Main.class.getResource("/html/index.html").toExternalForm();
    engine.load(url);
    

    The above methods can only load files outside the class path!

  • How to use paper in the latest version of Windows Live Mail?

    How to use paper in the latest version of Windows Live Mail?

    Version 2011

    Short answer: the stationery support has been removed from Windows Live Mail with the upgrade of v.2009 v.2011 back in 2010.

    Long answer: there are two solutions of workaround that you can try.

    • If you have a stationery .htm file, open it in Internet Explorer, and then select file > Send > Page by email (Alt - F E P). Save the message as a result as a .eml file and use it as a model for messages.
    • You can get in shape, for example a background color, to a HTML signature, then apply this signature to an e-mail message. Here's the one I use when sending pictures:


      Hello!

      Love
      Noel


      Here is the result:

  • How to use PS to judge the existence of a file in the directory specified and how to use PS to the directory specified for create to create the file? (javascript)

    1, how to use PS to judge of the existence of a file in the specified directory? (using javascript)

    2, how to use PS to the directory specified for create to create the folder? (using javascript)


    Thank you!

    If (Folder(/*_insert_the_path_here_*/).exists == false) {Folder(/*_insert_the_path_here_*/).create()}

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • JavaFX Tableview not link with the controller class (JDK 8)

    I have my 1.7 update javaFX applications java java 1.8. It seems now FXML TableView component will not be binding with reference to controller class Java. Thank you.

    FXML file:

    < fx:id = "dvTypeTbl" '49.0' = layoutX TableView on = '145.0' prefHeight = '388.0' prefWidth '800,0' = >

    < columns >

    "< TableColumn maxWidth ="5000.0"minWidth ="10.0"prefWidth ="420,0"text="%device.type.main.view.table.column.name ">

    < cellFactory >

    < com.stee.rcm.gui.fxml.FormattedTableCellFactory align = "LEFT" / >

    < / cellFactory >

    < cellValueFactory >

    < PropertyValueFactory property = "dtName" / >

    < / cellValueFactory >

    < / TableColumn >

    < / columns >

    < / TableView >

    Controller of Java class:

    / public class DeviceTypeMainController implements {bootable

    @FXML private static TableView < DeviceTypeTable > dvTypeTbl;

    @Override

    Public Sub initialize (URL url, rb ResourceBundle) {}

    With this reference now it will get null pointer

    DtList ObservableList < DeviceTypeTable > = dvTypeTbl.getItems ();

    }

    }

    It seems that static fields don't get injected into the JDK 8.

    I can't inject static fields has never officially supported. The documentation for @FXML and FXMLLoader are pretty awful, but no example in the official tutorial use static fields with the @FXML annotation. This seems to be a really bad design still: imagine later you decided to re-use the file FXML twice in your application: the second controller would replace the field injected by the first controller.

  • How to use setFireActionForSubmit with the settings and capture the parameter

    Hello

    Can someone explain how to use setFireActionForSubmit.

    I extend the ShoppingCartPG controller. In the extended controller processRequest method I am adding a button to the table and implementation of the setFireActionForSubmit, so when the button is pressed it triggers the setFireActionForSubmit event.
    I need to pass the RequisitionLineId as a parameter which is present in the t associated with the ShoppingCartPG.

    I used the following code in the processRequest
    =================================
    ' public void processRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processRequest (paramOAPageContext, paramOAWebBean);
    OATableBean otbRN = (OATableBean) paramOAWebBean.findIndexedChildRecursive ("ItemTableRN");
    OASB OASubmitButtonBean = (OASubmitButtonBean) paramOAPageContext.getWebBeanFactory () .createWebBean (paramOAPageContext, "BUTTON_SUBMIT");

    oasb.setID ("addnInfo");
    oasb.setUINodeName ("addnInfo");
    oasb.setText ("additional information");

    String pageName = paramOAPageContext.getRootRegionCode ();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);

    Hashtable paramsWithBinds = new Hashtable (1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL (OASB, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit ("addnInfoEvent", params, paramsWithBinds, false, false);

    otbRN.addIndexedChild (oasb);
    }
    =================================

    And I capture the event "addnInfoEvent" in processFormRequest method and trying to capture the RequisitionLineId I the past as a parameter.
    This is the code that I used in processFormRequest.
    =================================
    ' Public Sub processFormRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processFormRequest (paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = (paramOAWebBean) paramOAPageContext.getApplicationModule;

    String strEvent = paramOAPageContext.getParameter (EVENT_PARAM);

    If ("addnInfoEvent".equals (strEvent))
    {
    Number format = 0;
    try {}
    Format = new Integer (ClientUtil.getDecryptedParameter (paramOAPageContext, "param2"));
    }
    catch (System.Exception e) {e.printStackTrace () ;}

    String outmsg = "line ID:" + size + ":" + strEvent;
    throw new OAException (outmsg, OAException.INFORMATION);
    }
    }
    =================================

    But I'm not able to capture the RequisitionLineId I sent as a parameter.
    Can someone let me know what I am doing wrong.

    Hello

    Because your table is not a tip so table using a submit button approach will not work because it won't give you rank of reference and you will not be able to enter the id of the corresponding command line, instead you use an icon of the image, which can be created through customization. Let me know if you need help in the code.

    Thank you
    Pratap

  • How to use and control the tabs?

    Sorry for such a general question, but I use Firefox with older versions of Mac OS x for years and have just been struck by this brand new and I have no idea on your tabs, "new tab page" etc. Can you just send me some documents so I can understand what they are and how to use them?

    All I see on my headers Ff are all sorts of legs that have no relevance to me, like 'how to stop Firefox from... '. "(twice), a few other symbols Ff and other"tabs"I don't know everything." All the do is filling up a bar line.

    Thank you-

    You are welcome.

    If you have any other questions feel free to ask them.

  • How to use notes during the writing of my book with pages?

    How are used to write a book with pages of notes?

    You need the Apple EndNote plug-in for Pages v2.0and the EndNote 7.3.4 application (or later version) installed for compatibility El Capitan. With the plug-in installed and EndNote works, then you start Pages v5.6.1 and the Insert menu: reference EndNote is available for use. Launch Pages v5.6.1 prior to 7.3.4 EndNote and endnote reference entry in the Insert menu is not active.

  • How to use PersistentBitmap in the version 5.0 or any other method?

    I am completely unaware of an example of use of PersistentBitmap and am also not sure if it can be used in 5.0 but anyway, I extract the code next, I received, could someone advise me on how to use it?

    I have several images I want to stay put on the BB, even after a hard reboot. Links or advice is welcome! Thank you

    {classPersistableBitmapimplementsPersistable}
    int width;
    int height;
    int [] argbData;

    publicPersistableBitmap (Bitmap image) {}
    width = image.getWidth ();
    height = image.getHeight ();
    argbData newint = [width * height];
    image.getARGB (argbData, width, 0, 0, 0, width, height);
    }

    publicBitmap getBitmapImage() {}
    Bitmap image = newBitmap (width, height);
    image.setARGB (argbData, width, 0, 0, 0, width, height);
    return image;
    }

    The link below points to the documentation on the use of persistent store.  Take a look and let me know if you get stuck.

    https://bdsc.webapps.BlackBerry.com/Java/documentation/ww_java_datastorage/PersistentStore_intro_198...

  • How to use FND_MESSAGE in my controller.

    Hello

    I want to display a message using FND_MESSAGE in my controller. Instead of hard coding message.

    Please explain to me how do.

    Thank you.

    Hello

    See this link:

    https://forums.Oracle.com/thread/2219546

    Sushant-

  • How REGEXP_REPLACE used to replace the part of the string?

    Hello

    How can I replace the portion of string as follows, I want to replace the space as by ' - '.

    SELECT
    REGEXP_REPLACE (superior ("' Laura bought stuff from 2000 USD on 12 September 2012 to KL and kl left on September 20, 2012"),)
    ' [0-9] {1,2} [^ 0-9](JAN|) FEB | MAR | APR | JUN | JUL | AUG | MS | OCT | NOV | DEC) [^ 0-9] [0-9] {4}',
    (','-') "REGEXP_REPLACE.
    FROM DUAL;

    the output will be like this

    Laura bought of the stuff of 2000 USD on 12-Sep-2012 of KL and kl left on 20-Sep-2012

    concerning

    Something like that?

    SELECT
    REGEXP_REPLACE('Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012',
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})',
    '\1-\2-\3',1,0,'i') "REGEXP_REPLACE"
    FROM DUAL;
    

    Explanation:

    You group the parts of the date de-construct with (additional).
    You can use expressions, backreference \1 \2 \3 and add '-' between \1-\2-\3 signs.

    You should not user upper ('...') in the first parameter. If you cannot recover the original state of the letters.
    If you want to case-insensitive matching you should use 'I' in the last parameter of regexp_replace.

    http://docs.Oracle.com/CD/B19306_01/server.102/b14200/functions130.htm

    Published by: hm on 25.09.2012 00:38

  • using methods of the builders class?

    I have a constructor that is quite complicated to ask my calling methods.
    I'm not sure whether to make these static methods.

    example #1
    class {Test}
    Object obj;

    Test() {}
    ....
    Initialize (this);
    ....
    }

    public static private Sub initialize (Test t) {}
    t.obj = new Object();
    doThis (t);
    doThat (t);
    }

    static private void doThis (t-Test) {...}
    static private void doThat (t-Test) {...}
    }
    -----
    example #2
    class {Test}
    Object obj;

    Test() {}
    ....
    Initialize();
    ....
    }

    private void initialize() {}
    obj = new Object();
    }

    private void doThis() {...}
    private void doThat() {...}
    }
    -----
    I understand the danger of use override-able for initialization methods, so take all the initialization methods are private.

    Directors of oriented programming OBJECT (as I understand them) suggest that instance methods are used to change the State of an object.
    Surely, the initialization changes the State of an object (forming / future).
    Yet, for some reason any when I call methods in constructors, I feel that these methods must be static.
    What is the right way of thinking?

    827723 wrote:
    Yet, for some reason any when I call methods in constructors, I feel that these methods must be static.

    Why?

    A static method belongs to the class and not any instance of this class. Make a method to initialize a static object is contrary to this principle. If you are already inside the class object / what possible benefit can you get pass a reference to itself between all your methods?

    Here is another alternative, a block to initialize.

    class Test {
        {
            obj = new Object();
        }
    
        Object obj;
    
        Test() {
            // obj already initialised, no need to do anything here
            // other code
        }
    }
    
  • How to get items of the skin class?

    Hi all

    I'm completely stacked to getting the items are defined directly in the skin class. To illustrate:

    I have a component of type SkinnableComponent having in turn, specific skinClass:

    MainApplication.mxml:

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 " ...   >

    < header: ApplicationHeader width = "100%" height = "30" / >

    < / s:Application >

    ApplicationHeader:

    < s:SkinnableComponent... skinClass = "components.header.ApplicationHeaderSkin" >

    < / s:SkinnableComponent >

    And the ApplicationHeaderSkin defines certain elements inside:

    < s:Skin... >

    ...

    < s:HGroup >

    < s:Label id = "label1" color = "white" / >

    < s:Button id = "button" width = "36" height = "100%" / >

    < / s:HGroup >

    < / s:Skin >

    The initial task is to instrument the skinnableComponent of ApplicationHeader to make it accessible for automation tools. For this I need to create a class of delegate with the method getAutomationChildren and getAutomationChildAt. The delegate is built with the obj SkinnableCompoment (ApplicationHeader in my case).

    So the question is: how to get children (or elements in the context of flex 4) defined in a class of skin only reference to the host of this skin component?

    I'd appreciate any hint, any reference to a description of the similar problem.

    Big thanks in advance

    Tim

    Referring to the hostComponent.contentGroup is the same as referring to the

    skin.contentGroup directly. The "contentGroup" is actually created by and there are

    in the skin, but it is accessible to the public through the hostComponent

    has declared a part of skin "contentGroup.

Maybe you are looking for

  • Portege Z930 - Win8 Upgrade offer fails

    Hello! 31.Oct.2012 we bought Portege Z930 - G1S (PT234R) - quite an expensive laptop with Win7 Home Premium OS. We have reduced by thinking, we are entitled to Win8 upgrade, but as we walked into our data on the Microsoft site - they told us we are n

  • Satellite A100 - need tools for Windows 7 and 64-bit drivers

    Hello I have W7 RTM from Technet, and I install 64-bit edition on my laptop ' Satellite A100 (PSAA9) "I need 64-bit drivers and 64 bit utility (value added package..), but I can't find them... value added 32-bit package does not work on 64-bit (insta

  • Wheel of Satellite U400 - 138 Volume - software problem

    Hello! Recently * Toshiba Tempro * suggested I upgrade the bios driver sound (Conexant) and a few other drivers for my Vista. I did and then I noticed that the volume of 'material' control - * volume wheel *-did not work. Still, I have the right volu

  • Add the second disc

    I can add a second drive in a HP ENVY 17-J190NB Best regards lucvg

  • Problem with ListField

    Hello world When the user clicks in a ListField I want to update an image of a line, but I don't understand. My goal is to simulate a check box, it means that by default at the end of the line, there is an image that is not controlled, and when the u