Auto querying using Portal form?

A friend of mine has a report that is linked to a form, where users can edit the data. The value from the report is passed to the report, no problem, but the user must manaully click on the query button to display the information. My question is: how can I make the report query on the passed value without having to manually click the "query" button? Thanks
Rich

Richard,
Please take a look at our FAQ:
http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm
"Building Applications" section has several examples of links how to call a form in "auto-query" mode.
Thanks,
Dmitry

Similar Messages

  • Using Portal Forms

    Hi, i'm Pedro
    I have a problem about using forms. How can i call a field of a based table form.
    For example using forms 6i, i use
    :<block>.<field name> to access field, and using Portal how can i do the same??
    The purpose to do this is to customize some events to do adicional funcions like validations
    Pedro Ribeiro

    Pedro,
    This is a tough one. You may want to try the Forms forum or 9iAs Portal forum to see if anyone else has tried this. This forum is for questions directly related to the Oracle Portal Development kit.
    thanks,
    Sue

  • PORTAL FORMS

    Hi ,
    When must I use PDK when developing an application using portal forms ?
    Do I need to use PDK for customized error handling ?
    If I want to use pl/sql via triggers to validate fields, how do I attach the trigger/s to the portal form fields?
    Thanks,
    Sonal.

    Hi Sonal,
    You will find the pl/sql button handlers for a button.
    Click on a link for a form item (say, INSERT_TOP), which is of type button, in the left frame.
    Go down in the right frame, and you will find the text area to write your javascript handler and pl/sql code for the button handler.

  • Auto Query Form on Page not working

    Hi,
    I created a simple form portlet and want to autoquery it on a certain record. I added this code to "Before displaying the page" :
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_STC_SAMPLINK',
    p_value => 620352);
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'STC_SAMPLINK');
    PORTAL.wwa_api_module_event.do_event('DEFAULT', 'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    This performs the query but i see this first record of my table, while it should show the record with STC_SAMPLINK = 620352. When I remove the do_event statement, i can see the field filled in correctly and when pressing the query-button manually, it does show the record with STC_SAMPLINK = 620352.
    What am I doing wrong?
    Using Application Server 10.1.2.0.2 on HP-UX

    I just discovered that it does work using p_session.set_shadow_value (with extra p_language parameter). Does this mean that note 316158.1 on metalink (based on Auto Query Form on Page is no longer valid for 10g ?

  • Auto Query Form on Page

    Hi,
    I'd like to have a form on a page and when the user navigates to that page I'd like the form to pick up a session variable and put it in a field on the form and run a query. So effectively auto querying a form.
    I've seen it done before but cant seem to find it again.
    I think that it was done by putting some PL/SQL in the 'before displaying the page' area of the additional PL/SQL section. The code would load the session, get the value, set the field value and somehow make it run a query. doQuery doesn't work here.
    Any help with this would be great.
    Thaks,
    Michelle

    I have a similar problem. In particular:
    There is a private form (named MOD_ANAGRAFE_DITTA) based on a database table. The URL to
    run this form is
    https://portal.websanity.it/pls/portal/PORTAL.wwa_app_module.new_instance?p_moduleid=6994683181.
    There is also a page from which the MOD_ANAGRAFE_DITTA form is called. To do this, a URL element was added to the page in whi
    ch the above url was specified.
    Based on some of the OID attributes of the user who connects to the page, when the user runs the form, the form would have to show only the record that satisfies those attributes.
    To do this the following code was entered in the 'BEFORE DISPLAY PAGE' section of the FORMs Wizard:
    declare
    scopo varchar2(50);
    user varchar2(200) := portal.wwctx_api.get_user;
    BEGIN
    select attrvalue into scopo
    from ods.ct_scope
    where entryid in (select entryid
    from ods.ct_uid
    where attrvalue=lower(user));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_value => to_number(substr(scopo,1,1)));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SEDE',
    p_value => substr(scopo,5));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'SEDE');
    PORTAL.wwa_api_module_event.do_event
    ('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    END;
    where scope is the OID attribute of user; ID and SEDE are the two table columns must to be filtered
    The code to auto-query a form doesn't work as it should. The form shows all the table records. .
    Perhaps the attribute used to do the query is not a session variable?
    How can this be resolved?

  • Default value of combobox using dynamic LOV in Oracle Portal form

    We are trying to specify the deafult value of a combobox on a form that derives it options from a dynamic LOV. The option value is a number and the display is text.
    E.g.
    <Option value="1">Books
    <Option value="2">CDs
    We have tried various ways of setting the default option to be selected on the Combobox. First, we tried using a sql query to return a number from a table (sql query returns number -> in the default value type field). Next, we tried to use a constant number (default value: 2, default value type: constant). In neither case, did the Oracle Portal form pre-select our default choice in the drop-down list.
    Any suggestions? I browsed the other forum articles on this topic and noticed several folks believed it was a bug in Portal. We are using Portal version 3.0.9 (latest App Server for the Ebusiness Suite). Thanks in advance.

    You can manually add the select list (or for that matter anything else) to a wizard created form. If the select list is for an existing item, simply change the "Display As" setting from Text to a Select List based on the LOV you create. Any changes made will then be applied by the update process.
    cheers,
    Ron

  • Is there a problem using popup LOVs in a portal form with a bind variable?

    I have a portal form with 2 LOVs. The second LOV is a dependent LOV whose bind variable can be NULL. I have read Note 263923.1, "How To Create Dependent Lovs In Forms", and my form works as long as I use combo boxes to display the LOVs. I need to use popups so the user can search the LOVs as they are quite lengthy. Plus I want to be able to pick a value from my second LOV without selecting a value from the first LOV -- hence, my bind variable can be null and that is where my problem lies. As long as I select a value from the first LOV, the second LOV popup will work. If I click on the icon to display the second LOV without pre-selected a value from the first LOV, I get the following error:
    POPUP LOV ERROR:
    LOV: "9A17692880B6B8509F514F5B9CA9EC808DD403218B3CF19A33C04CD1FAB0ADE17ADC33E6B67998A933357CE5264D204E"
    Parse Message: Parse as pre-set global: "TORE".
    Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
    Query: "SELECT ...."
    wwv_bind.prepare_bind: ORA-01403: no data found
    My form is based on a table with a custom layout. The sql for the second LOV is similar to: SELECT ENAME, EMPNO FROM SCOTT.EMP WHERE (DEPTNO = :DEPT AND :DEPT IS NOT NULL) OR :DEPT IS NULL.
    Thanks in advance for any help,
    Carol

    Don't use EPS any more! It does not support transparency nor color management.
    If you save vector files from Illustrator, use AI with PDF compatiblity.
    If you save image files from Photoshop, use PSD.
    If you save image files combined with vector forms and/or text from Photoshop, use PDP which is a Photoshop PDF.
    For vectors from Illustrator use CMYK files.
    For images use RGB, conversion to CMYK should never done before PDF export, better, if the printer allows it, is to export a PDF with live transparency as it is PDF/X-4
    If the printer requires a PDF with CMYK only export a PDF/X-1a.

  • Problems in using using a calendar to pick up a date in portal form

    Hello:
    I met some problems in using using a calendar to pick up a date in portal form.
    I created a form using "custom layout"
    Using Scott/Tiger, emp table HIREDATE put the following anchor next to it in the body text field
    <<img src="/images/calendar.gif" width=24 height=22 border=0>
    Then, I put the source tag in the header section
    <script language="JavaScript1.1" src="/images/date-picker.js"></script> in the Header Text of the Form Text part.
    However, for some reasons, after I pciked the date in the calendar,the field in the form could not be updated.
    Your help would be highly appreciated.
    Wei

    I just fixed the bug. The data pickup calendar is working now.
    The reason is that:
    when oracle portal generates a portal form based on a table, the element in the generated form is defined by: [Form Name].[element name].[index#].
    e.g.
    <INPUT TYPE="BUTTON" NAME="FORM_AREA.DEFAULT.QUERY_TOP.01" VALUE="Query" onClick=" do_event(this.form,this.name,1,'ON_CLICK','');">
    The "FORM_AREA.DEFAULT.QUERY_TOP.01" means: A input text box "QUERY_TOP" with index "01" in the form "FORM_AREA" which is located in the "DEFAULT" block.
    The problem of my previous codes is that: Javascript could not access the elements on the parent widnow by name for those elements whose names have more than 1 "." sign e.g. "FORM_AREA.DEFAULT.QUERY_TOP.01". So, I accessed them by their locations in the DOM hierarchy. It works now.
    e.g.
    <a href="javascript:show_calendar('forms[0.elements[23');" onmouseover="window.status='Click to open an Wei's calendar'; return true;" onmouseout="window.status='';return true;">
    <img src="/images/calendar.gif" width=24 height=22 border=0>
    </a>
    Wei Ye

  • Combo Box in Portal Form resets after query

    Hello all,
    I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
    The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
    I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
    Thanks in advance,
    Manohar

    You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
    Try something like this:
    catch(SQLException e){
        System.err.println( "Problem with db query"+e.getMessage() );
        e.printStackTrace( System.err );
    }in order to see what's going wrong with your code.

  • How to use javascript to access item VALUES on a portal form

    Hi,
    I want to pick up VALUE of an item on a portal form from the on click event of the save button. I know there is a way to acces the item name and assign a value to that item. For example,
    setItemValue(this.form,'UNIT_NAME', this.value)
    If I use this line of code then I get the value of the save button because I put this line of code in the on click event of the save button. Please help.
    Monique

    You can get hold of any field on your form as follows:
    document.forms[0].elements['<form>.DEFAULT.<field>.01']
    So for example to get (or set) a value in my form I have:
    document.forms[0].elements['REQUESTFRMEU.DEFAULT.BUS_OBJ.01'].value
    Note that setting a value of a field with Javascript on the Insert button's onclick event will not result in the new value being sent to the DB. I think it has to do with the values being set into a session object of sort and the DB gets updated from these values and when you update the field with JS it does not update thesee session values. If you set the value somewhere else (e.g. another event handler before the Insert button is clicked) you should be OK.
    Cheers.
    Anton.

  • Running BW Query in a Web, but not using Portal

    Hello guys,
    I'm running a BW Query using Web (From Query Designer) and it keeps trying to open a portal page. Then I need to change the URL manually to something like this:
    http://sapdev:8000/sap/bex?......
    Then works fine, my query runs with no issues. Where can I define to do not use Portal url ? (I'm checking the following document: How to... enable SAP BW Web functionality....").
    Regards,
    Marcelo

    Hi Marcelo,
    Please check out these threads:
    Re: Error while running BW Query.
    wrong url on running BEx query
    Regards
    Jeeth

  • I am using the  portal forms and reports in the locally built providers and

    need to find a way to use a dynamic LOV for select and then submit retrieve the data in a report. Anu help would be greatly appreciated.

    If you accept a very basic form parameter, you can use the form automatically generated by any report component. Before, you have to create dynamic LOVs and map these LOVs to your parameters in report definition.
    If you need a sophisticated parameters form (saying a "nice" form), you have to design either a regular form component (based on a dummy procedure which will call the report you made with the parameters), or a dynamic page which will call the same report. In this last case, (the better choice in my opinion) , you can embedd calls to package utility(portal.wwv_ui_lovf.show) which generates dynamic LOVs, inside the <oracle> tag.

  • Use Custom Button to go to another portal form

    Hi,
    I created a custom button, and in the PL/SQL handle, I put in the code to redirect the url to another portal form/report. When I run the form and press the custom button, it does not go to the other form, it remains on the same form that I started with. Why?
    I can put the same piece of code in advance PL/SQL => After displaying the page, draw a html button to do the same task. It will work for me when I press the button (i.e. go to another form). So, how come I cannot do the same thing using Custom button?
    Thanks;
    Kelly.

    Kelly,
    The reason you don't see the next form because our module subsystem has a set of rules when to redirect and when not. However, there is an "internal" function which you can call from your custom button code to get this effect:
    PORTAL30.wwa_app_module.set_target('http://www.yahoo.com','CALL');
    Please note this is an internal function and may change at any time.
    Thanks,
    Dmitry
    null

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

  • How to get HTML form name for use in Portal Form's custom layout?

    I want to add a date selector to a Portal Form but the NAME attribute of the FORM HTML tag is dynamic.
    To add a calendar icon that opens a date selector, I add the following tags to the custom layout after the date form field:
    <img src="/images/calendar.gif" height="16" width="16" border="0">
    The <form field name> is static, but the <form name> appears to be dynamic (e.g. WWVM3115, WWVM3116, WWVM3117, ...).
    The custom layout uses substitution variables for the form fields and labels. Is there a substitution variable for the form name?

    Here's the javascript function someone recommended several years ago (on an oracle portal forum) that I've used successfully to reference fields in non-portlet portal forms:
    function findItem(pFieldName) {
    var vFormElements = document.forms[0].elements;
    for(var i = 0; i < vFormElements.length; i++) {
    if (vFormElements.name.indexOf("."+pFieldName+".") > -1) return i;
    document.write(i);
    return -1;
    You can then reference the portal form field name using the column/field name only:
    document.forms[0].elements[(findItem('COLUMN_NAME_HERE'))]

Maybe you are looking for

  • Regarding deleting index

    Hi Friends, If I delete the whole content of an Infocube and then do the reload,is it require to delete the index seperately. If I don't delete the index how is it going to impact the load? Regards, Debjani...

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script. How can I do it? Thanks!

  • Edit [Key Mappings] in ItemDetails iView

    Hello, all! I'm new to portal content development. I successfully created MDM ResultSet iView and MDM ItemDetails iView and I can see all fields that I need. The problem is I can't edit Key Mappings for the raw chosen (but I can see the values). Is t

  • MouseEvents are not triggered for JMenu

    I would like to listen for MouseEvents but i'm not sure if it is a bug in java or some lack of knowledge on my side concerning event handling. I have a simple menu with one mouse listener and seems that mouseReleased and mouseClicked events are not t

  • How to create array with "n" elements...

    Hy, how can i create a array with "n" elements ?