How to maintain pageFlowScope value across 2 japx??

Hi All,
How to maintain pageFlowScope values across the pages.
In my application I got 2 jspx pages where the 1st page (result page) have two page fragments and no fragments in the 2nd page (Master Details page).
I am triggering the 2nd jspx while clicking the continue button from the 1st jspx's 2nd fragment. I am using Java webservice DataControl in the model layer and both the pages sharing the same WS DC results. In the 2nd fragment I am displaying the user search result. While hitting the continue button I am collecting the selected userID and then triggering the 2nd jspx by passing the that userId thru pageFlowScope, which used to call the WS method once again.
PageFlowScope losing the context while navigating to 2nd page. It is returning null value. If I remove 2nd page and create the new fragment in the first page itself then the master details is working well.
Please help me how do I pass the pageFlowScope value from one page to other page without losing the value. I am using faces-config.xml for page navigation.
Continue button Action method:
public String userSelected() {
FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
currentRow = binding.getRow();
selectedNetID = (String) currentRow.getAttribute("netid");
requestContext.getPageFlowScope().put("netid",selectedNetID);
return "goToUserMgmt";
Thanks
kln

I am not opening any new window for the 2nd jspx. Trying to open the 2nd jspx in the same window.
I did the same as you mentioned.
1) create first page idm.jspx
2) create 1st page fragment search.jsff (Manually create the input fields...didnt drag and drop the WS DC input).
3) create 2nd page fragment searchResult.jsff (drag and drop the WS DC result and setting #{pageFlowScope.netid} as value)
4) create search-task-flow and attaching these 2 frag in it.
5) Drag and drop the search-task-flow in to first page IDM as region.
6) Creating 2nd page MasterDetails.jspx (Drag and drop the same WS DC result)
7) Creating faces-config.xml where I drag and drop both the jspx and setting the navigation rule.
(If continue from IDM.jspx then go to------>masterDetails.jspx)
Here the String continue is return by the 1st page--2nd fragment continue button action method...
This is what I am doing exactly....Any idea please why am I missing the pageFlowScope value!!!
-kln

Similar Messages

  • How I maintain the values of cfform elements

    Hi,
    I have created a search form using <cfform
    format="flash".........
    Now the question is that
    when i refresh the page , the whole values in the form
    elements(like cfinput,cfselect......) gets lost.
    How i can maintain these values.
    Any help would be appreciated .
    Thanks.
    Prashant.

    You are right, Dan. Without submitting the form there is not
    much you can do to capture the values, short of using some very
    tricky javascript/ajax/cfml combinations, especially since it's a
    flash form...
    But I was not very clear on what Prashant meant by "...when I
    refresh the page...". Could either mean user clicking refresh
    button or refreshing the page by processing the form and displaying
    search results... But maybe I am just trying to read too much
    between the lines in his post...

  • How to retain variable values across a BPEL Process?

    Hi All,
    I've created a BPEL process using number of variables. Out of these I've a common variable with name processorBO that is required for calling every service. But after calling a service, I lose values inside processorBO and it gets filled with the new values.
    Can anyone tell me how to retain the processorBO values across complete process so that, I can use the required values at appropriate places ?
    Thanks in Advance
    Regards

    well...you could always use the transformations to do the assign, or if you want to use just the assign activity to set the response values from the service to the 'global variable' you could use something like
      <copy>
          <from variable="inputVariable" part="payload"
                query="/client:testProcessProcessRequest"/>
          <to variable="globalVariable" part="payload"
              query="/client:testList[1]"/>
      </copy>the [1] will assign your values to the array-part of the variable.
    This does the same as a for-each in your xsl transformation.

  • How to maintain default values for custom table fields --  Urgent

    Hi all,
    I've a requirement wherein i need to create a Z table (with maintainence view) in which i'll have date and time as two of its field which should have current date and current time as default value. Can somebody suggest as how am i to maintain the date and time fields defaulting to current date and current time.
    Incase if someone is unable to intrepret what i'm trying to say, please query me, i'll elaborate it further.
    Please give in your quick inputs which is highly valuable to me and also will be highly appreciated.
    Thanks in advance,
    Vaishnavi Varadarajan

    We have a following custom table which contains the fields “Date on which record was created” and “Name of the person who created the object”. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.
    Using the events, we can achieve this.
    Please refer the following link:
    http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
    Also,
    Write a form routine in table maintanance generator.
    1. SE11 > utilities > table maintenance generator
    2. environment > modification > event
    define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.
    Or u can do it as:
    Table maintenance generator is basically used to do table operations like (insert, delete, modify...).
    if you create table maintenance for your table it will build a module pool program, by using you do the above operations.
    below is the procedure to create table maintenance generator.
    1) Create one function group.
    2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.
    3) then give the authorization group and function group created abobe in the next screen.
    4) Then choose the "create" button in your application tool bar, which will creates the module pool program.
    5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".
    6) in transaction field give "SM30", select the check box "Skip initial screen".
    7) in the below of that screen you can find the "Default values" frame.
    8) there under the "name of screen field" select the "View name' and 'update".
    9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.
    save it then you can straight away use this newly created Tcode to maintain your table.
    Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).
    2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.
    cheers,

  • How to maintain default values to the screen fields.

    hi,
    i m creating screen in se51.
    when i press New button the screen is filled with default values
    nrart = 'h' and proz1 = '100' .
    how can i set default values.
    plz give me a response

    HI,
              You can set default values on to screen fields using SET and GET PARAMETER command, You need to assign a PARAMETER ID for that screen field and then use SET PARAMETER before the screen is called or in the PBO of the screen, you can set default values direcly in PBO of the screen but then you have hard code those value or read the data from database.
    You need to have a TABLES statement to create a strucutre that you used to create your screen fields, then when you set value to these strucutre fields these values will get tranported to the screen fields automatically.
    Regards,
    Sesh

  • How to access variable values across mappings?

    Hi all,
    I have created the following sample class Test.java and imported it as an archive:
    public class Test{
    public static String myStringData = null;
    In one of the mappings, I have a UDF that sets the  "myStringData" using the foll:
    Test.myStringData = "Amit";
    I am trying to access this variable in another mapping using a UDF with foll statements:
    String test = Test.myStringData;
    result.addValue(test);
    However, on testing the second mapping I get the value of the variable as null. I have activated all objects.
    Not sure what exactly I am missing here...Kindly provide your inputs.
    Thanks..
    Amit

    Hi,
    >>>Shabarish/Praveen, it would be great if you could provide me with some examples on the suggested approaches as I am relatively new to PI.
    the truth is that you should not write anything from message mappings
    as:
    what happens if the DB table to which you want to write will be locked
    what happens if the file will not be accessible ?
    it's better not to write anything from message mappings
    especiall if you say you're new to XI
    maybe just tell us the real problem - why do you think you need to do it?
    Regards,
    Michal Krawczyk

  • How to distribute a value across time periods?

    <p>I have an application that tracks employees' actual andforecasted time on a project. The question is how do I get startedon writing a business rule to distribute forecasted time acrosstime periods?</p><p> </p><p>For example, the user selects an employee and estimates that theemployee will spend 1200 hours on the project over the next 2years. so i want to allocate 50 hours per month for the next twoyears. The employee will be a run-time prompt as well as the startyear/month and end year/month.</p><p> </p><p>The dimensions are</p><p> Account -> manhours</p><p> Period -> (standard)</p><p> Years -> FY05:FY15</p><p> Projects -> p1, p2,..., p3</p><p> Employee -> emp1, emp2, emp3</p><p> Scenario -> Actual, Forecase</p><p> Version -> original</p><p> </p><p>Thanks in advance.</p>

    <p>OK so, I have this much so far (unfortunately) This is just afirst draft and it assumes that you are allocating evenly acrossone year known as start year.</p><p> </p><p>But it doesnt do anything.</p>

  • !!!! How to maintain the value with 2 decimal places !!!

    hi
    i have a double var and i need to maintain it with 2 decimal places only..
    thanks..

    What do you mean with you need to "maintain it" with 2 decimal places?
    Do you want to display the number with 2 decimal places? If so, have a look at the API documentation of java.text.DecimalFormat.
    double d = 3.14159265358979;
    NumberFormat f = new DecimalFormat("0.00");
    System.out.println(f.format(d));

  • How to load grid values in to bi

    Hi Guru's,
    I am new to IS-AFS.now i am implimenting the IS-AFS.i am having some doughts those are how to maintain grid values in AFS and how to load these values in to SAP BI...

    Hi
    Normally we used AFS Grid value filed J_3apgnr-->Mat.grid no , we will assign this object to 0af_grid in BI side .
    Check Afs sales order cube and 2lis_11_vascl datasource .
    Hope it helps
    Praveen Yagnamurthy

  • How to maintain space between value and base unit of measure in sapscript

    Hi Guys,
    I am working on an upgradtion project, i have problem like while upgrading from 4.6b to 5.0. i need to main a space between value and base unit of measure. can anyone letme know how to maintain in the form. I mean in sapscript.
    Thanks,
    Yogesh

    There are a couple of ways to handle this,  if you need a bigger space between, you can use tabs in the paragraph format.  Or you can just write the space in between the fields like so.
    ZA  &MSEG-MENGE& &MSEG-MEINS&
    Regards,
    RIch Heilman

  • How to maintain the characterstics of the values tab of limits maintain.

    Hi SAP ALL,
                     Hi how to maintain the characterstics point of valu scales maintain activally i want the P R release authorsiation limit increase.
    Thnaks

    The Class Type of PR & PO Release is 032 and for Class Go to SPRO-MM-Purchasing-Purchase Order-Release Procedure-Release Strategies and Here you will find the Class.
    Else Go to Release Strategies-classification using the same above path and Change the Chareceteristic Values and Save.
    Regards,
    Ashok

  • How to maintain quantity against BUdget values in WBSE

    hi,
    how can i maintain quantity against Budget values in work breakdown Structure element?? and how can i maintain actual quantity with budgeted quantity against wbse
    regards

    Dear,
    how can i do maintain plan quantity and actual quantity against WBSE?
    what i did is by CJR2 i maintained plan values and quantity against cost elements for WBSE.
    then i enter actual values with actual quantity by direct invoice or GL entry at transactional level.
    CJI3 dispaly actual values and quantity
    CJI4 display plan vaules and quantity
    both reports display separately is their any way i can dispaly in one report and compare them interm of values and (quantity specially).
    regards
    Edited by: SAQIB USMAN on Apr 27, 2009 4:43 PM

  • How to copy copa derivation rules ( maintain rule value)

    Hi All,
    Can anyone help how to copy the copa derivation rules with maintain rule value from production to quality.

    Hello,
    Export and import of copa derivation rule is not possible.
    usually Transports are moved from quality to production as per best policy.
    Production to quality happens at the time of quality refresh.
    in case of high importance please get in touch with Basis team.
    Regards
    Lavanya

  • How to Maintain Tabular Item Value Following a Validation Failure

    So, I have trapped the click of the Add Row button to allow me to set some items in the new row from JavaScript/jQuery. This is working great.
    addRow();
    $('td[headers="IDR_RUN_TIME"]:last').text(lastIntradayRefreshText);
    ...In the above example, IDR_RUN_TIME is Display Only.
    However, when the user submits the page, i.e. applies the changes, if some valdation fails, for example a particular column is NULL, the value that was set via the JavaScript above is set to NULL.
    How can I stop this from happening, i.e. maintain the value that was set when the row was added.
    -Joe

    I ended up basically just bypassing the APEX validations entirely. I resolved this by adding my own JS validation layer that would allow me to trap the errors without ever submiting the page. (Actually, the code allows me to specify, via a paramter, whether to submit the page.)
    So, the question is answered but, I didn't end up using anyone's answers here (although they were porbably all good ones).

  • How to Validate the Fileds in LSMW - In step 6.   Maintain Fixed Values, T

    Hi
    How to validate the fileds in the LSMW in the step
      6 Maintain Fixed Values, Translations, User-Defined Routnes.
    In this step how to i validate the fileds.
    Please help.
    Regards
    Gangi

    Hi,
    You can validate the fields in the LSMW in field mapping section .
    For example you are loading the BOM using LSMW and you want to validate those material numbers which do not exist in the material master .
    For this purpose write a select statement to check the materials existence like below :
    select single matnr into v_matnr
    from mara
    where matnr = source-matnr .
    if sy-subrc <> 0.
    skip_record. " this statement will skip the record .
    endif.
    To get such statements to handle the records withing LSMW during data transfer .Go to the field mapping step , there in abap conversion routine step
    go to ' INSERT' -> 'GLOBAL FUNCTIONS' -> ( then a pop will open offering various function options for your requirement. ) In fact SKIP_RECORD is also available there .
    reward if it helps...
    Regards,
    Omkar.

Maybe you are looking for