How to retain a form values when navigating to another form

I have a createUser.jsp where i can create new user(CreateUserForm). I need to call an action which will take me to another jsp findPage.jsp (FindAssociateForm) where i perform some operations and then comes back to previous page createUser.jsp. When I come to createUser.jsp, all the form values (like first name, lasst name, etc) are getting lost. so I had to re-enter the whole information again which should not be case.
I would like to retain the form values.
Please note I have one pageflow but two form beans as both are different JSPs.
Thanks for looking into this and I appreciate your help.
-Ananth

Hi Ananth,
U need to define Pageflow formbeans.
The formbean u defined is request scope. Pagefloe formbeans are global and can be used through out pageflow.
Coming back to first page can be of different cases, form validation failure or navigation logic.
In form validation Failure you can use, forward path as Jpf.Navigate.ToCurrentPage or Jpf.Navigate.ToPreviousPage depending on your flow. The values will be retained even if form bean is request scope.
ex:     @Jpf.Action(forwards = {
               @Jpf.Forward(name = "success", path = "findPage.jsp"),               
               @Jpf.Forward(name = "failure", navigateTo = Jpf.NavigateTo.currentPage)})
If its a navigation logic, the you need to add this formbean in the forward.
ex: forward.addOutputForm(createUserForm);
Let me know if you need anything more.
Suman

Similar Messages

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • Retaining values when navigating between subtabs

    Hello everyone
    I have a subtab region with 3 tabs in my page. I have some form fields in each tab, when I enter some details in tab1 and click tab2, and then come back to tab1 , my details previously entered in tab1 gets cleared. is there a way to retain these values when navigating between subtabs. all the tabs are based on different VO's
    Thanks
    Ravi

    Here's how I do it...
    (1) I always use Sessions.  In the main form of my application, I set up the session and I store a single variable:  Session.Exists = True.  All other forms begin something like this:  (It's actually an include-file.)
    <cflock ...>
    <cfset SessionExists = StructKeyExists(Session, "Exists")>
    </cflock>
    <cfif NOT SessionExists>
       <cflocation ... send 'em back to the home 'cuz their session has expired>
       <cfabort>
    </cfif>
    (2) Now that we know that a session exists, we store various structs in the Session to contain the default or current values that have been used in a particular form.  If the Session scope does not contain a particular struct, it is automagically created with appropriate default values.)  This becomes "what we display," and when we capture the user's responses, we store them there, even before we validate them.  The session pool therefore becomes the vehicle for communication between the various forms.
    (3) If we reach a point where a particular piece of information is no longer useful, we delete the appropriate structure from the Session, thereby wiping out the entire set of values at once.
    (4) Structs and Arrays can, of course, contain other Structs and Arrays.  You can build data structures of arbitrary complexity.
    (5) As of late, I have found myself specifying individual CFCs for each logical "object" in my application.  This is true object-oriented programming, as best as ordinary CFC techniques can do without plunging headlong into the underlying nether-world of Java.  In those CFCs, I deliberately try to conceal just how information is maintained and stored, so that these necessary inter-dependencies within my application are concentrated in just one place.  "The structure is 'the object,' and the methods are found 'here and only here.' "

  • Form 11g - Is is possible to block specific forms access when user directly type form name in url ?

    Hi everyone,
    We have XXF000.fmb, XXF001.fmb , XXF002.fmb , XXF003.fmb in 6i.
    For migration to 11g , we recompile these forms and move fmx to 11g form server under form_path.
    In 6i , we login for validation & responsibilities control in XXF000, So we can use account info to verify if user have priviledge to access XXF001, XXF002 and XXF003.
    But in 11g , we can access these forms vial url request , such as : http://<host>:<port>/forms/frmservlet?form=XXF000   ; http://<host>:<port>/forms/frmservlet?form=XXF001  ... etc
    These may cause some unexpected access and operations in functions.
    Is is possible to block specific forms access when user directly type form name in url ?
    Thanks.
    Hendry

    You need to alter your formsweb.cfg file, either directly or through the Fusion web interface. You need to set the following parameters:
    #this sets the default form for your application
    form=yourmenuform.fmx
    #this stops these parameters being entered in the URL, seperate different parameters with commas
    restrictedURLparams=form,pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log

  • Can you programatically detect that a form has been called by another form?

    Can you programatically detect that a form has been called by another form using Open_Form?
    When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
    Thanks in advance.

    Maybe, Tony, also
    GET_APPLICATION_PROPERTY built-in ; it can
    be used to retrieve information about the calling (parent) and called
    form (child).
    The following example describes a way to perform a query on the child form
    using a value from the parent form; if the form is a child form, it first
    executes a query, otherwise the form goes into insert mode automatically.
              WHEN-NEW-FORM-INSTANCE
              ======================
              BEGIN
                   :GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
                   IF :GLOBAL.APP_NAME IS NOT NULL THEN
                        EXECUTE_QUERY;
                   END IF;
              END;Regards

  • How to get the value of the current form values after "save" in MD form

    Hi,
    I am trying to run a procedure using the form values right after I save the current records in a master-detail form. When I pass the value using p_session.get_value to the procedure, there is only null value passed. I checked the package body generated and found that the OnReset function runs immediately following the saving of the current records and this onReset function is called within the OnSave procedure. So when I save the current changes, I loose the values in the p_session. Any PL/SQL code I write after OnSave, does not get any p_session value.
    Interestingly, in case of just one table form, the OnReset is not within the OnInsert function and it is possible to get the p_session values. OnReset runs after OnInsert and within this two functions we can write any pl/sql code on the Insert button PL/SQL handler.
    I have the following questions:
    1. Why is the procedure written differently in case of master-detail form ? Why is the OnReset inside the OnSave ? How do we write codes which we want to execute before onReset and after OnSave ?
    2. I want to run a procedure after onSave and before OnReset. How do I do that ? Do I have to change the package manually ?
    3. If the above is not possible, I can also try to store the values I need to run the procedure before I save in some variable. How do I do that ? It seems I cannot declare variables to store session values inside the pl/sql event code on Save button, because it gives me error. The variable declaration code goes in between the begin and end of genesys.. procedure and that is not allowed in pl/sql
    Please help me with this. I definitely need to run a procedure after saving for almost all of my forms. Otherwise I am not sure what to do with my development. I am completely stuck with this. Thanks a lot for helping me out.
    Mainak

    Never mind. I found the answer.

  • How to retain the page location when SelectAll or SelectNone are clicked

    Hi,
    I have a fairly large jspx page and to get to the end of the page one needs to scroll down. Towards the end of the page I have a af:table component with “Select All” and “Select None” features. Every time the SelectAll or SelectNone is selected the top part of the page is displayed on the screen and to get back to the table the user has to scroll down again. Is it possible to retain the page location when the SelectAll and SelectNone are clicked.
    Thanks in advance

    Hi,
    actually I don't think that there is a solution to this. It seems that the table is re-painted upon selecting the select all link.
    Frank

  • Black & White Adjustment that retains same Greyscale values (when in Color)

    Hi all,
    I noticed that when I apply a simple Black&White Adjustment layer to my colored layers, the 'Greyscale values' either via LAB sliders /HSb brightness changes drastically.:
    http://i57.tinypic.com/16ifm8n.png
    eg the L slider for the turquoisy color jumps so much
    I've tried the Hue/Saturation & Black&White adjustment layers with default settings. Can someone tell me a quick B&W workaround conversion that adheres as close as possible to sliders values when the adjustment layer is off?  I used it for digital coloring to check my composition 'values' regularly, so complex grayscale conversions would be less preferable. Also, I do not need it to be perfect to human vision, just hopefully adhere roughly to the 'L' or 'B' slider values when the B&W adjustment is turned on/off
    thanks alot!

    I believe the tone shift to which you are referring is caused by the B&W adjustment layer as demonstrated here. This is the basic file (Adobe RGB):
    Add a duplicate layer and change its Blending Mode to Luminosity. The colors will not change. Then add a Black & White Adjustment Layer and it will modify the resultant color like this:
    For a clearer comparison, the image below shows the beginning image with the altered luminosity of the B&W Adjustment layer in the center circle
    (Notice Clipping Mask)
    So, the default setting of the sliders that appear in the B&W drop-down menu must be adjusted so that, at the start, this Adjustment layer of the Luminosity does not alter the color. To do that, I had to change the settings to:
    Reds     33
    Yellows 90
    Greens     60
    Cyans     72
    Blues     14
    Magentas 46
    You may save these settings as a Preset. so that they do not require resetting each time. The practical application of this is that it allows you to lighten and darken specific colors in a scene without resorting to selections. I have found this to be most useful in landscape images. (I overdid the changes in the sample below for demonstration purposes only.)

  • How to use cfloop index value as part of another variable

    Hello,
    I have a RATE form that first asks "how many rates will you
    be adding?" that answer generates a series of form elements based
    on the answer. You then have a form grid to populate, 3 values for
    each rate (price, code, name).
    This part works fine. The issue is now I need to INSERT the
    values into the table, so I need to use the INDEX value of the
    cfloop to recreate the amount (and names) of the fields in the
    INSERT statement. How do I escape, or re-create the evaluated form
    elements ( in which their count is #i# as the loop goes) when I
    need to evaluate for #i# AND evaluate for #form.sku_i_name# at the
    same pass?
    I am passing, for example, #form.sku_2_Name# where that might
    equal "Half Page". The number 2 in that variable was assigned
    during the form creation by the current index of a cfloop. Since my
    action (insert) page does not know how many (out of 50 possible)
    sku's are coming, how do I use the skuCount (another hidden value
    passed as well) to create a proper INSERT SQL command when I need
    to eval the form element and the index at the same time?
    Obviously #sku_#i#_Name# does not work, and #sku_i_Name# does
    not either... I know this can be done, and that I am just doing it
    wrong.
    Thanks for any help!

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

  • Attachments are missing in form later when you view the form

    Hi All,
    we have developed the application with webdynpro java with adobe interactive forms, we have implemented adding attachment to adobe form . I have two problems related to adobe attachments.
    1)  once files are attached to form and submitted the form data. Later when you view same form , if you look at the attachments . Files are available. But in the same webdynpro form where the adobe form is rendering has back button.
    Once you click on the back button and again if you display the same adobe form and try to look at the attachments. But attachments are missing. the attachments not able to see till i close that browser and open the the application in new browser. Some thing causing the issue click on back button and try to revisit the same adobe form to see the attachments in file.
    2) Another problem is  file names with attachments. once files are attached to form and submitted the form data. Later when you view same form again attachments are missing. In case, if any of the file name have the special characters like " %, $, &". for example if i attached three files to form , but only one of the file names has the special characters, then the whole three files are missing when you look at the attachments in the form.
    Please let me know what could be the issue. How to resolve it.
    One quick solution for the 2nd problem is , Prompting the user with warning message, while attaching any files to form have the special characters to file name.  what is the logic need to be write, where need to write.
    Please answer to this

    John,
    thanks for the reply, can Please elaborate  your question.
    How i will add the attachments to the form means, we have online forms for submit the data , while submitting the data , all the relevant documents or files  related to request will be attached to the adobe form , click on  attache icon available in adobe form.
    thanks
    vijay

  • Lose form data when combining PDF fillable forms

    I would like to combine into one PDF document two completed form-fillable PDFs. The PDF forms have identical fields, but the data collected on the forms (from different users) is different, of course.
    When I add the second form to the PDF document containing the first one, the data from the second form is erased and replaced by the data from the first.
    So, I end up with a PDF document with two forms containing identical user data.
    I suspect Acrobat is freaked out because the forms contain the same field names or something. I know I can solve this by making a new PDF from the form-fillable PDF--flattening the layers, in Photoshop-speak. Is there another way to solve the problem?

    With Acrobat forms form fields with the same name and type will change together. This has how Acrobat forms have worked since they were introduced.

  • Forms behavior when closing browser or forms, javascript

    Hi
    I want to be able to run Jinitiator in separate frame, but with the possibilities to close the browser when closing the forms and in on the same html page I would like to have the possibilities to fire a message if the end user try to close the web browser directly (not by closing the forms).
    I find in the forum solutions for the two constraints but if I try to put this two behavior together: message fire even when I close the forms because the post-form trigger try to close the browser. I try to put condition on the alert with a variable but do not succeed. how could I manage to setup the two behaviour together?
    Is it possible to put condition in javascript to see if the end-user close the browser via forms or via the browser?
    thanks

    I've installed the FormsStart utility...and it looks great.
    However, if I have separateFrame=true, when my forms application starts, it opens 2 applet windows.
    If I have separateFrame=false, everything looks ok except that when I alt-tab to a different application and return - my focus is not returned to the field that the cursor was in.
    Is this something inherent with having separateFrame=false? Is there a way around it?
    Cheers,
    Dave

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • How to capture an entry and use it in another form??

    i have a login form i wana capture the user type and use it in another form,
    how to do that?!?

    Hello,
    There are several ways to pass arguments from form to form.
    You can use global variables that you can write:
       :GLOBAL.my_global_variable := 'Hello' ;Then you can read in the another form
       the_value := GLOBAL.my_global_variable ;You can also use Forms parameters
    see the onlin documentation about global variables and parameters.
    Francois

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

Maybe you are looking for