Jump Box to Dynamic Page

Greetings all. I have a contact management database for
different departments. As it stand right now, I have a list for
each department, and when you click on a department it takes you to
a webpage that populates with information pertaining to the
selected department. What I'm trying to do is replace the simple
list with a jump menu. I know how to populate the jump menu with
dynamic data, but how do I pass a URL variable? Also, I'm wanting
the site to go to the same page regardless of which department the
select. How do I tell the jump menu to go to page x if the labels
are pulled dynamically from a table? Thank you in advance for the
help.

Bookmarks have been removed from Pages 5.2.
Use Pages '09 if you have it.
Peter

Similar Messages

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

  • 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

  • Dynamic page in region as a portlet not displaying in portal template

    As the title suggests I have a portal template that contains a region at the top . within this region i have included 2 portlets, first is a dynamic page (a simple banner title ) then a navigation page beneath them .
    when I am logged in as a specific user it displays correctly , when I log onto the page without logging in - the dynamic page does not display ,yet the navigation page does . I have clicked on every display to public check box , assigned public user with view privilege and everything else along those lines . Any ideas ??
    thanks in advance , Chris

    Hi Chris: Just to be specific, did you go to the providers tab in Navigator, the locally built providers link then the provider which contains your dynamic page and check the access set directly on that page? You can either set the dynamic page to have its own access (overriding that of the provider) or set the provider itself to be public.
    Rgds/Mark M.

  • Dynamic Pages In Portal

    I am trying to create a dynamic page based on a stored procedure
    which inserts rows into a table. I am having problems changing
    the value of a parameter text box via the following JavaScript.
    <SCRIPT type="text/javascript">
    <!--
    function change_val()
    var rightnow = new Date ();
    execproc.p_curr_values = rightnow.Date()+rightnow.Month()
    +rightnow.Year();
    //-->
    </SCRIPT>
    As you can see from the code below, all the parameters are given
    the same name value (p_curr_values) by Portal (last line of each
    block). This is what throws the Javascript off.
    <INPUT TYPE="hidden" NAME="p_col_displays" VALUE="1">
    <INPUT TYPE="hidden" NAME="p_data_types" VALUE="VARCHAR2">
    <INPUT TYPE="hidden" NAME="p_col_names" VALUE="P_DATA">
    <INPUT TYPE="hidden" NAME="p_in_out" VALUE="IN">
    <TD COLSPAN="1"><INPUT TYPE="text" NAME="p_curr_values" SIZE="2"
    MAXLENGTH="12"></TD>
    <INPUT TYPE="hidden" NAME="p_col_displays" VALUE="2">
    <INPUT TYPE="hidden" NAME="p_data_types" VALUE="VARCHAR2">
    <INPUT TYPE="hidden" NAME="p_col_names" VALUE="P_SURNAME">
    <INPUT TYPE="hidden" NAME="p_in_out" VALUE="IN">
    <TD COLSPAN="1"><INPUT TYPE="text" NAME="p_curr_values"
    SIZE="30" MAXLENGTH="15"></TD>
    <INPUT TYPE="hidden" NAME="p_col_displays" VALUE="3">
    <INPUT TYPE="hidden" NAME="p_data_types" VALUE="DATE">
    <INPUT TYPE="hidden" NAME="p_col_names" VALUE="P_REG">
    <INPUT TYPE="hidden" NAME="p_in_out" VALUE="IN">
    <TD COLSPAN="1"><INPUT TYPE="text" NAME="p_curr_values"
    SIZE="30" MAXLENGTH="9"></TD>
    I tried to change the HTML of the page so that each of the boxes
    may have different names but it does not work. When I save the
    page and run it, the HTML reverts to the default names.
    Does anybody know how to solve this problem?
    I have spend hours on this one and I would really appreciate
    some help.
    Regards,
    Kostas Paschalis

    Hi Debbianna -
    If you are not already a member of Portal Knowledge Exchange ... sign up now - it is free
    http://portalstudio.oracle.com/servlet/page?_pageid=2112&_dad=ops&_schema=OPSTUDIO&_mode=3
    Once you log in, if you do a search on DHTML you will see some samples for dynamic menus. These allow you to download the code as well so you can check out how others have implemented this and possibly just reuse their portlets.
    Hope this helps,
    Candace

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Displaying header and border on a dynamic page passing parameters to a form

    I am using portals 10.1.4. and am trying to pass parameters to a form which appears as a portlet on a page.
    for this, dynamic page has been used to pass parameters to that desired form. my problem is this that when the form is displayed with parameters, the header and borders of the portlet disappear.
    The check-boxes for header and borders of the portlets on the page are checked. Yet, when for any reason, the parameters are not passed into the dynamic page, the header of the dynamic page and border are displayed. But when the parameters are passed and the form shows up, then the header and borders disappear.
    can anyone help me with the following:
    - is it the desired behavior?
    - how can i get the headers and borders reappear?
    thanks

    Any ideas fellows?
    how can we control the border and header of dynamic pages when a form or report is called from them with passed parameters?
    will appreciate any helpful experiences.

  • Header and border on a dynamic page passing parameters to a form

    I am using portals 10.1.4. I am trying to pass parameters to a form which appears as a portlet on a page.
    I am using the dynamic page to pass parameters to that desired form. My problem is this that when the form is displayed with parameters, the header and borders of the portlet disappear.
    The check-boxes for header and borders of the portlets on the page are checked. Yet, when for any reason, the parameters are not passed into the dynamic page, the header of the dynamic page and border are displayed. But when the parameters are passed and the form shows up, then the header and borders disappear.
    can anyone help me with the following:
    - is it the desired behavior?
    - how can i get the headers and borders reappear?
    thanks

    Hi AMN,
    I am not sure I follow what you are exactly attempting, can you post a set of steps to reproduce?
    Cheers,
    Mick.

  • Is there a limit to the number of records a dynamic page query can return

    I am using a dynamic page in portal. In between the <ORACLE></ORACLE> tags I have a query that should return 4032 records. All I get on my portal page is the first 1000.
    Any ideas appreciated.

    Hi ,
    Please follow below links for your query :
    http://www.utteraccess.com/forum/lofiversion/index.php/t1991312.html
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/combo-box-limitation-of-500-records-in-access-web/355c33f0-8a32-447e-ae93-ea9e040a0d5f
    http://social.technet.microsoft.com/Forums/office/en-US/baaf8988-3ead-4fd5-8ef0-880552e1f8b3/listbox-dropdown-limit-in-access-2010-form-in-sharepoint?forum=officeitproprevious
    Hope it helps . :)
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • Managing recorded files using dynamic page.

    Hi all,
    I have an app that record the user's voice, each time in one
    different file
    adding an index to the end of the file name.
    rec_tom1.flv, rec_tom2.flv....
    I'm having some problems trying to recover this names
    I need to know if it's possible list this recorded files
    using a dynamic
    page. I have a web host at host A that will have an asp page
    pointing to my
    FMS host B, this page will list the flies and return it to my
    flash app,
    then I 'll load this in a list box.
    in the dynamic page at some point I'll need the PATH to the
    FMS server....
    this is where thigns fail....
    I've tried to point using as path the "rtmp + account name"
    without success.
    So, I need to know if first this is possible, then if so, try
    to figure out
    the correct path to it.
    best
    rodrigo.

    Central comes with predefined tasks PGCNTGET and PGCNTSET (see below). Create a job that includes both thses JFMERGE steps. PGCNTGET will run through the job, count pages and direct output to -zNUL. PGCNTSET will run through the job again and this time have the number of pages stored in variable @pagecount and direct the output to -z@PhysicalDev
    If you create a data field PAGES on your template you can pass this into the field:
    ^GLOBAL PAGES
    Page @$PAGE. of @PAGECOUNT
    Tasks:
    PGCNTGET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName."
    PGCNTSET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName." -advglobal:pagecount=@NumberPages.

  • How to stop text box on iWeb page from automatically reverting to hyperlink when I click 'save'

    As far as I see, the main text box in the body section of my iWeb page reverts to a hyperlink (connecting to a file) when I click save.  I don't know how the hyperlink got activated to begin with--I must have done something, but I don't know what it was.  I tried this many times to fix it: went to Inspector "hyperlink" section, activated the text box in the page, un-clicked "make hyperlinks active" (so they are inactive), then un-clicked "Enable as a hyperlink."  That much works--the hyperlink (little white arrow in blue circle) disappears from the lower right corner of text box.  But as soon as I save (command S), the text box reverts to a hyperlink. 
    If I don't click save and move around the pages, it does not revert to a hyperlink.  It only reverts to a hyperlink when the file is saved.  Why is it doing this and how to stop this from happening--how to permanently return the text box to a non-hyperlink?
    The website page is: http://www.usronline.net/USR/VedicResearch.html.  If you click anywhere randomly in the main text, you'll get a prompt to download a PDF file.  This should not be, but I can't get this hyperlink to go away for good.
    Many thanks in advance.
    Vishnupriya

    Please pardon the reply delay--a big project deadline had to be met.  Now back to this work:
    Yes, the text in the oval object had a drop shadow (the oval object itself did not).  I removed the drop shadow from the text, but the image file icon stayed in the right corner of the oval object.  I deleted the text and then the image file icon disappeared.  But as soon as I typed text again inside the oval object (not even pasting the previous text) the image file icon appeared again.  I deleted the oval object entirely and simply typed the text inside the main text box itself.  The image file icon that was attached to that oval object is gone (along with the oval object).
    Still the image file icon is attached to the main text box, though.  I again tried to uncheck the Enable as hyperlink (same process as described in first posting) with that oval object gone, but when I "save" again it reverts to a hyperlink. 
    Next I tried this: I copied the text from the problem text box and pasted it into another text box (outside of the problem one).  Still in the new text box with the pasted text, the image file icon shows in the upper right corner. 
    I also removed all the drop shadow features from this main text box (there was one more, on some words typed in the main text box), but it is still showing as an image.
    I don't know how it became an image file, and I'm still stumped as to how to fix it (short of forgetting about trying to figure out how it became an image and just retyping all text into a new text box).
    The link you provided for "Web Safe Fonts" is returning this: "The server at www.ampsoft.net is taking too long to respond."  I'm using Arial and Georgia (Georgia only on the menu and header text) in the site, and I had verified before designing the site that these are web safe, so I had thought they were.
    If you or anyone have any further suggestions or suspicions on this matter, I'd be glad to hear them.
    Thank you.

  • Dynamic Page Layout - Opportunity Product Revenue

    Hi gurus,
    I am trying to setup a dynamic template for "Opportunity Product Revenues"
    I set it up successfully in the object. However, this data is exposed only as a related list of Opportunity and not directly. Now, when I go into the "Opportunity" customization, it only allows me to set up static page layouts, with no option to setup the Dynamic page layouts through the Related list.
    Please help..

    Hi Jonathan,
    Many thanks for your response.
    Our CTE is already on R19. We want to experiment and be ready when our PROD is upgraded to R19.
    Can you help me with the requirement, if you have an idea please? I would really appreciate the help.
    Thanks

  • In a dynamic page how to share variable between PL/SQL and javascript

    For example, my dynamic page contains such PL/SQL codes:
    <ORACLE>
    DECLARE
    info varchar(100);
    rowid urowid;
    procedure doDelete(
    row_id in urowid
    ) IS
    begin
    Delete From xxx
    WHERE rowid = row_id;
    end doDelete;
    BEGIN
    Select name, rowid INTO info, rowid
    From xxx Where xxx;
    HTP.PRN(' <INPUT TYPE="button" VALUE="show value" onClick="alert(info);">');
    HTP.PRN(' <INPUT TYPE="button" VALUE="delete" onClick="doDelete(_row_id);">');
    END;
    </ORACLE>
    The variable 'info' and '_row_id' are correct, however the two HTP. sentence do not work. What's the problem?
    What I want to do is to show all the records in TABLE A in a page. And at the end of each line (record), there' re a 'delete' and a 'update' button to let user operate on this record. Is this possible? I know form can do delete an update, but it can not show all the records in a page like what report does. Besides dynamic page, is there any other better choice? Report can do it?
    One more question. In a report, I employed link on one field to a second report. It works well. But I want to open the second report in a new window when the link is click. Is this possible?
    I was almost driven crazy by these :( I so appreciate if anyone can help.

    The code written by you is insufficient for the funtionality you are trying to achieve. Below is a method to achieve the same.
    Note: Used standard scott.emp table for the example which is located in my db provider schema.
    Do the below modifications as per your local configuration
    xxxxx -> Replace it with your Portal schema
    yyyyy -> Replace it with your db provider schema
    <<module_id_of_form>> -> Replace with the module id of form created in step 1 & 2.
    First and foremost... oracle does not allows variables starting with '_'. So if you want to use it you have to place it in double quotes ("")
    rowid -> illegal
    "_row_id" -> legal.
    However, I will advice you not to use variable names starting with "_".
    Now lets get started...
    1. Create a form on the table you are using in the dynamic page. Just have the update button. Remove the other buttons.
    2. Get the module id of this form. Instruction for getting the module id:
    a) Right-click on the form's run link and copy the shortcut
    b) Get the value of p_moduleid parameter. This is your module id.
    3. Create a procedure "save_action_details" in your db provider schema. This procedure will accomplish the delete operation on the record.
         CREATE OR REPLACE Procedure save_action_details(
         p_rowid IN VARCHAR2,
         p_action IN VARCHAR2,
         p_dyn_ref_path IN VARCHAR2,
         p_dyn_page_url IN VARCHAR2)
         is
         l_sto_session xxxxx.wwsto_api_session;
         begin
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_dyn_ref_path
         l_sto_session.set_attribute(
         p_name => 'rowid',
         p_value => p_rowid
         l_sto_session.set_attribute(
         p_name => 'action',
         p_value => p_action
         l_sto_session.save_session;
         htp.init;
         owa_util.redirect_url(p_dyn_page_url);
         end save_action_details;
    Explaination: The above procedure creates a session and keeps the rowid and action in the session. This information is used by the below dynamic form to perform the necessary action. In our exampl, the action is always going to be delete so you may go ahead and hard code it, else leave it as it is.
    4. Grant execute privilege on the procedure "save_action_details" to public.
    sql> grant execute on save_action_details to public;
    5. Create your Dynamic page.
    a) In HTML code section have the below code. This code shows some columns from the table and "update" and "delete" buttons to perform the respective action.
         <ORACLE>select empno,ename,rowid,
         '<input type="button" value="Update" onClick="doAction(this.form,''UPD'',''xxx'','''
         || xxxxx.wwv_standard_util.url_encode(rowid) || '''); tWin();">
         <input type="button" value="delete" onclick="doAction(this.form,''DEL'',''' || rowid || ''',''xxx'');">' Action
         from yyyyy.emp</ORACLE>
    b) In additional pl/sql code section of dynamic page, have the below pl/sql block "in after displaying the header" section.
         declare
         l_sto_session xxxxx.wwsto_api_session;
         l_del_rowid varchar2(20);
         l_action varchar2(10);
         begin
         htp.comment('User code starts here ...');
         htp.p('<script>');
         htp.p('var winHandle;');
         htp.p('
         function doAction(formObj, action, rowid, erowid)
              if (action == "UPD")
              var formURL = "' || xxxxx.wwctx_api.get_proc_path('wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<<module_id_of_form>>&p_arg_names=_rowid&p_arg_values=') || '" + erowid;
              winHandle = window.open(formURL, "winDynUpd", "width=750,height=500,resizable=yes");
              else
              formObj.p_rowid.value = rowid;
              formObj.p_action.value = action;
              formObj.submit();
         function tWin() {
              if (winHandle.closed) {
              document.location = document.location;
              else {
              setTimeout("tWin()", 500);
         htp.p('</script>');
         htp.p('<form name="dynRowProcess" method="POST" action="'
         || xxxxx.wwctx_api.get_proc_path('save_action_details','yyyyy')
         || '">');
         htp.p('<input type="hidden" name="p_rowid">');
         htp.p('<input type="hidden" name="p_action">');
         htp.p('<input type="hidden" name="p_dyn_ref_path" value="' || p_reference_path || '">');
         htp.p('<input type="hidden" name="p_dyn_page_url" value="' || p_page_url || '">');
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_reference_path
         l_del_rowid := l_sto_session.get_attribute_as_varchar2('rowid');
         l_action := l_sto_session.get_attribute_as_varchar2('action');
         if l_action = 'DEL' then
         delete from yyyyy.emp
         where rowid = l_del_rowid;
         end if;
         end;
    Explaination: The session information (rowid and action) stored by "save_action_details" procedure is retrieved by the dynamic page and is used to delete the record.
    6. Once you are through with the above steps, test it by placing the above "dynamic page" portlet on a page.
    a) When you click on delete button the record gets deleted and the automatically refreshed page will not show the deleted record.
    b) On clicking update button, a form will appear. do the necessary modifications in data and click update. the data in the form gets updated. Once you close the form the dynamic page gets refreshed automatically and it will show you the updated information.

  • Need to display column names in a dynamic page

    Hi
    I am displaying some rows returned from an sql querry in a dynamic page ...I hv written the sql querry between <ORACLE> AND </ORACLE> TAGS...The problem is ,i am not able to display the column names ...Why ? pl help....
    ram

    You must to use the htp package. Example:
    <ORACLE>
    begin
    htp.tableopen('1','CENTER',null,null,'BORDER="1"');
    htp.tableheader('NParte','CENTER');
    htp.tableheader('Descripcisn','CENTER');
    htp.tableheader('Precio/Unit','CENTER');
    htp.tableheader('Servicio','CENTER');
    htp.tableheader('IVA','CENTER');
    htp.tableheader('Total','CENTER');
    for cursor_cotiza in (select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.repuestos r,
    carryin.casos c, carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=c.NCaso
    and c.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    union
    select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.casosneq r,
    carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    ) loop
    htp.tableRowOpen('CENTER','CENTER');
    htp.tableData(cursor_cotiza.Nparte,'CENTER');
    htp.tableData(cursor_cotiza.Descripcion,'CENTER');
    htp.tableData(cursor_cotiza.preciounit,'CENTER');
    htp.tableData(cursor_cotiza.servicio,'CENTER');
    htp.tableData(cursor_cotiza.IVA,'CENTER');
    htp.tableData(cursor_cotiza.PrecioTotal,'CENTER');
    htp.tableRowClose;
    end loop;
    htp.tableclose;
    end;
    </ORACLE>
    This example show a table with header and borders. You must to see this package for more information.

  • Not able to get Out-of-the-Box Examples Index Page for running the jsp examples

    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas

    Hi.
    Please post all WLS 7.0 beta questions to the beta newsgroups -
    weblogic.developer.interest.70beta.*.
    Thanks,
    Michael
    Vikas wrote:
    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas--
    Michael Young
    Developer Relations Engineer
    BEA Support

Maybe you are looking for