How to call a database controller in backing file

Hello,
First of all, I'd like to apologize if this question is posted by someone else before. But because I haven't been to find the answer so I just post this question here with hope that someone will have the answer for me.
I am using weblogic 8.1 SP3. I am trying to build a web portal which requires users to login and logout. Based on the tutorials from BEA and the documents that I read in this forum, I decided to use backing file to check for the username and password. I am using MySQL database and I have a page flow controller which is based on the database control. How can I call that control in the backing file? Or is there anyway to compare the username and password that the user enters to the ones in the MySQL tables? I don't want to create a database connection in that backing file since the page flow controller can do that for me already.
Any help is appreciated
Thanks in advance
TL

select ename from emp@dblink
...lose the double quotes.
Scott

Similar Messages

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • How to call a custom controller method from view

    Hi,
    I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.
    How to call a custom controller method from view?
    Please explain the syntax.
    Regards,
    Manoj.

    Hi Patralekha,
    Give some idea for the below scenario:
    I ve created a simple web service and consumed it in a model. What I did was
    1) for the input parameters, mapped the node from view->custom controller->model
    2)for the output parameter, mapping from model->custom controller->view.
    It works fine.
    But I don't want to access model nodes directly, rather I want to set the input param in somewhere else (like custom controller) before calling the appropriate method, same for the response also.
    Share me your thoughts.
    Regards,
    Manoj.

  • How to call logical database

    hi friends,
        plz explain me how to call logical database in a report program?

    hi,
    Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
    However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
    Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area.
    Logical Databases - Views of Data
    A logical database provides a particular view of database tables in the R/3 System. It is always worth using logical databases if the structure of the data that you want to read corresponds to a view available through a logical database.
    The data structure in a logical database is hierarchical. Many tables in the R/3 System are linked to each other using foreign key relationships. Some of these dependencies form tree-like hierarchical structures. Logical databases read data from database tables that are part of these structures.
    Advantages of Logical database -
    1) No need of programming for retrieval , meaning for data selection
    2) Easy to use standard user interface, have check completeness of user input.
    Disadvantages
    1) Fast in case of lesser no. of tables But if the table is in the lowest level of hierarchy, all upper level tables should be read so performance is slower.
    GO THROUGH THE LINKS
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Use Tcode SE36 For creating Logical Database.
    Here is a simple Program on Logical database.
    NODES: spfli,sflight.
    START-OF-SELECTION.
    WRITE 'Test Program for GET'.
    *Fetching SPFLI table
    GET spfli.
    WRITE: / 'Carrid:', spfli-carrid,
    'Connid:', spfli-connid.
    *Fetching SFLIGHT table
    GET sflight.
    SKIP 5.
    WRITE: / 'Carrid:', sflight-carrid,
    'Connid:', sflight-connid.
    logical database
    logical database
    http://help.sap.com/saphelp_nw04/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    general
    example program
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9be035c111d1829f0000e829fbfe/frameset.htm
    regards,
    pavan
    REWARD POINTS IF USEFUL

  • How to call another view controller's method from a view controller?

    Hi,
    Iam new to webdynpro . so pls clarify my doubt.
    How to call another view controller's method from a view controller in the same Web Dynpro Component?
    Thanks,
    Krishna

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • How to call the Database views in  Reports?

    Hai experts,
                        i created one Database view in data dictionary for that how to call the that in my program?
                        are we write the select quries on views.
                         plz help me.
    thanks in adv.

    thanks for ur reply.
    how to maintain data in maintance  view . is it possible write the select query on that . I know it most be relate with forgien key.
    plz help.
    thanks in adv.

  • Forgot how to call a database link in Apex... @linkname not working for me

    Don't have access to my old apps and I can't remember how to call fields from a database link now...
    when i try
    select "TABLE"."DATE" as "Date"
    from "TABLE" "TABLE" @LINKNAME
    I get ORA-00933: SQL command not properly ended
    Tried CHRISD which is the name of the link, then tried CHRISD.REGRESS.RDBMS.DEV.US.ORACLE.COM which is the entire name.
    Neither one looks right to me but I can't remember the correct syntax for the link name... I remember putting something about userlink in there somewhere but nothing I can think of works.
    anyone?

    select ename from emp@dblink
    ...lose the double quotes.
    Scott

  • How to call the database

    I am planning to create a website using adf.So I connected to a database by using jdeveloper.Now I want to call that database in my webpage.Which is the easiest method to call the database in my webpage.Using java code or pl/sql code? I need to compare the given username and password with the database username and password?can anyone help me?

    In the login page ,I need to compare the username and password in the webpage with the database username and password.If it is verified, it should be go to home page.Can you give me the code for this procedure or anyone know ?
    Edited by: mrs on 28 Jun, 2012 10:44 PM

  • How to create a database from dfj zip file

    Hi,
    I have created a database template via DCA from PC-1 which has got oracle 9i and it has produced a file with extention dfj.
    I am trying to create a new database using this dfj file on a different pc which has oracle 10g.
    1- How can i use dfj file to create a new database?
    2- Can i use Oracle 9i templates in Oracle 10g?

    -in dbca you have the option to create the database from existing template
    -not sure if we can simply use 9i template in 10g but you may try, chances are less.

  • How to call translation template from bursting control file.

    Hi All,
    Greetings!!!!!!!!!!!!!
    Need help on calling translation template from the bursting control file.
    While calling the translation template from bursting control file it ends in error. Following is the error
    [063010_063059160][][EXCEPTION] The URL ( xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true ) is invalid.
    But same control file is working for standard tempalte.
    Here is the sample control file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !=''and POH_ORG_ID = 54]"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Please let me know how to call a translation template from bursting.
    Thanks
    Rajesh

    Got the solution...
    This is how we have to call a translation template from bursting file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL.fr.CA" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161 and CLANGUAGE2 = 'fr']"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 54 or POH_ORG_ID = 56 or (POH_ORG_ID = 161 and CLANGUAGE2 = 'en')]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    where
    XXX - Application shortname
    XXXPOXPRPOL - Template Code
    Hope this helps!!!!!!!!!!!!!!!!!!!!!
    Regards
    Rajesh

  • How to call a function in one .js file from another .js file

    Hello Techies,
    I am trying to call a function in two.js file from one.js file.
    Here is my code
    one.js
    <script>
    document.write("<script type='text/javascript' src='/htmls/js/two.js'> <\/script>");
         function one()
                        var a;
                       two(a);
              }two.js
                  function two(a)
                          alert("two");
                      }But the function two() is not working.
    How can I do this one??
    regards,
    Krish

    I think there is a syntax error in line
    document.write("<script type='text/javascript' src='/htmls/js/two.js'> <\/script>");
    end tag <\/script> is wrong.

  • How to call an application or a execute file in trigger?

    Hi,
    Can I call an application or a execute file in trigger?
    And how to do it?

    Hi Sarah,
    It would have been helpful to answer your question if your requirement was more detailed.
    Anyway, I assume that you want to know how to execute or run a sql script file from a trigger and if that is the case then you can use EXECUTE IMMEDIATE stmt in your trigger as follows-
    EXECUTE IMMEDIATE '@script_name';
    Regards,
    Murali Mohan

  • How to call a function from a JAR file

    Hi ALL,
    I am trying to call a Public function from a JAR file from my JAVA
    file. Can you please provide an example or suggest a good resource?
    Basically my java file Test.Java should call a function called 'export_a_doc' from a JAR file Export.jar. How do I refer this in my Java file and call 'export_a_doc'?
    Thanx

    Hi,
    HERE IS MY JAVA FILE
    // We need this for Starting our Export Process
    import com.newexport.Myclass;
    public class MyTest {
         // Our function to Start Export
         protected static void test(String[] args) {
         System.out.println("Starting. \n---------------------");
         Myclass p = new Myclass();
         try {
    p.Start_Export(args);
    System.out.println("Finished. \n---------------------");
         } catch(Exception e) {
    e.printStackTrace();
         public static void main(String[] args) {
         test(args);
    HERE IS THE BATCH FILE TO BUILD AND RUN
    cd \JNI\Srcs
    echo "-------------"
    c:\JBuilder7\jdk1.3.1\bin\javac -classpath C:\JNI\Export.jar MyTest.java
    echo "-------------"
    \JBuilder7\jdk1.3.1\bin\java.exe -classpath c:\JNI\Export.jar MyTest
    The Export.jar uses other jar files
    Raj

  • How to call a query from the backing bean ?

    Hi all,
    Another question for you guys :
    I made a jspx page with an input form and a submit button.
    When I click the submit button, the action my_action in my backing bean is executed.
    This is the code :
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public String my_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("EmployeesView");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    I hoped that the query 'EmployeesView' was executed in this way, but I get the following exception :
    java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be cast to oracle.binding.OperationBinding
    So how should I execute the query EmployeesView ?
    Second part of the question : What if I typed the name an employee in my form, and I want to
    execute a query that selects all the Employees with that name ?
    How do I make a query with a variable as input in the WHERE clause ?
    Thanks in advance.
    Edited by: Facehugger on 7-apr-2010 11:15

    I'm still trying all the stuff you guys says, but still no result.
    This is my backing bean :
    +// the button action+
    +public String my_action()  {+ 
    +// get the selected rows from the multiselect table and store the objectid's in an String array+
    RowKeySet rks = graph_table.getSelectedRowKeys();
    Iterator itr = rks.iterator();
    Object key;
    int nbr_objects = 0 , i = 0;
    if (rks.size()>0)  nbr_objects = rks.size();
    +String[] objectid = new String[nbr_objects];+
    while(itr.hasNext())
    +{+
    key = itr.next();
    graph_table.setRowKey(key);
    Object o = graph_table.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
    Row row = rowData.getRow();
    +objectid[i] = row.getAttribute("Objectid").toString();+
    i+;+
    +}+
    +// now get all the x and y values for these objectid's from the database out of the table history.+
    BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
    for (int j=0 ; j<nbr_objects; j+){+
    +// get X and Y values for object number j+
    DataPoints history = new DataPoints();
    OperationBinding operationBinding = bc.getOperationBinding("retrieveHistory");   ===> operationBinding stays NULL ???+
    +operationBinding.getParamsMap().put("OBJECTID", objectid[j]);+
    Object retVal = operationBinding.execute();
    +// ==> retVal should contain a List of all X and Y values for the provided objectid.+
    +// while (retVal has values)+
    +// {+
    +// List_of_x_values.add(retVal.valueX);+
    +// List_of_y_values.add(retVal.valueY);+
    +// }+
    history.add(List_of_x_values);
    history.add(List_of_y_values):
    +// call the soap method to do some calculations+
    methodname.forecast(history);
    +}+
    +}+
    In my application module :
    public void retrieveHistory(String objectid) {
    getHistory().setWhereClause("OBJECTID = '" + objectid + "'");
    System.out.println("current query : "+getHistory().getQuery());
    getHistory().executeQuery();
    public ViewObjectImpl getHistory() {+
    return (ViewObjectImpl)findViewObject("History");+
    The query for the VO History : SELECT * FROM HISTORY
    Please anyone ?
    Edited by: Facehugger on 9-apr-2010 14:19

  • How to call a custom controller method in a view

    Hi ,
    I am getting the partner no in the custom controller method . I want  to call that method in the view.How is it possible......?

    Hi Masood,
    now i dont want cross compnent navigation ....
    Requirement : Account Identification number in ZVIEW
    My component is  CRMCMP_BPIDENT
    In the custom controller   CRMCMP_BPIDENT/CuCoBuPa  under context node   SEARCHCUSTOMER
    the attribute struct.partner is available 
    in this component  im navigating from  
    CRMCMP_BPIDENT/ObjectCompVs   to   ZCRMCMP_BPIDENT/ZProducts 
    in the layout of   ZCRMCMP_BPIDENT/ZProducts
    TRY .
    lr_cuco ?= controller->get_custom_controller( 'CRMCMP_BPIDENT/CuCoBuPa' ).
    CATCH cx_sy_move_cast_error.
    RETURN.
    ENDTRY.
    check lr_cuco is bound.
    lr_entity ?= lr_cuco->typed_context->SEARCHCUSTOMER->collection_wrapper->get_current( ).
    check lr_entity is bound.
    lv_account_name = lr_entity->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
    this code is written to get the account identification number but still the same problem
    lr_entity not getting populated .......
    i checked  IF_BSP_WD_HISTORY_STATE_DESCR~IS_RESTORABLE 
    hr rv_result is set to x.....
    any  suggestions....
    Regards,
    Sijo...

Maybe you are looking for

  • Quick Trim option in Save for Web & Devices

    Hi, a feature to do a quick Trim in Save for Web & Devices dialogue would be great, especially if it was enabled with a checkbox, then when you enable it, it activates a dialogue with the three options that already exist in Trim option (Transparent p

  • How do you color tif images??

    Yet, another issue with indesign.  Longtime PM user, I could bring in a tif, like a logo, and select any color and poof, done.  Now the same tif, in indesign, and I'm colorizing THE DREADED BOX, not the actual image?  I've tried deselecting, ungroupi

  • Download form in word document

    Hi, Can i download the smartform in word document. I know it is possible in PDF, but my requirement is they want that form in word document.

  • Bapi to return a Sales order (RMA)

    Hi guys, I am trying to do a return using a sales order as reference. I am using: - BAPI_OUTB_DELIVERY_CREATE_SLS <<< to create a delivery - BAPI_TRANSACTION_COMMIT <<< to commit my changes - WS_DELIVERY_UPDATE <<< to PGI It doesn't produce any error

  • Missing the + sign in Contacts and phone.

    Hi. After updating to new IOS I am now missing the + sign in my contacts. I updated a few days ago but only noticed now as I went to add a new contact. Is there a trick to getting it back?  I have powered right off and back on again but no change.  T