1 Form action 2 tab pages

Hello, I'm using Spry.Utils.updateContent and
Spry.Utils.submitForm for asp. My idea was to make one Form that
both tabpages (and so the asp pages behind it) will use. I can't
get this work because the form has to know to which action page he
has to submit and on which tabpage he has got to load the output.
It works now with to different Forms who looks the same where
only the action page and the UpdateResponseDiv are different (these
two forms are loaded on top of the site above the tabpages).
the Form looks likes this (tabpage1)
<form id="form1" name="form1" method="post"
action="Tabpage1.asp" onsubmit="return Spry.Utils.submitForm(this,
updateResponseDiv1)">
And this (tabpage 2)
<form id="form2" name="form2" method="post"
action="Tabpage2.asp" onsubmit="return Spry.Utils.submitForm(this,
updateResponseDiv2)">
Is there a way to get this done in 1 Form. Maybe by looking
which tabpage is active and depending on that change the action
page and the UpdateResponseDiv.

Hello, I'm using Spry.Utils.updateContent and
Spry.Utils.submitForm for asp. My idea was to make one Form that
both tabpages (and so the asp pages behind it) will use. I can't
get this work because the form has to know to which action page he
has to submit and on which tabpage he has got to load the output.
It works now with to different Forms who looks the same where
only the action page and the UpdateResponseDiv are different (these
two forms are loaded on top of the site above the tabpages).
the Form looks likes this (tabpage1)
<form id="form1" name="form1" method="post"
action="Tabpage1.asp" onsubmit="return Spry.Utils.submitForm(this,
updateResponseDiv1)">
And this (tabpage 2)
<form id="form2" name="form2" method="post"
action="Tabpage2.asp" onsubmit="return Spry.Utils.submitForm(this,
updateResponseDiv2)">
Is there a way to get this done in 1 Form. Maybe by looking
which tabpage is active and depending on that change the action
page and the UpdateResponseDiv.

Similar Messages

  • How to get jsp page form action this page use ajax

    i want to get form action result editThree div. however, ajaxpage open new window.how to decide it?
    ajaxCallPages.js
    var loadedobjects=""
    var loadingcontainer="loading"
    var loadstatustext="<img src='images/loading.gif' />" //loading
    var rootdomain="http://"+window.location.hostname
    function ajaxpage(url, containerid ){
    var page_request = false
    if (window.XMLHttpRequest) // if Mozilla, Safari etc
    page_request = new XMLHttpRequest()
    else if (window.ActiveXObject){ // if IE
    try {
    page_request = new ActiveXObject("Msxml2.XMLHTTP")
    catch (e){
    try{
    page_request = new ActiveXObject("Microsoft.XMLHTTP")
    catch (e){}
    else
    return false
    document.getElementById(containerid).innerHTML=loadstatustext // loading
    page_request.onreadystatechange=function(){
    loadpage(page_request, containerid)
    page_request.open('GET', url, true)
    page_request.send(null)
    function loadpage(page_request, containerid){
    if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
    document.getElementById(containerid).innerHTML=page_request.responseText
    userEditIformation.jsp
    <script language="JavaScript" src="function/ajaxCallPages.js"></script>...
    <div id="editTwo">
    <table width=100% cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td>
    <form name="myform" action="pages/editUser.jsp" method="post">
    <table width=100% cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td>
    <table width=100% cellpadding=3 cellspacing=1 border=0 bgcolor="#cccccc">
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">User group:</td>
    <td bgcolor="#f5f5f5"> <select name="UserGroup" id="lgroup">
    <option>Administrator</option>
    <option>Editor</option></select>
    </td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">User name:</td>
    <td bgcolor="#f5f5f5"><input type="text" id="lname" name="uname" maxlength="20" value=""> </td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">E-Mail:</td>
    <td bgcolor="#f5f5f5"><input type="text" id="lmail" name="uemail" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = false; Email = true; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">New password:</td>
    <td bgcolor="#f5f5f5"><input type="password" id="lpass1" name="upass1" maxlength="20" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = true; Email = false; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Verify password:</td>
    <td bgcolor="#f5f5f5"><input type="password" id="lpass2" name="upass2" maxlength="20" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = true; Email = false; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Phone:</td>
    <td bgcolor="#f5f5f5"><input type="text" id="lphone" name="uphone" value="" onkeypress="return checkIt(event);" onChange="this.value = ignoreSpaces(this.value);"></td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Block:</td>
    <td bgcolor="#f5f5f5">
    <table cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td><input type="radio" name="ustatus" id="lradio1" value="1"></td><td>Yes </td>
    <td><input type="radio" name="ustatus" id="lradio2" value="0" ></td><td>No </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Register date:</td>
    <td bgcolor="#f5f5f5"><%getDateTimeValue valueOne= new getDateTimeValue(); out.println(valueOne.getDateTime());</td>
    </tr>
    <tr valign=top>
    <td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Last visit date:</td>
    <td bgcolor="#f5f5f5"><%getDateTimeValue valueTwo= new getDateTimeValue(); out.println(valueTwo.getDateTime());</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr><td> </td></tr>
    <tr><td><input type="button" onclick="ajaxpage('pages/editUser.jsp', 'editThree')" value="Send"/> </td></tr>
    <tr><td height=18 id="eoncmssend"></td></tr>
    </table>
    </form>
    </td>
    </tr>
    </table></div>
    <div id="editThree">
    </div>
    editUser.jsp
    <html>
    <head>
    <link rel="stylesheet" href="css/editUser.css" type="text/css"></link>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <%
    String ugroup=null;
    String phone=null;
    String name=null;
    if(request.getParameter("uname")!=null){
    name=request.getParameter("uname");
    if(request.getParameter("uphone")!=null)
    phone=request.getParameter("uphone");
    out.println(name);
    out.println(phone);
    %>
    </body>
    </html>
    ../

    From the HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html):
    14.36 Referer
    The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained (the "referrer", although the header field is misspelled.) The Referer request-header allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance. The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard.
    Referer = "Referer" ":" ( absoluteURI | relativeURI )
    Example:
    Referer: http://www.w3.org/hypertext/DataSources/Overview.html

  • Forms 9i tab pages inside a tab page

    hi,
    i m using forms 9i, is it possible to set a tab page inside a tab page
    ie i have a master tab page called 'Office' and i have to add two tab pages
    called 'excel', 'word' as the sub of this main tab..is it possible.......?
    if yes how ?
    thanks in advance
    KK

    You can create the illusion of this though using stacked and tabbed canvases. Make the main tab small so that it only displays the labels and then display the other stacked or tabbed canvases dependent upon which tab the user selects. We've done something similar to this and it works pretty well.

  • Forms Personalizations- Tab Page Change

    Hello all,
    Is there a way to use Forms Personaizations to activate a specific TAB page in a block in Forms (EBS 11i10 or 12)? Sometimes a block spans across multiple tab pages and even the focus is on a specific field, the corresponding tab page does not open.
    Please let me know if you have any ideas on how to accomplsish this. If there is a different forum for Forms Personalizations, please let me know so I can repost the question there.
    Thanks,
    Nat.

    Nat,
    I did not try this myself, but did you check "Forms Personalization" documents (especially the limitation document)?
    Note: 279034.1 - Information About the Oracle Applications Form Personalization Feature in 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=279034.1
    Note: 468657.1 - How To Do Forms Personalization
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468657.1
    Note: 420518.1 - Limitations of Forms Personalization (under [6] Certain objects may not be available to user to change, or cannot be validated)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420518.1
    Regards,
    Hussein

  • Integrating mutiple forms into one form using tab canvas

    Hi everyone,
    I'm relatively new to Forms 6.0 and also to this discussion. Could somebody please explain the pros/cons while integrating 8 maintenance forms into one form(Each page in the tab canvas representing one form)?
    Any help will be greatly appreciated.
    Thanks
    Aruna

    If the maintenance forms are small, you can integrate them into a single form with a tab canvas, although 8 may prove difficult--try it and see what it looks like to have eight tab pages. Make sure the first block and field in the form navigator is the field you want to show at startup.
    You would use multiple forms (1) to modularize largish chunks of complex code that don't interact with each other (2) to decouple logically separate applications (3) to decouple reusable modules that you can then pop into other applications (4) to create shareable components to share through an object library into base forms.
    In your case, the main issue is the logical separation with reusability also raising its head. Each form is logically distinct for maintaining a specific set of tables, so putting it in a separate form makes sense. It would also allow you to reuse the maintenance forms in different applications without including everything. This might be a security issue, for example--some apps might need access to only some of the 8 forms.
    Tab pages are also not as easily formatted as you might like, so check it out before assuming that tab page interfaces in Forms are your solution.

  • Set all Tab pages property

    Hi All,
    Does anyone know how can I loop through all tab pages in a form (10 tab pages) and set the visible property in run-time.
    Thank!

    There is no direct way to do this. You can be sneaky and iterate through each block and then each item in the form using the get_item_property(...,NEXTITEM), then call get_item_property with the CANVAS_NAME attribute, and build up a map of the canvases that way.
    Or you can just take the low tech solution of using a naming convention such as WINDOW0_TAB1, WINDOW0_TAB2 etc, then use FIND_CANVAS to loop through those until you get a NULL canvas ID (use ID_NULL() for this)

  • Tab pages in oracle forms

    hi ,
    I have two different Content Canvases in oracle form 6i and my requirement is such that i need to have these two
    content canvases in tab canvas pages.
    can Any one please tell me how i have to join these two content canvases in two tab pages.
    since i don't have idea about forms.
    if any one could give coding for these issue it would be nice.
    say one canvas name a and another canvas name b and i have pages namely taba and tabb
    now i have to write trigger for tab canvas pages . if any one suggest any idea i could implement it.
    once it is ready i would be implement in oracle apps as well .
    other informations are.
    it have one window
    iam using oracle form 6i,
    help me in this regard .

    say one canvas name a and another canvas name b and i have pages namely taba and tabb
    now i have to write trigger for tab canvas pages . if any one suggest any idea i could implement it.
    once it is ready i would be implement in oracle apps as well .
    HI , Your Logic is okay.
    What you have to do is,
    Open your existing from
    In Canvas - Create New canvas with Type 'TAB'
    And Create Two Tap Page - A & B.
    select existing each items in existing canvas and select main canvas and TAP page -A or B
    Once completed you can run your form as like before without any coding changes,
    Regarding your question for TAB trigger code, generally you do not need any code as it is auto select.. by mouse.
    CHeck and reply back with you further queries

  • 11g Forms Tab-Page Navigation

    I am using Forms 11g on Solaris.
    A main navigator form opens another form which has a content canvas, tab-page canvas and (3) stacked canvases.
    The problem I am having is with tab-page navigation.     CTRL+TAB ( next ) and CTRL+SHIFT+TAB ( previous )
    As long as I do not initiate navigation from an item on a stacked canvas, navigation is as expected ( between tab pages only ).
    However, navigating from an item within a stacked canvas causes navigation to the parent form.
    Repeating the tab navigation keys from the parent form returns to the called form.
    Note that both key-combinations simply toggle back and forth.
    I have found no documentation on tab-page navigation so any help / insight is greatly appreciated !
    Mike

    Hi Soofi !
    Changing block order in the called form does not affect the navigation between tab pages.
    Note in my question that the resulting undesired navigation is to and from the calling form ( which only has one block ).
    Navigation between items and blocks works as expected.
    To reiterate -
         The only navigation that fails is when I attempt to CTRL+TAB or CTRL+SHIFT+TAB to another tab page from within an item on a stacked canvas.
         Attempting this navigation results in moving the cursor focus to the calling form.
         Repeating the attempt from the calling form moves back to the called form.
         None of your methods mention navigation between forms .
    Thanks for your interest.

  • Actions tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WSDFC888F9-219C-4b55-90E6-D316E2A85F08.w.htm l

    I am working in Acrobat. I trying to create a form dealers will complete and submit. There will be no licensing issues. I have created a button and named it SUBMIT. In the Actions tab I have selected “Submit a form.” I have entered “mailto:[email protected]” under “Enter a URL for this link”. I have also selected “PDF The complete document” as the Export Format.
    I saved the file but when I go to the Preview Mode and click the new “Submit” button, I am asked to “Save PDF as” from a menu. Even if I rename the file and click save, nothing happens. I am back in the Preview mode. If I click “Submit” again, I get the same “Save PDF as” routine.
    I am baffled.
      Lloyd Doolittle
    Re:  Actions tab for form field properties
    [Personal information deleted]

  • Portal forms connecting to each other in tabbed page

    Well, here's a challenge...for me anyway.
    If the forms are created and they are published as portlets and in the tabbed page, is there a way to get
    the user to fill out 1 form and be passed automatically to the next?
    I haven't done this before, but am aware of the parameter concept a tad. The page the forms go to can accept parameters and the forms have a common field on each of them > but what is the next step?
    -does this code work better as javascript or pl/sql?
    -where exactly does the parameter passing event occur/get written?
    hope these basic questions are easy for someone....
    thanks in advance.
    mary

    Hello,
    I have just seen your question. I have a very similar question myself (without tabs), but I have no reply yet. In case you have a solution, could you kindly email me ([email protected]). Thank you, Trivan Pal

  • Nested Tab Pages in 100% Generated Forms

    Hi all,
    Creating a Forms (9i) application, hopefully to be 100% Designer 9.0.2.6 generated. Trying to find out if it is possible to generate nested tab pages.
    eg.
    example table structure
    Employee
    |-Employee history
    |-Employee skills
    | |--Employee skills history
    | |--Employee skills details
    |-Employee time bookings
    In this case, employee is the Master table with a tab section for the detail - three tabs for history, skills and time booking. On the skills tab page, I want to use skills as a master table and then have history and details as two tab pages on another tab section within the whole skills tab page.
    Is this scenario possible in a 100% generated form?
    Thanks,
    Michael.

    Hi Michael,
    Someone correct me if I am wrong on this, but I believe this is not possible. Only stacked item-groups display as nested tabs on a tab page. Master-detail with the details as tabs is not possible on a tab page.
    Regards,
    Michiel Arentsen

  • Forms personalisation - Vendor Form - How to Disable a Tab Page

    Hi,
    I am not a Forms 6i/9i programmer, although I have an appreciation of the concepts and can look at forms in Form builder. I have been looking at forms personalisation and have used it to execute plsql via the built in 'execute a procedure'. I can also see how to disable blocks, or items, but I haven;t managed to disable a form tab page i.e. On the vendor form there are tabs for GENERAL, CLASSIFICATION etc.
    I have tried using the object type Tab Page, but the poplist doesn;t list any tab pages. Also if you choose Canvas, the list of Canvases appears but generates errors when you try and use the form (complaining of tab page ids).
    I understand that to disable a tab page programatically, you would use SET_TAB_PAGE_PROPERTY i.e. in a forms trigger or in CUSTOM.pll
    I would have thought Forms personalisation could do this.
    Any ideas would be appreciated
    mark
    I under

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • Tab Pages in Form

    I have 2 tables their structure is as follows:
    1- Dept_id, Dept_name
    2- Emp_id, Ename,Sal,mgr,hiredate,Dept_id
    Now i want a Multiple tab page in my form if I click on Sales all the employees working in sales department should be displayed automatically likewise when I click on Accounts tab all the employees working in relevant department should be displayed automatically......how can I achive this ??? any advise or help highly appreciated

    Hello,
    Use the trigger: WHEN-TAB-PAGE-CHANGED to detect which tab you are switching to.
    Then for each tab, change the block property using: SET_BLOCK_PROPERTY built-in and change the property DEFAULT-WHERE to the one that gives you the employees working in sales etc...
    To get that when you enter the tab page, use the built-in EXECUTE_QUERY
    Hope this help

  • Tab pages in forms v6i

    I compile forms using v6i. The forms are made with v6 and they have 2 TAB PAGES with the same block and first page is visible but the second page is not navigable with mouse.
    Why doesn't work ? These forms v6 are correct.
    Thank you.

    When you click on a tab, if the cursor is in an item on the first tab page, the second won't come up. You have to move the cursor when the tab page is activated. (I'm not sure, but I have patch 13 installed, and this does not seem to be a problem any more. However my associates with an older version do have your problem.)
    I use a when-tab-page-changed form-level trigger:
    -- When-Tab-Page-Changed form-level trigger                        
    Declare
      new_pg   varchar2(30) := :system.tab_new_page;
    Begin
      If new_pg <> get_item_property(:system.cursor_item,item_tab_page) then
      -- cursor is on a different tab page.  Need to navigate to an item
      -- on the requested tab page.
        If new_pg = 'TAB2' then
          Go_item('B3.NAME');
        else -- TAB1 tab page
          Go_item('B1.KEY_NAME');
        end if;
      end if;
    End;

  • Tab pages on Oracle forms 9.0.4..

    Hi,
    I have a form consist of several tab pages. I do not user to select another tab page without saving the currnent one where they are on. If the user already clicked on another tab, the one clicked tab changes colour. I can force the cursor to go back to the block where they were before, but the prevously clicked tab does not change to the original colour. How do I change the clicked tab back to the unselected tab colour.( if user want to go the tab page even after saving they have to click another tab page in order to go the prevously selected tab page) I would appreciate if any one knows the answer and giving me the details.
    Thanks
    Luksh

    Use
    set_canvas_property('Your_Tab_Canvas', TOPMOST_TAB_PAGE, 'Your_Tab_Page');
    to select a tab and make it the current tab.

  • About forms builder 6i's tab page

    when tab page is changed from one to another which triggers will be fired in order?? (click the topmost Tab Page )
    thanks
    Edited by: user650991 on Apr 16, 2009 6:11 PM

    ok, I find the answer in metalinnk.
    Native Tab Controls in Forms - Tab Pages and Tab Canvases
    Doc ID: 43014.1
    Controlling Canvases in Forms Programmatically
    Doc ID: 73441.1

Maybe you are looking for

  • Download error code 49

    download error code 49

  • PSE 7 and PSE 9

    2 Octobers ago I purchased a Bamboo tablet that came with Corel painter and PSE 7. I recently got a new laptop and decided I wanted to put PSE 7 on my new laptop. I had a problem finding the program and still cant find it. It was in a box with my ser

  • Urgent : !!!! AutoCommit in EJB Transaction

    Hi, We have problem in stateless Session Bean with Bean Managed Transaction. We are getting SQLException - Connection closed. Even though we have tx.rollback() in catch, the some of the data which are inserted before the exception is commited. When I

  • Where can I find my movies saved in itunes media file

    I have followed itunes' suggestion to back my movies in itunes media files, now I can't watch them because apparently itunes can't find the original file. When I try to locate these files they do not appear under the itunes media files. Help me pleas

  • Discoverer Plus on Portal

    All of the documentation that I have read shows Discoverer viewer version on the Portal. Has anyone used the Discoverer Plus version on the Portal? Thank you.