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 ?

Similar Messages

  • 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?

  • Adobe CC Education Eligibility Page Not Working!

    I work for a university and bought the educational version of CC.  When I clicked the link in the email provided by Adobe to upload verification of my employment... I filled out the form and when I click the button at the bottom that says "Review and Submit" I get a page not found error.  Someone at Adobe please help!

    Different regions may have slightly different processes. Take a look at the following document: http://helpx.adobe.com/x-productkb/policy-pricing/education-faq.html
    I hope that this will help you get going.
    If you still get that Page Not Working error, try the same with a different browser and check.

  • In dev server my payment advice form f110_prenum_chc  is not working

    hi,
    friends i need urgent help.
    1) i have copied f110_avis_in frm 000 client to 200 client with form name
       z_prenum_dup.
    2) i have copied f110_prenum_chc frm 000 client to 200 client form name
      zf110_prenum_chc1.
    3) then i modified my both forms in 200 saved assigned TRs and
    transported frm DEV server to PRD server(client 700).
    4)in dev server 200 client my both forms are working
      but in prd server 700 client my form cheque z_prenum_dup is
      working but payment advice form zf110_prenum_chc1 is
    not working.
    5) but i can see my both forms r their in 700 prd server in se71 t.code.
    6) if i run f-58 tr.code and by switching on debug mode i can see my
       cheque form but not payment advice form.
    7) if i run in 200 client i can see my both forms.
    can any body plz help me out of this issue.

    Dear,
       I will be able to put some points, if you can give me some more idea about ur problem,
    1, Does system giving any error..?
    2, Can you see a preview..?
      As I understood, it must not have any problem in transportation.
      You can also check with Respective functional consultant whether he has done with required customization in NACE..?
      One more thing you can do is,
      open a program RSNAST00 and put break point at "  PERFORM (tnapr-ronam) IN PROGRAM (tnapr-pgnam) USING returncode", here you can check at runtime ( While in debugging mode) the value of field TNAPR-FONAM, this value must be your SmartForm.  If it is not the case then, there is problem with NACE settings and contact your functional counterpart.
    Hope it's helpful .......Enjoy.
    Regards,
    Chetan

  • Auto-Reaction E-mail is not working:

    HI Basis gurus,
    I am setting up a fresh configuration with Solution Manager.
    Central system is solution manager 4.0.
    Auto-Reaction E-mail is not working:
    I have set Z_ccms_Onalert_email with the following parameter
    Parameter name Parameter value
    SENDER userid from client 000
    RECIPIENT my company e-mail Id.
    RECIPIENT-TYPEID U
    for the below MTE:
    Properties of DEV\r3dev_DEV_00\...\Background\Aborted
    MTE class R3BPServerSpecAbortedJobs
    when I check in CCMS Selfmonitoring it shows:
    Node name (MTE) DEV\MoniInfra_r3dev_DEV_00\...\DataSupplier\Log
    System DEV
    Context MoniInfra_r3dev_DEV_00
    Object name DataSupplier
    Short name Log
    Status ACTIVE
    Alert text Document <CCMS alerts DEV 20050808 041658> could not be sent
    Line-Id in Message Container 0000000243 0001149437 1123489018
    VAR 1 CCMS alerts DEV 20050808 041658
    VAR 2 CCMS alerts DEV 20050808 041658
    VAR 3 CCMS alerts DEV 20050808 041658
    VAR 4 CCMS alerts DEV 20050808 041658
    I also tried creating seperate MTE and added
    Properties of DEV\r3dev_DEV_00\...\R3Abap\Shortdump
    MTE class R3AbapShortdumps
    With Auto-Reaction Methor has ccms_Onalert_email with the above parameter.
    But the e-mails are not triggered.
    I checked ccms_selfmonitoring and found below error message:
    Node name (MTE) DEV\MoniInfra_r3dev_DEV_00\...\Tooldispatching (short running tasks)\Messages
    Context MoniInfra_r3dev_DEV_00 Object name Tooldispatching (short running tasks) Alert text Unable to set runtime status for data collection method (RC = 253), MTE: DEV\r3dev_DEV_00\...\R3Abap\Shortdumps
    Line-Id in Message Container 0000000222 0001068279 1122993022
    Also send_internet_mail Job is running every 10mins.
    Please provide solutions for this.
    Thanks in advance
    Pradeep

    Hi Pradeep,
    Can you send e-mail at all from the ssm 4.0 ? Are there any mail hanging in scott ? Are the MTE's reporting at all? May be a stupid one but you say
    I have set Z_ccms_Onalert_email with the following parameter
    and then
    With Auto-Reaction Methor has ccms_Onalert_email with the above parameter.
    But the e-mails are not triggered.
    Is the no Z_ a typo in the post or is this a typo in you're system ??
    Lando

  • Login page not working in EBS R12 after autoconfig.

    Hi,
    We are using EBS R12 on windows 2003 server 32 on a test machine. As we were making some changes using autoconfig,
    as the Login page not working in EBS R12 after running autoconfig.
    Kindly help us.
    Thanks in advance.

    Hi,
    Rollback the changes and run AutoConfig, see if you get the same error or not then -- See (Note: 387859.1 - Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12) for details "2.5. Rolling Back an AutoConfig Session".
    Regards,
    Hussein

  • Passwords, auto-fill in safari does not work it is enabled in settings, what can do

    passwords, auto-fill in safari does not work it is enabled in settings, what can do

    Private Browsing Off.
    Private Browsing On.

  • Infopath form load rule not working in browser forms but works on Client

    Hi
    I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view.
    It works when I open it on client, but on the browser it fails.
    Have anyone encountered such an issue.

    Check below:
    http://stackoverflow.com/questions/16222681/infopath-rule-is-not-running-when-checking-sharepoint-list-field-value
    Ensure that "Include data for the active form only" was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and
    Ensure that in the rule I was selecting from the "dataFields" folder under the data connection instead of "queryFields"
    http://sharepoint.stackexchange.com/questions/28554/infopath-form-load-rules-not-working
    if I edit the Infopath form on Infopath 2007, it seems that the rules for the load form will be visible if created.
    This look like a bug. Here are the steps below that will lead you to the bug:
    Step 1: Open the infopath form in Infopath 2010 and create 6 rules for Form Load and Save it as a file.
    Step 2: Open that infopath form that you created in Step 1 in InfoPath 2010 and go to the
    Form Load section. You will only see the first 5 rules. The 6th rules that you created for Step 1 will just "vanish". Now, close that infopath form.
    Step 3: Open that infopath form that you created in step 1 in InfoPath 2007 and select Tools > Form Option. In the
    Open and Save category, click the Rules button and add a new rule in it and save it.
    Step 4: Open that infopath form that you modify as describe in Step 3 in InfoPath 2010. That 6th rule will be visible.
    Therefore, there might be a bug in InfoPath 2010 that restrict Rules to a max of 5 in Form Load and thus if anyone open that form in SharePoint, only the first 5 rules will be executed.
    If this helped you resolve your issue, please mark it Answered

  • Auto tab focus method is not working in iOS devices please share the ideas why its not working?

    Auto tab focus method is not working in iOS devices. Please share the idear i am facing this issue while developing code for devices.

    Hi there,
    I can confirm this bug.
    Not sure if this info is relevant, but this is my experience:
    I am on the FIDO network, and so are two other people I know.
    We all tried blocking numbers, and calls ring right through. Text messages are blocked successfully. (never tried facetime)
    I also tried a ROGERS device running IOS7, and was successfully able to block my phone call from ringing through. HOWEVER, my call was forwarded to their voicemail, I was able to leave a voicemail for the person, and they did get an alert that they had a new voicemail.
    I have not yet had a chance to test this on Bell, Telus, or any other carriers.
    Spoke to Apple, and they advised me to do a hard reset (hold both buttons to shut off and reboot the phone), and if that fails to do an iOS restore.
    I have yet to try this, but hopefully someone will have a better solution.

  • I'm having constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. I can, however, work well in Explorer.

    For the last few weeks I have had constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. It does seem to be a browser issue, because I can work well in Explorer.

    Both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Webi report on OLAP Bex query -  Cost element Hierarchy not working Drill down

    Hello,
    We have a BO report on Bex query, Not on universe, we have a Hierarchy for Cost Element Group, and we are expecting the Drill down functionality for that in BO report, but it does not.
    Webi report on OLAP Bex query -  Cost element Hierarchy not working Drill down
    Any pointers how to do it please
    Thanks
    Krishna

    Hi,
    WebI reports on BEx source don't use same Drill feature as other sources, it's replaced by expland/collapse of hierarchy nodes (documented in WebI user guide in § "24.1 Drill defined"). This means you have to create query which selects all hierarchy sub-tree you plan on exploring later in report, otherwise if no data is available under a node there will be no '+/-' sign to visit this part of tree.
    You could try first to select "All members" from hierarchy in QueryPanel and see if behavior in report suits your needs. Then you should restrict hierarchy member selection to what's really needed to avoid performance issues.
    Regards,
    Loic

  • Is it still the case that the Muse CC Forms widget will not work properly unless you have Business Catalyst?

    I am looking into options for our next office website redesign.  We will definitely need a forms function.  I downloaded the Muse CC free trial and went through all of the tutorials.  The video on the forms (Contact Form) stated that the forms widget would not work or would not work properly if you do not have Business Catalyst.  I'm hoping that has changed since the video was created.
    Is this still true that you need to purchase the Business Catalyst product for Muse CC form widgets to work correcty??? 

    Piruki have you tried utilizing the Previous version option within the Creative Cloud Desktop application?  You can find additional details under the install Previous version section of CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

  • Is the update page not working for  of our devices.

    Is the update page not working for apps? I cannot get it to load with any of our devices. iPhones or iPads?

    There have been numerous reports on the forum today regarding this issue. It seems to be an issue at Apple, but no information has been posted on the status site.
    http://www.apple.com/support/systemstatus/

  • Form in Dynamic page not working when checkbox is used.

    I have created a form using dynamic page. The form most have display fields and a checkbox field. When I check a box, it assigns 'Y' value and when unclick, it assign 'N' to the database field.
    When I submit the form, the procedure which is supposed to save the form data never gets executed. Well, at least it says, page not found HTTP 404 error.
    Interestingly if I make this field a text box and manually enter 'Y' or 'N', and then submit the form, the procedure is executed. Data gets saved.
    Is the checkbox not supposed to be used for a database field because checkbox value can be assigned only using javascript and the procedure never get that value ?
    Can you please tell me how to use a checkbox for a database field using dynamic page ?
    thanks,
    Mainak

    Sharmila,
    When I said, the form does not get submitted, I meant that the procedure does not work. The form gets submitted but the procedure does not work. It gives HTTP 404 error. That is what perplexes me. I am unable to understand why the procedure does not work when I click a checkbox.
    May be you can make this work. I am hopeless about this.
    Here is the code for the procedure sumbit_form:
    NOTE: I ADDED TWO FIELDS CALLED PROMOT VARCHAR2(1), PROMOTID NUMBER(4) TO THE EMP TABLE AND CREATED A NEW TABLE CALLED PROMOTEMP. THIS IS A TEST CASE.
    create or replace procedure sumbit_form
    (p_empno IN portal30.wwv_utl_api_types.vc_arr, p_promot IN portal30.wwv_utl_api_types.vc_arr, p_action IN VARCHAR2)
    is
    begin
    if p_action = 'save' then
    for i in 1..p_empno.count LOOP
    update scott.promotemp
    set promot = p_promot(i)
    where empno = p_empno(i);
    END LOOP;
    end if;
    commit;
    htp.p('<b>Saved Successfully</b>');
    htp.p('<table border=1 bordercolor="red">');
    for c1 in (select * from promotemp where promot='Y')
    LOOP
    htp.p('<tr><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.sal);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    EXCEPTION
    when others then
    raise;
    end;
    Here is the code for the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Promot Emp</TITLE>
    <script language="JavaScript1.1">
    function include(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements.type == 'checkbox') {
              if (thisform.elements[i].checked) {
                   thisform.elements[i].value = 'Y'; }
              else { thisform.elements[i].value = 'N'; }
    form.submit();
    function show(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements[i].type == 'checkbox') {
              if (thisform.elements[i].value = 'Y') {
                   thisform.elements[i].checked = true; }
              else { thisform.elements[i].checked = false; }
    </script>
    </HEAD>
    <BODY>
    <FORM action="scott.sumbit_form" method="post">
    <table border=1 bordercolor="red">
    <tr>
    <td> </td>
    <td>Name</td>
    <td>Job</td>
    <td>Manager</td>
    <td>Hire Date</td>
    <td>Commission</td>
    <td>Department#</td>
    <td>Include</td>
    </tr>
    <ORACLE>declare
    i number;
    begin
    i := 0;
    for c1 in (select * from scott.promotemp where promotid = :promotid)
    loop
    htp.p('<tr><td>');
    htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
    htp.p('</td><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.hiredate);
    htp.p('</td><td>');
    htp.p(c1.comm);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td><td>');
    if (c1.promot = 'Y') then
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">Yes
    <OPTION VALUE="N">No
    </SELECT>');
    else
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">No
    <OPTION VALUE="Y">Yes
    </SELECT>');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('<input type="submit" value="save" name="p_action">');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    thanks,
    Mainak

  • Auto resize of form fields does not work as supposed

    Back in the good old (?) days of compiling as Flash (as opposed to Flex 2) input fields in a form component could be made to streeeeeeetch automatically to fit the varying width of a model. If one  chose "Fit contents = Fit width" for both the iview, and the specific form in the iview, then the fields in the form would resize to fit the width of the loaded window (which of course varies depending on screen resolution and window size).
    Now we have upgraded to SPS 18 and I no longer am able to deploy as Flash (it fails at runtime) so I am left with Flex 2 (which is not a bad thing besides this one issue).
    I have tried all possible settings for my iview and form layouts, but nothing works as it did with Flash. I simply cannot get the fields to resize.
    Can anyone help?
    Henning Strand

    Just received this from SAP:
    17.04.2009 - 09:20:53 CET - Reply by SAP
    Hi Henning
    Thanks for contacting SAP and providing with most of the details required to analyze the issue.
    As per note 1235408,this is a known issue with Flex2.
    Visual Composer UI elements are displayed relative to the browser size and not relative to each other.
    Solution: None; there is no relative layout available for the Flex 2 runtime.
    Workaround: Choose the "Actual size" option in the "Fit contents" list in the Configure task panel of the UI elements.
    Please refer to the note for workaround on the issue.
    See mentioned note if this also applies to your problem.
    Henning

Maybe you are looking for