For loop in validation not working

Hi,
I am trying to put validation on a tabularform, such that column1 is not greaterthan column2 value.
begin
apex_application.debug('start check');
for i in 1..3 loop
apex_application.debug('i='||i);
if apex_application.g_f05(i) < apex_application.g_f06(i)
then
return true;
else
return false;
end if;
end loop;
end;could not figure out why the loop is not workinng. it is taking only 1st value i.e here "i" takes only value "1" then it checks the condition and later exists, doesnot check for the next row.
any Idea..,!!!
Help Me.
Thanks,
Little Foot

Little Foot wrote:
Hi,
I am trying to put validation on a tabularform, such that column1 is not greaterthan column2 value.
\begin
apex_application.debug('start check');
for i in 1..3 loop
apex_application.debug('i='||i);
if apex_application.g_f05(i) < apex_application.g_f06(i)
then
return true;
else
return false;
end if;
end loop;
end;could not figure out why the loop is not workinng. it is taking only 1st value i.e here "i" takes only value "1" then it checks the condition and later exists, doesnot check for the next row.
any Idea..,!!!
Help Me.One way or another the code returns a value on the first iteration, which obviously always exits the loop at that point.
(And it's \...\, not \...\)

Similar Messages

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sym.play("loop"); This is not working

    Please'm having problems with the LOOP. 've Followed several tutorials but the file does not end LOOP function. You guys could send me a link where I can get a solution to this problem?
    // play the timeline from the given position (ms or label)
    sym.play("loop"); This is not working (sorry for the english: Translate)

    sym.play("loop"); will move the root timeline playhead to the "loop" label, and play from that "loop" label.
    If you want to loop a section, for example, you could put a label called "loop" at 1 second, and then at 3 seconds, add a timeline trigger that has the code sym.play("loop");

  • HT1947 Remote for ipad landscape orientation not working in ios 7

    Remote for ipad landscape orientation not working in ios 7

    See this thread: remote app rotation locked in portrait orientation after iOS 7 upgrade
    It is a discussion only - no helpful hints.  Appears to be a bug for sure.

  • My dvd slot for imac10,1 does not work. It rejects the disc. Problem after reinstall of backup from hdd.

    My dvd slot for imac10,1 does not work. I had a new harddrive installed in November and the MacStore installed my backups from an external harddrive. I do not use it other than to upload programs, so I have not tried using it until tax season, but it rejects the disc. The ata file indicates no dvd firmware, but the serial-ata does indicate firmware for a dvdrw. What might I do about this to bring the dvd back, least expensive to most?

    Yesterday I started having the same problem. Can read disc (play movies and music) but blank disk are ejected or idvd cannot see the blank disk. I have a almost 12 month old 27" i7 imac.

  • I want to reset my ipod touch 4th gen but i have forgotten the restrictions passcode and for some reason its not working on my laptop on itunes and the restore thing wont work! any help?

    I want to reset my ipod touch 4th gen but i have forgotten the restrictions passcode and for some reason its not working on my laptop on itunes and the restore thing wont work! any help?

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...Re-Sync your Content
    Note:
    To remove a forgotten Restrictions passcode you will need to  Restore the Device as New...
    OR... From a Backup created Before the Restrictions Code was set....

  • Auto To working for one material and not working for other material

    Hi,
    Hope everybody is doing fine.
    I have configured the auto TO. Its working fine for one material and not working for the other material. I checked the material master and wm 1,2 views have the same fileds / values. What could be wrong?
    I didn't setup the back ground processing job. Is that is affecting it?
    thanks for any help.
    regrads,
    KHAN

    Thnaks,
    You are right but then what could be wrong? Its working for one material and not working for otehr material? Any clue?
    Appreciate your time charlie

  • My new Dell PC running Windows 8 does not recognize my iPad or iPhone. Worked OK for iPhone for months but would not work for new iPad.  I removed /relaoded iTunes and now it won't recognize either iPad or iPhone.

    My new Dell PC running Windows 8 does not recognize my iPad or iPhone. Worked OK for iPhone for months but would not work for new iPad.  I removed /relaoded iTunes and now it won't recognize either iPad or iPhone. Got any suggestions?

    Hi there Lizabethfromaz,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    -Griff W. 

  • Link for territory mgmt is not working

    Hi All,
    We have territory management configured for three custom attributes.
    Link for territory management is not working for territory assignment block on account overview screen.
    Any hint how we can solve this issue?
    Thanks and Regards,
    Gauri.

    How are you resetting the password?
    Resetting User Password in Lion, Mountain Lion & Mavericks
    Boot into your Recovery Partition by hold down the Command and R keys whilst booting.
    When the Recovery screen appears, go to the Utilities menu and open Terminal.
    In Terminal, type:
    resetpassword
    ...a small app will open and allow you to choose the user for whom you want to change the password. If you are the admin, be certain that you choose your admin user. Type in your new password twice and give yourself a good hint. Click OK (or Done or whatever) and reboot, enjoying the use of your new, hopefully memorable, password.
    Good luck,
    Clinton

  • Can't get to settings to turn on wifi because "sign in to icloud" pops up and asks for pw which does not work because i can't get to wifi  ?p

    can't get to settings to turn on wifi because "sign in to icloud" pops up and asks for pw which does not work because i can't get to wifi  ?

    The problem is I cannot turn on wireless setting.  The "sign in to icloud  -- enter appleid password" popup will not go away. when i enter the pw and click ok, the same balloon pops up again.  If I click "cancel" it pops again. Since I am not on the internet (because I cannot turn the ipad wireless on) the sign in to icloud obviously will not work.  Vicious circle.

  • Valuation Basis for Different Payment (BWGRL) not working in 2010

    Hi
    We have a commission wagetype which we entered in IT 2010 in Number/Unit field. 
    Since we don't have premium id available, we used "Valuation Basis for Different Payment (BWGRL)"  to enter the RATE.
    This RATE is not working during our payroll run, however when we are using the wagetype with premium ID it is working fine.
    My question is- What could be the reason that the Valuation Basis for different payment is not working ? 
    I checked the wagetype in V_512W_B table and it has the following configuration-
    Current wage type
    Valuation Basis = BLANK
    Statement/WT = BLANK
    %Rate = 100
    1st derived wage type
    Valuation Basis = BLANK
    Statement/WT = BLANK
    %Rate = BLANK
    2nd derived wage type
    Valuation Basis = BLANK
    Statement/WT = BLANK
    %Rate = BLANK
    Would appreciate if the the fix could be provided.
    Saurabh Garg

    Hello,
    I think in your case for commision wagetype you need to modify rule $930 to process the override rate from Infotype 2010 BWGRL field in case you are using the US standard schema.
    The valuation basis table V_512W_D and rule $930 together will determine the valuation basis.
    The default valuation basis comes from table V_512W_D.In case you want to override the valuation basis rate defined in this table,you need to maintain override rate in It2010 and accordingly have the logic defined in rule $930 for that particular wagetype .
    Following is the sample rule definition for a similar scenario.
    ****(commision wagetype)
      NUM= ANZHL Set
      RTE= BWGRL Set
      RTE?0      Comparison
          MULTI NRA  Multipl.amt/no/rate
          SETIN X=NX Set variable split
          ADDWT *    OT   Output table
        =
          VALBS0     Eval.0.WT in 512W
          MULTI NRA  Multipl.amt/no/rate
          SETIN X=NX Set variable split
          ADDWT *    OT   Output table
    Regards,
    Malathi V.

  • New Hunt Pilot for internal number is not working.

    Hi support, I have a problem with the new hunt pilot number that created for internal use is not working. I had create 1 internal number (1090) for the Hunt Pilot number, and there are 2 hunt group member (9382 / 9387). These number will forward all to the mobile number 9382 will forward
    all to 90176253579 9387 will forward all to 90133921295 Calling from 1941 to 1090 resulted failed but calling from 1941 to 9382 working and the call forwarded to mobile 90176253579. What might be wrong with the 1090 where i can't call that number from internal. From the DNA, it shows the call should reachable to the destination. I attached the DNA result for your reference.

    Hi Mohd Afadzal,
    Forwarding setting do no apply for Line Group members. As you mentioned that the Line group members
    (9382 / 9387) are configured to forward all calls to their respective cell phones, this will not work.
    You can use the HuntPilot's Busy or No Answer configuration to forward calls to an alternate number.
    HTH,
    Jagpreet Singh Barmi

  • Can we get reimbursed for apps that do not work

    Can I get reimbursed for apps that do not work?

    Hi...
    You can contact iTunes support here and see if they will make an exception:
    http://www.apple.com/support/itunes/contact/
    They usually respond within 24 hours.
    Hope this helps.

  • Earlier installed flash player for x64 yet still not working

    Hello:
    Over the past 6months flash player installed and it's a working program, then a update comes
    along install that then you know it program  stops working.  I just uninstalled latest version  as it was not working
    I went back to dl.flash player square "beta preview, for windows X64.  Not working.
    Where,what is a user to do? I like learning from H.P. Learning which uses flash player so I really
    need to get Adobe Flash Player working a.s.a.p.
    thanks nedt

    Hi, The Square is a beta version and still in testing. You need to Uninstall it if you want the latest released version.
    Even tho you have a 64bit OS, you need to use the 32bit browser with any Flash Player version other than Square.
    Download and SAVE to your Desktop the Uninstaller:
    http://kb2.adobe.com/cps/141/tn_14157.html
    Download and SAVE to your Desktop the Installer(s)
    http://www.adobe.com/products/flashplayer/fp_distribution3.html   Use the EXE Installer for Win/IE and Win/plugin
    Use the Administrator Account
    Close all browser windows, disable any instant messengers in the system tray
    Disable any realtime anti-virus
    Run the Uninstaller and then reboot
    Run the Installer(s) and reboot.
    Reenable any that was disabled.
    Test here with browser(s)
    http://www.adobe.com/software/flash/about/
    You can print this out to make it easier.
    eidnolb

  • New Release QuickVPN client 1.4.0.5 for windows 7 does not work????

    New release of QuickVPN client version  1.4.0.5  for windows 7 is not working properly.
    We can not connect; instead we receive this message:
    "Remote Gateway is not responding, do you want to wait?"
    Dear Cisco,,,,
    Your release is not complete; please correct issue and advise after it has been tested.
    Rgds, EM

    Hi, first disable this POLSTORE.DLL again in your QuickVPN-Folder. Then start in this folder IPSEC.MSC and than IPSEC.EXE. You should get from IPSEC.EXE  the error above. If not, than any other problem you have. Follow all the hints here in this thread.
    If you get the same error above, than enable this POLSTORE.DLL again and start the IPSEC.EXE. You get the full info what has been gone. And within the IPSEC-Window for Local Computer you may find this FREESWAN-setting.
    B.t.w. before I went this way I did export and import the IPSEC-settings from the XP-machine, as it was hinted some posts earlyer. But the way I have gone, works also with manualy deleting the FREESWAN config. With the IPSEC.EXE it will new generated in any case.
    When you start via QuickVPN you may monitor also what happens within this IPSEC for Local Computer. Press F5 to keep it aktual.
    From time to time the connection gets only succeeded after the second and more times. I have a very slow UMTS Internet-Access.
    Juergen
    Adding: These effects, getting not connected, first and during the VPN-Tunnel exists, has not changed since the top-first Version of Quick-VPN.
    Dear customer, be patient, don't care about these stupid messages, click again or when the connection allready has succeeded through the VPN-tunnel do what you did like to do.
    ...... and again, with which configuration-scenario do the guys at Cisco test and develop .....
    Fortunately, I never was a Cisco partner, only a poor user ;)

Maybe you are looking for

  • How can I create only thumbnails photo page without larger photo

    Is there a way to create photo page without the larger photo?

  • Regarding Wage Type

    Dear Sapients, I have created eight wage types in IT0014. In IMG Payroll International - Reporting for Posting Payroll Results to Accounting - Activities in HR System - Maintain Wage Types - Define Posting Characteristics of Wage Types I could see on

  • Image Sizes in Muse

    I'm curious how large of an image can Muse display.  For example, I like photography sites where the images fill up a large part of the screen. From the sample sites in the Muse section of the Adobe site, I didn't see any images shown at my preferred

  • Sequence get the last value (or store the .NEXTVAL anywhere)

    Hi there, I created some tables and one table references the other (foreign key). Now I want to add some test data and insert rows to both tables. My problem is: The "insert into command" for table a uses a sequence value to create the primary key. N

  • Telesales forms customization

    Hello... I would like some help on customizing a Telesales screen. I am modifying an existing customizable tab (ASTCUTM1) to query data from a new custom table. I can develop the form easily but I do not know how to integrate with the master block us