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

Similar Messages

  • 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

  • BSP Application HCM_LEARNING , training location retrieval

    In the BSP Application HCM_LEARNING in trainingtype.htm there is a class which is referenced CL_LSO_BSP_IT_TRDATES.
    In this class there is a method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START which retrieves the training location in the attribute p_row_data_ref->*.
    Can I know form where the data for this is populated.
    The ineterface IF_HTMLB_TABLEVIEW_ITERATOR of the method has a method RENDER_ROW_START but we cannot see the code of the method.In the interface section the methods can be seen but the code cannot be seen exactly where exactly the location is populated.
    Can anyone help me out regarding this issue.
    Thanks,
    Sritama.

    Hi Anubhav, Anita
    Thanks for your reply to my question.
    I can't the use the suggested URL Parameter "language" because then the application would
    always start in English.
    Here my requirements:
    HCM_LEARNING original language is set to "DE", then SAP made translations into FR and EN.
    If now a user starts this application with his preferred language, say it is "ES" than the application starts
    in "DE", this is wrong, it should start in "EN" but it doesn't as the "default or orginal" langauge is set to "DE".
    Then I found a SAP Note 574110. Unfortunately this note seems only be available in german.
    But let me quickly summarize what it says:
    Changing the master language and affected short texts in a BSP application
    =======================================================
    1) change original language of BSP Application
        (can't to it, even with the suggested solution from Anita)
    2) Use Program SOTR_PROGRAM_02 to change the original language for the OTR Texts:
    So this note states cleary that it should be possible, yet I can't apply it.
    -> Can't change original language in BSP apllication
    -> SOTR_PROGRAM_02 brings message for each OTR Text:
        "Changes only possible in original system"
    Anyone can help me to apply this note correctly?
    Thank you and kind regards
    Paul

  • Where do I use my Apple Id to locate workshops in San Antonio, TX on how to use my Iphone 4?

    Where do I use my Apple Id to locate workshops in San Antonio, TX on how to use my Iphone 4?

    You don't need an AppleID for this.  Just visit your neareast retail store and attend a workshop.

  • How do I use Spotlight to find the location of a document?

    Spotlight used to show the location of document when I hovered the mouse over an item in its list. It no longer does this. Now it tells me that a document exists and allows me to open the document, but doesn't tell me where to find the document. How do I use Spotlight to find the location of a document?

    Hi Thomas ...
    Open System Preferences > Spotlight then select the Search Results tab.
    Select the all the categories for the search results you want.
    Restart your Mac.
    If that didn't help the Spotlight preferences may be corrupted.
    Go to ~/LIbrary/Preferences
    Move the com.apple.spotlight.plist file from the Preferences folder to the Trash.
    Try Spotlight.
    edited by:  cs

  • Its urgent  how to use calss file of jar located in lib folder

    how to use calss file of jar located in lib folder.
    i want to use RowSetDynaClass class which is in beanutil jar file which is in my lib folder .if i use that class in my jsp following error is coming.
    Class RowSetDynaClass not found.
    RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
    how to access class in jar file.
    please help

    You have to either refer to the class in its fully quallified name, or import it into the JSP:
    <%
      some.full.packagename.RowSetDynaClass resultSet = new some.full.packagename.RowSetDynaClass(rs,false);
      ...-or-
    <%@ page import="some.full.packagename.RowSetDynaClass" %>
    <%
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      ...As long as the class has public visibility and you have re-started the server/servlet context since you added the JAR.

  • How to use Landmark & LandmarkStore classes in Location API

    hi
    i have some problem to use Landmark & landmarkStore classes in location api . any one give source link to use these calsses.

    1) why not simply create two different timer objects, one for one image, the other for the other. I would caution you that you may wish to limit the area of your repaint so as not to slow down your app repainting everything when you only need to repaint the area around your sprites.
    [http://www.java-forums.org/awt-swing/14590-how-use-multiple-timer-classes-swings.html]
    2) Please note that cross-posting can frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. No one likes wasting their time, especially a volunteer. The polite thing to do would be to not do this, but if you feel that you absolutely must, to at least provide links in both cross-posts to each other.

  • How to clear exception cache in VO when using OAAttrValException

    I am using OAAttrValException to validate that individual required attributes are populated before a user can submit the page. The function i have in the VOImpl is as follows
    public void validateRow() {
    ArrayList exceptions = new ArrayList();
    String address1 = (String)getCurrentRow().getAttribute("Address1");
    String postCode = (String)getCurrentRow().getAttribute("PostalCode");
    if (address1==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", address1) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "Address1" // Attribute Name
    , address1 // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    if (postCode==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", postCode) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "PostalCode" // Attribute Name
    , postCode // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    OAException.raiseBundledOAException(exceptions);
    The problem is that every time you click submit it adds these exceptions to the list of exception already thrown i.e. it doesnt seem to clear the exceptions from the last submit, so the list of exception messages just gets longer and longer. Ideally I would like to flush these messages on submit but before I validate using something like clearAllExceptions() as in the EOImpl, but this method does not appear to be available in he VO.
    Does anyone have any suggestions about how I can achieve this?
    Thanks,
    Danny

    Danny,
    The simple and straight solution to your problem in that the row validation code you are writing is written in wrong file.VOIMpl file should only contain logic related to query manipulation of View Object. If you wanna do row validation at vo level, this code should go in VORowimpl file and not VOimpl file. In VORowimpl file BC4J framework provides a method called validate(), you can utilise that.The validate() method is automically called every time a post event has been generated.The method in turn invokes validate entity method in each of the entity objects involved in VO.
    This validate method is called in process form data in OAF lifecycle. So this how your code should look like in VORowimpl :
    public void validate()
    super.validate();
    ArrayList exceptions = new ArrayList();
    String address1 = (String)getCurrentRow().getAttribute("Address1");
    String postCode = (String)getCurrentRow().getAttribute("PostalCode");
    if (address1==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", address1) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "Address1" // Attribute Name
    , address1 // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    if (postCode==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", postCode) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "PostalCode" // Attribute Name
    , postCode // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    OAException.raiseBundledOAException(exceptions);
    Sumit,
    Making Arraylist defined globally in VOimpl class would not solve the purpose, because in present code ArrayList has been initialized inside validateRow() method hence, everytime this method is called Arraylist is automatically initialized by new , but the errorstack is not cleared.This code should be at such a place where it should be automaticallyclear the last error stack when its called everytime in framework i.e. validate method in VOImpl or validateEntity method in EOImpl.
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • CER Use port description as port location

    Hello all,
    I am trying to confirm if this "feature" is as useless as I have found it to be. From my testing and what little documentation I can find when checking the "Use port description as port location" check box on the LAN switch details screen this will ONLY show you this information when looking at the switch port details screen. It DOES NOT actually use the switch port description as location information for the 911 call notifications. 
    My hope was that by checking this check box the switch port description would override the ALI location information configured within the ERL assigned to the switch port that the phone is connected to. This would allow the creation of one ERL/ALI per building say and the device specific room level information would simply come from the switch port description. With out this option a ERL/ALI has to be created for every room in the building. 
    Thank you all.

    There's absolutely no problem in choosing 8888 as admin port while installing IWS in solaris Environment. Just make sure u follow these steps while installation:
    (1)You should choose a random number for the administration server to make it harder for anyone to breach your server.
    (2) Make sure the port you choose isn't in use. Look at the file /etc/services on the server machine to make sure you don't assign a port number that is reserved for another service. If you choose a port that is being used by another service, the installation program prompts you for another port.
    (3)Note :If you choose a server port number lower than 1024, you must be logged in as root to start the server. After the server is bound to the port, the server changes from the root user account to the user account you specify. If you choose a port number greater than 1024, you don't have to be the root user to start the server.
    Regards
    T.Raghulan

  • [svn:bz-trunk] 21273: Fix an issue in MXMLServlet where we use context real path to locate sdk home .

    Revision: 21273
    Revision: 21273
    Author:   [email protected]
    Date:     2011-05-17 12:53:10 -0700 (Tue, 17 May 2011)
    Log Message:
    Fix an issue in MXMLServlet where we use context real path to locate sdk home.
    Modified Paths:
        blazeds/trunk/qa/resources/webtier/qa/src/qa/utils/mxml/MXMLCServlet.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Looking for SAP ME (SCM 750) Training Location/Participants

    Hello Community,
    Is there any location that conduct SCM750 traning? I am interested in enrolling in this training course. Since am all alone requesting this SCM750 training, SAP UK or SAP Belgium is not ready plan the training.
    But. there is a possibility to plan the training if i can manage atleast 2 candidates to enroll in this training.
    Am I in the right place to look for such candidates? If Not, am in the right place to hear some possible training locations inside Europe or India?
    Kindly reply.
    Best Regards,
    Javid Ahamed.

    Hi Javid
    The US are running this class virtually starting on 27th April so as long as you don't mind some late evenings (I assume you are based in Europe?) you could sign up to this class.  Details can be found via the link.
    Alternatively you could consider SAP Learning Hub.  For one subscription fee, you have access to all SAP Education content, you can find details about that here
    I hope that helps.
    Rob

  • TS4006 why can I not use icloud on my mac book OS X ?  Trying to use 'find my iphone' to locate my mac if it's lost/stolen

    why can I not use icloud on my mac book OS X ?  Trying to use 'find my iphone' to locate my mac if it's lost/stolen

    iCloud requires Lion or later. Snow Leopard and earlier can't use iCloud,

  • Using safari at wi-fi location

    took my new macbook to Panera Bread this am, and it pulled up 'panera', but could not get online w/safari? anyone able to help with this?

    Welcome to Apple Discussions
    Have a look in your Network panel. In your "show" drop down menu> Network Configurations, is Airport selected? Is it at the top of the list (you can drag it there). If you are not using Ethernet direct connection, Bluetooth, etc. they ought to be left unselected.
    If you are using your MacBook in multiple locations, you can set up a specific location for each place via the Location>Add Location drop down menu.
    Post back

  • Can the Find My iPhone app use a serial number to locate lost iPod Touch 4g

    I lost my iPod Touch 4g and want to find with the Find my iPhone app. I'm using my brother's iPhone 4s to locate it. Can I use a serial number to locate. I lost it in school (in the Administrations office) so I know it won't be stolen. I had them search the whole building and found nothing. My school has Wi-Fi. I got the serial number from iTunes back up.

    The find my iDevice works through iCloud.  What you needed to have done before it went missing was setup an iCloud account on the device, then enable the find my device slider setting to "ON" under that account's settings.
    If you did not do that, it is not trackable.
    There is no way to track it by serial number.
    Also, in order to be trackable it has to be powered on and connected to a data connection.  A wifi-only device like an iPod Touch powers off the wifi radio when running on the battery, so if it has gone into sleep mode, it would not be trackable until or unless woken up by someone so it could re-acquire a data connection with a wifi network.

  • TS3376 can i use my dell laptop to locate my apple ipod if i have this app downloaded on both the laptop and ipod????

    can i use my dell laptop to locate apple ipod

    Welcome to the Apple Support Communities
    You can do that. Go to http://www.icloud.com, login with your Apple ID and choose Find my iPhone

Maybe you are looking for

  • How can I open all sync'ed open tabs all at once?

    I would like to be able to open all sync'd open tabs on my 2nd computer all at once instead of clicking on each one of them from a list from the History menu. == This happened == Every time Firefox opened == I first installed FF Sync

  • Graphics and Textfields

    I was wondering if you use Graphics and objects like Buttons, Labels, and TextFields are they all drawn on the same graphics layer or is one of them drawn on top, if so which one?

  • Reader won't open

    Adobe Reader 11 XI downloads and installs correctly.  Will not activate on Dell studio Slim Desktop  Intel Core 2 Quad Q8300 (4mb 2.5 GHz 4 GB Dual Channel DDR2 SDRAM Windows 7 Why?

  • Bug tab "Shared" Yosemite

    hello I have a problem since my migration to Yosemite. In the shared tab I have several times in my MacBooPro referenced under different name each time it is described with a new number. as am: http://www.hostingpics.net/viewer.php?id=503978973.png I

  • Getting my blog posts from IWeb interfaced with Facebook

    How do I get my blog posts, created on IWeb, and through Networked Blogs to sync with my Facebook page? I cant seem to get the individual posts available to post in my Facebook status bar. No posts from blog are visible...any ideas?