How can I use ViewObject in Reusable Validation Rule ?

I read chapter 9.6.1 of ADF Developer Guide 4GL, "Creating View Objects at Runtime for Validation". In our system there is a validation that can use ViewObject, e.g :
SUM of outstanding AR cannot exceed the Credit Limit of the Customer.
This rule must be applied to more than one entity :
- During Order data entries
- During Invoice Creation
- ..and some more..
So I think about create a Reusable Validation Rule
(Like Steve recommends on : http://radio.weblogs.com/0118231/stories/2005/07/21/recommendedValidationStrategies.html. => DateRangeRule.Java )
And within this Reusable Validation Rule, I use View Object to do SQL based validation as explained on chapter 9.6.1 above.
How can I do that ?
Thank you for your help,
xtanto

The ADF Toy Store Demo 10.1.2 version contains a reusable rule that uses view objects. If you google for "ADF Toy Store Demo 10.1.2" you will find it. Its a validation rule in the FwkExtensions project in that demo that validates state abbreviations for a country code.

Similar Messages

  • Living in Europe how can I use a gift card valid only on the U.S. iTunes Store

    Living in Europe how can I use a gift card valid only on the U.S. iTunes Store?

    Sorry...   iTunes Gift Cards are only Valid in Country of Issue.

  • User Variable Options: How can I use them in a Business Rule?

    How can I use a "User Variable" set in File / Preferences in a Business Rule? It doesn't seem to appear as an Essbase Substitution Variable or as a Global Variable of Business Rules. The only way I know how to use it is to place the dimension on the POV or Page dimension of a data form, then use a Global Variable in a run time prompt to pick the member and run a BR against it, or some function of it.
    What do I do if I want to have that dimension in Columns or Rows? How can I set a BR to directly reference the member chosen under User Variable Options?
    J

    Thanks Alp, but I can't seem to reproduce what you are writing below. I want to refer my Business Rule to address the value set in File / Preferences / User Variable Options; no matter what members I show elsewhere in the data form.
    My other workaround is through a run time prompt and hope the user selects the appropriate user variable at the very bottom of the selection list in order to calculate the appropriate list of members.
    J

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • HT1918 plz i want help , how can i use credit card visa , im try to fill blank no. card information when i finish appear me msg ( the payment card you entered is not valid in israel p;ease provide avalid payment card for israel , im from palestine ) plz s

    plz i want help , how can i use credit card visa , im try to fill blank no. card information when i finish appear me msg ( the payment card you entered is not valid in israel p;ease provide avalid payment card for israel , im from palestine ) plz solutio?

    Oh thank god i am not the only one with this problem. It started with me on Saturday (aug 28) and still, no solution.
    I live in the border with the USA so i’ve been using my itunes account with a USA debit card and then it started with that **** declined CC problem =S
    The funny thing is that i’ve been trying to change countries, setting my account to Mexico and it would still say that the CC are declined. Tried 2 USA cards and 2 Mexican cards, no results =S
    Wanna read something funny. I even tried to create a brand new account based in Mexico, with another email address and it still wouldn’t let me, tells me my cards are not valid……..the **** apple!!! i cannot update any app and i just got my iphone 4 on friday last week and i am dying to try new apps.
    So far I’ve sent 2 emails and still no **** solution. At least i am not alone =’(

  • I live in Germany and in the USA. How can I use an itunes account for both shops ?

    Hi,
    I live half a year in Germany and half a year in California. How can I use my different Apple ID's to buy in Germany from the US-iTunes shop and in the U.S. from the German shop. Reason: the shops have different offers. Some booksare not available in the German shop and some are not available in the U.S. shop.
    For a person, who lives in both countries the restrictions makes absolutely no sense.
    Has anybody an idea how to manage that`
    Thanks

    For starters, there's probably not many people who have dual national residencies so I'm guessing it's not a priority with Apple.  The solution according to the store terms of use regarding your physical location, credit card billing address, nation of store, is when you are physically present in Germany you should be making purchases from the German store with a credit card billed to an address in Germany.  When in the USA you buy from the US store with a credit card billed to a USA address.  You're not supposed to use a store in another country when not actually present in that country even if you have a valid account there.

  • HT5622 Why can't I use my Apple ID to iTunes?  How can I use it with out credit card?

    How can I use my Apple ID in iTunes with out credit card?

    For me it's the same, I've just bought an iPad mini two weeks ago but I cannot log in with any Apple account in FaceTime.
    I enter my apple account in faceTime, then I press next the second screen and it shows "validating..." but it never gets validated.
    What's happening? This is really annoying

  • How can i use an email address with an apostrophe as my apple ID

    I need use a school email address for a new Apple ID but it has an apostrophe, and Apple does not see it as a valid address. How can I use that email?

    Welcome to the Apple Community Juduth.
    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • How can I use apple gift card in the Philippines . It says it's only applicable in US storefront

    How can I use my gift card in the Philippines  when it says for US Storefront only

    You cannot use that card. iTunes gift cards are only valid in the country of original purchase.

  • How can I use the field "Sales Order" on derivation?

    Dear All.
    This is about PA characteristic derivation.
    I want to change the characteristic value "Sales Order (KAUFN)" by derivation.
    But I cannot select the characteristic field on target field.
    The field "Sales order(KAUFN)" doesn't exist there.
    Why? How can I use the field "Sales Order" on derivation?
    Y.C.Bae

    Hi Bae,
    in order to be able to choose fields KAUFN (for sales order) and KDPOS
    (for sales order item) as target fields of derivation step 'enhancement'
    you have to modify the coding of subroutine EXIT  GET_ALLOWED_TARGETS
    in program RKEDRCOPA like this:
        NAME-IDENTIFIER = 'CO-PA'.
        NAME-TABNAME = FIELDTAB_ENTRY-TABNAME.
        NAME-FIELDNAME = FIELDTAB_ENTRY-FIELDNAME.
        IF FIELDTAB_ENTRY-USGFL CA 'DUV'
    BEGIN OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KAUFN'
             OR FIELDTAB_ENTRY-FIELDNAME = 'KDPOS'
    END   OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KNDNR'
             OR FIELDTAB_ENTRY-FIELDNAME = 'ARTNR'
    Actually sales order number and sales order item shouldn't be changed
    by derivation (therefore they are no valid target fields in standard)
    but if you need to fill them within an enhancement this modification
    will help you to define them as valid target fields. But this is just
    the technical frame so far; the logic from which table you'd like to
    derive the sales order number correctly depends on your implementation
    of the enhancement! I just want to ask you to be rather careful with
    the implementation of the exit so that the sales order number isn't
    changed in cases that shouldn't be concerned.
    Regards,
    Abhisek

  • HT2305 I PURCHASED AN ITUNES CARD FOR $50.00 IN THE USA WHILE I WAS ON VACATION  HOW CAN I USE THIS CARD WHILE I AM IN THE USA.    .......ELLIS

    I purchased an itunes card in the USA while on vacation for $50.00----how can I use the card while in the usa.....Ellis

    You will need to set up an account in the US iTunes Store to use that card, for which you will need a valid US mailing address. Note that the Terms of Use for the iTunes Store state that you will not attempt to use the US iTunes Store from any other country, so you will not be able to buy new items or re-download previously purchased ones from the US without violating those terms. So you may want to reconsider your purchase and perhaps return the iTunes card or sell it to someone who lives in the US.
    Regards.

  • How can i use a xsd while generating my xml document in oracle?

    Hi, how can i use a xsd while building my xml document query, so i know the xml was built properly?
    Cheers.

    Hi,
    Do you want to validate your xml against xsd?
    Read this
    validating
    There are some bugs also, for example  xml is invalid but no errors when calling schemaValidate()
    Ants

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • How can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    how can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    If you are just visiting Singapore, then leave the account as it is. If you have moved there, then view your account using the iTunes app on a Mac or PC and change the country/region to your current location and address. If you do not have a bank card, you can fund your account using iTunes gift cards if available in Singapore.

  • How can I use one photo twice in a slideshow

    I am in iPhoto '11 9.4.3 making a slideshow to send to iDVD for my mother-in-laws funeral next Wednesday.
    How can I use this one particular photo of her several times in the slide show.
    I have tried copy/past and that does not seem to work.
    Thanx in advance

    I would just duplicate the picture several times and keep inserting duplicates ...

Maybe you are looking for

  • Problem with decimal

    Hi Experts, I'm having a problem with decimal. I have a alv data grid that can be edited.Once I press enter the value for the decimal fields are changed. Example: If i input 5.00 in the field then I press enter it converts it to 0.05 And If I input 2

  • How to locate my network security key

    I wrote this same request a month or so ago and can no longer locate my 'saved' message.  Would someone please forward me the link again on how to locate the network security key so I may add another computer to my wi-fi. And another question, will t

  • How to resize image?

    Hi I am trying to record video with EOS controller in labview, and whenever I click record button on the front panel the resolution of the image screen changes to 720x480.... what should I do have exact same resolution as setting on the camera? I wou

  • Photos disappear in Yosemite

    I was using Yosemite beta, downloaded and installed the commercial version yesterday. Opened iPhoto, got a message saying some photo permissions needed repairing and then, surprise, no photos in iPhoto. In the finder, thought, the info on the app. sa

  • How  to add documents to alerts section

    I need to the documents to alert section of my home page how to do?