Frank Kindly check this....

Hi,
I am working on JDeveloper 11g ADF.
I am a beginner in this technology. I hv tried to call the variable as per I got the replies in my earlier thread but I m not success in that way(May be i m doing it wrong way).
[t-865632]
In my application a Java class is there for checking the username and password through SQL query. In that class I am storing the username and password in two variables.
I hv attached some BC into this application. I need to pass the condition in the query (of the Business components by going Data Controls --> Object (Table)--> Edit Definition --> Query). I want to call the Java variable there in the query (For passing the where condition). Is there any way to call the java variable there?
Could u please provide a Sample if possible
Thanks in advance.
Jithesh.

Jithesh,
you're not calling the Java variables but pass the values of them to the query. See Named Bind Variables in the Fusion Developer's Guide http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_search_bc.htm#ADFFD1901
HTH,
--olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Call a procedure in the application. Frank kindly check this

    Hi,
    I hv downloaded the login screen from the following site. Now I am trying to connect the same with my database. i hv introduced the password field in the application as earlier only username is available in the UI.
    [http://blogs.oracle.com/shay/simpleJSFDBlogin.zip]
    The problem is that in my database password field is protected with inbuilt oracle encryption. There is a procedure i hv in the database for the password encryption. How can I call the Procedure in the application??? In the application i hv introduced the business components and i hv attached the procedure in the application like "Offline Database Source" I hv to attach each database source like this? is it right way which i am following to call the procedure??
    Please guide me
    Thanks in advance
    Jithesh.

    Hi,
    have a look at the developer guide of how to invoke stored procedures and functions. Instead of basing the query for the login form on a VO you use a stored procedure of function in a client method exposed on the VO or AM
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvgen.htm#sm0297
    Frank

  • How Can I use a Variable  in Data Controls query. Frank Kindly check...

    Hii,
    I am using JDeveloper 11g ADF BC.
    My Requirement is that I hv a login screen which is taken from [http://blogs.oracle.com/shay/simpleJSFDBlogin.zip].
    I hv attached BC in this application. I want to use the login usercode in the next pages after login screen. Next screen contains 3 list items which will be populating based on the user. So I created <af:selectOneChoice> using the BC( Just drag & dropped the column into the page from the data controls). But in the data control i want to use this usercode for passing the condition. Now Data is coming without any condition.
    So How can I use the usercode in the Data controls query.
    When I tried to display the usercode in the next page it is showing by binding the value. its code is follows
    <af:outputText value="#{backing_getUser.uid}"
    The program for checking the username & Password is follows.
    package login.backing;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import java.sql.*;
    import java.util.List;
    import java.util.Map;
    import oracle.adf.view.rich.component.rich.output.RichMessage;
    import oracle.jdbc.OracleDriver;
    public class GetUser {
    private RichInputText uid;
    private RichInputText pid;
    private RichCommandButton commandButton1;
    private RichInputText inputText1;
    private RichInputText inputText2;
    public void setUid(RichInputText inputText1) {
    this.uid = inputText1;
    public void setPid(RichInputText inputText2) {
    this.pid = inputText2;
    public RichInputText getUid() {
    return uid;
    public RichInputText getPid() {
    return pid;
    public void setCommandButton1(RichCommandButton commandButton1) {
    this.commandButton1 = commandButton1;
    public RichCommandButton getCommandButton1() {
    return commandButton1;
    public String login_action() {
    // Add event code here...
    String user = this.getUid().getValue().toString();
    // String pass = inputText2.getValue().toString();
    String pid = this.getPid().getValue().toString();
    Connection conn;
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT usercode FROM guser where usercode = '"+user.toUpperCase()+"' and pwd=F_TEST('"+pid.toUpperCase()+"')");
    if (rset.next()) {
    conn.close();
    return "good";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "bad";
    public static Connection getConnection() throws SQLException {
    String username = "ACCTS";
    String password = "ACCTS";
    String thinConn = "jdbc:oracle:thin:@SERVER1:1521:G5PS";
    DriverManager.registerDriver(new OracleDriver());
    Connection conn =
    DriverManager.getConnection(thinConn, username, password);
    conn.setAutoCommit(false);
    return conn;
    public void setInputText1(RichInputText inputText1) {
    this.inputText1 = inputText1;
    public RichInputText getInputText1() {
    return inputText1;
    public void setInputText2(RichInputText inputText2) {
    this.inputText2 = inputText2;
    public RichInputText getInputText2() {
    return inputText2;
    -----

    Hi,
    I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
    Anyway, you could add this before return "good"; in your login_action()
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
    Pedja

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Check this game 4 me please

    In my country, Samsung had opened a Game Development Challenge. There's a game that i think they coppied from the other source code. So , i post this topic to need the support from you. Please check this game for me . If it was coppied from any source, please sent to me URL. Thanks. You can download it from http://www.samsungmobilegames.com.vn/view/vn/gamedetail.asp?game_id=46 . Thanks alot...

    For one, I don't speak the language that site was in.
    And be more specific! Copied the source from what?

  • Error in Code?-PlZ Check This

    Hai,
    We are getting an error in this code.We are beginners in Flex.
    Can anyone help us?
    This is our code....
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
        <![CDATA[
            import flash.media.Camera;
            import flash.media.Microphone;
            private function init():void
                cam.dataProvider=Camera.names;
                mic.dataProvider=Microphone.names;
            private function send():void
                //var camera:Camera=Camera.getCamera();
                var micro:Microphone=Microphone.getMicrophone();
                micro.addEventListener(StatusEvent.STATUS, this.onMicStatus);
                private function onMicstatus(event:StatusEvent):void
                    if(event.code == "Microphone.Unmuted")
                        trace("Microphone access allowed");
                    else if(event.code == "Microphone.Muted")
                        trace("Microphone access denied");
        ]]>
    </mx:Script>
        <mx:Panel x="265" y="50" width="294" height="200" layout="absolute">
            <mx:VideoDisplay x="0" y="0" width="274" height="160"/>
        </mx:Panel>
        <mx:Button x="381.5" y="314" label="Start" click="send()"/>
        <mx:Text x="281" y="24" text="Username" id="uname"/>
        <mx:TextArea x="351" y="24" height="18" width="150"/>
        <mx:Text x="281" y="260" text="Camera" width="62"/>
        <mx:ComboBox x="351" y="258" width="191" id="cam"></mx:ComboBox>
        <mx:Label x="273" y="286" text="microphone"/>
        <mx:ComboBox x="351" y="284" width="191" id="mic"></mx:ComboBox>
    </mx:Application>
    ERROR:-
    1013: The private attribute may be used only on class property definitions.    videovoice/src    videovoice.mxml    line 23    1267425378537    662

    First of all, check Permit Debugging in publish settings so you can at least reference a line number. It's not very realistic to post 150 lines of code, and say guys can you check this.
    Anyway from a cursory glance it looks like you only create 27 bricks:
    for (var i=0; i<9; i++)
    for (var j=0; j<3; j++)
    bricks = new brick(i,j);
    Brick_Array.push(bricks);
    And then later you do this:
    for (var k=0; k<100; k++)
    if (Ball.hitTestObject(Brick_Array[k]))
    You don't have 100 bricks in Brick_Array.
    Also - as a matter of convention variables names should not have the first letter capitalized - that is for class naming.

  • Email virus that says check this out

    My wife got an email from a friend that said "check this out".  Of course she opened it and now she cannot use Facebook--any ideas on what this is and how to fix it?

    What OSX version?
    ClamXAV, free Virus scanner...
    http://www.clamxav.com/
    Free Sophos...
    http://www.sophos.com/products/enterprise/endpoint/security-and-control/mac/
    Little Snitch, stops/alerts outgoing stuff...
    http://www.obdev.at/products/littlesnitch/index.html

  • ABAPer to check this manually & not through SNOTE.:  if the note - 1037685

    Could you please check if the note - 1037685 is present in your system.
    Please ask your ABAPer to check this manually & not through SNOTE.
    Regards,
    Ashutosh

    Check the release that note is coming in by going to SAP service marketplace, and then check the release of the system that you are using.
    If you are on equal or higher release then that note is available in your system.
    G@urav.

  • [svn] 3793: Alpha checkin - checking this in on behalf of Paul a fix for SDK-17698.

    Revision: 3793
    Author: [email protected]
    Date: 2008-10-21 13:25:39 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Alpha checkin - checking this in on behalf of Paul a fix for SDK-17698. Paul's change now means advanced CSS functionality is available by default and -keep no longer needs to be specified.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Styles Mustella Tests: Pass
    Reviewer: Pete
    Bugs:
    SDK-17698 - [Advanced CSS] You need to compile with -keep to get Advanced CSS to work (because of direct AST generation)
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17698
    http://bugs.adobe.com/jira/browse/SDK-17698
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java

    I removed the src/ directory and ran makepkg and it succeeded. Pacman -U kernel.pkg.tar.gz also worked. Now all that's left is rebooting and trying.
    Thanks everyone.
    OK, I guess it's not over yet. I rebooted in the new kernel, but it says it can't find /dev/sda3 (which is my / partition).
    This is my grub entry:
    title Arch Linux Gigamo
    root (hd0,2)
    kernel /boot/vmlinuz26 root=/dev/sda3 ro
    initrd /boot/kernel26-gigamo.img
    Okay well, I didnt realise there was a vmlinux26-gigamo as well. Will see if that fixes it.
    Last edited by Gigamo (2008-03-12 16:53:22)

  • Delete function--check this out

    hey I pretty much just started with Ipod and Itunes.
    The first time you delete a song from your Ipod or Itunes library it prompts you to let you know you are deleting something and make sure you're not accidentally you're deleting something you want. Underneath that theres a small checkbox and next to the box it says "Check this box to not recieve this message again," or something to that effect. Stupid me, I checked this box and now its really easy to delete files from my Ipod, if I accidentally hit backspace or delete it deletes the song forever. luckily i have most these files backed up. Still I would like to return to the default setting of having Itunes prompt me before I delete a file...is there any easy way of doing this?
    Thanks,
    newbie
    60g Ipod photo   Windows XP  

    Go here and follow Scotts steps for deleting the pref file http://discussions.apple.com/message.jspa?messageID=607357

  • RE: (forte-users) Check this ( -----THIS MESSAGE WASA VIRUS!!!!!)

    The previous message (Check this) is a known virus.
    (Either that or the sender is emulating it.
    Either way, do not open the attachment as you will not have "fun" at all.
    Delete the message immediately.
    Of course, if I am wrong then I am an idiot!
    Don't take the chance.
    -----Original Message-----
    From: Slabbert, Etienne [mailto:etiennemds.co.za]
    Sent: Friday, 18 February 2000 0:12
    To: forte-userslists.xpedior.com
    Subject: (forte-users) Check this
    Have fun with these links.
    Bye.

    Il suffit de mettre les BTD/BTX sur un drive r&eacute;seau (net use X:
    \\server\share_point),
    puis d'installer des ic&ocirc;nes pour les clients: ftexec -fi bt:x:\MyApp.
    Pour que les noeuds ne s'auto-enregistrent pas, peut-&ecirc;tre mettre un password
    Ou bien d&eacute;finir les noeuds comme un 'groupe' et donc seul le groupe est
    connu.
    Si mettre le mot de passe suffit pas, et si vraiment le model node g&ecirc;ne,
    alors il
    faut un autre environment manager.
    I think that to avoid install, the software could be located on a shared
    drive,
    and users linking to it through running 'ftexec' or directly the compiled
    binaries.
    For nodes not to appear in the environment as nodes, they could be defined
    as members
    of a model node '(which then would be in the environmnet)'
    Putting a password in the environment could prevent nodes to be registered
    there, but
    might prevent the apps from being executed.
    Cheers,
    j-paul gabrielli
    Sema DTS
    -----Message d'origine-----
    De: Thomas Felix [mailto:tfelixaxialog.fr]
    Date: mardi 2 mai 2000 14:14
    &Agrave;: forte-userslists.xpedior.com
    Objet: (forte-users)
    bonjour a tous
    je souhaites installer une application distribu&eacute;e sur des postes clients.
    Y'a t'il moyen de ne pas installer les noeuds de ces postes clients sur l'
    active environnement li&eacute; au d&eacute;veloppement et si oui comment?
    hi
    I would like to install an application on clients workstation
    Can i install this nodes in a different Active environnement than this one
    that we use for the developpement ?
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • 2 records updated plz check this

    my requirement is update the database table zfmkstel with nrart = 'h' and proz1 = '100'. i m writting below logic two records udate like this
    123455(tenum)         h                  100
    123455(telnum)        -                     -
    my logic is
        when 'SAVE'.
          IF f1_rec ne 1 .
          if sy-subrc = 0.
          update zfm_handy from fs_temp_zfm_handy.
            insert zfm_handy from fs_temp_zfm_handy.
            MODIFY zfm_handy from fs_temp_zfm_handy.
           if sy-subrc = 0.
           insert zfmkstel from fs_temp_zfmkstel.
            if sy-subrc = 0.
              fs_temp_zfmkstel-telnum = fs_temp_zfm_handy-telnum.
             fs_temp_zfmkstel-nrart = fs_temp_zfm_handy-nrart.
             fs_temp_zfmkstel-proz1 = fs_temp_zfm_handy-proz1.
             fs_temp_zfmkstel-nrart = 'H'.
             fs_temp_zfmkstel-proz1 = '100'.
              INSERT ZFMKSTEL FROM FS_TEMP_ZFMKSTEL.
                       fs_temp_zfmkstel-nrart = 'H'.
                          fs_temp_zfmkstel-proz1 = '100'.
               insert into zfmkstel values fs_temp_zfmkstel.
              commit work.
              if sy-subrc = 0.
                message s000(0) with 'record havebeen inserted sucessfully'.
            MODIFY ZFMKSTEL FROM FS_TEMP_ZFMKSTEL.
              else.
                delete zfm_handy from fs_temp_zfm_handy.
              endif.
            endif.
          else.
            update zfm_handy from fs_temp_zfm_handy.
            if sy-subrc eq 0.
              fs_temp_zfmkstel-telnum = fs_temp_zfm_handy-telnum.
              update zfmkstel from fs_temp_zfmkstel.
             if sy-subrc eq 0.
             message s000(0) with 'update sucessfully'.
           endif.
            endif.
          endif.
           endif.

    hi
    do u have a problem with updating the records, i mean do u want update 2 records into the DB table with the same fields
    check if the records have the same primary fields, if they have same primary fields then it will not update in the Z Table
    check this code
          READ TABLE IT_VBRK WITH KEY VBELN = T_VBRK_VBRP-VBELN.
          IF SY-SUBRC = 0.
            T_VBRK_VBRP-FKDAT = IT_VBRK-FKDAT.
            MODIFY T_VBRK_VBRP  TRANSPORTING FKDAT
                      WHERE VBELN = IT_VBRK-VBELN.
          ENDIF.
    this will simulatenously update all the records which have same VBELN
    award points if found helpful

  • After renaming my MAC hard drive, Acrobat, Illustrator and Bridge fail to launch. Acrobat returns the error message "An internal error occurred". I've checked this out and it seems related to user permissions. The version is Acrobat X. My machine has mult

    After renaming my MAC hard drive, Acrobat, Illustrator and Bridge fail to launch. Acrobat returns the error message "An internal error occurred". I've checked this out and it seems related to user permissions. The version is Acrobat X. My machine has multiple user accounts. Any help would be appreciated. I renamed the drive to its original name but to no effect. RR

    I resolved the issue.
    The problem is indeed a permissions issue with the Adobe Application Support folder.
    First, in MAC OS Lion the ~/Library/ folder is hidden by default. You must unhide it in order to proceed. (if it is already visible in your ~/User/ folder, proceed to Step 4.)
    Next launch the Terminal application.
    At the command line, paste the following command line: chflags nohidden ~/Library/
    Go to /Users/youruserid/Library/Application Support/Adobe
    Get info on the ~/Adobe folder and reset your permissions to read/write and apply to all enclosed folders
    Problem solved. RR

  • Users report slow performance - how can I check this

    Users are telling me that performance has suddenly become slow.
    Is there someway I can check this is correct, ie. its not just the users perception at a partiluar point in time.
    The system seems to be normal to me.

    hi,
    if someone says suddenly the database performance slow, please check your database host and any particular process takes lot of resource or check the box load or any unusual things happening on the host level.
    if any session id taking lot of resource check what is going on this spid and try to kill or try tune like creating index.
    thanks
    Veera

  • Help me check this coding!

    The following is my coding which is my assignment. i doubt i have logic problem. So, help me check this about multi-thread.
    if it's wrong which you find, help me correct.I have thought this several days, but till now, i have no any good idea to correct.
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class WebServer extends Thread{
    public WebServer(int port,int timeOut,int maxUser){
    public void run(){
    for (int i=0;i<=maxUser;i++){
    Thread t=new Thread(new HTTPRequest());
    t.start();
    while(true){
    Socket connectionSocket;
    try{
    connectionSocket=server_Socket.accept();
    HTTPRequest.processRequest(connectionSocket);
    }catch (IOException e){}
    public static void main(String args[]) throws Exception{
    class HTTPRequest implements Runnable{
    private static List pool= new LinkedList();
    public static void processRequest(Socket v_socket) throws IOException{
    synchronized(pool){
    pool.add(pool.size(),v_socket);
    pool.notifyAll();
    public synchronized void run(){
    while(true){
    socket=null;
    synchronized (pool){
    while(pool.isEmpty()){
    try{
    pool.wait();
    }catch(InterruptedException e){}
    socket=(Socket)pool.remove(0);
    try{
    }catch (IOException e){}
    finally {
    try{
    }catch (IOException e){}

    You don't have a specific problem right?
    I don't see anything terribly wrong with it.
    Other stuff:
    Why is WebServer a thread? Will there be more than one?
    Use notify() not notifyAll(). You are only adding one object so only one thread needs to service it.
    The run() loop for HTTPRequest does not exit after serving a socket right. Hard to tell from your posting without code blocks.
    Don't forget to close the sockets.

Maybe you are looking for

  • Downtime required for ECC 6.0 service pack application

    Does anyone have any data on the amount of time required to apply service packs to ECC 6.0 when DB2 z/OS is the backend database? We have done several tests in a sandbox system and the best case we have gotten so far using production LPAR weights is

  • PowerBook 17"  window views do not stick.

    For several years I've set window view from Finder > View to List view then went on to view option and chose set for all windows. It stuck. The I installed three pieces of software. Two I have since removed. PocketMac for a Blackberry 8330 Phone sold

  • IPod not playing into Left side speaker

    I've noticed recently that when I play my iPod in my car there is no sound coming out of my left side speakers (front & back). When my radio is on the speakers are fine, so I've eliminated that from the equation. So is it my iPod itself (settings?) t

  • Missing plug-ins in Mainstage?

    Mainstage has been an incredible tool for me because I'm able to open Channel Strip Settings saved in Logic and create the perfect patches for playing live. Unfortunately, a few plug-ins that are available in Logic Pro 8 are not found in my Mainstage

  • All folders: no photos, no messages, nothing! What is wrong?

    The mail app on my iPad is taking up 1.4g of space. I've cleared all email from all folders: no photos, no messages, nothing is being kept!  What is wrong?