Procedure in dynamic page shows only sometimes data

Is anybody recognizing this problem:
A stored procedure is called in a dynamic page. The procedure builds up a html form. When calling the dynamic page, sometimes the form appears, sometimes it does not appear. In the last case, even a errormessage is not shown. The portlet area in the page is just empty.
Anybody an idea?
Johan

Problem solved. I changed the timeout period of the provider ('Edit a Provider Registration') and I added a timeout message.

Similar Messages

  • I select a page for printing and the print page shows only the frame data and this is all that it prints.

    when I click on print the page to print shows only the frame and that is all that is printed. Why isn't the page data shown on the print page and also printed?

    This is how you do it:
    http://i1224.photobucket.com/albums/ee374/Diavonex/c7db8382.jpg
    http://i1224.photobucket.com/albums/ee374/Diavonex/5e4aadae.jpg

  • Cannot find procedures with dynamic pages

    Hi all,
    I have a problem with dynamic pages. cannot find procedures.
    This is the content of a a dynamic page (example):
    <HTML>
    <ORACLE>
    begin
    htp.print(htf.bold(‘Fill in field values and use the push button to buy ticket’));
    htp.br;
    htp.formOpen(‘NETU.BUY_TICKETS’);
    htp.teletype(‘Student Id___:’);
    htp.formText(‘p_id’,5,5);
    htp.br;
    htp.teletype(‘Event Id_____:’);
    htp.formText(‘p_eventid’,5,5);
    htp.br;
    htp.teletype(‘# of Tickets_:’);
    htp.formText(‘p_no_of_tickets’,5,5);
    htp.br;
    htp.teletype(‘Credit Card’);
    htp.br;
    htp.teletype(‘AMEX,MC,VISA_:’);
    htp.formText(‘p_cc_type’,5,5);
    htp.br;
    htp.teletype(‘Card #_______:’);
    htp.formText(‘p_cc_number’,10,10);
    htp.br;
    htp.formSubmit(NULL,’Buy Ticket’);
    htp.formClose;
    end;
    </ORACLE>
    <HTML>
    and try to call to this procedure ‘NETU.BUY_TICKETS’ for save form data in BD:
    begin
    insert into tickets (id, eventid, no_of_tickets,cc_type,cc_number, trans_date) values (p_id, p_eventid, p_no_of_tickets, p_cc_type, p_cc_number, sysdate);
    exception when others then htp.print(‘SQL Error Message:’||substr(SQLERRM,1, 200));
    end;
    All compiled fine.
    The problem exact is when i submit the form, cannot find procedure.
    In browser address show this -> http://portal:7778/pls/portal/NETU.BUY_TICKETS
    and in the body...
    404 Not Found
    Unable to process request. Please check the log file for more details.
    The dev is on OracleAS 10g, on a Solaris 5.10 dual Sparc machine.
    With:
         HTTP_Server     
         Internet Directory
         OC4J_SECURITY     
         Single Sign-On:orasso     
         Gestión
    on infra tier and
         Discoverer     
         Forms     
         home     
         HTTP_Server     
         OC4J_BI_Forms     
         OC4J_Portal     
         OC4J_Wireless     
         Portal:portal     
         Reports Server: rep_portal_oracleas2     
         Web Cache     
         Wireless     
         Gestión     
    on middle tier, all running without problem...
    mmm ... what's wrong? where is the log? i find a lot...

    I have tried your code and it works for me . Here are the steps and codes I have used to stimulate your process
    1. Created the procedure
    CREATE OR REPLACE PROCEDURE p_buy_tickets (p_id in number, p_eventid in number, p_no_of_tickets in number, p_cc_type in varchar2, p_cc_number in number) IS
    BEGIN
    htp.print('Processed Successfully');
    EXCEPTION
    WHEN OTHERS THEN
    htp.print('SQL Error Message:'||substr(SQLERRM,1, 200));
    END p_buy_tickets;
    2. Granted 'Execute' privilge on this procedure to Public.
    3. Created a dynamic page with the following code (same as yours except the schema):
    <HTML>
    <ORACLE>begin
    htp.print(htf.bold('Fill in field values and use the push button to buy ticket'));
    htp.br;
    htp.formOpen('MY_SCHEMA.P_BUY_TICKETS');
    htp.teletype('Student Id___:');
    htp.formText('p_id',5,5);
    htp.br;
    htp.teletype('Event Id_____:');
    htp.formText('p_eventid',5,5);
    htp.br;
    htp.teletype('# of Tickets_:');
    htp.formText('p_no_of_tickets',5,5);
    htp.br;
    htp.teletype('Credit Card');
    htp.br;
    htp.teletype('AMEX,MC,VISA_:');
    htp.formText('p_cc_type',5,5);
    htp.br;
    htp.teletype('Card #_______:');
    htp.formText('p_cc_number',10,10);
    htp.br;
    htp.formSubmit(NULL,'Buy Ticket');
    htp.formClose;
    end;
    </ORACLE>
    <HTML>
    4. I got the message 'Processed Successfully' when I ran the dynamic page and submitted the form.
    You may need to check how you declared parameters in the procedure and how you supplied values when you run the procedure. In this case, I created the procedure with "No Default" value for all parameters , so I have to supply value for all parameters in the form otherwise I will encounter the 'Page Not Found' error.
    Hope this helps!.
    Thanks
    Krishnamurthy

  • Calling a procedure from Dynamic Page

    I am trying to call a procedure from a dynamic page. The procedure displays multi records from a table. I have created a procedure:
    PROCEDURE process_student_request( p_primary_request in wwv_utl_api_types.vc_arr,
    p_alternate_request in wwv_utl_api_types.vc_arr,
    p_action in varchar2,
    l_status in out varchar2);
    When I hit the submit button on the dynamic page it does not execute the procedure and tries to open a new page. How do I get this to work?
    Here is the text of the page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <FORM action="portal30.star_portal.process_student_requests" method="post">
    <TABLE BORDER="0" WIDTH="100%" CELLPADDING="2" CELLSPACING="0" class="RegionBorder">
    <TR>
    <TD valign="top" align="left" width="40%"><FONT class="PortletText1">
    <ORACLE>declare
    row_num number := 1;
    hold_row_num number;
    hold_class_cd stars3.req.class_cd%TYPE;
    begin
    for c1 in (select A.start_yy, A.school, A.student_id, A.class_cd, B.name from stars3.course B, stars3.req A
    where A.student_id = portal30.star_portal.get_session_variable('STUDENT_ID') and A.start_yy = '01' and
    A.alternate_no = '0' and
    B.start_yy = A.start_yy and
    B.school = A.school and
    B.class_cd = A.class_cd)
    loop
    hold_class_cd := c1.class_cd;
    htp.p(lpad(to_char(row_num),2,'0'));
    htp.p('<select name="p_primary_request">');
    htp.p('<option value="' || c1.class_cd|| '">' || c1.name || '</option>');
    row_num := row_num + 1;
    htp.p('<BR>');
    end loop;
    htp.p('<input type="submit" name="p_action">');
    end;
    </ORACLE>
    </BODY>
    </FORM>
    </TD>
    </TR>
    </TABLE>
    </HTML>

    Bob,
    You have variables in your procedure like l_status, p_alternate_status which you do not have in the form. Are these IN or OUT variables ?
    If these are IN variables, this proc will not work because you do not have any variable in the form. So from where does it get the values? There is not any default declared too. You have to explicitly define IN or OUT variables.
    Have you also given execute permission to public ?

  • How to call a procedure from dynamic page?

    I am trying to submit a form (dynamic page) to a procedure but keep getting the generic page not found error.
    I have the following dynamic page (bind variable works properly):
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <oracle>
    declare
    v_job_id number := :job_id;
    begin
    htp.p(v_job_id);
    htp.formOpen('http://mssdiscovery.ssc.nasa.gov:7777/pls/portal/portal_public.buy_off', 'post');
    htp.formHidden('JOBID', v_job_id);
    htp.formSubmit('submit', 'Buy Off');
    htp.formClose;
    end;
    </oracle>
    </BODY>
    </HTML>
    This form should submit to a procedure called "BUY_OFF", defined in the PORTAL_PUBLIC schema as follows:
    Create or Replace PROCEDURE PORTAL_PUBLIC.BUY_OFF
    (JOBID IN number)
    as
    begin
    update portal_public.components_jobs_syn
    set
    status = 'COMPLETE'
    where job_id = JOBID;
    /* add code to redirect */
    exception
    when others then
    null;
    end;
    I have granted PORTAL and PUBLIC execute privileges.
    I have never been able to submit a form in a dynamic page to a procedure... it never works... someone please help me out! What am I missing?

    Nevermind... I changed the submit button name from submit to NULL and it works fine now. I guess the name flipped it out for some reason.

  • Get the sum of values and show only max(Date)

    Hi,
    I have a below query and the value
    select PO_No,DATE,RCVD,LINE_QTY,QTY_INVCD,PART_NO from Purchase                         
    PO_No     DATE     RCVD LINE_QTY QTY_INVCD     PART_NO
    PO1460 12/02/2007 11     20     12     0995-13
    PO1460 13/12/2006 4     20     12     0995-13
    PO1460 05/04/2007 5     20     12     0995-13
    In the above table,
    PO_No ,Line_Qty ,Qty_INVCD,Part_No all are same value.
    Now I want the sum ( rcvd,line_qty)
    i.e.,
    Select po_no,date,sum(rcvd) over (partition by line_quantity) RCVD,line_qty,qty_invcd,part_no from Purchase
    Its look like
    PO_No     DATE     RCVD LINE_QTY QTY_INVCD     PART_NO
    PO1460 12/02/2007 20     20     12     0995-13
    PO1460 13/12/2006 20     20     12     0995-13
    PO1460 05/04/2007 20     20     12     0995-13
    Now what I want is
    I want the value for only max(Date)
    b]PO_No     DATE     RCVD LINE_QTY QTY_INVCD     PART_NO
    PO1460 05/04/2007 20     20     12     0995-13
    How will I write a query?
    Likewise I have many PO_No PO100,PO101,PO102,..........

    No need to use subquery to get this result:
    WITH data AS (select 'PO1460' po_no, to_date('12/02/2007','dd/mm/yyyy') datum, 20 recvd, 20 line_qty, 12 qty_invcd, '0995-13' part_no FROM dual
    UNION all
    select 'PO1460', TO_DATE('13/12/2006','dd/mm/yyyy'), 20, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1460', to_date('05/04/2007','dd/mm/yyyy'), 20, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1462', TO_DATE('13/12/2006','dd/mm/yyyy'), 30, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1462', to_date('15/04/2007','dd/mm/yyyy'), 15, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1462', TO_DATE('13/12/2006','dd/mm/yyyy'), 40, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1461', to_date('15/04/2007','dd/mm/yyyy'), 15, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1463', TO_DATE('13/12/2006','dd/mm/yyyy'), 30, 20, 12, '0995-13' FROM dual
    UNION all
    select 'PO1463', to_date('15/04/2007','dd/mm/yyyy'), 15, 20, 12, '0995-13' FROM dual
    SELECT po_no, sum(recvd) keep (dense_rank first ORDER BY datum desc)
    FROM data
    GROUP BY po_no
    will do the same

  • Page shows only lables when error accures

    Hi All.
    Jdev: 11.1.1.3.0
    I have built jsff page based on datacontrol (VO is based on EO), page is having input fields where user can enter data.
    I am taking data and validating in Bean and AmImpl method, if validation in success i will insert data to DB.
    this is working fine now,
    But for negative scenario ,,if there is any failures in validation ,,i am showing error message to user,
    this time error popup will come,,and All page Input fields get disappeared and only related label will get shown,
    happening in only in error scenario's
    pls help me,,,
    thanks
    Santosh

    Hi Timo..
    I am showing error through popup.
    i am using like below for erros
    if (returnMap.get("duptempName").equals(true)) {
    JSFUtils.addErrorMessage(RoutingTemplateConstants.ERR_RTE_TEMPALTE_NAME_MUST_BE_UNIQUE);
    I am able to see error in popup in screen..
    please suggest me to resolve this....
    thanx
    Edited by: Santosh M E on Feb 29, 2012 11:56 PM
    Edited by: Santosh M E on Mar 1, 2012 12:11 AM

  • Pdf docs created in pages show only photos, graphics, NO text, Help

    I have tried exporting to pdf, best quality & also "Print" to pdf with same results. The resulting thumbnail on my desktop and the one in "get info". look fine but when the pdf doc is opened only the graphic elements including photos show up. NO words show up at all (on Mac or PC). I need to be able to create pdf so I can print on pc network. Any suggestions. It would appear that I am following the instructions correctly as a pdf is actually created but with the above results.

    Tried your suggestion to no avail. However found some new info that might help find the problem.
    1. When I open in preview rather than Adobe the document looks correct.
    2. When I click and drag across the missing text I can produce grayed blocks where the text should be..
    3. If I then "copy" and "past" into a blank word document the text appears in the word document.
    4. I was able to open the document with the problem with e-copy desk top a kind of reader/converter.
    5. My OS is up to date.
    5. Adobe reader is up to date as well (8.1 think).
    Thanks, for your help though. I really appreciate your trying.
    Don

  • Show only report data in Internet explorer

    Hi,
    I have report which should be visualized on big screen in our physical distribution center, report works fine, problém is, that report shows also report viewer components. I disabled IE menus by F11 and also parameter panel is disabled by Show/Hide Paramteres
    button.
    But, there is still panel with zoom, export drop down menu, print button etc......
    Do you know, how to get rid of these ?
    thanks

    Hi volyn,
    According to your description, you have a report which works fine, when preview it in Internet explorer, you want to hide Toolbar and only show report data. If that is the case,
    there can be two scenarios:
    When you render report use Report Server, we can add
    postfix
    rc:Toolbar=false to the URL of the report as Visakh16 mentioned. In this case, please make sure the parameter has default values.
    The following URL is for your reference:
    http://ServerName/ReportServer?%2fReports%2f1&rs:Command=Render&rc:Toolbar=false.
    When you render the report use webform reportviewer control in Web application, we can achieve your goal by setting ShowToolBar property to fasle. Please refer to the following
    steps:
    1. Click the ReportViewer and open ReportViewer dialog box.
    2.
    In Appearance section, set ShowToolBar to false.
    The following screenshot is for your reference:
    If you have any questions, please feel free to let me know.
    Best Regards, 
    Wendy Fu

  • 881W wireless http config page shows only "Enter" button

    Hi,
    I have new 881W router, the wired portion works like a charm, the wireless part not quite..
    When using Cisco Config Pro to access wireless part of it. it suppose to open a browser so i can continue configuring wireless part. Unfortunately, when i click on Launch Wireless (or simillar), the browser opened the page and i have only button "Enter". When i click on it i got error on the page in bottom right corner of the IE, or nothing happened if i use Firefox.
    Coudl someone shad some lights on this issue? I have been googling it and found some article about different IOS code for AP. That article did not apply to my case even dough symptoms were the same, downgrading to mentioned IOS version did not help.
    Any suggestions appreciated.
    Regards,

    Hi,
    This is a known bug on the embedded AP on the 881W -- CSCtc94776. It occurs on software version 12.4(21a)JA1 -- what version of software is running on your AP?
    The recommended resolution is to upgrade the AP module (not the router) to version 12.4(25d)JA1.
    The image name is :
    ap801-k9w7-tar.124-25d.JA1.tar
    And you can initiate the upgrade from the AP CLI:
    archive download-sw /force /over tftp:///
    -Patrick Croak
    Wireless TAC

  • Test page shows only black bars

    I followed Bob's instructions and actually got my Designjet to wake up!  I have its parallel cable connected to a USB adapter and programmed to the USB001 virtual port in my newer windows 7-64 bit computer.  I use the driver for the HP Designjet 600 (E/a0) which has always worked fine on my old 32-bit windows xp pro computer.  The plotter responds to the 'print test page' command but shows solid black bars instead of text.  Suggestions anyone?  (I paid $5500 for this beautiful machine and it runs as good as new.  I refuse to throw it in the landfill.  My original deskjet 882c still runs perfectly, despite all the windows upgrades over the past 30 years.  If they're not willing to maintain their drivers, HP should disclose that their plotters have limited lifespans no matter how much they cost.)

    I'm not computer expert but I solved my own problem getting my Designjet c1633b to print new autocad drawings through my 64bit computer.  All I had to do what plot my drawings to pdf files.  I was then able to print out the pdf's on my 24 year old HP Designjet like it was brand new.  I had a small problem at first: my drawings were shrunk and the margins were oversized so the scale of the printed image was off.  I solved that by setting the pdf print command to "full size".   Sorry HP, but as long as this beautiful machine keeps running, I'll keep using it.

  • Dynamic Page that calls DB procedure to update data gets PLS222 or PLS306

    This seems a bit odd to me: I'm getting either "procedure no in scope" (when I call a procedure with the right args) or "wrong # or type of arguments" (when I call it with the wrong ones, so it is checking the procedure) in a dynamic page.<P>
    I'm trying to build a dynamic page that will display data and checkboxes (basically to get around the multi-select limitations -- management has told me that the "fake" md form is not acceptable)<P>
    So I build the page, it displays the data just fine exactly as we want it to:<P>
    <HTML><FORM><ORACLE>declare
    p_mdoc_user portal.wwv_utl_api_types.vc_arr;
    p_mdoc_user_seq portal.wwv_utl_api_types.vc_arr;
    p_seg_id portal.wwv_utl_api_types.vc_arr;
    p_cb portal.wwv_utl_api_types.vc_arr;
    p_action varchar2(20):='Save Changes';
    begin
    htp.p('Select your segments');
    htp.p('< p>');
    htp.p('<table border=2 cellpadding=2 cellspacing=0>');
    htp.tablerowopen;
    htp.tableheader('Seg#');
    htp.tableheader('Included');
    htp.tablerowclose;
    for r1 in (select seg_id, build_seg
    from web.mdoc_create_seg
    where mdoc_user = :mdoc_user
    and mdoc_user_seq = :mdoc_user_seq)
    loop
    htp.p('<input_type="hidden" name="p_mdoc_user" value='||:mdoc_user||'>');
    htp.p('<input_type="hidden" name="p_mdoc_user_seq" value='||:mdoc_user_seq||'>');
    htp.p('<input_type="hidden" name="p_seg_id" value='||to_char(r1.seg_id)||'>');
    htp.p('<tr><td>');
    htp.p(r1.seg_id);
    htp.p('</td><td>');
    if r1.build_seg='TRUE' then
    htp.p('<input type="checkbox" name="p_cb" value="Y" checked>');
    else
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('< p>');
    /*note, this is where I'm putting in a procedure call to update*/
    end;
    </ORACLE></FORM></HTML><P>
    so then I try to add the procedure call (where the sql*plus comment is above)<P>
    htp.p('<input type="button" value="Save Changes" onclick='||
    mdoc_seg_create_choice_p(
    p_mdoc_user,
    p_mdoc_user_seq,
    p_seg_id,
    p_cb)
    ||'>');<P>
    When I try to run as portlet, I get pls 222 not in scope. <but>
    When I take a value out (say remove the last ",p_cb") - I get pls 306 wrong number or type of args to call.<P>
    I've granted the procedure and its underlying tables to portal/public/and portal_public, even though I'm building the dynamic page under a DB provider that is the same as the schema I wrote the procedure in.<P>
    I've tried specifying the schema, using a public synonym, and putting it in a package: same thing occurs, either I get pls 00222 not in scope when I call it with the right columns, or if I purposefully leave one out I get PLS 00306 wrong # or type of args.<P>
    Any ideas?
    -Mike

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • Obtaining form parameters in a dynamic page

    Hi
    It is possible of course to create a form on a dynamic page and have a user provide input. But how can the user input be retrieved, if the user input is sent to the same page or to another Portal dynamic page? As a Portal dynamic page can only contain html and pl/sql between the <oracle> tags, it looks like there is no programmatic way (such as with perl or java) to obtain the information from the form and put it in one or more variables.
    Is there a way to obtain the data from forms using pl/sql in a dynamic page? A code example would be most helpful.
    Thanks very much.
    Hugo

    You can do it using two dyns or one dyn.
    Using one dyn:
    Define a parameter :p1 and let a default value for it(e.g. 1).
    Construct a form that submits to the same dyn
    begin
    declare
    v_p1 varchar2(100) := :p1;
    begin
    htp.p('<form name="example" action="" method="post">
    <input type="text" name="p1" value="'||v_p1||'">
    <input type="submit">
    </form>');
    end;
    When you submit it to same page you will be able to see your new parameter value. If you want to use two dyns then submit it to second dyn.

  • Html dynamic page

    Does mailto code with text attachment work in oracle portal. I tried this in a dynamic page but not giving me proper result.Can we use ENCTYPE ?
    <FORM METHOD = POST ENCTYPE = "text/plain" ACTION = "mailto:[email protected]" >
    Suggestions please!

    Hi,
    If you are using "mailto:test.com" then what are you trying to submit? I assume you are having some text / texarea with
    data. You wont be able to send the output of the dynamic page. Only the form items will be submitted and their content
    will appear in the mail. And for the enctype for plain text you can use enctype= "text/plain" for html you can use
    enctype= multipart/mixed; boundary="------------2A9240C34ACEDCCF1FCE1E33"
    Thanks,
    Sharmila

  • How to display dynamic page content in an external application (MS Word)?

    I have a portal that generates a CV from info stored by various forms. The CV displays fine in a dynamic page, but when I add javascript to launch MS Word with a call to the dynamic page portlet, only the hard coded html displays - nothing between the <ORACLE> tags is loaded.
    I had the idea of updating the dynamic page with hard coded html prior to each export - but I can't find where the dynamic page definition is stored in the database.
    Any ideas/better solutions out there?

    dynamic page:
    <ORACLE>
    DECLARE
    theUser varchar2(30) := portal30.COE_GET_CV_PERSON;
    v_output varchar2(6) := portal30.COE_GET_CV_OUTPUT;
    v_no number;
    v_url varchar2(500):= 'http://oraclecoedb.asiapacific.cgey.com:7779/pls/portal30/PORTAL30.wwv_component_control.run_as_portlet?p_module_id=1934976747';
    BEGIN
    IF v_output = 'WORD' THEN htp.script('startWord('||''''||v_url||''''||');','Javascript');
    ELSE null;
    etc ...
    javascript:
    <script language="JavaScript">
    function startWord(strFile)
    var myApp = new ActiveXObject("Word.Application");
    if (myApp != null)
    myApp.Visible = true;
    myApp.Documents.Open(strFile);
    </script>

Maybe you are looking for

  • Why can't I download from a particular site on my pc but can on my laptop

    when i try to download from Gigasize i am unable to on my pc using firefox or I.E. on my PC but I am able to do it on my laptop any ideas on why and how to fix it please

  • Multiple Business groups???

    Hi, I am having very basic question in my mind. Why do we need to have multiple business groups if the company is working only in US and runnig same set of books? Or what is the factor which decides definition of multiple business groups? This questi

  • Tree Control Updated.

    On Tree control i wish to provide link click or double click and a context menu simultaneously. How can i do that using cl_gui_alv_tree and version 4.6c.

  • Error  No categorization schema assigned to application area (, , )

    hi all, i am getting the error( No categorization schema assigned to application area (, , )) in web ui while clicking on category drop down in service request. it is working fine before ehp1 enhancement but now it is showing error. but still functio

  • Hide the characteristics grouping buttons depending on the sales order type

    Hi Gurus, I am trying to find a way to hide a characteristics grouping button (CU50) whenever a certain sales order type is issued. A condition was created that states that a certain characteristic will be invisible for the user depending on the sale