Want help in validation

i'm bulding a project with ADF Fusion web application (ADF BC) with Jdeveloper 11g
i want to make some kind of validation
the problem is that
I have a table contains Employee Id , Employee Salary Deduction
I want that
The total Salary Deductions For any employee Per Month can't exceed the emplyee Salary
For Example
Alex Salary is 2000$
and this is the deductions
Employee || Salary Deduction
Alex ||100$
Alex ||50$
Alex ||200$
Alex || 100$
The total deductions her is 450$
i don't want the total deductions to exceed the employee Salary
but i don't know how to achieve this with ADF

Grant,
product selling price must be greater than product min price, but what happens if someone else is changing the product min price in a different transactionActually, there is no issue whatsoever there - the problem comes from multi-row validation. In your example, a simple check constraint solves the problem. Let's assume that user 1 updates the selling price while at the same time, user 2 updates the minimum price. When user 1 commits, he doesn't see user 2's changes, so his change saves successfully. When user 2 commits, his change will violate the check constraint and thus not save. Furthermore, with the default ADF behaviour, user 2 will not even be able to commit, because he will receive the "another user has updated this row" error first. If you instead implement the rule in ADF BC, the "another user has updated this row" error will prevent the issue as well.
However, in the OP's scenario, there are multiple rows involved, so unless you have some type of concurrency control built-in (either via explicit locks manually coded or by using the materialized view trick), you are exposed to multi-user problems.
John

Similar Messages

  • 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 =’(

  • Want help in Vioce transfer on a socket

    Dear Buddies
    Want help in Vioce transfer on a socket
    Tell me how should I start it. I am new to Java World. but good in C/C++
    I knew much about sockects. I have to make application which transfere real time voice from both side.

    first you will have to digitize the stream, then cut it up into packets of handlable size, then you just sent them out over a valid socket connection.
    Yes, I know this is very simple, what part are you having toubles with?

  • Sorry but i have a problem my IPAD has been stolen and i want help to know where is the place of it ? can i send the serial number or anything i want help to know the place of my IPAD and thanks  My name is :- Osama Rezk   I'm From :- Egypt

    Sorry but i have a problem my IPAD has been stolen and i want help to know where is the place of it ? can i send the serial number or anything i want help to know the place of my IPAD and thanks My name is :- Osama Rezk I'm From :- Egypt my icloud ID
    <Email Edited by Host>

    You will only be able to track your iPad if you have find my iPhone active and the iPad is connected to a network.
    Take a look at this link, http://support.apple.com/kb/PH2580

  • I want help, not a post in a forum I can never find again

    I want help, not a post in a forum i can never find

    http://helpx.adobe.com/indesign.html
    http://helpx.adobe.com/indesign/topics.html
    There's even a 20mb PDF here with all the Help Topics - http://helpx.adobe.com/pdf/indesign_reference.pdf

  • Want help in rdesktop software

    friends i want help in installing the rdesktop software plesae tel me the guid of installing rdesktop software . where i can find the rdesktop installation guid
    regards
    Asif

    I had a look around for some solaris binaries for rdesktop but the only link I could find was broken.
    The software was, however, very easy to compile. The instructions in the README file are pretty standard and should work for most Solaris installs.
    ./configure
    make
    make install
    This installs the software into /usr/local by default.
    These worked fine for me although you will of course have to make sure you install gcc and openssl (As these are both used by rdesktop). You can get these from www.sunfreeware.com. Install them, unpack the rdesktop distribution change into he rdesktop directory and run the 3 commands above.
    Sean

  • My Macbook Air broke. Please help me, Russian Apple Customer Support don't want help me. I'm in despair.

    My Macbook Air broke. Please help me, Russian Apple Customer Support don't want help me. I'm in despair.
    Hi, I bought my MacBook Air  in your store. In the summer of 2012. My mac is included in the program MacBook Air Flash Storage Drive Replacement Program. I live in Russia. I called the Russian support Apple. They told me to bring mac to an authorized service center. An authorized service center I was told to wait 45 days of the new flash storage drive. It's very long for me. I can `t wait long. I work on a Mac. I do not have another computer. Russian support Аpple does not want to help me. Can you help me? Serial number my MacBook Air : c0*******rvc
    <Personal Information Edited by Host>

    Leaving you without a computer for 45 days isn't acceptable. Call Apple and ask for a loaner or replacement. Some people have been receiving them.
    If you still have no luck, then consider getting a USB 3.0 HDD and installing and running OS X on it until the replacement part is in.

  • Hello want help on rac

    hello ,
    i want help on
    Step-By-Step Installation of RAC on Windows NT/2000
    plz help me .
    Pankaj

    It would be interesting to go through with
    Step-By-Step Installation of RAC with RAW Datafiles on Windows 2000
    </b><br><br> hare krishna<br> Alok<br>

  • I've sent my i phone to technical service because of voice error. "Teleservice" is the authorized service in Turkey. Even my iphone is in the guarrente scope, service told me to change it with a new i phone by paying 654euro. I am aggrieved. I want help

    I've sent my i phone to technical service because of voice error. I can not talk without a headphone. sometimes screen is freezing. "Teleservice" is the authorizated service in Turkey. even my i phone is in the guarrante scope, service told me to change my iphone with the same i phone by paying 654 euro. I am aggrieved. I want help.
    I could not use my phone since i !ve bought it. Because it has always same problems. please help me.
    Thanks in advanced.
    Mine

    Did you buy it in Turkey (Turkcell or Vodafone)? If you did so, you have 2 years warranty from Gempa,KVK or another company for your iPhone. Also many technical services repair iPhones if you bought it from a foreign country though no luck from Gempa in this case. As I know there is no Genius Bar or AppleCare option for Turkey.

  • Help with validation on a manually created tabbed form

    version 4.1.1.00.23
    Hello,
    I have a manually created tabbed form that I'm having trouble creating validation on.
    The page is a Resource Staffing page where PM's can forecast the Resources that will be needed for various projects. The forecast can be for 12 - 18 months.
    The requirement is to display a message to the user if they are trying to save a row without forecasting any time. It's possible they may not know how may Resources or the length of time needed when the row is created.  If they respond that they want to save the row without time the MRU will create the record. If they answer that they do not want to save the row they are returned to the page without loss of information.
    The month fields on the page are defaulting to 0 (zero).
    I've updated the Save button to Redirect to URL and in the URL Redirect I have: javascript:confirmNoTimeSaved()
    The javascript:
    [code]
    function confirmNoTimeSaved()
        var arr_jan,arr_feb,arr_mar,arr_apr,arr_may,arr_jun,arr_jul,arr_aug,arr_sep,arr_oct,arr_nov,arr_dec = new Array();
            arr_jan = document.wwv_flow.f07;
            arr_feb = document.wwv_flow.f08;
            arr_mar = document.wwv_flow.f09;
            arr_apr = document.wwv_flow.f10;
            arr_may = document.wwv_flow.f11;
            arr_jun = document.wwv_flow.f12;
            arr_jul = document.wwv_flow.f13;
            arr_aug = document.wwv_flow.f14;
            arr_sep = document.wwv_flow.f15;
            arr_oct = document.wwv_flow.f16;
            arr_nov = document.wwv_flow.f17;
            arr_dec = document.wwv_flow.f18;
        for(i = 0; i < arr_jan.length; i++)
            if(arr_jan[i].value == 0 && arr_feb[i].value == 0 && arr_mar[i].value == 0
                && arr_apr[i].value == 0 && arr_may[i].value == 0 && arr_jun[i].value == 0
                && arr_jul[i].value == 0 && arr_aug[i].value == 0 && arr_sep[i].value == 0
                && arr_oct[i].value == 0 && arr_nov[i].value == 0 && arr_dec[i].value == 0)
                txt = 'You have no time assigned to your Forecast. Do you want to save this Forecast without time entered?' + '\n' + '\n' + '"Yes" to save the Forecast.' + '\n' + '"No" to return with no changes.';
                caption = 'Confirm Saving With No Time';
                vbMsg(txt,caption)
                switch (isChoice)
                    case 6:
                        doSubmit('SUBMIT');
                        break;
                    case 7:
                        doSubmit('CANCEL2');
                        break;
            else
                doSubmit('SUBMIT');   
                break;
    </script>
    <script language="VBScript">
    <!--
    //Yes    = 6
    //No     = 7
        Function vbMsg(isTxt,isCaption)
            testVal = MsgBox(isTxt,vbYesNo,isCaption)
            isChoice = testVal
        End Function
    //-->
    </script>
    [/code]
    The 'CANCEL2' is just a Branch I'm using to branch back to the page without clearing Cache. I do have 'Cancel' button on the page and the Branch created for that clears the Cache.
    While debugging the javascript I get into the VB Script on the testVal = MsgBox(isTxt,vbYesNo,isCaption) line and the browser crashes.
    Can someone help with this requirement?
    What additional information can I provide?
    Thanks,
    Joe

    The code above is my attempt at this requirement, however, the browser crashes when it gets to the VBScript on the MsgBox call. I don't have to use this approach. Does someone have an idea how to solve this?
    Thanks,
    Joe

  • Need help with validation of SSNumber in ESS US Personal Data WebDynpro app

    Hi,
       We're using ESS /SAP Netweaver 2004....
    When I make the Soc Sec#  visible (changing the Java webdynpro app ess.us.fam the dependents update form in ESS) and trying to make this field not mandatory, I get strange results...
    The Gender field that was mandatory before is now not treated as Required after I select the Review button, but this SSN Text that I made visible is treated as Mandatory with a Red box saying This field is required....
    I guess the Required (state) attribute in the InputField properties is only for showing the red asterisk, but the actual mandatory logic is done somewhere else???..Is this somewhere in the webdynpro app or in the SAP backend...
    This app uses the structure HCMT_BSP_PA_US_R0021...
    Can anyone point me to where this validation is done so I can change it to what I need,
    Thanks,
    Venkatesh

    Hello ,
    I am working on EP7.0 ERP05 NW04s . I want to make the Social Security Number field mandatory on the Family Members Detail (Edit) , ...I want to know what's the procedure to do that...
    Any help would be highly appreciated.

  • Help in Validation

    Hi Experts,
    I have a strange issue and I am not sure why it happens.
    Here is an example:
    I have a WBS 1000 (for which we have cost center 1000 assigned) in master data assigned to company code X
    When I post a document in company code Y, if I enter both WBS 1000 and cost center 1000 in line item of the document, system does not show any error and document is getting posted.
    What I need is system should show an error that cost center / WBS does not belong to company code Y.
    (Here, Co code X and Y have same chart of accounts and controlling area)
    I am not sure as to why it happens as I feel standard SAP should not allow account assignments of other co codes to be assigned.
    So now I would like to write a validation so that system checks document co code and compares with company code of cost objects (like cost center, internal order, WBS) and show system should an error message.
    Could some one help me in writing the boolean logic for this.
    Thanks,
    SD

    Hi,
    That's a definition made on Controlling area level (OKKP transaction). It's called 'Cd Validation'; if the flag is not set, then there is no validation for this point and posting in company code X could be done on cost objects from company code Y, assuming that these company codes belong to the same CO area.
    So, if you want to avoid this situation, the flag has to be set.
    Regards,
    Eli

  • Can anyone help on Validations

    Hi SDNers,
    I am facing a problem with validations.
    Here is my requirement.
    I had a field (Phone Number). In that business will enter either Lanline Number ot Mobile Number.
    Ex - 0444 12345678 or 044 12345678 These are land line numbers.
    ex:- Mobile numbers : 1234567891.
    Here I need a validatin in this way.
    1) First we need to check is NUL or not.
    2) Then the phone shold not start with other than 0 or 1.
    3) If its starts with 1 then there should not be a Space between those numbers.
    4) If Landline number starts with 0 we need to check area code first 4 digits or 3 digits and space than phone number.
        Ex -  0444 12345678 or 044 12345678. (We need to check phone number is in this format or not)
    Any Help?
    Thanks
    Kiran

    Hi,
    This is working. Just paste this
    IS_NOT_NULL(Phone Number) AND LEFT(Phone Number,1)<=1 AND IF(LEFT(Phone Number,1)=1,ABS(Phone Number)=Phone Number) AND (IF(LEFT(Phone Number,1)=0,LEN(ABS(Phone Number))=2 OR IF(LEFT(Phone Number,1)=0,LEN(ABS(Phone Number))=3))
    And If you want to avoid more than one space between the number( Example: 044 123 45678)
    Paste this:
    IS_NOT_NULL(Phone Number) AND LEFT(Phone Number,1)<=1 AND IF(LEFT(Phone Number,1)=1,ABS(Phone Number)=Phone Number) AND (IF(LEFT(Phone Number,1)=0,LEN(ABS(Phone Number))=2 OR IF(LEFT(Phone Number,1)=0,LEN(ABS(Phone Number))=3)) AND IF(LEFT(Phone Number,1)=0,ABS(RIGHT(Phone Number,LEN(Phone Number)-LEN(ABS(Phone Number))-2)) = RIGHT(Phone Number,LEN(Phone Number)-LEN(ABS(Phone Number))-2)))
    Regards
    Goutham Kanithi
    Reward Points if helpful

  • Want help in understand Tcode

    Hi,
    I am new to SAP BASIS . I want to understand the Tcode functionalities . is there any books or links to study ..
    For example in DB02 i can see many buttons like Space statistics ,Current sizes etc...
    Please help me

    first you will have to digitize the stream, then cut it up into packets of handlable size, then you just sent them out over a valid socket connection.
    Yes, I know this is very simple, what part are you having toubles with?

  • Need help creating valid XHTML statement

    Hi -
    This is for a homework assignment that requires valid XHTML (I have to validate the dynamically generated HTML). Everything is great with the servlet except the statements where I "echo" the user input.
    The user inputs several values (loan calculator servlet), hits submit and if the values are valid inputs, the servlet returns the amount of the monthly payment. It also displays the inputs in case the user wants to change one of them (loan amount, interest rate or term of the loan).
    The servlet output is fine but my problem is in validating the html. The W3C validator shows an error on the lines where I'm echoing the original inputs.
    Here's my code that generates the html:
    out.println("<td><input type=\"text\" name=\"amount\" value=" + amount + "><br/></td>");Here's the html line that is output:
    <td><input type="text" name="amount" value=783745.43><br/></td>For this to be valid XHTML, the value needs to be in quotes. For example, that parameter should be value="783745.43".
    This is the error that the validator produces:
    Error Line 16 column 43: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.
    <td><input type="text" name="amount" value=783745.43><br/></td>The 'shorttag' and 'omittag' make no sense to me; I haven't found a decent reference yet on how to use them.
    I've tried multiple combinations of escape sequences but have had no success. Can anybody point out what I'm overlooking?
    Thanks in advance.

    I have understand about the SQL statement.
    My problem is like this. I have 3 variable. I have a table with 3 field.
    How can I use those variable to reftrieve value from my select statement?
    How can I use those variable to send value to my update or insert statement?
    sample statement:
    - select F1, F2, F3 from T where F1 = V1
    - insert into F1, F2, F3 values(V1, V2, V3)
    please help, I'm working on my final project in college.
    Thanks before.
    "Sweet devil is still as sweet as ever..."

Maybe you are looking for

  • My Mac's operating system no longer compatible with my Deskjet 3050A

    Hi, I haven't used my printer in a while because it hasn't been working. But I'm tired of running to my neighborhood FedEx Office so am tackling this issue today. I went to install the HP software on my MacBook Air and was told "installer not compati

  • 1 long beep and 2 short beeps

    hello this is my second post....before i had problems with me8 bios, then downgraded using this forum tool..thx for that. now i can boot my PH67A-C43 (B3) board and use it normally, but my problem is that when ever i try to restart or boot it again w

  • Hard drive access locked to all users

    I have a second internal HD on my Power Mac G5 that is locked to all users. I have tried many different things and have been unable to make it available to myself. I could just format the drive but there is valuable work data on there. Any help would

  • Problems for wlserver on win2kpro with sun jdk1.3.1

    "I make evaluation for my company for BEA Weblogic Server 5.1 for Win2kPro with SP10 and with SUN jdk1.3.1 all is ok when I setup wlconfig -JAVA_HOME=C:\jdk1.3.1 but when I start wlserver I receive :

  • I can't register my iPhone on iTunes using my apple ID?

    Everytime I try, it just says 'Registration has timed out'. WHAT DOES THIS MEAN?! HOW DO I FIX IT!?