Question on customizing OAAttrValException

I have validations coded in EO's validateEntity().
They are working properly with my custom exceptions message.
Validation Code in EO:
    if (getObjectCode().length() < 4)
      MessageToken[] ObjectCodetokens = { new MessageToken("DIGIT", "4") };
      throw new OAAttrValException (
            OAException.TYP_ENTITY_OBJECT,
            getEntityDef().getFullName(), // EO name
            getPrimaryKey(), // EO PK
            "ObjectCode", //attribute name
            getObjectCode(), // bad attribute value
            "XX", //message application short name
            "XX_FWK_DIGIT_REQUIRED",
            ObjectCodetokens); // message name
    }The exception shows like the following on top of the page, if object code input is less then 4 digit
Row 1 ObjectCode - 4 digit numeric required.My question is, is there a way to get rid of "Row 1 ObjectCode -" and just show "4 digit numeric required."?
(Note: "Row 1 ObjectCode -" is not part of my custom exception message.)
Thanks.

You can customize the "Row 1" etc text. You do this by using the view property ROW_DISPLAY_PREFIX_ATTR_NAME. You set the value to name of a transient view attribute. Then, in your VORowImpl, you build the string that will be displayed instead of "Row 1". For example if your view attribute is called ErrorText you would have this:
public String getErrorText{}
return "Error for " + this.getAnotherAttibuteValue() + ":";
}ROW_DISPLAY_PREFIX_ATTR_NAME is documented in the OAF Developer's Guide.

Similar Messages

  • Questions in Custom Tag

    Hi,
    I have couple of questions in Custom Libraray Tags:
    1) How I can from Tag Java file to open a new JSP window without the toolbars and determine the window size.
    2) How I can read a JSP parameter from Tag Java file. For example I have a field called "x" in JSP is not connected to the TAG by setAttribute.
    3) How I can pass a dynamic value to custom tag. <route:routeList agentID = "1" >
    how I can change the "1" to a field. When I change it to: <route:routeList agentID = "<%=request.getParameter("agentID")%>" > or to <route:routeList agentID = <%=request.getParameter("agentID")%> > I get empty value, even though the field has a value.
    Thank you ...

    [email protected] ... Well, if you put something as an attribute in the pageContext object, you can get it... same as request or session scope attributes, but I thought the OP meant to do this (I guess not, though.. see below):
    <%
    String str = "...";
    %>
    <mytag:stuff .... />
    And within the stuff tag, use str as a variable. I don't believe that's possible, because the compiled page in effect becomes like this:
    String str = "...";
    doStuffTag(whatever the parameters are);
    Obviously that's not the right naming for the tag, but you get the idea...
    JavaUserProg....
    2) First, it's best to put quotes around the tag attributes...
    <INPUT readOnly style="WIDTH: 84px; HEIGHT: 22px" name="operation[<%= lineNum%>"] value="<%=operation%>">
    Second, do you mean you want to read from the tag what the HTML input field has in it? First, you have to submit the form, then the call request.getParameter("fieldname") to get the value. Otherwise, I'm not clear on what you are really trying to do.
    3) If the field in the tag is an int field: setAgentID(int)
    Then you can define the tag value as:
    <mytag:stuff agentID="1" />
    or
    <% int aid = 1; %>
    <mytag:stuff agentID="<%= aid %>" />
    If you just put a static string value like the first way, it converts it. If you put an expression, the expression has to match the type of value it really is. So int for int, String for String, Collection for Collection.

  • Question about Custom Escalation Function

    I want to use a Custom Escalation Function described on this document:
    http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/integration.1111/e10224/bp_workflow.htm#BACHEFDH
    I want to execute a custom function on task EXPIRATION.
    Main Question: The "Custom Escalation Function" is just for Escalation or i can use too for EXPIRATION ?
    Thanks.
    Victor Jabur

    Okay Experts. The problem is solved. There was no problem with the custom key figure function. The problem was with the sales order data. The sales order details for the material in question were under the "make to order" segment and the other transaction data info was in the "make to stock" segment.
    Once i found this out , i tried loading someother material and it worked perfectly.
    Thanks
    Aparna

  • Contact number for questions on customer hierarchy

    Hi All,
    If anybody doesn't mind then is it possible to get the contact number, as I have lots of questions on Customer hierarchy. I am not able to put them properly on the forum?
    Regards
    Rajesh

    Hi
    If you have query in customer hierarchy, feel free to contact.
    send me ur personal e mail id, will update the contact number.
    Reward if it helps
    Regards
    Prasanna R

  • Questions on Custom based queuing

    Hi everybody
    I have a question on custom based queuing.
    Please consider the following example
    q1   400 bytes
    q2   300 bytes
    then  a default queue.
    This is what i understand ( based on this following link)
    http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfcq_ps1835_TSD_Products_Configuration_Guide_Chapter.html
    q1 will be emptied until the byte counters reaches zero,
    q2 2ill be emptied until the byte counter reaches zero
    Then deafult queue. How long default queue will be served before scheduler goes back to q1 since we are not defining any byte count for default queue. For example in case q1, we know the scheduler will empty the queues until byte counter reaches zero, we do not have any byte counter associated with default queue so how does scheduler know it is time to stop serving default queue and goes back to queue 1 and so on.
    Thanks and have a great weekend.

    Hi Dinesh,
    To try to provide some answers to your questions:
    1. A regular role determines what a user can do in Studio as a whole. An application role determines what a user can do within the context of a specific application.
    For example, a user with the Power User role for Studio can create applications, and automatically has an Application Administrator role for the applications they create. They can also grant Application Member or Application Administrator roles for those applications to other users. They cannot automatically view or edit applications created by other users, unless granted an application role by an Application Administrator for those applications.
    Users with only the User role for Studio cannot create applications (as of 3.1), but may be granted an Application Member or Administrator role for specific applications.
    Neither a Power User nor a User has access to the Control Panel.
    Users with the Administrator role for Studio have access to the Control Panel, and unrestricted access to applications.
    For information on user roles in Studio, see About user roles.
    For information on assigning application roles, see Managing memebership in an application.
    2. We don't really support component-specific permissions - the options are deprecated and shouldn't be used, which is why they are not documented. The Configuration option is the only option available for a component.
    3. Add Discussion is also a deprecated function that is not supported.

  • Simple question about custom tags really easy!!

    I am trying to make my own custom tags, so far i have created simple one that have i use for heading or to set the page layout for a jsp page, My question is I want to make a custom tag with a body , with a start and end tag can anybody give a simple example of a custom tag which has a body.
    I do not mean write me a tag i mean what could a tag with a body be used for? Can you give me some example of what a tag of this kind could do?

    Thanks having read that and some other pages i have another question:
    would it be possible to put the following code into a custom tag so that i can pass in a list and have it output it to a table?
    <TABLE >
    <% 
    out.println("<TABLE >\n" +
                    "<TR BGCOLOR=\"#FFDDAA\">\n" +
                    "  <TH>ID Number\n" +
                    "  <TH>Artist\n"
    Iterator it = pricePassed.getpricePassed().iterator();
    while( it.hasNext() ){
       MySite.VideoBean vids = (MySite.VideoBean) it.next();
       out.println( "<TR>\n" +
                   "<TD><Center><B>" + vids.getRecId() + "</TD>" +
                    "<TD><Center><B>" + vids.getArtist() + "</TD>"
    </TD></TR>\n" );
    %></TABLE>At the moment i use the above in a jsp to put data into a table, would it be a massive task to undertake to put into a custom tag?

  • Question about customer line item clearing

    Hello everyone,
    There is one question here. Since from the result of FBL5N in SAP, the total amount of AR is zero, but the cleared /Open symbol still show these items are open. Itu2019s very strange because these should be shown as cleared items as the total amount is zero.
    Do we have to clear them manually? or does it take time to show effect in the system?
    Plz explain.
    Thanks
    Leena...

    Hi Leena,
    While pulling the customer report for open item by giving today's date if you are still finding open items being there total to zero, you need to manually clear them. Transaction Code-F-32
    Warm regards,
    Murukan Arunachalam
    Edited by: Murukan_A on Jan 5, 2012 10:21 AM

  • Question re customer and OR number

    Hello, everyone!
    I have a question regarding customers and Original Receipt number.
    How do you find the customer number, given the OR #? What tcode must be used in order to do that?
    Thank you very much!

    Hi Anna,
    Your question is not so clear.
    As per my understanding you want to ask about list of sales order in respect of Customer and Customers PO No., is that so:
    You need to run VA05 Or VA05N. These are SAP Standard T.Codes.
    Hope this will help you
    Thanks
    AJC

  • Question about Custom Shape Files from newbie to PS

    My husband bought me PS CS4 Extended. That said, I have never used PS at all. I have always used PSP. Please don't hate me!
    I have figured out that one loads actions and presets. OK, got that. The question I have is if I can have my Custom Shapes and Actions on a completely different partition? I ask this because there is not enough room on the partition for me to continue adding shapes and such to PS in the program itself. I am figuring that I can since I have tio load them into the program anyway, but am asking to be sure so that I don't screw anything up.
    Another question I have is if I am able to point PS to where all of my plugins are that I already have installed in PSP, which also happen to be on a different partition. In PSP all one has to do is to point the program to where they are and all is good and they can be used within said program. Does PS allow for this also? If not, do I have to re-install all of the plugins into the PS program itself? I just don't have that much room on the partition that my PS resides on because of all of the other pregrams that I have. Also, does everything I load into PS just stay loaded or do I have to reload each time I want to use that particular preset?
    I do hope that ya'll can understand my questions and thank you for any help in advance.

    the benefit of having the presets in the proper folders is that you can select them from the fly-out menus instead of having to search for them using the Load command so yes, you can have them wherever you want. I doubt though that you don't have enough disk space for them, for instance, all the actions that come with Photoshop take up about 200kb, the custom shapes are about 700kb but that's because they come in duplicates. And yes, all that you load up stays in Photoshop until you remove them, no need to reload them at program start. For plug-ins you have the option to set an additional plug-in folder by going to Edit->Preferences->Plug-ins, don't know about needing to install them though as i don't use any

  • Question about Custom Periodic IO Servers

    I have some single-precision.  Are they also converted to 'variant', as stated here: (From Labview Help)
    Use double-precision, string, and Boolean data types when you create a VI to convert into a custom I/O server. These data types are the most efficient to use when publishing data items. LabVIEW converts other data types to variants, which can slow down the performance of the server.

    Thanks for the info.  Another question!!!  I actually have a total of 5 I/O Servers, communicating with different com ports, etc.
    I have to have them launch in a certain order, so I have a Windows system service that launches first, upon reboot, and that task deploys each library associsted with the IO Servers.  I have come to the conclusion that I have to launch the library we have been discussing first.  If it is not first, it does not launch properly - I get Error Code: 1003.  As I said, it does return alot of values - 48 of them, mostly double, some string.  But otherwise, I have tried to make it as simple a VI as possible.  Any ideas as to why it has to be launched first?  I would really rather it be the 2nd one.  I have a I/O Server that controls an APC Switch, and one outlet on the switch turns on the power for the monitored hardware points, so that one really needs to launch first.
    I might as well post my other question/concern.  My last IO Server is one that does not talk to any hardware.  It reads values from the other servers, does some math, and returns the values.  It contains my alarms variables.  It has no shared variables.  I read the variables via Open Variable Connection / Read Variable under the Shared Variable Node palette.  It runs properly if I launch it manually, but I get Error 1 when my Windows system Service launches it.  It contains no other subVIs besides the Shared Variable VIs I mentioned.  The IO Server VI only returns 4 values.  The rest of the shared variables in the library require no calculation, so they are bound to shared variables in other libraries - which have already been deployed by the time my Windows System Service launches this last one.  I have waits in my system service, to ensure that the other libraries have been launched.
    Gretchen

  • Two iPhone questions (existing customer and data plan)

    Hello, I have two questions about the iPhone. I am on a family plan with At&t. I don't pay my bill. I want to keep it that way. Will I just be able to take my sim card out of my phone and put it in the iPhone since it's AT&T? Or do I use a new sim card and when activating it choose existing customer?
    My second question is I am wondering if it is possible to use an iPhone without the data plan. I know I will be missing visual voicemail and edge but I don't care. Also, will this make me get a thousand dollar bill if I accidentally press safari and don't have a data plan? Thanks.

    friend18 wrote:
    Hello, I have two questions about the iPhone. I am on a family plan with At&t. I don't pay my bill. I want to keep it that way. Will I just be able to take my sim card out of my phone and put it in the iPhone since it's AT&T? Or do I use a new sim card and when activating it choose existing customer?
    You can't use the SIM from your existing phone. You would use the new SIM and activate as an existing customer.
    My second question is I am wondering if it is possible to use an iPhone without the data plan. I know I will be missing visual voicemail and edge but I don't care. Also, will this make me get a thousand dollar bill if I accidentally press safari and don't have a data plan? Thanks.
    You have to get the data plan and for $20 it's worth it, not only is it unlimited data but includes 200 text messages. Without the data plan, you'll pay for every voicemail you access, every text message, any time you check weather/email/youtube/etc. In a nutshell, the data plan covers a lot more than just using Safari to browse the web.

  • Security question and customer support fail

    I just recently got a new number and went from an iPhone 4 to an IPhone 5C and don't get me wrong I love the phone entirely but, I tried going to the iTunes Store to download music and it won't let me. I used the correct Apple ID and password but it insists I use my security questions. Which I no longer know the answers to. So I figured how hard can it be to fix this. A lot freaking harder than I thought. I went to customer support and it said it would call me and assist. It never did. I "scheduled a call" several times. I waited for hours looking at my phone waiting just to not receive one. All I freaking want is new music on my phone and apparently the only way I can do that is with the answers to these stupid security questions. Someone help!

    Read this about how to change the security questions: http://support.apple.com/kb/HT5312
    If you can't use these procedures because you don't have a rescue email address you will have to contact Apple. See http://support.apple.com/kb/HT5699
    You can also call your country number from http://support.apple.com/kb/HE57 and ask to speak with Account Security.
    You can also go to the ExpressLane at https://expresslane.apple.com and then iTunes > iTunes Store > Password and Security Questions and fill out the form.

  • Question about custom tags

    Hi All,
    Please tell me what is differnce between javabean and custom tags.
    thank you.

    Javabean is a data object (or a data holder) whose properties can be accessed using getters, setters - ex getName() and setName()
    JSP custom tags are merely Java classes that implement special interfaces (Tag interface). Once they are developed and deployed, their actions can be called from your HTML using XML syntax. Refer the article http://java.sun.com/developer/technicalArticles/xml/WebAppDev3/
    Cheers,
    Janesh

  • Few questions about customizing jwm

    Hello all,
    Coming from KDE, I found jwm and it runs so much better on this circa 2008 laptop. KDE runs OK but this is a lot faster. I have familiarized myself with .jwmrc and how to make basic changes and I've come across a few questions.
    1.) Is there any way to enable dragging and rearranging the open programs in the taskbar? I'm kind of OCD about the order of my running apps especially since restarting jwm after edits to the config file puts them in a random order.
    2.) I think I see a way to get programs to start maximized and such using Groups but is there a way to start a program with a specific size? Specifically I am referring to nedit - it always starts too small and I size it so be larger but not overlapping my conky.
    3.) Relating to #2, is there any way to get all programs to remember their window's size and position upon restarting? This has been a pet peeve of mine for years and KDE has the ability to remember this but most other Linux DEs and WMs don't.
    4.) I've been using slock to lock the screen but I need to run it manually. Is there any way to get slock to run automatically, ie after say 5 minutes of inactivity? As of now I've been using xscreensaver to power off the monitor - should I just use the "Lock screen" option here? I've been trying to keep this install as minimal as possible - I don't need a screensaver, just ideally to turn off the monitor and lock the screen after some time.

    1) I don't think you can - you can however disable the jwm taskbar and use xfce4-panel or similar.
    2/3) Devilspie
    4) xautolock

  • Questions about customizing e61i

    Hi
    I just plonked a huge bundle on my e61i and am less than satisfied for what should be a decent Qwerty phone. Here are some questions that I hope the nice experienced folks here can direct me on-
    1. Where do I change the menu items for the left and the right key (default: Camera and Notes respectively).
    2. Why is the customization of icons on the main home page (desktop?) possible only through the "Stand By" options!!?? What sense does that make?
    3. When I take a picture and want to set it as a wallpaper -- it only occupies about 75% of the wallpaper. What is this? How can I make sure that the pictures take up 100% of the wallpaper area?
    4. Why is it that speed dial is only for number keys? With a proper qwerty phone, I should be able to do a speed dial with every alphabet and every number! Where can I change this setting?
    5. Where can I change the receptivity of the keypad? The keypad is cushiony and when I am typing fast (what else is the point of spending on a qwerty phone?!) I miss many letters. Where can I make the keys more sensitive?
    6. In my email, when I mark all email and DELETE, and select "Delete from phone and server", the mails do not get deleted. Neither from the phone nor the server. It is a straightforward pop3 server, and these type of instructions work from every mail client in the world other than on my Nokia phone. How can I make sure that my deletion commands are heeded?
    7. How can I import all my feeds from Google Reader into my Nokia e61i? Or is there an OPML reader in the phone? Or what else can I do instead of manually entering the feeds one by one?
    Many thanks. All of the above are easily possible with my corporate qwerty phone (you know, the famous one; brand intentionally not mentioned here) so I am hoping this equally expensive Nokia can do at least some of these things!!
    Thanks for any thoughts or pointers!

    1. Go to Menu-> Tools-> Settings-> Phone-> Standby
    2. These are shortcuts for the your favorite applications.
    3. I think that only the theme picture occupies 100% of the screen area.
    4. Speed dial is a common feature for all phones. For Symbian phones (with or without a full keyboard) there is an only application to manage speed dials.
    5. I don’t see how one can chage this parameter.
    6. My E61 do this job witout any problem.
    7. No, there is not OPML/RSS reader installed by default.
    Rockado

Maybe you are looking for

  • EWT - giving validity period based on withholding tax code

    Dear Friends, 1) My client is having different withholding tax codes (based on rates) for the same withholding tax type. I have given validity period based on withholding tax type in EWT -> Company code -> Assign withholding tax types to company code

  • Replace "untitled" with string?

    I would like to replace the default name for a document with information pulled from a dialog within a javascript. example: Dialog: 1.What's your name? 2.What's you phone number? end result: Bill-555-5555.indd We have several naming protocols for fil

  • Best Practice / Solutions for using 11g DB+x86 or Small Computer to build iaas/paas?

    My customer wants to build their own iaas/paas using Oracle 11g DB, plus x86 or other small computer, running Linux or Solaris or Unix OS. Oracle Exadata is not feasible for them to use currently. Customer wants to know whether there are other custom

  • Error when calling webservice from oracle function.

    Hi, I am getting following error when i am trying to call webserivce from oracle function. Please can anyone suggest the required solution. Below is the error obtained. Thanks. ERROR at line 1: ORA-31011: XML parsing failed ORA-19202: Error occurred

  • IdeaPad Overview of HMM (Hardware Maintenance Manual)

    Trying to download the Lenovo Flex 15 Hardware Maintenance Manual.  I have called Lenovo 3 times, but the website still hasn't been updated.  I went to the support site, put in my model info and click on manuals. Hardware Maintenance  Manual and get