WebDB - Dynamic Pages SVG/HTML Encoding Help

I have been playing around with WebDB 2.2
to generate an SVG document from a table with X/Y locations
in columns.
I can generate the SVG content fine but when WebDB sends it to
my browser (IE 5.5) it is displayed as XML rather than as an SVG document.
Now I think that the problem is that the document does not have an SVG extension
and WebDB is typing the document as HTML. When I check the properties of the
document (right mouse click and select properties), Windows tells me the type of the
document is HTML. If I File>Save the document with an SVG extension and then open it
in IE I get my map.
I can't see how to force WebDB to change the document type.
Can anyone help me?
I hope I am making sense :-)
Simon

Have you specified any value (greater than 0) in the Portlet expires in ... minutes field ?
If you have, then I guess your dynamic page is getting cached.
Before submitting the form, do a right click on the browser page and view the page source.
What does the <form> tag look like ?
Does it still show the old procedure name ?

Similar Messages

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • Dynamic Page truncating html form text item

    I have created a dynamic page that displays the system date on a form. When the
    page displays, the date truncates after the space or comma. ie.
    instead of displaying "Monday, December 30" it displays "Monday". If i remove
    the comma or spaces from the format, it will display ok. Is there some type of
    URL encoding I need to to.
    <FORM action="stars3.star_portal.process_student_att" method="post">
    <TABLE border="0" cellspacing=0 cellpadding=2>
    <TR BGCOLOR="#000063">
    <ORACLE>
    BEGIN
    htp.p('<TD ALIGN="CENTER"><FONT COLOR="WHITE">' );
    htp.p('<input type="text" name="T1" size="30" value=' ||
    to_char(sysdate,'Day, Month DD') || '>' || '</FONT></TD>');
    END;
    </ORACLE>
    </TR>
    </TABLE>
    </FORM>

    Hi,
    Yes, it is an encoding problem. You can make use of htp.formText to overcome this. The spaces and commas are interpreted properly with formText.
    Here is an example.
    <ORACLE>
    declare
    l_date varchar2(100);
    BEGIN
    select to_char(sysdate,'Month, Day, DD') dt
    into l_date
    from dual;
    htp.p(l_date);
    htp.p('<TD ALIGN="CENTER"><FONT COLOR="WHITE">' );
    htp.formText(cname => 'T1',
    cvalue => l_date,
    csize => 30,
    cmaxlength => 30);
    END;
    </ORACLE>
    Thanks,
    Sharmila

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

  • 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

  • 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

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • HTML POST method in a dynamic page

    Greetings Portalists,
    I have a basic question here. I need to pass the values of an html form (constructed within a dynamic page) to a procedure to process the users' inputs. The form is highly dynamic in terms of numbers of parameters, but we're talking about upwards of 200 text fields that require passing. Now, I realise that this in itself isn't a problem, and I've set this up without too much difficulty using method="POST" - but the called procedure in the form's action=... attribute seems to need to be publicly-executable for this scenario to work. For a production environment, I don't want to keep the PUBLIC grant on the procedure, but whenever I revoke it, the Portal throws me back a 404 Not Found when I submit the form.
    So my question is this -- how can I tighten the security around executing the procedure? Are there any best practices for this sort of situation (which I can't imagine are all that rare)?
    I've searched through many various web toolkit and Portal documents looking for an answer to this but to no avail, so any suggestions really would be highly appreciated.
    Many thanks.
    *.s.*

    Granting execute to public make a procedure accessible to portal_public (the schema) which contains the mappings to all the authenticated light-weight users. You can keep the public or portal_public grant for execution on the procedure and yet have a good control on who would be able to see your form. That would be based on your pl/sql logic.
    For instance, if you wish to keep it for only authenticated users (users who are in registered with your portal) or with any certain group of users, you can always apply a block containing code for checking their group memberships. If a user belongs to your desired group, you can let the desired logic expose to them, otherwise not.
    Please check the portal pl/sql api's that come with portal version you are using, for help.
    AMN

  • Help on oracle tags inside dynamic pages

    Hi All
    I have used dynamic pages like this , i create a html form inside a dynamic page on submit of which a procedure gets called & inserts the values in the table.
    I see some <oracle> tags every time i create a dynamic page but have never used them. Could some one tell how to use these tags. whether they can be used to call a procedure or can i embed any dml statements in these oracle tags.
    Kindly somebody could explain it with an example.
    Regards
    Sushant

    There is a brief description in the online help - see http://isd-demos2.oracle.com:7778/help/wvtdynam.htm.
    You can also search this forum - there have been many examples posted here.
    If you have further questions about dynamic pages, the Portal Applications forum would be a better place to post them.
    Regards,
    Jerry
    Portal PM

  • Older Business HTML and Dynamic Page Table question

    I am not sure if anyone will know here (or if this is the best place to post), but I have a question concerning using the Business HTML template library controls/API for use with ITS. I am attempting to use the "Dynamic Page Table" control, and have hit some problems. Does anyone have any example code they can share on getting this to work correctly (ie, paging through records, selecting from rows, etc)? I have "torn apart" the underlying Javascript and even modified my code to adjust for some formatting issues that the API's do not handle, however, my "pages" all display at once in the beginning and only hide when I use one of the paging icons (forward,back,all back, etc). THe "isVisible" parameter seems to do nothing for the "page" DIVs. Currently running the latest version of ITS and R/3 4.6b on the backend if that helps. Also, the example from the SAP Design Guild cookbook is very basic and does not "page" as I need. Thanks in advance!
    CSolomon

    Check the following Tables
    FND_FORM_CUSTOM_RULES
    FND_FORM_CUSTOM_SCOPES
    FND_FORM_CUSTOM_ACTIONS
    FND_FORM_CUSTOM_PARAMS

  • How to send an entire HTML, PHP dynamic page using phpmail()?

    How to send an entire HTML, PHP dynamic page using phpmail()
    from PHP website, similar to mail this page or send to a friend
    link?

    Hello,
    Please change the mail address
    "info[at]furkids[dot]co[dot]za" from this thread ^^^look above^^^
    to "[email protected]"
    Thank you

  • Help on oracle tags in dynamic pages

    Hi All
    I have used dynamic pages like this , i create a html form inside a dynamic page on submit of which a procedure gets called & inserts the values in the table.
    I see some <oracle> tags every time i create a dynamic page but have never used them. Could some one tell how to use these tags. whether they can be used to call a procedure or can i embed any dml statements in these oracle tags.
    Kindly somebody could explain it with an example.
    Regards
    Sushant

    Hi,
    You can do all that you can do in a plsql block.
    Here is an example which paints a form for the employee records and submits them. On submit a procedure submit_form is called.
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <FORM action="<schema name>.submit_form" method="post">
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    begin
    for c1 in (select * from scott.emp )
    loop
         htp.p(c1.empno);
         htp.p(c1.ename);
         htp.p(c1.deptno);
         htp.p(c1.hiredate);
         htp.p(c1.sal);
         htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
         htp.p('<input type="text" name="p_comm">');
         htp.p('<br>');
    end loop;
    htp.p('<input type="submit" name="p_action">');
    end;
    </ORACLE>
    </BODY>
    </FORM>
    </HTML>
    Thanks,
    Sharmila

  • How to create a popup help page in html db

    i'm trying to create a popup up help page in html db by having a help button from the main page and when clicked a popup page will appear... but can't seem to get it working...
    can somebody pls help me? thanks a bunch!!

    Hi Denes ,
    Need some more suggestion from you .
    I have incorporated your popup code in navigation 'Logout' link.
    Now after clicking on that the popup page appears fine .
    But i like to include two button in that popup page such a way that --
    after clicking 'Confirm Logout' button some database updation has been done and the child popup page unloads,but the parent page redirect to login page.But if cancel pressed then only child popup page unloads and no database action will will be carried out .
    Could you plz help on this .
    Cheers,
    Rosy

  • Help! dynamic page content - how to handle?

    Hi !
    How do I handle dynamic page content, where for example my jsp page does a post and updates some data, and I dont want the user to use "back" button to go back onto it.
    Hints appreciated
    Cheers
    Steve

    Yes, you can create links for columns in the sql query of a portal report using htf.anchor/htf.anchor2 or just put in your own html code between single quotes. See the [PL/SQL Web Toolkit|http://download-west.oracle.com/docs/cd/B14099_10/web.1012/b15896/toc.htm] for info on the HTF package. There is also a portal Link component which can be created separately and then selected for use on a column in a portal report.

  • 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

Maybe you are looking for

  • Error message during upgrade 8.0.6 - 9.2.0.1

    Hi, during the database upgrade, with the Oracle's assistant, at the end of stage 1, an strange error appears. The text of this message is simply : "6500000,L" ! What do that mean ? Thanx, Fabrice

  • How do I get ATV2 and my iTunes to work together on MB Pro?

    When I first set up my ATV2, I remember it to work along with my MB Pro/iTunes (meaning when I was streaming music to my ATV2, it also streamed to my MB Pro).....Now it does not. What did I inadvertently change?.....also a button appeared in the lowe

  • 200" viewing limitation in Acrobat/Reader?

    Hi all, I have a diagram which is 220" inches wide. When I open this document in Acrobat/Reader 9.0, it appears blank on the screen. However, when I go to the "View -> Grid" menu option, I am able to see the drawing (even after I turn the "Grid" opti

  • Date Format in Zreport similar to the default date format set using su01.

    Dear All,             I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode. Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also,

  • TAXINN and TAXINJ

    Do we require Server Upgradation while upgrading our tax procedure i.e. moving from TAXINJ to TAXINN ????