Step Value in Train Locator element

Hi,
I am using Train Locator element in OAFramework pages.
I have created 6 steps in the train region i am also using Submit Button in that Locator element region as described in OA Framework help and wants to display button at last page for that i m comparing step value as explained in OA framework help in processRequest as:
OATrainBean trainBean =
(OATrainBean)pageContext.getPageLayoutBean().getLocation();
// You must call the following before getting the target page index.
trainBean.prepareForRendering(pageContext);
int step = trainBean.getSelectedTrainStepRenderedIndex() ;
if (step + 1 != trainBean.getNumberOfRenderedTrainSteps())
OASubmitButtonBean submitButton =
(OASubmitButtonBean)webBean.findIndexedChildRecursive("Submit");
submitButton.setRendered(false);
But every time when 1st page renders submit button is displayed then for 2,3,4,5 page it is not displayed then it is displayed for last page.
Everytime when 1st page rendered value of step comes 5!! while it should come 0.
I only want to display this submit button at last page not at 1st page.
Thanks in advance!

check [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf]     How-to programmatically navigate ADF train models

Similar Messages

  • Step Value in Locator Train Element

    Hi,
    I am using Train Locator element in OAFramework pages.
    I have created 6 steps in the train region i am also using Submit Button in that Locator element region as described in OA Framework help and wants to display button at last page for that i m comparing step value as explained in OA framework help in processRequest as:
    OATrainBean trainBean =
    (OATrainBean)pageContext.getPageLayoutBean().getLocation();
    // You must call the following before getting the target page index.
    trainBean.prepareForRendering(pageContext);
    int step = trainBean.getSelectedTrainStepRenderedIndex() ;
    if (step + 1 != trainBean.getNumberOfRenderedTrainSteps())
    OASubmitButtonBean submitButton =
    (OASubmitButtonBean)webBean.findIndexedChildRecursive("Submit");
    submitButton.setRendered(false);
    But every time when 1st page renders submit button is displayed then for 2,3,4,5 page it is not displayed then it is displayed for last page.
    Everytime when 1st page rendered value of step comes 5!! while it should come 0.
    I only want to display this submit button at last page not at 1st page.
    Thanks in advance!

    Hello,
    Does the workitem reference the workflow container element directly, or does it get passed in via binding?
    I've tried something similar in the past and found that text was cut to 80 characters in mail steps.
    Your truncated text is 84 characters long, are you sure all of it is showing?
    regards
    Rick Bakker
    Hanabi Technology

  • Using OAAttrValException in a train locator

    Hi, i'm having big trouble with OAAttrValException in a train locator. I have written several validation logic in my EOimpl.java setters and used OAAttrValException to throw errors.
    I even tried at the VORowImpl level but same result.
    I have debugged the pages and when a validaton test fails i can see that the debugger steps into the OAAttrValException statement but no exception is shown in my page, the application just goes on to the next page in the train.
    Are there any special considerations to take when usin OAAttrValException in a train?
    Regards
    Steinar

    Hi Shiv!
    Been on a looong vacation, hence the delay.
    Here is the code i have written in EOImpl:
    ============================================================
    * Sets <code>value</code> as the attribute value for Navn
    public void setNavn(String value)
    if (value.length() != 5 )
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "Navn", // Attribute Name
    value, // Attribute value
    "XXET", // Message product short name
    "XXET_BL020_ERR_VAL_NAVN"); // Message name
    setAttributeInternal(NAVN, value);
    ============================================================
    Debugging shows that "throw" statement is entered and that the
    "setAttributeInternal" is never called. Still no error message is displayed and the next page in the train is displayed.
    Regards
    Steinar
    Message was edited by:
    sgrhdk

  • Locate elements to JSP page!!!!

    HI!
    I whant to know how can I locate elements in JSP page from Data Control Palette, witch will be good-looking. For example I want to take elements one by one - from one attribute only label, from another only inputValue textbox! How can I do that with good-looking design???
    PLZ help and suggest something...
    BEST REGARDS!

    Hi,
    just drag and drop the attributes and choose from the context menu. For labels, choose outputTextField. Note that the real label - at least when using ADF BC - is not shown as the value for af:outputText. In this case you need to change the EL reference from #{bindings.attribute_name.inputValue} to #{bindings.attribute_name.label}
    The sense of the remaining part of your question is unclear to me.
    Frank

  • 10g: Database Diagram "Unable to Locate Elements For ..."

    Hello,
    In experimenting with JDeveloper 10g Diagram feature (IDE version 9.0.5.13.88), I experienced a rather vexing problem. I wondered if anyone could shed some light onto the issue for me and perhaps even help get it corrected.
    I started off by Upgrading/Converting an existing 9.0.3 project up to 9.0.5. I then created a new Database Diagram (File | New..., General -> Diagrams -> Database Diagram). I then dragged 1 unconstrained view and 2 constrained views onto the diagram. It automatically drew the view links. I arranged the views on the diagram and then closed JDeveloper. I then closed the diagram and the workspace. When I attempted to reopen the diagram, I received the following error:
    Unable to Locate Elements for Adhoc Reporting Model
    In the list were the 3 views and associated viewlinks. Pressing continue yielded a blank diagram, much to my chagrin.
    Any ideas?
    Thanks,
    Sean

    When you mention views, I presume that you mean View Objects, if this correct. I also presume that you dragged and dropped these View Objects from the navigator, and that the View Link that you mention was already visible in the navigator, is this also correct?
    Did you see your view objects in the navigator, when you re-opened JDev? Are they in the same project, as your diagram? The diagrammer should have been able to find the objects, if they are visible in your current project.
    You state that you first shutdown JDeveloper, and then closed your diagram, and workspace, did your diagram re-appear as expected when you opened up JDeveloper, and it was only after closing the diagram, and workspace, and then re-opening the workspace and diagram that you ran into problems?
    Did you save everything, before you shutdown JDeveloper?
    There is no known bug on this, so it would be good to get very specific test steps for this, to enable us to log a bug. Incidentally, why did you chose to create a Database diagram, rather than a Business Components Diagram?

  • How to get a value from the previous element (XSLT/XPATH gurus ahoy!)

    Hi All,
    I am building an RTF template for a "letter of reference"-report. Sometimes there are several rows in the data, that need to be printed as one. This is due to consecutive temporary contracts, which will be printed out as one period of service.
    Here's a simplified data example to illustrate the problem.
    <ROW>
    <START_DATE>01-01-1980</START_DATE>
    <END_DATE>01-01-1988</END_DATE>
    </ROW>
    <ROW>
    <START_DATE>01-01-1988</START_DATE>
    <END_DATE>01-01-1990</END_DATE>
    </ROW>
    <ROW>
    <START_DATE>01-01-2000</START_DATE>
    <END_DATE>01-01-2005</END_DATE>
    </ROW>
    With the data above, I should print two lines:
    01-01-1980 - 01-01-1990
    01-01-2000 - 01-01-2005
    I need to compare START_DATE of an element (except for the first one) with the END_DATE of the previous element, to find out whether to print the END_DATE for that element or not. How can I get that value from the previous element?
    Thanks & Regards, Matilda

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • Opening and closing balance values at storage location level

    Dear all,
    I want to know opening and closing balance values and receipts and issue values at storage location level for certain period.
    I tried with MB5B, it is not giving value at storage location level, it is giving quantities at storage location level and values at plant level. But requirement is: please see below example:
    All values are in USD          
    Storage location:      1001     1002
    Opening Balance:      2000     3000
    Receipts:                           1000      2000
    Issues:                            2000     3000
    Closing Balance:      1000     2000
    Please help in this regard (I want value of the stock only, not qty)
    Regads,
    Veerappa
    Edited by: Chinna Veerappa on Jul 27, 2010 5:27 PM
    Edited by: Chinna Veerappa on Jul 27, 2010 5:28 PM

    vlauation is at plant level (MBEW table) the storage location level does not carry values (table MARD).
    You may have to develope your own ZMB5B  program and calculate yourself what is not stored in SAP.

  • Need to display the Stock Values at storage location level - 0IC_C03

    Hi All,
    I am developing Stock Movent Report on 0IC_C03 - Material Stocks/Movements.
    I have more than one storage location for plant. Stock quantities are calculating at storage location level and Stock Values are calculating at plant level.
    I have no issues with quantities. Only problem with Values.
    2LIS_03_UM is not picking the starage location, so that the revaualtion values are falling under unassigned nodes. When i set filter on storage location these values were not showing as they are under un assigned nodes (#).
    I want to get the Stock Quantity and Stock Values at Storage location level in my report.
    I found that soulution for that is Applying SAP Note : How to Realize summarized display of stock values on storage
    I have done development as per the document. But when i run the Query it is going to debug mode first and then it saying This program cannot display the webpage
    Can any one faced the same situation, Please help me if so.
    Thanks in Advance.
    Gopal N

    Hi Sachein,
    I am getting this An exception(CX_RSR_PROPAGATE_X) occured when debugging, and then it leads to next screen saying that:
    This program cannot display the webpage
       Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
       What you can try:
         Check your Internet connection. Try visiting another website to make sure you are connected. 
         Retype the address. 
         Go back to the previous page.
         More information
    Please let me know you need any more information.
    Thanks in Advance
    Gopal N

  • Is it possible to add more input values for a payroll element?

    Hi All
    I have created an element with 1 default input value 'pay value' and another input value '1xx1'. I have linked this to payroll and attached to many employees. Now due to business requirment, I need to add one more input value '2yy2' and also I need to change the formula. Eventhough its a minor change in formula, without a new input value it will not work. I tried to add a new one by datetracking to the element creation date without sucess.
    Is it possible to add input values after saving an element?
    Regards
    Rahman

    You can Change the Required Input Value to Not-required
    Alter the Sequence of the Input Value to be displayed in the Element Entry Screen
    You can Change the Input Value Validation Rule minimum, Maximum, Lookup and Formula
    Change your specification of which input values create Database Items. Note, however, you cannot remove Database Items if they are used in any formulas or QuickPaint reports.
    You cannot remove existing input values or add new one if you have created any entries for the element
    For more details you can refer http://ramesh-oraclehrms.blogspot.com/2007/08/maintaining-element.html

  • Problem in assigning value to an array element

    hi all
    in the following prog i am not able to assign the value to the array element
    i am not getting why it is giving me error
    //my program is as follows
    public class ArrayTest
         static int [] intArray = new int[5];
         static int [] intArray1 = new int[1];
         intArray1[0] = 5; // this line gives error
         static char [] charArray = new char[5];
         public static void main(String args[])
              System.out.println(charArray);
              intArray1 = intArray;
    }thanx in advance as usual

    The problem is that you try to execute code outside a method. This can be only done in form of a variable declaration or as a static initilization block which will be executed once when the class is loaded:public class ArrayTest
         static int [] intArray = new int[5];
         static int [] intArray1 = new int[1];
         static char [] charArray = new char[5];
         static {
              intArray[0] = 5;
         public static void main(String args[])
              System.out.println(charArray);
              intArray1 = intArray;
    }

  • Function to return the Entry Value based on Assignment, Element and Date

    Hi Guys,
    Is there a function that returns the Entry Value for the Assignment Element, based on the Assignment Number, Element Name, Entry Segment and the End of Period date?
    Example:
    ==============
    Input Parameters:
    Employee: Iana
    Assignment Num: 123
    Element: D480
    Element Entry: Fund Name
    Output Parameter:
    Element Entry Value: MLC Super Fund
    Thanks,
    Iana

    For element entry values you can use:
    select petf.element_name, nvl(peevf.screen_entry_value,0) screen_entry_value
    from
    pay_element_entries_f peef, pay_element_types_f petf,
    pay_element_entry_values_f peevf, pay_input_values_f pivf,
    per_all_assignments_f paaf
    where petf.element_type_id = peef.element_type_id
    and :p_date_earned between pivf.effective_start_date and pivf.effective_end_date
    and :p_date_earned between petf.effective_start_date and petf.effective_end_date
    and peevf.input_value_id = pivf.input_value_id
    and paaf.assignment_id = peef.assignment_id
    and petf.business_group_id = :p_business_group_id
    and peevf.element_entry_id = peef.element_entry_id
    and :p_date_earned between peef.effective_start_date and peef.effective_end_date
    and :p_date_earned between peevf.effective_start_date and peevf.effective_end_date
    and :p_date_earned between paaf.effective_start_date and paaf.effective_end_date
    and pivf.name = :p_input_value_name
    and petf.element_name = :p_element_name
    and peef.entry_type = 'E'
    and peevf.effective_start_date = peef.effective_start_date
    and peevf.effective_end_date = peef.effective_end_date
    --and peef.assignment_id = :p_assignment_id
    and paaf.assignment_number = :p_assignment_number;
    For payroll results you can use:
    select sum(prrv.result_value)
    from pay_run_results prr, pay_run_result_values prrv,
    pay_assignment_actions paa, pay_payroll_actions ppa,
    pay_element_types_f petf, pay_input_values_f pivf,
    per_all_assignments_f paaf, per_all_people_f papf
    where
    petf.element_type_id = pivf.element_type_id
    and :p_pay_date between petf.effective_start_date and petf.effective_end_date
    and :p_pay_date between pivf.effective_start_date and pivf.effective_end_date
    and paa.assignment_action_id = prr.assignment_action_id
    and petf.element_type_id = prr.element_type_id
    and ppa.payroll_action_id = paa.payroll_action_id
    and prrv.input_value_id = pivf.input_value_id
    and prr.run_result_id = prrv.run_result_id
    and petf.element_name = :p_element_name
    and pivf.name = :p_input_value_name
    and ppa.date_earned = :p_pay_date
    and papf.person_id = paaf.person_id
    and nvl(prr.start_date,ppa.effective_date) between paaf.effective_start_date and paaf.effective_end_date
    and nvl(prr.start_date,ppa.effective_date) between papf.effective_start_date and papf.effective_end_date
    and paaf.assignment_id = paa.assignment_id
    and papf.employee_number = :p_employee_number;

  • How to read values of dynamic UI elements in a backing bean?

    Hi, I have an ADF page where some of the UI elements (in this case, checkboxes) are dynamically rendered as such:
    <af:forEach var="row" items="#{backing_testPage.userList}">
    <af:selectBooleanCheckbox id="checkbox" value="#{row.id}"
    text="#{row.name}" selected="#{row.userSelected}"/>
    </af:forEach>
    I am wondering how can I read the values of these checkboxes in my page's backing bean. It does not seem possible to specify a distinct binding value for the selectBooleanCheckbox elements in order to tie them to a CoreSelectBooleanCheckbox variable in my backing bean (so that I could check whether the checkbox is selected or not).
    When the page gets rendered, I did see that the checkboxes get assigned distinct ids like checkbox_1, checkbox_2, checkbox_3, etc... Not sure if that would help with this.
    Would appreciate any tips on this as I've been struggling with this for awhile. Thanks!

    You probably would do better with a SelectManyCheckbox. Here's how:
    In your backing bean you need:
    private String[] usernames;
    public String[] getUsernames () {
      return usernames;
    public void setUsernames (String[] _usernames) {
      usernames = _usernames;
    }In your page:
    <af:selectManyCheckbox value="#{backing_testPage.usernames}">
      <f:selectItems value="#{backing_testPage.userList}"/>
    </af:selectManyCheckbox>When the form is rendered any strings in the usernames array that are in the userList will be checked. When submitted, any checked items will be in the array.

  • What is use of Acquisiton value in functional location in PM module?

    Hello,
    what is use of Acquisiton value in functional location in PM module?
    Regards,
    Ram Rathode.

    HI Ram,
    You can  do an F4 to get the description of a field.
    Please go through following for your reference:
    Acquisition Value of an Asset
    Assets table for Acquisition value and Equipment number
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/01/d544ef4ab311d189740000e8322d00/frameset.htm
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/c1/376976449a11d188fe0000e8322f96/frameset.htm
    Please award if useful.
    Thanks,
    Ravi

  • Compare step values and set document to incomplete, if value is negative

    Hi All,
    I am looking for standard feature of SAP to set the document incomplete, if the difference of the two steps value is negative.
    e.g
    Step     CT     Value     SubTot     AltCal
    10     ABC     10          D              
    20     XYZ      20          E         
    30     Total     (-10)                    12(std cal type Subtract Subtotal D - E)
    Now the requirement is to set the document incomplete when the step 30 value is negative. Using custom routine it is feasible but I am looking for standard, if any.
    The idea is to check value of step 10 and 20, if the value of step 10 is less than step 20, then set the document to incomplete.
    Not necessary to check negative and then set to document to incomplete.
    I am also looking to use minimum order value concept but no success.
    Request to kindly let me know your valuable inputs. Thanks
    Regards
    Kalyan

    Hi
    Once I did this using EDI1 and EDI2 functioanlity. I changed that according to my own requirement. You could also use this and change this as per your own requirement but I think yours is very much similar to mine Check this below document.
    How to Implement minimum Price check in Sale order and billing.
    Thank$

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

Maybe you are looking for

  • SAP BW Authorisation in Bo

    In our organisation SAP BW and BO XIR3 (3.1) has been installed. And SSO being implemented between both the system . User accounts are created at BW level which were used for BO even. We have maintained authorisation by hierarchy at BW side and wante

  • Xfi Xtremegamer Sound Out Selectively to

    Hello, I am havin a rather odd issue with my new system and I was hoping someone here would be able to help me or at least point me in the right direction. I just built a computer (Asus P5E-vm do, MSI8800GT 52MB, Xfi Xtremegamer, 4GB Gskill PC2 6400,

  • Creating a percentage data point

    Hi, I am trying to create a data point at the universe level that computes the achievement percentage of sales vs target. At the most granular level, the value is correct, but rolling up, it simply sums up the percentage instead of calculating the va

  • Re-adding contacts, can't find them anymore

    When I accidentally removed some of my Skype contacts and tried to readd them I couldn't find them anymore. I remember their Skype names and Skype ID, but searching their names results in nothing showing up in the directory. Now I am not able to read

  • Why are edit (Cut/Copy/Paste) controls not active?

    I am new to QT. I am trying to cut up a large mpeg file (created by converting and IFO file from a DVD) into small video clips. However the main editing controls (undo, redo, cut, copy, paste, delete and trim to selection) are all de-activated. I don