Making a query in Forms 6i to insert values

Hi everyone,
I have 2 Data Blocks in Forms 6i, one is not a Database Data Block and the other one is.
In my first Data Block I have 3 items: teacher_id, grade and class_id
Then, the second Data Block has 10 items where I'm going to be showing 10 rows of data
from my database when the user types the credentials on my 3 items that belongs to my first
Data Block.
Seconda Data Block items:
student_id, student_name,grade_q1,grade_q2,grade_q3
The form should be able to bring just the student_id and the student_name. I have to type then
grade_q1, grade_q2, etc. After that I have to add a buttom to insert all the new information that
I typed to the database.
My question is:
How can I make Forms 6i bring all the data that belongs to that teacher_id, grade and class_id?
After that I would like to insert some data and insert them in the same form.
Can anyone please help me!

Hi,
In my first Data Block I have 3 items: teacher_id, grade and class_id This is the non database block right?
Then, the second Data Block has 10 items where I'm going to be showing 10 rows of dataThis is that database block right?
from my database when the user types the credentials on my 3 items that belongs to my first
Data Block.
Seconda Data Block items:
student_id, student_name,grade_q1,grade_q2,grade_q3
The form should be able to bring just the student_id and the student_name.
I have to type then
grade_q1, grade_q2, etc. After that I have to add a buttom to insert all the new information that
I typed to the database.
My question is:
How can I make Forms 6i bring all the data that belongs to that teacher_id, grade and class_id?Does teacher_id and class_id belong to the second data block or in the table on which the second block is based.
If yes In the PRE-QUERY triggers of the second block use :
SET_BLOCK_PROPERTY ('SECOND_BLOCK_NAME', DEFAULT_WHERE, 'TEACHAER_ID = ' || :FIRST_BLOCK_NAME.TEACHER_ID || ' AND
                                                                                                  CLASS_ID = ' || :FIRST_BLOCK_NAME.CLASS_ID);Not sure why does first data block have grade, how is it related to query data from second data block.
If you do know then use the grade as required in the DEFAULT_WHERE.
After that I would like to insert some data and insert them in the same form.Now once the block is queried only records matching criteria from first_block will be displayed.
Now User can update the records as required and simply save the records.
Hope this helps.
Best Regards
Arif Khadas

Similar Messages

  • Opening Form in Insert mode but making a query at the same time

    My problem is that I want to open a Portal Form in Insert mode but at the same time making a query.
    If I call a form with patameters the form opens automatically in update mode (to be more precise with FORMSTATE = UPDATE_AND INSERT). In that case the insert button is not shown.
    I have come very close to a solution by running this code:
    BEGIN
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_FORM_STATE',
    p_value => 'QUERY_AND_INSERT');
    END;
    under "... before processing the form". The form-state changes to QUERY_AND_INSERT' and I get the record from the table that I want but I still see no insert button!
    I think that I can solve this problem in some table-triggers in the database but it would be interesting to know weather it is possible to do this in the portal.

    Kari,
    You can workaround the disappearing Insert button by creating a custom button instead.
    If you look at the "standard" Insert button code it looks like this:
    --- Type your PL/SQL code here...
    doInsert;--- This is the default handler
    --- ...and here, thanks...
    in the generated forms package doInsert just calls internal insert handler:
    procedure doINSERT
    is
    begin
    onINSERT(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    end doINSERT;
    If you add a custom button to your form and from PLSQL event combobox select "Custom", then copy&paste this code to the event code:
    onINSERT(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    You will get a custom button which does exactly what the Insert button does and it will not disappear from the screen.
    Thanks,
    Dmitry

  • How to receive parameters from a form and insert values in db using servlet

    Hi friends,
    My first question here.
    I'm trying to create a Servlet that takes input from a form and process it and insert it in database.tablename.
    My MAIN ISSUE IS WITH THE NUMBER OF COLUMNS THAT WOULD BE DYNAMIC AND THUS CANT RECEIVE THE PARAMETERS IN STATIC CODE.
    Here is the form code
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <form action="Test" method="post" />
    <table width="90%" border="1" cellspacing="1" cellpadding="1">
    <tr>
    <th scope="col">Student Name</th>
    <th scope="col">RollNo</th>
    <th scope="col">Java</th>
    <th scope="col">J2ee</th>
    </tr>
    <tr>
    <td><input type="text" name="studentname" /></td>
    <td><input type="text" name="rollno" /></td>
    <td><input type="text" name="java" /></td>
    <td><input type="text" name="j2ee" /></td>
    </tr>
    <tr>
    <td><input type="text" name="studentname" /></td>
    <td><input type="text" name="rollno" /></td>
    <td><input type="text" name="java" /></td>
    <td><input type="text" name="j2ee" /></td>
    </tr>
    <tr>
    <td><input type="text" name="studentname" /></td>
    <td><input type="text" name="rollno" /></td>
    <td><input type="text" name="java" /></td>
    <td><input type="text" name="j2ee" /></td>
    </tr>
    </table>
    <input type ="submit" value="insert values in the database now"/>
    </form>
    </html>
    And here is the Servlet
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.io.*;
    public class Test extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Module: Process Result Values from previous page";
    out.println("<html>\n" +
    "<head><title>" + title + "</title></head>\n" +
    "<body>");
              try
                   Class.forName("com.mysql.jdbc.Driver");
                   Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/","root", "root");
                   Statement s = con.createStatement();
    ResultSet res = s.executeQuery("SELECT * FROM dbname.tablename");
    ResultSetMetaData rmeta=res.getMetaData();
    int noofcolumns=rmeta.getColumnCount();
                   if(!con.isClosed())
              catch(Exception e)
    System.out.println("Exception"+e);
    out.println(e);
    if(connectionFlag==1)
    out.println("</body></html>");
    doGet(request, response);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    This is the basic code structure and I'm trying to figure out this special case with handling the multiple parameters:
    1. I dont' want to use String []a=request.getParameterValues("studentname"); as hard code. The reason being the number of rows will be diyamic and I would like to get the column name and then then use an array of string to take values. But how can I connect these to form a query so that the rows goes on inserted one after other.
    Thanks,
    Mashall

    Thank you for your help.
    I'm something close to it but this segment of code throws a NullPointerException Error. I counted number of rows and columns using the methods getColumnCount() and getColumnName(i).
    ResultSetMetaData md = res.getMetaData(); //Get meta data for the resultset
    int noofcolumns=md.getColumnCount();
    out.println("<br />Number of columns in table (including name and roll number) :::: "+noofcolumns+"<br />");
    for(int i=1;i<=noofcolumns;i++) // access column 1....n
    String columnname = md.getColumnName(i); // get name of column 1....n
    out.println("<br />Current column name ::: "+columnname+"<br />"); //check if the name appear correct.
    String []columndata = request.getParameterValues(columnname); //Get raw value in array
    for(int j=1;j<=rows;j++) // here rows is number of rows in each column
    out.println("To be inserted: <b>"+columndata[j]+"</b> in Row ::: "+j+"<br />");
    //The line above thows null pointer exception.
    }

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • Oracle forms 10g,multiple insert and update problem

    Hi,
    I have tabular form(4 records displayed) with one datablock(based on a view).
    After querying the form could not update all the records but only first record value can select from LOV.
    I called a procedure in in-insert and on-update
    The query is lik this
    PACKAGE BODY MAPPING IS
         PROCEDURE INSERT_ROW(EVENT_NAME IN VARCHAR2)
         IS
         BEGIN
              IF (EVENT_NAME = 'ON-INSERT') THEN
                   INSERT INTO XX_REC_MAPPING
                   (BRANCH_CODE,COLLECTION_ID,PAY_MODE_ID,RECEIPT_METHOD,CREATED_BY,
                   CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN)
                   VALUES
                   (     :XX_REC_MAPPING.OFFICE_CODE,
                        :XX_REC_MAPPING.COLLECTION_ID,
                        :XX_REC_MAPPING.PAY_MODE_ID,
                        :XX_REC_MAPPING.RECEIPT_METHOD,
                        :XX_REC_MAPPING.CREATED_BY,
                        :XX_REC_MAPPING.CREATION_DATE,
                        :XX_REC_MAPPING.LAST_UPDATED_BY,
                        :XX_REC_MAPPING.LAST_UPDATE_DATE,
                        :XX_REC_MAPPING.LAST_UPDATE_LOGIN);     
              ELSIF (EVENT_NAME = 'ON-UPDATE') THEN          
              UPDATE     XX_REC_MAPPING
              SET BRANCH_CODE=:XX_REC_MAPPING.OFFICE_CODE,
                        COLLECTION_ID=:XX_REC_MAPPING.COLLECTION_ID,
                        PAY_MODE_ID=:XX_REC_MAPPING.PAY_MODE_ID,
                        RECEIPT_METHOD=:XX_REC_MAPPING.RECEIPT_METHOD,
                        LAST_UPDATED_BY=:XX_REC_MAPPING.LAST_UPDATED_BY,
                        LAST_UPDATE_DATE=:XX_REC_MAPPING.LAST_UPDATE_DATE,
                        LAST_UPDATE_LOGIN=:XX_REC_MAPPING.LAST_UPDATE_LOGIN
                        WHERE ROWID=:XX_REC_MAPPING.ROW_ID;
              END IF;
         END INSERT_ROW;
    END MAPPING;
    Whether the table gets looked or sholud i use some other trigger or loops ?
    someone suggest me how to edit this query for multiple update.
    Thanks
    sat33

    I called a procedure in in-insert and on-updateWhy are you writing this code in the first place? If you have a block based on an updatable view, just let Forms do the inserts and updates.
    If it's not an updatable view, use instead of triggers on the view.
    See this current thread too:
    INSTEAD of Trigger View for an Oracle EBS New form development

  • Problem in querying the form?

    hi everybody ,this group have helped me alot to understand the things better. i have created a form with template .fmb . and i have modified standard apps functionality of saving the form with the standard save button on the toolbar.
    now if i have two previous record with the name sunny and employee no 105 and 106 respectively and if i will press f11 and edit one of the records and make sunny and 107 and press save : it will insert a new row.
    now after that if i will press f11 and then query the form using ctrl-f11. then i am getting first two records:sunny 105 and sunny 106. i am not getting sunny 107 but this record has been inserted into the database.
    kindly let me know what can be the cause?what i can see this is beacuse of some property of the block because i have created a test form and its working fine there.
    so please help me fast as i dont have the time for RnD.
    thanks.

    Hi,
    This isn't R&D but the humble task of fixing your own code.
    Have you checked wether record no 107 is in the database (by means of SQL*Plus/Toad)
    If NO (insert is the problem)
    Check wether there is an on-insert trigger redefining de insert action. Or maybe there's you're inserting a view with an in-stead-of-trigger
    if YES (retrieval is the problem)
    Make all item except one 'non database items' and check wether you can retrieve the record. If you can, make the 'non database items' one by one 'database enabled'. In this way you see which item causes the problem.
    Matthieu

  • A form field to insert white space

    Hi all,
    I need to insert some white space (the number of these white space is depending to some condition) in a form field.
    I show in my report a value and then I must complete this value with some white space to have finally a string with a fixed number of characters.
    I have a form field with a value (<?VALUE?>) and then I would insert a new form field to show only some white space. I can not add these white space directly on the field form containing the value.
    Thanks

    Balaji wrote:
    I need insert white space into table which a VARCHAR2 column. Just insert it, Whats the issue?
    I would like to validate the below expression against the data in the column \S.* What is this expression and where did you get it from?
    I guess this pattern validates for non-whitespace characters. Anyone help me on this and explain what this pattern does?No in regular expression space is represented as [:space:]
    Please read {message:id=9360002}

  • Insert values from more than one select query

    Hi all, I've a simple question:
    I need to insert values into a table from two select statements.
    There's what I need to accomplish:
    I need to monitor the cursors opened on a database, so:
    I created the following table:
    O_CURSORS
    Cols: TOTAL (Number 5), USER (VARCHAR2 20), DATE (TIMESTAMP)
    I think some query like the following should work, but unfortunately, it doesn't.
    insert into O_CURSORS (total,user,date)
    values (
    (select a.value, s.username from v$sesstat a, v$statname b, v$session s where a.statistic# = b.statistic#  and s.sid=a.sid and b.name = 'session cursor cache count'),
    (select sysdate from dual)
    )This statement is not working, the message is
    "Not enough values"
    If I modify the statement as follows, it works fine
    insert into O_CURSORS (total,user)
    (select a.value, s.username from v$sesstat a, v$statname b, v$session s where a.statistic# = b.statistic#  and s.sid=a.sid and b.name = 'session cursor cache count'),
    )Any advice would be very appreciated!
    Thanks in advance.

    You don't have to select sysdate from dual; it can be a part of any select statement. Just include sysdate in your first query:
    INSERT INTO O_CURSORS (total,user,date)
    SELECT a.value, s.username, SYSDATE
    FROM v$sesstat a,  v$statname b,   v$session s
    WHERE a.statistic# = b.statistic#
      AND s.sid=a.sid and b.name = 'session cursor cache count'You'll note also that I elimiated the VALUES keyword, and just used a SQL statement to satisfy the INSERT statement.
    Edited by: user13640471 on Feb 21, 2011 1:17 PM
    Edited by: user13640471 on Feb 21, 2011 1:18 PM

  • How to Implement KFF Range (Low and High) in query find form in oracle apps

    Hi,
    Please provide some sample script for using KFF range LOV (Low and High) in one of the query find form in Oracle apps R12.
    I need to customize one of the standard form and add this range functionality for that search form.
    Thanks,
    Prasanna

    Yuvaraaj,
    Your request is unique to the Oracle Enterprise Business Suite (EBS). Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

  • How to run recordset SQL query in FORM DATA event

    How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?

    Hi Slamet,
    When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
    With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
    There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
    <i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
    Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
    Hope it helps
    Trinidad.

  • From Clause query with form variables

    forms 9.0.4 rdbms 9.2
    Is it possible to create a From Clause query with form variables generated from another block (but in the same form)? I am not having any success.
    I searched Metalink. It appears that according to DOC ID # 69884.1, in Forms 6i, this is not possible. Metalink suggest in DOC ID 104771.1 implementating a dynamic From Clause, but when I duplicate the example on my system, I receive an Oracle error. Further investigation from the web form (DISPLAY ERROR) indicates that the system does not see the dynamic value.
    Has anyone else run into this error? Has this been fixed in forms 9.0.4 and I am just missing something? Does a dynamic from clause query work? Can anyone point me to an example or post an example or offer any advise.
    thanks in advance

    As far as I know it is not possible to use block items in a from clause query in forms 9.0.4. Here is my solution for a From-Clause-Query via the 'Query-Data-Source-Name-Property':
    To use the values of the block items in my from clause query I implemented a database package with getter and setter routines for the block item values I needed for the query.
    In the Key-Exeqry-Trigger of the From-Clause-Query-Block I set the global package variables with values of the block-items I am interested in. In the From-Clause-Query I used the values in the where-clause via package functions which return the global package variables.
    Hope my solution will work for your problem.

  • Query Builder Form Hide

    Hi Guys,
    I am working on a requirement for manage attachment functionality. But I am facing one issue in one scenario.
    From Manage attachment screen, User clicks on Search From Repository and in search page there are some default or hidden fields. Like where author is match with the login user and etc. For Expanded form there is no issue. All the hidden fields are not coming and search result is coming fine. But if user changes to Query Builder Form and manually modify the query then user can see all the content.
    So I want to stop the user to show the Query Builder form by which he/she could not modify the query and search. Is there any process by which we can hide the Query Builder Form?
    I have seen one Jonathan blog: https://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/
    But I would like to full hide the form.
    Thanks in advance.
    Regards,
    Santanu

    Hi Guys,
    As part of the above solution  (DisabledSearchFormTypes=queryBuilder), the query builder form will never appear. Which is not a good practice.
    Because for development this is very useful.
    My intention was to stop the user access Query builder Form only in Manage attachment screen.
    So I have created one custom component which will override the resource : query_page_menus_setup and check the xIdcProfile value.
    If IdcProfile is PSFTProfile or EBSProfile then it will not appear.
    <$exec rsAppendNewRow("PageMenusData")$>
    <$PageMenusData.nodeId = "QUERY_BUILDER_FORM"$>
    <$PageMenusData.parentId = "SEARCH_FORMS"$>
    <$PageMenusData.label = "wwQueryBuilderActionLabel"$>
    <$PageMenusData.type = "item"$>
    <$if #active.dpDisplayLabel like ("EBSProfile|PSFTProfile")$> 
    <$else$>
    <$PageMenusData.href = "javascript:switchQueryForm('queryBuilder')"$>
    <$endif$>
    I think this is really good.

  • Query find form - customized search on a date field

    Hi All,
    I have a form which has query find behaviour enabled. When the user press on the search(torch light button) The query find form gets opened in a new canvas.
    I have a date field on the query find form. The current functionality is that
    "The form searches for the exact match on the date" but I want to have the results which satisfy <= "entered date".
    How do I achieve it in Query find form.
    Do I need to have the where condition appended in the Pre-Query on the results data block.
    Please help me with an example. Thank you.
    Srinivasa Mouli
    Edited by: 889427 on 4 Oct, 2011 11:43 AM

    Short of adding your own query extensions, you must pass in a Date
    parameter vs some stringified version.
    Paresh wrote:
    I want to query on a date field as follows
    "createDate < '2003-08-20 12:00:00:000' "
    createDate has DataType java.util.Date
    When I try to execute this query it throws UserException.
    If I use a parameter in the query string and pass a date object to execute
    method then it works fine.
    I just want to make sure that there in no way I can make the first
    approach work
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • I NEED HELP! Making a flash email form using php.

    Hi, my name is Sean, I'm making a flash contact form using php for a website.
    I'm having a hard time with the php. Can some one help?
    Click here to download my source.

    Satellite A505-S6005 
    ACPI Flash BIOS version 1.40 for Satellite A500/A505 (PSAT6U/PSAT9U)
    When you execute the download file (sat6v140.exe) it decompresses into several files in the sat6v140 folder. 
    Among those, is the readme.txt attached, which explains how to create the CD.
       Burn a CD or DVD from an ISO file
    -Jerry
    Attachments:
    readme.txt ‏14 KB

  • Difficulty in querying a form

    hii all
    i have a form on which i have a customer_name field
    it is a non database field
    i am getting the value of the customer_name field from customer id .
    but the customer _id field is not on the form
    i want to query the form based on the customer name
    like in the customer_name field i would query 'm%'
    but customer_name being non database it is not allowing me to query
    please help me to query it if it is possible
    thanks in advance
    Message was edited by:
    bindok mulga

    Hi,
    If U want in Sql Write the query like this :
    Select * from Table_Name Where Customer_Name Like 'M%';
    Other Wise If U want On Customer_Name Text Write The Query In Post text item of the Customer_Name Like:
    I Hope Table Name Is Customer_Dir ,?
    Declare
    Result Number;     
    M_Red_Color Varchar2(100) := Get_Item_Instance_Property(:System.Current_Block||'.'||:System.Current_Item, Current_Record, Visual_Attribute);
    Begin     
         If :Customer_Dir.Customer_Name is not null then
    :Customer_Dir.Customer_Name := Ltrim(:Customer_Dir.Customer_Name);
         Begin
         Select Customer_Cd Into :Customer_Dir.Customer_Cd
         From Customer_Dir
         Where Customer_Name= :Customer_Dir.Customer_Name;
    <<M_LOOP>>
    Loop
    Bscil.Show_Message('Bscil_stop', 'Entry ' ||:Customer_Dir.Customer_Name || ' Does Not Exist. (Please check your entry) ', Null, 'Ok', Null, Null, Result);
    If Result = Alert_Button1 Then
         Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'RED_COLOR');
         Raise Form_Trigger_Failure;
    Exit M_Loop;
    End If;
    End Loop;      
    Exception
         When No_Data_Found Then Null;
    End;
         Else
              :Customer_Dir.Customer_Cd := Null;
              End if;
    If M_Red_Color = 'RED_COLOR' Then
    Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'WHITE_COLOR');
    End If;
    End;

Maybe you are looking for

  • Error during the installation of ORACLE 10g for SAP MDM 5.5

    Hi all, I am installing ORACLE 10g on a SUSE LES 9 for a future MDM 5.5 system. While I launch the Installer I get the following error: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-09-26_07-11-46AM. Please wait ...oracle@mu

  • Director's Future - Live Chat with Adobe

    Hi all, I haven't posted here in a while : ) I've been speaking to Krishnan from the Adobe Director team. He is keen to have an open discussion about Director, it future and expectations of the community. This will be a live discussion where any ques

  • Iphone Videos & Video Out not working

    Hi All, I have several TV programmes on my iphone, and yet when i plug the iphone into my TV using the apple composite AV cable, and tell the iphone to display on screen nothing happens, no sound or picture at all. I have just moved to Chicago from L

  • Usage of  XSLT_TOOL  Transaction

    Hi All I have gone thru previous blogs related to XSLT mappings.In a few of them I could see that there is a mention of XSLT_tool transaction for XSLT-ABAP mapping.. Can anyone please provide me some details as to when this will be used.I mean is it

  • Problem to display image on report

    Hi, I have an image on a differnt server owned by different group. And I need to bring that image and display it on the report. Is this possible? Can some one hlep me how to do this? It was working fine in reports 2.5 but we migrated to 10g and it st