Error message display both key and value

Hi,
I've an alt key check & if the validation fails then the error message pops-up and displays :
Error
JBO-SUB_TYPE_CODE_ALREADY_EXIST: The sub type code already exists.
I'm not sure why is it displaying the key (JBO-SUB_TYPE_CODE_ALREADY_EXIST:) part also in the message.
Can someone tell me how to suppress the key part in the error message and just display the message (The sub type code already exists.).
Thanks,
-Gaurav

Hi,
If you want to avoid the roundtrip to the database you can also create a uniqueKey validator in the Entity Object
were the AltKey exists. In the failure handling of the validator set the message that you want to be displayed.
You can see an example of this here: http://www.gabrielsideras.com/2010/09/28/adf-unique-key-validation/
Gabriel

Similar Messages

  • Writing the hashtable content (both keys and values) into a text file

    Hello,
    I have a hashtable which have some keys and respective values in it. Now I want to write all thoses content into a text or log file. Can anyone please tell me how to write it.
    thanks,
    chaitanya

    Properties is a subclass of Hashtable. It'll probably work just fine as a drop-in replacement.
    Otherwise...if all keys and values are text, then loop through the Entry objects in the Map in question (Hashtable is a Map, and you probably shouldn't be using Hashtable anyway), or loop through the keys and grab the corresponding value for the keys. Read the API docs for java.util.Map. It's pretty straightforward.

  • Binary Tree Implementations - why both key and value?

    Hi there!
    I'm sitting here implementing a binary tree, and I was just wondering why most of the binary tree examples encapsulate both a key AND a value in their nodes. Wouldn't it be sufficient to just store comparable objects in the nodes (or provide a comparator for alternative ordering)?
    Thanks again, Oliver
    P.S.:Any suggestions on good books (free E-Books preferred :-)) on ADTs and algorithms? I'm reading 'Data Structures And Algorithms In Java' by Robert Lafore and not very happy with it (the examples are just plain awful).

    Trollhorn wrote:
    Hi there!
    I'm sitting here implementing a binary tree, and I was just wondering why most of the binary tree examples encapsulate both a key AND a value in their nodes. Wouldn't it be sufficient to just store comparable objects in the nodes (or provide a comparator for alternative ordering)?Yes.
    Thanks again, Oliver
    P.S.:Any suggestions on good books (free E-Books preferred :-)) on ADTs and algorithms? I'm reading 'Data Structures And Algorithms In Java' by Robert Lafore and not very happy with it (the examples are just plain awful).As online resources:
    [http://www.cs.princeton.edu/introcs/44st/]
    [http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-006Spring-2008/CourseHome/index.htm]
    I don't know of any eBooks on the subject, but I can recommend an excellent hard copy book:
    Introduction To Algorithms, by Cormen et al. [http://highered.mcgraw-hill.com/sites/0070131511/information_center_view0/]

  • Inconsistent error message display

    Using jsf/adf 10.1.3.3. Steve, I'm experiencing what seems to be an inconsistency in the way that error messages are being displayed. The problem I'm experiencing is that the first time an attribute fails validation, the error message is displayed only at the top in the message box and not beneath the respective component. The next time validation fails on this field, I see the error message at the top and beneath the component. This inconsistency seems to appear only when an attribute has been marked as mandatory (not null) and that particlar validation fails. Put another way, if I have a method validation on an attribute and that validation fails, I don't see this inconsistency. The error message always displays both at the top and beneath the component. I've tested this on one of your samples, RequiredFieldsWithCustomRequiredMessageIncludingFieldLabel, and found it happening there also. I made one slight change to the code in that example so that I could recreate this problem. There's code behind the Save button of the CreateNewEmployee.jspx which sends the user back to the 'Home' page of this app if the commit is successful. I've rewired that by returning null instead of returning "back". This way I can recreate the problem. Here are the steps to recreate:
    1) Run CreateNewEmployee.jspx
    2) Without entering any values, click Save.
    3) Validation fails for each of the required attributes, the errors appear for each of these attributes, but only in the top message box.
    4) Enter in valid values for the required fields.
    5) Click Save. This should commit the record just fine.
    6) Null out the value just entered for Employee Name.
    7) Click Save. Validation fails for Employee Name and the error message displays both at the top and just beneath the Employee Name input.
    I see this behavior without using the customized PageLifecycle class too, so I don't think that it has anything to do with those framework extension classes. Any idea as to why when validation fails the first time for a required attribute the error message does not display beneath that component as well? Thanks.

    The only workaround mentioned in the bug report is to use required="#{...}" instead of showrequired="#{...}" That is, if the client side manages the enforcement of the requiredness, then the issue apparently does not occur. The bug is still open (i.e. hasn't yet been fixed in 11g).
    I'd recommend you file a Service Request on Metalink and ask for a fix to bug# 5918276 if it's a showstopper issue for you.

  • How to populate both key and text in drop down list in dialog prog screen

    Hi, Can anyone please advice how to display both key and text in the drop down list in dialog prog screen. I tried with below code. keys and texts are getting populated in values table but only text is appearing when click on drop down. need to display both key and text in the drop down. Thanks in advance.
    TABLES: ZRPP_MODELS, ZRPP_FFLSTRATEGY.
    TYPE-POOLS : VRM.
    DATA : field_id TYPE VRM_ID ,
           values   TYPE VRM_VALUES,
           value    LIKE LINE OF values.
    FORM fill_model_list .
      select MODEL MODEL_DESC from ZRPP_MODELS into value.
        APPEND value TO VALUES.
      endselect.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = 'ZRPP_MODELS-MODEL'
          values = values.
    ENDFORM.

    You need to concatenate KEY & VALUES
      wa_values-key = '1'.
      wa_values-text = '1 - One'.
      append wa_values to i_values.
      wa_values-key = '2'.
      wa_values-text = '2 - Two'.
      append wa_values to i_values.
      wa_values-key = '3'.
      wa_values-text = '3 - Three'.
      append wa_values to i_values.
      call function 'VRM_SET_VALUES'
        exporting
          id              = 'LIST_BOX'
          values          = i_values
        exceptions
          id_illegal_name = 1
          others          = 2.

  • Error in getting both Text and Key of infoobject

    Hello Guys,
    I am working on BI 7.0 & BO XI 3.1, SP 3 and FP 3.6.
    I have a requirement where in I have Infoobjects in BW like Internal Sales
    Rep, External Sales Rep, External Manager in BW. I have infocube where I
    have all these reps & keyfigures. I create BEx Query from the infocube and
    was able to see Key and Text in BEx Query & RSRT but I can't see that Key
    value in Webi report.
    Note: I don't have Masterdata configured for Internal Sales Rep, External
    Sales Rep, External Manager. These data comes directly from data source to
    BW infocube. All the reps are referenced to 0PERSON infoobject in BI 7.0
    Thanks in advance.
    With Regards,
    Chintan Vora.

    Hi Geetha,
    yes, it is possilble that, you can disply label for both key and text for a characteristics in Bex query, but for this you have to do small modification in modelling, here is one example:
    Create one custom 'z' InfoObject lets say ZCUSTOMER with Reference Characteristic of 0CUSTOMER and add it to the data target, map it with same field for which 0CUSTOMER is mapped and load data into target (DSO, cube) or if you are reporting on multiprovider then assign it.
    Because ZCUSTOMER is created with reference of 0CUSTOMER and mapped with the same source field , ZCUSTOMER will act as copy of 0CUSTOMER.
    In query designer drag 0CUSTOMER and ZCUSTOMER. change display setting
    0CUSTOMER display as Key only
    ZCUSTOMER display as Text only.
    You can apply this for all master characteristics.
    Hope this will resolve your problem, because i have faced same requirement and implemented the same.
    let me know for any further clarification.
    Regards
    Avinash

  • Hp2175xi printer Remove and check cartridge. error message displayed on printer.

    Remove and check cartridge error message displayed on printer. I have removed and inspected cartridges and no problems were evident. Shut down printer and restarted, unplugged and restarted same error displayed. Please help with any suggestions or solutions.
    Thanks John

    Hi
    If the cartridge isn't empty and you've tried the usual troubleshooting (which includes cleaning the contacts on the cartridge and in the printer) then it's probably best to contact Phone Support for a possible replacement.
    You can check if the cartridge is still within warranty by checking the warranty ends date here
    Best Regards
    Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • Reg: problem in displaying as key and text

    Hi Friends,
    I have a problem while displaying values for 0profit_ctr.
    In Development box report working fine. In production it giving problem.
    ISSUE:
    I want to display the 0Profit_ctr as key and text format. In development box it showing correct. I cross verified the properties of 0proft_ctr charcaterstic in report of  development and production box. In both it is defined as dispaly key and text.
    Also cross verified the infoobject (0Profit_ctr) details, In both Business Explorer general settings defined as Display as Key and Text.
    Everything is same in production and development box for this. Even though in production it showing as text and key. we need to display it as key and text.
    any suggestion on this.
    Regards
    Mrk.

    It could be that the infoObject has been disturbed, have you tried just re-activating the object in Production.
    Also check the following link :
    I am able to search only by text and not by Key in filter.

  • Getting an Error Message: AA 698  ANLB and ANLC for asset not in Sync

    Hi all Experts
    I know there were previous thread on the similar issue. I read those and tried to follow the procedure mentioned but didn't work. First of all We are working on ECC 6.0 verion. We have couple of assets Which is giving a problem even when we display the asset. The error message AA 698 ANLB and ANLC for asset not in Sync.
    We added a new depreciation area which was added to all the assets. the depreciation calculation for the new depreciation area is not updated in table ANLB. The asset were capitalized in 2009. I think the asset transfer was done using AS91. I initially thought it was fiscal year change problem but now as i open fiscal year 2009 and try to calculate the depreciation it keeps giving me the same error AA 698. There were various OSS notes mentioned which are all implementd in our system.
    One more thing I see is that on the depreciation area which has issue which is not populated in ANLB table doesnot have ordinary depreciation  start date. Which I tried to maintain using AS92 and reran the depreciation caluclation (AFAR) this also didn't work as its giving me the same error. Also this depreciation area doesn't have Operational rediness date, I think this date should populate from the value date of the asset.
    Please let me know if you have suggestion
    Thanks
    Rajan

    Hi bernhard,
    thanks for your reply. Below are my observation
    1) Have ANLB-LGJAN and ANLC-GJAHR the same depreciaiton areas:
              I had checked this earlier....ANLC doesnot have an entry for that specific deprectiation area. ANLB has an entry. This is where all the issue started.
    2) Is the field T082AVIEWB-AUTHORITY on 2 (note 900767).
             This note has been applied and the view is on 2
    3)Are the following fields synchrone: ANLC-GJAHR = T093C-LGJAHR
                  These field are not synchrone: ANLC doesn't have an entry for depreciation area 82 other depreciation area are at 2009 in ANLC and in T093C-LGJAHR is in 2010. How can we sysnc these tables? Also how can I get depreciation area into ANLC table?
    Thanks
    RDK007

  • Web reporting - variable selection should be display as key and description

    hi experts,
    Can anybody tell me the solution for my issue. My isssue is , in the web reporting, i have variable company code, i am selecting the company code thru search help. the values for company code is displaying with key. 
    the new requirement should be displayed with key and description.
    I have checked in the bex, the properties  of company code has maintained as key. when i run the report when cas selet as key and descritption. bex is not a probelm.
    only the problew with webreports,  can anybody give some inptus on my issue.
    Any help is appreciated. waiting for your response.
    thanks
    surendra sheety

    For future reference, this question was finally answered correctly recently in the following thread: 
    F4 help - Search values - I need key and text
    Hope this helps someone who is as confused about this as I have been the past few days!
    Bob

  • ERROR Message "UNABLE TO OPEN" and "E_IO_Cannot_Open"

    Trying to download 6 ebooks from Hive and I can download the acsm file but when I click that I get an error message "Unable To Open" and "E_IO_Cannot Open." The computer is authorised and uses Win 7 with ADE 3.  I tried ADE 4 but no better.  I have an older PC using Vista and ADE 2 and that will download okay but it is constantly being used so it is not convenient.  Does anybody know what's wrong?  Thanks.

    Hello,
    To try to help you, please, could you give some more informations ?
    - the operating system (XP/Vista), the edition ( Pro/Home...) and the service pack
    - usually, the installer installs the both files in C:\Program Files\Microsoft Sql Server\Samples. Is there any change in the location or have you moved the both files ?
    - could you check with the files explorer , that the 2 files are read-write and not read only( find one file, right-click on it, properties and in the 1st tabpage, you should see a checkbox read-only ( if checked , unchecke it ) ?
    - have you Sql Server Management Studio Express Edition ( at least SP1 ) ?
    If no, download it and use it to attach
    in the object explorer,
    click on your instance to expand it
    right click on databases
    in the contextual menu, click on attach
    in the new form,click on add
    you arrive on a second form : find your file , click on it, and OK
    it's the simplest way to attach ( the sp_-attach_db is complicated to type )
    the error messages are sometimes more clear in SSMSEE than in Sqlcmd
    Try also to attach ( thru SSMSEE or Sqlcmd but in using the windows authentification )
    NB: i hope that you are not trying to attach AdventureWorks on a remote instance and on a remote computer ( it would explain access denied )
    We are waiting for your feedback to try to help you more efficiently
    Have a nice day

  • Huey Pro calibrator- error message  display measurement Error

    i am using this huey pro calibration.. it had been a year without problem... but now i am trying to calibrate my apple cinema display LCD 30 inch it keep saying error message- display measurement error.. and huey support never answer my e-mail. any idea? how can i fix it.. i did re install software many times but same thing happen.. so right now i can;t calibrate my monitor.. any help please

    >a nice NVidia card... Please help Adobe!
    1a - what is the model nVidia card, and what is your driver version?
    1b - for instance, I have a GTX 285 and driver 296.10
    2a - aside from the occassional Adobe employee, this is a user to user forum, not Adobe suport
    2b - how to contact Adobe...
    Adobe contact information
    http://www.adobe.com/support/contact
    In the US - Adobe General support 800-833-6687 M-F 5am-7pm Pacific
    In the US - Adobe Install Problems 800-642-3623
    In the US - Adobe Activation 866-772-3623 Open 24/7

  • "Internal error: An unexpected exception has occurred" error message displayed when browsing a cube.

    “Internal error: An unexpected exception has occurred“ error message displayed when browsing a cube.
    The error behaviour is quite irregular and does not occur for specific condition.
    Will cumulative update 9 for SQL Server 2008 R2 (SP1) installation help to fix the issue which is provided on the below link:
    (http://support.microsoft.com/kb/2152148)
    The current version of SQL Server I am using is as below:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    Thanks in advance for the help!

    Hi Mon,
    The hotfix you said is for Microsoft SQL Server 2008. So it will not work on your scenario since you are using SQL Server 2008 R2.
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • Process error message: Display on the same page

    When I create a before header process and that has an error, the error message shows up on a page by itself with the OK button. This takes away the context of the error
    Similar to how validations have the option of displaying inline on the same page, is there a way to have the process error message display on the same page?
    Thanks

    I just want to display the error message on the same page, thats all. I dont want a error page with just the error since it takes away all the context.
    Well what do you want to do, you can set a item to
    hold a message and display that item in a region
    when this_exception then
    :P20_ERROR_MESSGE := 'Something went wrong here';So, P20_ERROR_MESSAGE would be a hidden item on the page?
    Then display the item in a region.How can I display that hidden item in the region? So the region would just have this read-only text box in it? But then it wont be hidden? I guess I can conditionally display the region only if the error message is not null?

Maybe you are looking for