Adding a new Validation using OAAttrValException

Dear Forum,

I have a custom with the Currency Code fields page a) b) functional amount c) entered amounts
If the currency code is NOT 'EUR', I want to check that the functional amount is entered, otherwise throws an Exception.
for this, I did the following.

In relevant OS, in the setFunctionalInvoiceAmount() method, added my validation before the setattributeInternal() method call.

code snippet:

public void setFunctionalInvoiceAmount (numeric value)
{
Add a validation logic for no currency EUR

If (! getCurrencyCode () .equals ("EUR"))
{
System.out.println ("test");

If (value.equals("")) / / check if the field is null?
{
throw new OAAttrValException (OAException.TYP_ENTITY_OBJECT,
getEntityDef () .getFullName (), / / name of EO
getPrimaryKey(), / / EO PK
"FunctionalInvoiceAmount", / / name of attribute
value, / / attribute value
'XX', / / short name of the product
"XX_VAL_FUNCTIONAL_AMT"); Name of the message

} / / end of the if
}
setAttributeInternal (FUNCTIONALINVOICEAMOUNT, value);
}

However, I am getting an error, Error (728,6): illegal character for line starting to «throw new OAAttrvalException...» "
what Miss me.
Also, the my check to test if the value is null is OK? I've seen examples of the Toolbox use a check as
If (value! = null) work, but I need to check if (value = null) and this syntax does not work.

Thank you very much
Shankar

The value of the variable is a number. Thus, you should not use value.equals("");

Instead directly check for null and not null
if(value!=null) //or if (value is null)
{
}

Tags: Oracle Applications

Similar Questions

  • Adding a new license for a new Member, but may not use programs. Saying licensing issues... any advice?

    Adding a new license for a new Member, but may not use programs. Saying licensing issues... any advice?

    You use the Enterprise Dashboard?

    If so

    1. ensure that they use the correct ID type. So if they have been added to the dashboard with Enterprise or federated ID to ensure they do not use the Adobe ID or vice versa.

    2. bring to sign out and sign back in to check their eligibility.

    3. If the problem persists, then try this:

    The opm.db file contains the login user cached information and delete this file is a useful troubleshooting step. Once deleted a fresh file will be automatically created when you start creative cloud and reconnect.

    1. Close the creative cloud application.
    2. Navigate to the OOBE folder.
      Windows: [system drive]: \Users\ [user name] \AppData\Local\Adobe\OOBE
      Mac OS: /Users/ [user name] / folder/Library/Application Support / Adobe / OOBE
    3. Delete the file opm.db.
    4. Launch the creative cloud.
  • New Acrobat XI Pro said that my serial number is not valid.  I typed exactly as it is on the box.  It was new/never used.  Help?

    New Acrobat XI Pro said that my serial number is not valid.  I typed exactly as it is on the box.  It was new/never used.  Help?

    Serial numbers are not ON the box where anyone can see and fly

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

  • I installed lightroom on a new computer (windows 10) cc. I copied all of my original photos on a hard drive and them imported by adding them on the new computer using the import function. I have a catalog update saved on thehard d

    I installed lightroom on a new computer (windows 10) cc. I copied all of my original photos on a hard drive and them imported by adding them on the new computer using the import function. I have a catalog to date backed on thehard drive and have tried to insert into the new folder to lightroom. Unfortunately none of my changes, collections etc. seem to be present on the new computer. I still work lightroom with any changes on the old computer where all the photos. Help

    He seemed to have solved this problem - the catalogue of the old computer has been saved as a zip file. Once extracted, it could be used as the primary catalog for lightroom on the new computer

  • My MacBook Pro was built in mid-2009, I understand that I won't be able to get the next Sierra of OS.  I just put a new hard drive 700 GB, more I added a new battery to include a new CD/DVD drive.  I spent more than 400 million dollars. What I need to by

    My MacBook Pro was built in mid-2009, a 2.6 GHz, 13-inch, I just put a new hard drive 700 GB and I added a new battery to include a new CD/DVD drive.  I spent more than 400 million dollars.

    I understand that I won't be able to get the next Sierra of OS. I need to by a new Mac?

    Talk to the people the more I would get if I turn in I'd get is about are about $ 100 million.  Please tell me it isn't so.

    If you want Siera you will need a new Mac, but you can continue to use the old one as long as you want.

  • Added the new computer but lost all favorite settings on old. I need new account keep different settings on both?

    My laptop (i5, running Win 7) is my workhorse computer that had all my favorite settings stored. I added a new office (AMD, Win 8.1) that will be used as a multimedia entertainment unit, but when I connected the cable to install FireFox it replaced all the settings in my laptop with the new computer. How can I keep the different settings on each computer? Must have 2 different accounts to be able to do this? I have now lost the web address for some of my sites, so it's quite painful. The "recently marked with a bookmark" folder is the main problem, because it is where I was monitoring my sites.
    Computer LAPTOP is Acer Aspire i5 & Win 7 runs the modules listed below.
    DESKTOP is a Medion with an AMD 3.8 GHz Turbo & Win 8.1, with the new version of the FF browser.
    Auto Firefox installed the same modules as the laptop, but I will change those & don't want to FF to automatically install the same on both computers. How can I separate them?

    See this - https://support.mozilla.org/en-US/kb/how-do-i-choose-what-types-information-sync-firefox

    You can only select favorite and maybe passwordsand uncheck other options of data type.

  • Adding a new hard drive on e9180t

    Hi, I have e9180t and I'm considering adding a new hard drive.

    Can my office manage 3 to/6.0 GB/s 64 MB Cache SATA internal hard drive?  I get my full performance out of it?

    I read the possible combinations (http://support.hp.com/us-en/document/c01817977 specification page

    Is there a limit to the capacity of the hard drive?  (up to 2 TB)?

    Can handle a 6.0 GB/s transfer rate?

    I currently have 2 hard drives in the following:

    1 TB - Barracuda (st31000528as) 7200 RPM 32 MB SATA 3.0 GB / s
    500 GB - Maxtor DiamondMax 21 (STM3500630AS) 7200 RPM 16 MB SATA 3.0 GB/s

    If I buy 3 to/6.0 GB/s hard drive and use it as a hard drive, will I use these two hard drives as a secondary hard drives?

    Thank you!

    For those who might be interestd, this is what I found after some digging and calling:

    Since the motherboard that comes with e9180t (ipmtb-tk) is SATA 2, its speed is limited to 3.0 GB/s.   When 6.0 GB/s hard drive is connected, the speed will slow down to 3.0 GB/s.

    You can only use the full 3 TB capabity if your motherboard bios has opportunity to support UEFI interface.  However, most of the motherboards built before 2011 doesn't have this option.  ipmtb-tk is one of them.  However, there is a work around.

    1. go in the bios and check that the interface is set to AHCI (non-RAID).

    2. when the disk partition is loaded, you will be able only to the 2 TB partition.  another partition 750Go seems a separate partition that you cannot change.  Partition the 2 TB the way you want to and install Windows 7 on it.

    3. after that excavation is done, download Seagate Disk Wizard.  Later one of their homepage did not work, however.  You must download this one:

    http://www.seagate.com/staticfiles/support/downloads/discwizard/DiscWizardSetup-14382.en.exe
    

    I don't know why they don't have this default link on their home page when you go to download DiscWizard.

    Once the wizard disk is installed, it will pick up the 750Go that you weren't able to before partition as a new drive and now will allow you to partition.   (Keep the MBR instead of TPG setting, format it to NTFS)

    Once you partition using the tool, Viola!  a new drive with 750 GB of space has been added as a new drive.

  • Class not found exception after adding a new image in the folder resources.

    The app works perfectly well on the Simulator and the device. After adding a new set of images, he began to show in every race, on the Simulator and the device, a class not found exception.

    When you try to delete some images to find the cause, I get different classes not found when executing. Compilation and packaging the application generate warning or error. They even get signed. Some of the classes are not exception I get:

    Java.lang.StringBuilder

    NET. RIM. Device.API.UI.UIApplication

    I'm guessing this has something to do with the size of the total image, since the size of each range image from 100 KB to 300 KB, and we talk about only 25 or 30 images in total. Adding image outside of the 'res' folder does not generate the error, but the image is not added to the final files.

    In addition, this application is not large, but when compiling and packaging of the app, it generates and signs 125 cod files. Is this normal?

    I use Eclipse 3.6 (Helios) and BB SDK 5.0.0.25 won win 7

    Any help will be appreciated. Thank you.

    Have you seen this?

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/the-maximum-size-of-a-BlackBerry-smart...

    I would recommend that you download these kinds of resources and put them on the SD card if you take a storage capacity that users will want to keep available for email and others.

  • Added a new bundle to the regional settings - flex returns null when you ask nerd

    Hello Forum

    I've added a new resource-local en_US, (xyz.properties). Now, when I try to get a resource on newly created resources, flex is not able to find the package, I cleaned up the projects, I cleaned the hidden, he could still not find the newly created bundle.

    I'm trying to get the resource using the following code.

    ResourceManager.getInstance ().getClass('xyz","new_logo");

    What could be the problem?

    Post edited by: saisri2k2

    Did you add metadata somewhere?

  • Create a new form using template.fmb part 2

    Hi dear friends

    I create a new custom form for EBS and I followed the docs, I should start with the template.fmb. I tried to create new blocks and remove some of the blocks pre-created. There are 4 blocks pre-created in the TEMPLATE.fmb. They are CALENDAR, BLOCKNAME, PROGRESS_INDICATOR, DETAILBLOCK, I was able to remove BLOCKNAME and DETAILBLOCK but I can not delete CALENDAR and PROGRESS_INDICATOR. When I delete these 2 blocks, I got error:

    FRM-15110: cannot remove PROGRESS_INDICATOR because it belongs to a group of objects that are subclassed.

    How to remove or disable these blocks please...

    Thank you very much

    MsK

    The default order in which forms of exhibition items is assigned the order in which items appear in the Forms object browser. If you have added your new data blocks after blocks by default to the template.fmb in the node browser data blocks, the first navigable element in the first block of data registered will appear when you run your form. The simplest solution is to move the block of data to display as a default at the top of the node of the data blocks is the first block in the list. As a matter of habit, I always moved by default blocks of the template.fmb to the bottom of the list of data blocks. You can change this default behavior of the forms by calling the built-ins Go_Block or Go_Item in your trigger a times-new-form-Instance, but I prefer the first option because it doesn't require any code and it is the default functionality of the forms.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • I added a new apple ID. He continues to show former apple ID what me I forgot the password.  What should I do?

    I added a new apple ID. He continues to show former apple ID what me I forgot the password.  What should I do?

    Bought/downloaded content by one that Apple ID is linked forever, and in the case of applications will always require to update.

    Your best bet is to try to recover the password for it.  Go to http://iforgot.apple.com and try to get it back.

    If you forgot your Apple ID - Apple Support password

  • How to change the page that appears when I open the page new tab using the sign + on the tab bar?

    every time I open a new tab using + sign on the tabs bar, a Web site appears, which I was not aware. I want just the old rear setting. It must be my fault of friends. Help, please.

    You can do this on the topic: config page by resetting the pref browser.newtab.url via the context menu.

    See this article on the page tab (topic: newtab):

  • How to get a normal white page when open a new tab, using ' + '.

    When you open a new tab, using '+', I want Firefox to open the blank page. But it shows all my sites from the browsing history. 'White page' is with images-hyperlinks to these Web pages! How to get a normal white page without images-hyperlinks in navigation history without deleting all browsing history?

    Click on the button 'Hide new tab page' in the upper right corner of the page

  • Offers day and slow downloads WiFi (very slow).  Is there a way that I can download some updates and new programs using my macbook pro (to a public site in the city) and transfer it on my iMac which is too heavy to cart autour?

    Difficulty to access the updates and downloads with very slow wifi ("country").  Is it possible that I can download some updates and new programs using my MaBbook Pro (retina) on a public site in the city and transfer them on my iMac which is too heavy to cart autour?

    New programs, Yes.

    Updates, depends on what you're updating.

  • How can I change the settings of "undisclosed recipients" when send mail.  New to using a Mac.  Thank you

    How can I change the settings of "undisclosed recipients" on my Mac Mini... new to using Mac!  Thank you

    What you mean?

    If you enter a recipient in the BCC line other recipients will not see another. Recipients will see undisclosed recipients.

    Leave the line blank

Maybe you are looking for