Dynamic page jump problem

Hi All
I have been using the following code in a button to jump to a certain section in my form
xfa.host.currrentPage=pagenumber
This is fine in a static form but how can I get the button to go to a particular section in a dynamic form?
Thanks
Darren

In a dynamic form you will not know what the page number is so you cannot use that technique....but you can put the cursor in a field using xfa.host.setFocus("fieldName").
I have seen other people put a small 1pixel by 1pixel field on the top of the page (make the field have no borders and have the foreground and background color the same colour as the page) then set your focus to that field. The user will not know it is a field (because it is so small).
Paul

Similar Messages

  • Page Jump problem in CS3

    Hi, I am a relative newby on Dreamweaver and am having a problem with links on my website jumping to the top of their linked pages. Is there a way to stop this? I have used one of the generic templates to set up my site and am not aware that I have included any code to cause this. Below is my main navigation code, any help would be much appreciated. If I need to provide more information please let me know.
    <div align="center"><a href="index.html">HOME</a> <span class="style3">•</span><a href="whyissw/index.html"> WHY ISSW?</a><span class="dots"> •</span> <a href="productsandservices/index.html">PRODUCTS &amp; SERVICES</a><span class="dots"> •</span> <a href="rates/index.html">RATES</a><span class="dots"> •</span> <a href="booking/index.html">BOOKING</a><span class="dots"> •</span> <a href="contact/index.html">CONTACT</a><span class="dots"> •</span><a href="links/index.html"> LINKS</a></div><h3></h3>
      </div>
    Thanks
    David

    A side comment about your HTML code.  Why don't you use an unordered list (bullet list) for your links?
    HTML unordered list code:
    <ul>
    <li>item1</li>
    <li>item2</li>
    <li>item3</li>
    <li>item4</li>
    </ul>
    Looks like this:
    item1
    item2
    item3
    item4
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • In my Yahoo mail: when I click on any opened email the page jumps down to the bottom of the email. I've contacted Yahoo about this. Is this a problem with Yahoo, Mozilla or neither? Is it just my computer has something wrong with it? This started last wee

    When I open a Yahoo email the page jumps down to the bottom of the page. Is this a Yahoo problem, Mozilla or neither?
    == This happened ==
    Every time Firefox opened
    == last week

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • URGENT: iframe in a dynamic page. Strange Problem.

    Hi all,
    I have a typical problem.
    I created a Dynamic Page which brings out the information of a Purchase Order (PO). (PO_REPORT)
    Now the numer of items in a PO can vary from 1 to anything.... so I made a seperated report based on sql query (ITEM_DETAILS) which I can restrict to 5 records. Now I called this report using the <iframe> tag and passing the parameter value of the PO number to this report.
    Until here everything is fine.
    But the problem starts after this. I have a item code on this report (ITEM_DETAILS) which has an underlying link, clicking on which it runs the same report with an added parameter of Requisition number which again populates another iframe in the same dynamic page along with the Requistion details for that item.
    But as the Dynamic page is loaded, the ITEM_DETAILS report's first 5 items are shown again. Even if I click on the item link on the 6th item (which will come on the next page) after the dynamic page is loaded, the first page will be loaded again.
    Is there a way by which I can reach the same place after clicking on the link or if I click on the item code link only the contents of the requistion details frame are changed.
    Any help would be appreciated.
    Thanks.

    Hi all,
    I have a typical problem.
    I created a Dynamic Page which brings out the information of a Purchase Order (PO). (PO_REPORT)
    Now the numer of items in a PO can vary from 1 to anything.... so I made a seperated report based on sql query (ITEM_DETAILS) which I can restrict to 5 records. Now I called this report using the <iframe> tag and passing the parameter value of the PO number to this report.
    Until here everything is fine.
    But the problem starts after this. I have a item code on this report (ITEM_DETAILS) which has an underlying link, clicking on which it runs the same report with an added parameter of Requisition number which again populates another iframe in the same dynamic page along with the Requistion details for that item.
    But as the Dynamic page is loaded, the ITEM_DETAILS report's first 5 items are shown again. Even if I click on the item link on the 6th item (which will come on the next page) after the dynamic page is loaded, the first page will be loaded again.
    Is there a way by which I can reach the same place after clicking on the link or if I click on the item code link only the contents of the requistion details frame are changed.
    Any help would be appreciated.
    Thanks.

  • Dynamic page search passing parametars problem

    I'm having problems with the search dynamic page in Oracle portal 3.0.
    I don't know how to pass the bind variables through the form in the Oracle manner, like p_arg_names and p_arg_values. Can someone please e-mail me a short search dynamic page like an example , how can a bind variable be passed through a from.

    Hi Sharmila,
    May I request this instead as the original thread seems to have died. I am trying to link a Oracle Form from a dynamic page, I am passing parameters from the dynamic page to the Oracle Form.
    Please may I have a simple example of this.
    Thanks Sharmila
    Greg
    Hi,
    Your question is not very clear. Are you creating a dynamic page or a portal form? Do you want to pass parameters to a
    form or from a form? Please elaborate.
    Thanks,
    Sharmila

  • Problem with a Link calling a dynamic page

    Hi!
    I wanted to create a link calling to a dynamic page. This dynamic page displays a PDF depending on the parameter, the thing here is that I don't know how to set the bind variables or more likely how to say that the value of those variables is going to come from the link in which the dynamic page it's been called.
    I have my PL/SQL code where I have this bind variables
    id_dep
    id_tipo
    and I went to the Customization Form Display Options button and there i made them public.
    now on a page i created a link with the following structure, in order to call the dynamic page and send the parameters.
    http://your.portal.com/portal/pls/portal/SCHEMA.DYN_YOUR_DYN_PAGE_NAME.show?p_arg_names=YOUR_PARAMETER_NAME&p_arg_values=YOUR_PARAMETER_VALUEso my links looks like this one:
    http://desarrollo06:7778/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=11&p_arg_names=idTipo&p_arg_values=25so I was told that I had to check that the parameters bindings are present or set, but I don't know how to do that... 'cause I thought I already did...
    can youi help me?
    thanks In Advance
    aTTe
    Blume

    Hi AMN,
    well what I meant was that, see in the manage page for the Dyn Page there are some options bellow, in the one that sais Customize you can test the page, and I put there the values for id_dep and id_tipo as *11* and *25* then run the page and it opens the PDF but when I click on the link you suggested
    http://desarrollo06:7778/portal/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=*11*&p_arg_names=idTipo&p_arg_values=*25*
    u_u but it doesn't open the PDF.
    ...The code I put in my last post is the code for my dyn page, and there's an if where if it doesn't find a file to deploy it show a message that sais "No hay Datos o No Aplica", so when I clic on the link it takes me to the dyn page but shows the message for no data found...
    so I don't know what's going on.... if supposedly the dyn page is receiving the same values in different way, why it doesn't work with the link? -_-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Dynamic page problems

    I've recently started to play with applications in 3.0.9.8.1. I've noticed that the option to make a schema an application schema as gone - do we not have to worry about this anymore?
    I created a custom schema and set up the grants etc via the provsyns.sql script. I created a public synonym for my pkg and granted execute on it to PORTAL30_PUBLIC. I then created an application and attempted to create a dynamic page. In the dynamic page I just entered a simple block to call the procedure between the <ORACLE> tags:
    begin
    feedback.home;
    end;
    and clicked on finish. I received the following error:
    110/22 PLS-00302: component 'DYN_08175622' must be declared
    110/13 PL/SQL: Statement ignored
    112/22 PLS-00302: component 'DYN_08175622' must be declared
    112/13 PL/SQL: Statement ignored
    Any ideas as to what is going wrong?

    Just a guess, probably wrong but have you tried
    <jsp:param name="LINK1" value="<%=CertificationProperties.WEB_ROOT%>"view.jsp""/>
    or similar, I am assuming view.jsp is a literal, and should not be within the tags for your variable.

  • Problem calling Procedure with parameter from Dynamic Page

    I received an error saying the Page not found
    here's how to reproduce the error.
    1. Create procedure in portal30 schema.
    Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES
    v_one IN NUMBER,
    v_two IN NUMBER,
    v_result OUT NUMBER)
    as
    begin
    v_result :=v_one+v_two;
    end;
    2. Create Dynamic Page with following code
    <ORACLE>DECLARE
    v_total NUMBER;
    BEGIN
    ADD_TWO_VALUES(:v_one,:v_two, v_total);
    htp.p('The total is => ');
    htp.p('<input type="TEXT" VALUE='||v_total||'>');
    htp.para;
    htp.anchor('http://<machine.domain:port#>/pls/portal30/PORTAL30.DYN_
    ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure');
    END;</ORACLE>
    3. I clicked on Customize Link and entered 2 numbers as values for v_one and v_two.
    4. Got "The page cannot be found" error in I.E. or "The requested URL /pls/portal30/PORTAL30.DYN_SAMPLE_ADD.show was not found on this server." on Netscape
    However when I subsitute "ADD_TWO_VALUES(:v_one,:v_two, v_total);" in the dynamic page for "ADD_TWO_VALUES(3,2, v_total);", it runs just fine.
    What's wrong here? Can I not use a parameter from a dynamic page and call a procedure with it? Help is needed urgently and will be greatly appreciated.
    -Ahsun

    Hi,
    I tried with your code with few changes ,please try with them.
    Create or Replace PROCEDURE <myschema>.ADD_TWO_VALUES
    v_one IN NUMBER,
    v_two IN NUMBER,
    v_result OUT NUMBER)
    as
    begin
    v_result :=v_one+v_two;
    end;
    I created the procedure in <mySchema> and granted that to <application_schema> and made some changes
    <ORACLE>
    DECLARE
    v_total NUMBER;
    BEGIN
    <procedure_schema>.ADD_TWO_VALUES(:v_one,:v_two, v_total);
    htp.p('The total is => ');
    htp.p('<input type="TEXT" VALUE='||v_total||'>');
    htp.para;
    htp.anchor('http://<your_host>/pls/<portal_schema>/<application_schema>.DYN_FOR_OTN.SHOW_PARMS', 'Re-Execute Procedure');
    END;
    </ORACLE>
    Hope this helps.
    rahul

  • Problem: Dynamic Page portlet is not displayed on a public-viewable page

    I've written a little dynamic page portal that works nicely on secure pages, but when I create a new page and mark this page as "public viewable" - the portal is not displayed.
    I created a 2nd public page and put several prebuilt and some of our own portlets onto this page - again none worked - except the prebuilt "login" portlet.
    Is there a restriction that I'm not aware of?
    Is there a documentation about this behaviour?
    Can anyone post me a hit or link to documentatin?
    Sincerly,
    Art
    Message was edited by:
    user620777

    Make sure your Portlet Provider access is set to allow 'PUBLIC' access with Execute';
    To set, navigate to Providers > Locally Built Providers
    Follow 'Grant Access' link near provider name
    Doc Reference, Section A.5.1.2 > http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABIEFJG

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

  • How to get form fields in a dynamic page as a portlet

    I have a dynamic page(publish as portlet and added to a portal page) with a html form that has many radio button created dynamically (query a table and create as many radio button as records I found) and the name of each radio button is the id of the record from the table it represents.
    When I click the submit button of my form it will recall the same portal page and then I have to check which radio buttons where selected to update the database depending on it.
    The problem is that I can't get the radio buttons inside the dynamic page because they are created dynamically so I can't make them portlet parameters to be associated with page parameters.
    So How can I tell which radio buttons have been selected?
    Please help me.

    Hi,
    Write a procedure which will be called as the form action. This procedure should take an array of parameters like p_arg_names and p_arg_values. For example
    <html>
    <form>
    <input type="checkbox" name="p_radio">
    <input type="checkbox" name="p_radio">
    </form>
    procedure submit_form(p_radio in wwv_utl_api_types.vc_arr)
    begin
    for i in 1..p_radio.count
    loop
    htp.p(p_radio(i));
    end loop;
    wwv_redirect.url(<page_url>);
    end;
    Hope that helps.
    Thanks,
    Sharmila

  • Error creating dynamic page in an application with a schema other than portal30

    Running 9iAS 1.0.2.2 on Solaris.
    Database 8.1.7.1
    I cannot seem to create a default dynamic page (select 'x' from dual) in an application that has a schema (e.g. test) other
    than portal30. The error seems to be when portal tries to compile the dynamic-page package, it references itself from
    within the package but prefixing the call with the other (test) schema. It never seems to compile? What seems to be the
    problem? Any ideas?

    If you are using any database object other than the applcation owned,then it has to be prefixed with the schema owner.
    For example,
    if the application schema is based on the schema "schema1" (say)
    and your query is based on one of the object on "schema2"
    and if you have necessary privilegves to access that object from schema2, then the compiler wont throw any error.
    Can u explain, what u problem you are experiencing in detail?
    (Also, if u give me the portal version, I can cross-verify that).

  • Issue in Customizing ESS dynamic page(Bizcard view)

    Hi experts,
    I am working on Customization of ESS portal.
    I am able to build and deploy application successfully .We are able to customize Detail View.
    Problem Here is , I am Supposed to modify in BIzcard Iview which is a dynamic page.
    Can any body help in understanding  how data is fetched in bizcard iview and  where the logic is to  be added to modify the page (in which method).
    Any pointer related to dynamic Customization of ESS portal is appreciated.

    Hi,
    I have tried alot for the same, but i didn't get any thing, so we built our own application.
    I copied one of the sap delivered DC and done my customizations.
    if that is small chnage in the IView side you can do the portal personalization.
    Cheers,
    Apparao

  • Issue in customizing ESS Dynamic Page

    Hi All,
    I am working on Customization of ESS portal.
    I am able to build and deploy application successfully .We are able to customize Detail View.
    Problem Here is , I am Supposed to modify in BIzcard Iview which is a dynamic page.
    Can any body help in understanding  how data is fetched in bizcard iview and  where the logic is to  be added to modify the page (in which method).
    Any pointer related to dynamic Customization of ESS portal is appreciated.

    Thank You staurt.
    I also got the SdnTechEd Documnet now. Was going through that.
    It Tells about the creation of Std Package.
    I need quick help  on my first Change . I.e
         for (int i = 0; i < wdContext.nodeSelectedInfotype().size(); i++)
    if(wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(i).getBanka()== "1")
    wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(i).setZlsch("T");
    wdContext.currentContextElement().setVa_Payment_Enable(false);
    I have requirement.
    If the Bank type is other bank (banka=1) then payment method should be of type T and non editable.
    I have wrote the above logic in Detail view init method of Controller and tried in View init too.It is making Payment method non editable in both the pages.
    Any pointer for above details.

Maybe you are looking for