Pass values to bind variales and execute VO query

Hi All,
I have a requirement to add validation to an appraisal page via OAF.
As a part of testing I need to check, if the values in the query of VO is displayed in the page.
VO - QuestAnsValuesVO
EO - QuestAnswerValueEO, QuestFieldEO
The VO query is
SELECT * FROM (SELECT QuestAnswerValueEO.QUEST_ANSWER_VAL_ID, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID, QuestAnswerValueEO.FIELD_ID, QuestAnswerValueEO.OBJECT_VERSION_NUMBER, QuestAnswerValueEO.VALUE, QuestFieldEO.FIELD_ID AS QUEST_FIELD_ID, QuestFieldEO.NAME, QuestFieldEO.TYPE, QuestFieldEO.HTML_TEXT, rank() over (partition by QuestFieldEO.NAME order by QuestFieldEO.FIELD_ID) AS RANK, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID AS QUESTIONNAIRE_ANSWER_ID1 FROM HR_QUEST_ANSWER_VALUES QuestAnswerValueEO, HR_QUEST_FIELDS QuestFieldEO WHERE QuestFieldEO.QUESTIONNAIRE_TEMPLATE_ID(+) = :1 and QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID(+) = :2 AND QuestFieldEO.FIELD_ID = QuestAnswerValueEO.FIELD_ID (+)) QRSLT ORDER BY QUEST_FIELD_ID
I am trying to execute this query in the extended controller class so that i can get the values printed on the page. I am getting SQL exception saying - not all variables are bound.
How do i pass values to bind variables :1 and :2 and execute this query?
Please help.
Thanks
Geetha

Geetha,
Instead of :1 and :2 use a named bind variable as part of your VO and then set either a default value or set its value during runtime. See this example on how to create bind variable:
http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
Once created, you can set its value during runtime either in ApplicationModuleImpl or in ViewObjectImpl class
e.g.,
         ViewObjectImpl view = this.getEmpView();
        VariableValueManager vm = view.ensureVariableManager();
        vm.setVariableValue("empNo", value);
        view.executeQuery();regards,
~Krithika

Similar Messages

  • Passing value to bind variable of another table from one table

    hi,
    I have a multi select table. When one row is selected from this table (no button is clicked, only selection is done), an attribute from that selected row (say userid) should be passed to the bind variable of another table and the corresponding details of that particular userid should be displayed in the other table. When more than one row is selected, the other table should display no rows.
    My main problem is what code has to be written to pass value to bind variable and where it should be written.
    Please give me a detailed explaination as soon as possible.
    Thank you.

    Sorry, didnot add this. The table is multi select table.

  • How to assign values in the webservice and execute it

    Hi ,
    I m using web Dynpro JAVA and want to execute web service by setting the parameter as the values taken after execution of BAPI.
    I  m able to display the values fetched from the BAPI in the view controller but  when I m trying to set those same values as a parameter of  the web service and execute it then it is not displayed in the view controller.
    I have initialized the web service and assign the values by using the structure binding and copying all the values from model node to value node and then I assigned the values node as a parameter of the web service and then I execute it.
    But the web servide doesnot execute properly.It is not showing me any error.But the problem is unexecution of web service.
    Please solve my querry ASAP.
    Edited by: dkjha123 on Oct 4, 2010 2:27 PM

    Hi Poojith,
    1. It is not throwing any error when I try to execute it through WDJ application.
    2.I imported  the WS model using logical destinations .
    3.Yes I set the input parameters in the expected form for WS.
    For your refrence
    for(int i=0;i<size;i++)
              wdContext .currentRequest_R2WebswsViDocument_SOWriteBackElement().setSocc(wdContext.nodeR2So().getR2SoElementAt(i).getComp_Code());
              wdContext .currentRequest_R2WebswsViDocument_SOWriteBackElement().setSoid( wdContext.nodeR2So() .getR2SoElementAt( i).getEmployee());
              wdContext .currentRequest_R2WebswsViDocument_SOWriteBackElement().setSoname( wdContext .nodeR2So() .getR2SoElementAt(i).getEe_Sname());
              wdContext .currentRequest_R2WebswsViDocument_SOWriteBackElement().setSoso( wdContext .nodeR2So() .getR2SoElementAt(i).getSales_Off() );
              wdContext .currentRequest_R2WebswsViDocument_SOWriteBackElement().setSostatus( wdContext .nodeR2So() .getR2SoElementAt(i).getEmplstatus());
              String msg1= wdContext .nodeR2So() .getR2SoElementAt(i).getEe_Sname();
              wdComponentAPI.getMessageManager().reportSuccess("Successfully submited values"msg1"<BR>");
    // for the execution:-
    wdThis .wdGetSoWriteBackCustController() .executeRequest_R2WebswsViDocument_SOWriteBack() ;
    //for checking the execution
    wdComponentAPI.getMessageManager().reportSuccess("Successfully submited values");

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Passing values to sub VI and writing data to controls

    As part of a control interface for a VFD i am interfacing with using Modbus TCP I wanted to try and compartmentalise some of my code into a subVi
    However in doing so I am having a lot of trouble understanding how I can read the current drive settings for the Ramp up and Down values and update those values into the main faceplate of my control.
    The sub Vi is tested and works exactly how I want. Selecting Read (latch on pressed) reads the registers from the drive and outputs it to the controls and the indicators. The indicators were incorporated because I did not know how to pass the data out of the sub vi without them. Updating works to write the current value in the controls to the VFD registers.
    However when I incorporate this VI into my larger project the values are always displayed as zeros if I have the switch set to latch. However i do see a momentary flash of the correct values soon after pressing the read button or if i change it from latched operation to switched, however i would prefer it to opperate in a latched mode so as to reduce communication overheads to the drive. 
    Solved!
    Go to Solution.
    Attachments:
    Modbus sub vi.pdf ‏943 KB

    Hi,
    A number of suggestions:
    1. Use references and property nodes to set FP indicators from a subVI (you can learn more here and here)
    2. Don't put output indicators inside Cases. When the case is not Read, the VI outputs default values to the outputs and gives you the zero values. 
    Good luck,
    Danielle
    "Wisdom comes from experience. Experience is often a result of lack of wisdom.”
    ― Terry Pratchett

  • ADF BC: modifying VO bind params before executing the query

    Hi gang
    I've a use case in ADF BC where I need to modify View Object bind parameters (eg. convert strings to uppercase) entered by users to change the result of the underlying VO query, and show the modified bind parameters to the user after the query.
    Normally I would do this in the VO query by modifying the query where clause with the appropriate SQL. However this method is not applicable in this specific use case as the user doesn't get to see the modified bind parameters as a result.
    I've thought about a few options including:
    1) Generating the bind parameter accessors for the ViewObjectImpl and overriding the bind parameter setters to convert all string values to uppercase. This wasn't suitable as it looks like ADF Faces RC doesn't make use of the accessors via the default ADF bindings.
    2) Overriding the applyViewCriteria() method in the ViewObjectImpl - which however isn't appropriate as it applies to search fields entered as view criteria, not bind parameters.
    3) Overriding the executeQueryForCollection() method in the ViewObjectImpl - I thought I was on a winner here as I could retrieve the bind parameters via a call to getNamedWhereClauseParams(), modify the bind params and then call setNamedWhereClauseParams() to set them back. Unfortunately to really set the params I then need to call executeQuery() inside executeQueryForCollection() which puts the VO in a loop. You can see my sample code below:
    @Override
    protected void executeQueryForCollection(Object queryCollection,
                                             Object[] bindParams,
                                             int noUserParams) {
      AttributeList bindParamList = getNamedWhereClauseParams();
      String[] bindParamNames = bindParamList.getAttributeNames();
      Object[] bindParamValues = bindParamList.getAttributeValues();
      boolean valueChange = false;
      if (bindParamNames != null && bindParamValues != null) {
        String bindParamName = null;
        Object bindParamValue = null;
        for (int i = 0, j = bindParamNames.length; i < j; i++) {
          bindParamName = bindParamNames;
    bindParamValue = bindParamValues[i];
    if (bindParamName != null && !bindParamName.equals("")) {
    if (bindParamValue instanceof String) {
    if (bindParamValue != null && !bindParamValue.equals("")) {
    bindParamList.setAttribute(bindParamName, (Object)((String)bindParamValue).toUpperCase());
    valueChange = true;
    } // else do nothing; null String
    } // else do nothing; only interested in converting Strings to upper case
    } // else do nothing; bind parameter name is null
    } // else do nothing; bind parameter name or value list is null
    if (valueChange) {
    setNamedWhereClauseParams(bindParamList);
    // executeQuery(); // we can't do this; causes an infinite loop
    super.executeQueryForCollection(queryCollection, bindParams, noUserParams);
    I can think of a number of solutions/hacks in ADF Faces RC to get around this issue, but ideally I'd like to keep the solution in the model layer. Does anybody have a better idea of how I could do this? Your help appreciated.
    Thanks & regards,
    CM.
    PS. JDev 11g Boxer 5188: ADF BC + ADF Faces RC

    Hi Chris,
    have you tried modifying the passed-in bindParams argument to work around the need to call executeQuery()?
    That's what I would've done:
    I would have set the named where clause params (like you do) and after that I would have tried to get a new parameters Object[] back by calling ViewRowSetImpl.getParametersAsStorageType() and pass that to the super call.
    Sascha

  • GeoRaster- loop through each cell and execute spatial query?

    Hi,
    So what I want to do is, to loop through each cell in a raster and get the ground x,y coordinates. Then based on the x,y value I want to execute a query on a vector layer.
    My question is, how do I find each cell coordinate? That I will then use with SDO_GEOR.getModelCoordinate to get the ground coordinates, query vector, etc...
    Thanks.

    I am not sure what you want to do. Why not just use the spatial extent of the GeoRaster object?
    Anyway, say sdo_geor.getULTCoordinate returns (r0, c0, b0), and sdo_geor.getSpatialDimSizes returns (rows, cols). The range of the cell coordinates (at the original image level) are:
    row: r0 -- r0+rows-1
    column: c0 -- c0+cols-1
    Regards,
    Terry

  • Splitting and executing the query for each 1 lac and executing parallel.

    Hi All,
    We have a table with around 10 keys and each key is having more than millions of records for a given date.
    And my requirement is to find the sum of the sale_price of each keys.
    ( example :
    Select key, sum(sale_price) from table1 where date1=sysdate
    group by key
    Since, each set of key contains more than a millions of records, It's time consumption is too high.
    Is thr any way to achieve as below,
    For key 1 (assume 1 million records)
    and we will spilt these into 100 parts and execute parallelly.
    At the end get sum of all 100 parts.
    Similarly for other keys....
    Is it possible to divide the records into 1 lac each and give it for parallel execution ?

    If the key column is also the partition key, I would expect that to work well with parallel query. What have you tried that isn't working? Also what is your Oracle version?

  • How to pass values in dynamic structure and then dynamic table

    Hi,
    we have a Z structure in se11 holding 10 fields. But at run time i need to create a dynamic table with more than 10 records.
    I am able to create the structure and corresponding internal table. Now the issue is i have to populate this dynamic structure with some values and then append it to dynamic internal table. Since the dynamic  table type is any its not allowing an index operation like modify etc etc.
    Could anyone help me in passing the values . I have searched in SDN . everyone created a dynamic table and then populated it values from some standard or custom tables.Then assigning the component of structure  and displaying the output. but in my situation i have no such values stored in any tables. i populate values based on certain calculation.

    Hi Friends,
    This is the piece of code.After creating dynamic work area and dynamic table what i should do?
    TYPES: BEGIN OF STR,
    ID TYPE I,
    NAME(30) TYPE C,
    END OF STR.
    data: v_lines type i.
    STR_TYPE ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( 'STR' ).
    STR_COMP = STR_TYPE->GET_COMPONENTS( ).
    APPEND LINES OF STR_COMP TO COMP_TAB.
    COMP-NAME = 'NAME1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING(  ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    NEW_STR = CL_ABAP_STRUCTDESCR=>CREATE( COMP_TAB ).
    NEW_TAB = CL_ABAP_TABLEDESCR=>CREATE(
    P_LINE_TYPE = NEW_STR
    P_TABLE_KIND = CL_ABAP_TABLEDESCR=>TABLEKIND_STD
    P_UNIQUE = ABAP_FALSE ).
    CREATE DATA DREF TYPE HANDLE NEW_TAB.
    CREATE DATA DREF1 TYPE HANDLE NEW_str.

  • View with Bind Variable and ADF table

    Hi all,
    Please note what i have noticed. I created a view with a bind parameter, overriden the prepareSession of my Application Module to set the bind parameter and execute the query. I then created a simple jsf page and included the view as an adf read-only table. When i run the page, the prepareSession is called, sets the bind parameter, however the selected record of the table is always the second record (Not the first record).
    This behaviour can be reproduced with the HR schema. Please follow the below instructions for reproducing the problem.
    1. Create a Fusion Web Application (ADF).
    2. Create business components from tables.
    3. Create a new connection with the HR schema.
    4. Import the Departments table as an entity and then click finish.
    5. Create a view based on the Departments entity.
    6. Modify the Query to include a where clause (where DDepartmentsEO.DEPARTMENT_NAME LIKE :BindParam)
    7. Provide an order by clause (DepartmentsEO.DEPARTMENT_ID DESC)
    8. Creata a bind variable named "BindParam" of type string.
    9. Create an Application Module and include the view object.
    10. Open the Application Module Class and override the prepareSession method
    11. include the following code after super.prepareSession(session):
    ViewObject myView = this.getDepartments1();
    myView.setNamedWhereClauseParam("BindParam", "%");
    myView.executeQuery();
    12. Create a jsf page
    13. Drag the view object on the page as an adf read-only table, selecting the Row Selection, Sorting and Filtering
    14. Run the page.
    You will see that instead of the first record being selected, the second record in the table is selected.
    Can anyone please help me?
    Thank you

    First of all i would like to thank you for replying to my thread.
    Secondly, i would like to inform you that the example that i have provided is just for REPRODUCTION purposes.
    The real scenario has to do with setting the where clause with the authenticated user so that the view will query for data only associated with the authenticated user.
    The only way to overcome this behaviour is to include a view action (namedWhereClause in the page definition)
    However, this is not how i want to implement this. This was working properly in 10g

  • Passing value from JSP to JApplet

    Hello,
    I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
    to a JApplet,
    and the parameter passed through JSP should be displaed in the JTextArea.
    It would be kindful if any of you could help.
    Thanks
    Sanam

    hello,
    thanks for reply.
    I know how to pass parameters from html,
    I want to pass values from jsp page,
    and i dono how to do it, may be we cann pass values through url connection but i dono how.
    if anone knows plz help me in solving this.
    i hvae posted my applet code.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    <applet code = "DocApplet" width = 500 height =5000>
    </applet>
    public class DocApplet extends JApplet
         private JPanel jp;
         private Container cp;
         private JTextArea jt;
         private JToolBar tb;     
         private JScrollPane sp;
         private String annotation;
         private String url;
         private Connection con;
         private Statement stmt;
         public void init()
              jp = new JPanel();
              cp = getContentPane();
              jt = new JTextArea();
              tb = new JToolBar();
              sp = new JScrollPane(jt);
              repaint();
         public void start()
              jp.setLayout(new BorderLayout());
              jp.add(tb, BorderLayout.NORTH);
              jp.add(sp, BorderLayout.CENTER);
              jt.setBackground(Color.BLACK);
              jt.setForeground(Color.WHITE);
              setContentPane(jp);
              addButtons(tb);
              repaint();
         public void run()
              repaint();
         public void paint()
         private void addButtons(JToolBar tb)
              JButton button = null;
              button = new JButton("Save");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
              tb.add(button);
    }

  • Passing value from JSP to JSPDynPage onclick of link

    Hi,
    I have extracted a value in the JSP page and i want to send this value back to the JSPDynPage on click of a link(the link is dependent on the value).
    How can i do that?

    hi Sujoy,
    you can pass values by using beans and display the passed data in a new jsp page.
    firstly create a jsp page,that accepts user data,say for example i am placing a text box and a button,
    next,create a jspdyn page---
    private final static int INITIAL_STATE = 0;
        private final static int FINAL_STATE = 1;
        private int state = INITIAL_STATE;
        private final static String BEAN_KEY="nameBean";
        public void doInitialization(){
          IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
          IPortalComponentContext ctxt=request.getComponentContext();
          displayNameBean mybean = new displayNameBean();
          ctxt.putValue(BEAN_KEY,mybean);
    public void doProcessAfterInput() throws PageException {
             InputField myInputField = (InputField) getComponentByName("user_name");
    if (myInputField != null) {
    IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
    IPortalComponentContext ctxt = request.getComponentContext();
                 displayNameBean mybean1=(displayNameBean)ctxt.getValue(BEAN_KEY);
                   mybean1.setName(myInputField.getValueAsDataType().toString());
        public void doProcessBeforeOutput() throws PageException {
          switch (state){
               case INITIAL_STATE:
               this.setJspName("loginPage.jsp");
               break;
               case FINAL_STATE:
               this.setJspName("successloginPage.jsp");
               break;
        public void onButtonClick(Event event) throws PageException {
             state=FINAL_STATE;       
    finally display this value in a new jsp page as follows--
    <jsp:useBean id="nameBean" scope="application" class="NewProject.bean.displayNameBean" />
    <%@ taglib uri= "tagLib" prefix= "hbj"%>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
    <hbj:textView
         id="welcome_note"
         design="HEADER2">
         <% 
         welcome_note.setText
         (nameBean.getName());
         %>
    as simple as that!!
    regards
    SwarnaDeepika
    P.S:Please reward points for helpful answers.

  • Error in passing value

    Hello expert,
    Need your help its Urgent
    Currently, in my report when user clicks on a particular column, popup will be display with more information for that particular data. This is working perfectly fine only if data or passing value doesn't contain “&” (and sign) character. If my data has got the “&” sign then popup will display with page not found error.
    Any suggestion or alternative, Please reply it’s urgent,
    Thanks in advance
    Sagar

    Hello sagardori,
    The first possible situation:
    The ampersand (&) is used in the URL syntax to pass variables. So if you have a text like this in an item:
    Hello I am the one & this is the otherthe parameter will pass like this:
    P1_ITEM:Hello I am the one & this is the other
    And the & will define that there iis a new parameter.
    Always use:
    &amp; instead of & when using an URL with HTML
    Had to put it in code tags, because it doesn't escape on the forum as well :)
    P.S.
    You can of course check the parameter in the URL of your popup page
    The second possible situation:
    When using special chars in APEX, you should be aware that the default way to handle text fields, textareas or even display values (like in a report) have 2 modes.
    1. Display as text(escape special characters)
    2. Standard Report Column
    There are actually some more variations but these two are the most straightforward. If you use the first, all special characters will be escaped. So if you put in:
    <script type='text/javascript'>
    alert('Hello, is it me you looking for');
    </script>You will get exactly that code, only because it's escaped.
    If you would put it in as a standard report column, it would show the alert box, because the code's not escaped, thus treated as a javascript.
    So in short,
    1. Check your URL (especially passing parameters)
    2. Check your report settings for the right type of text handling.
    Hope this helps,
    Greetings,
    Rutger
    http://rutgerderuiter.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/
    Edited by: [email protected] on Oct 13, 2008 1:37 AM

  • RRI passing value for hierarchy

    Hello
    I have 2 queries, sender and reciever.
    In my sender query i have fund center in the rows and the hierarchy is active with a vaible entry input(mandatory) variable.
    I have the same settings for the fund center in my reciever query. The variable is also there.
    In RSBBS i have done the settings as type generic for all info objects and selected * as selection type.
    Now I execute my sender query. when i right click on the fund center(not the values appearing) to jump to the second query it then again displays the screen to enter the value for the variable for fund center for second query.
    What settings do i need to do as i do not want to see the variable screen. I want the report to show the values staright away.
    thanks

    Hi Tom,
    I'm just telling some steps for RRI.
    I'm hoping this might give you some insight on your current issue.
    Steps for RRI
    > Generate 2 querys in BEx, using 2 different cubes. 1 is a detailed version, another is a summarized version. Say, one query called TEST1 (Supplier) has a structure as under ( CustID | Material ID ) from the Customer Cube
    > Now, you have to create another query called TEST2 (Receiver),  which is a detailed version. 
    > Like say TEST2 has smtg like [CustID | PurchID | SuppID |Qty | Amt] belonging to Purchase Cube
    Goto RSBBS, Transaction code for creating a RRI
    > Now, include the TEST1 in Supplieru2019s Name
    > Now create a new request for RRI below, and use the query/report  called TEST2 under Reportu2019s Name, which is the Receiver.
    > Thatu2019s all! Itu2019s done. Now go to BEx, and execute the query TEST1, so  what we see is the outcome. We can navigate from cube 1
    (Customers) to cube 2 (Purchase).
    > Right click CustID in TEST1 Query. You can see the Goto TEST2. 
    > Now details of the purchases made by the customer is available in TEST2 Query of the Purchase Cube 
    Thanks,
    Arun Bala G
    Edited by: Arun Bala G on Jan 11, 2010 2:57 PM

  • Enter and execute query in ADF

    Hi Experts,
    I am trying to implement Enter-Query/Execute-Query in adf and using Jdev 11.1.2.2.0. I put Find and execute operation on the form. When i press execute button i says me to enter value for mandatory fields. But i am try to execute query not trying to create or update records. In forms we can query on any attribute.
    Please guide
    Thanks

    Enter and execute query in Oracle Forms starts with a simple row by row form for updating a table. When you press the "Enter Query" button, the form clears and the user can enter query by example criteria for any of the fields on the form. Then the user presses the "Execute Query" button, and is back in the update form, but with the data for the first matching row shown.
    Here is a page with some links to articles by Steve Muench that explains some ways to implement this in ADF 10.1.3 - I think these techniques should still work in ADF 11g:
    http://radio-weblogs.com/0118231/2006/02/13.html#a658
    Another way with ADF 11g might be to put an af:query component in one facet of an af:switcher and the update form in the other facet. The Enter Query button on the update form tells the switcher to switch to the query facet, and executing the query also tells the switcher to switch back to the update form.

Maybe you are looking for

  • In which tables are CIC0 billing data stored?

    Dear Gurus, Quick question.. may I know in which tables are the billing transaction data stored? Thanks in advanced. BR, Jayne.

  • Bubble Chart Labelling

    I have a bubble chart where each doctor is his own bubble, and I have about 18 bubbles. Is there a way to make the labels on a bubble chart be the Doctor name, instead of the number of cases eash doctor has? With 18 bubbles it's difficult to tell fro

  • How to smooth these pixels out...?

    How can I smooth the pixels out on the bottom rounded parts of this image? http://www.themaxidressshop.com/images/awnings.jpg

  • Oracle post failover transaction commit error

    I have a problem on trasaction after database failover. Solaris 8, WLS 6.1 sp3, Oracle 8.1.7 (2 Oracle instances, one is primary and another is standby), JDK 1.3.1 We found this problem in Oracle (Net 8 connection time) failover test. Here is what we

  • How to control Page privilege?

    Dear all: Thanks you at first; 1.First we to browse that web page www.umc.com; 2.Immediately after, the main page of that website mainly make it be divided into 4 parts, the single column of the main course of the top is the first part, the detailed