Validation not working on Qualified Field!!!! is this Normal!!!

Hi All,
I have an Integer field in the Qualified table.
Name-> Non Qualifier -> Type Text
Code -> Qualifier -> type Integer
Now, i need to write a  validation which throws error If user enters a number whose length is  less than 4 or greater than 4.
The business requirement is User should enter Exactly 4 Numeric values. Not less and not more.
As integer type field done not control Field length i have written a validation.
I have written a validation..
IF(IS_NULL(MAINLOOKUP.Code),1,IF(LEN(MAINLOOKUP.Code)<4 , 0 ))
But this is not working.
this works for a Normal Integer field which is in Main table, But this is not working when Code field is in Qualified table!!!
Is this the normal Behaviour of MDM??
Or am i missing something!!!
Experts please provide your suggestions.
Note: i changed the Code field to Text and made length as 4 in field property, But this is not controlling if user keys in only 2 values.
So written the above validation on text field as well, But it does not work.
Kind Regards
Eva

Hello Eva
Ok
Just imagine
you have some record in your main table with some QLUT
Qlut contain next fields
item_name - type text
item_value - type integer qualified = yes
and list of values
q1
q2
q3
q4
your main table contain next fields
name-text
Qlut->your Qlut
qlut_code->text
qlut_value_>text
For qlut_code create assignment like Qlut.code
For qlut_value create assignment like Qlut.value
add some records to main table like this:
name=test1
in qlut select next:
item name =Q1
item value=1
item name =Q2
item value=2
item name =Q3
item value=3
and another one record in main like this:
name=test2
in qlut select next:
item name =Q1
item value=1
item name =Q3
item value=3
item name =Q4
item value=4
item name =Q3
item value=33
select both records and run both assignments
If your assignments is correct
In first main record you have got
qlut_code=3:Q1;Q2;Q3
qlut_value_>3:1;2;3
for second main record you have got
qlut_code=4:Q1;Q3;Q4;Q3
qlut_value_>4:1;3;4;33
Then you can use records values from qlut_code and qlut_value for validation
This is work fine.
I hope, you have got my point
Regards
Kanstantsin Chernichenka
Edited by: kanstantsin_ch on Oct 6, 2011 1:35 PM

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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Valdiation rule does not work on PrimaryBillToCity field

    Hello to everyone,
    Valdiation rule does not work on PrimaryBillToCity field (and other address fields)
    Have someone a workaround ?
    Thanks.
    ML

    I do not believe it is possible to do validation on the address fields in the address block.

  • Infotype Screen Control (T588M) not working for additional fields to contro

    Hi,
    I have a requirement to enhance IT 0002 with fields LNAMR, FNAMR and CNAME. Also field preferred language.
    I have included LNAMR, FNAMR & CNAME as additional fields in the Include Screen 2040 elements, lay editor and maintained table T582c where i have assigned enhancement to the standard screen. These fields are getting displayed in infotype 0002
    But the issue is Infotype Screen Control (T588M) is not working for these fields to control the display or hide.
    Has any of you come across this issue? what could be the reason for this issue? Please suggest ASAP.
    Thanks in advance.
    Regards

    Hi Experts,
    Please help with your inputs and suggestions.
    Regards

  • I keep trying to set up a new Apple ID but apparently my card info is not working. how do i fix this? "contact ituunes support to complete this transaction"

    i keep trying to set up a new Apple ID but apparently my card info is not working. how do i fix this? "contact ituunes support to complete this transaction"

    If the problem persists, you'll probably have to make another apple id, it wont take off any games or music or apps or anything you've bought it will all stay there, i have two apple id's and i don't have a problem with anything.

  • I just downloaded Firefox 5 and it said that my Yahoo toolbar will not work with it. Is this true? If so I will not use this new version and will switch to another browser if Firefox stops supporting the Yahoo toolbar. Thank you.

    I just downloaded Firefox 5 and it said that my Yahoo toolbar will not work with it. Is this true? If so I will not use this new version and will switch to another browser if Firefox stops supporting the Yahoo toolbar. Thank you.

    Add-ons contain a range of compatible Firefox versions, and Firefox honors the listed range by disabling the add-on if you are trying to run it on an unlisted version.
    I'm sure Yahoo! will update its toolbar eventually, but not every add-on maker supports beta versions of software.

  • HT3226 Having problems with my mouse. Cannot scroll up or down or sideways. Did all the cleaning but still not working. Any help on this??

    Having problems with my mouse. Cannot scroll up or down or sideways. Did all the cleaning but still not working. Any help on this??

    Hello:
    Try resetting the PRAM and SMC.
    Barry

  • My iphone 5 camera is not working how can i fix this problem ?

    My iphone 5 camera is not working how can i fix this problem ?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).

  • TS2771 my ipod touch home button does not work how do i fix this?

    my ipod home button does not work. How do i fix this?

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • I updated to java 7 and now my yahoo games will not work, how do i fix this?

    i updated to java 7 and now my yahoo games will not work, how do I fix this?

    kathieaross,
    click on the Java pane in System Preferences. When the Java Control Panel window opens, click on the Security tab, and set your Security Level to Medium — that will allow “untrusted” applications (i.e. those without certificates from a trusted authority) to run. Press the Apply button in the lower-right corner to confirm the change, then press the OK button to close the window.
    Apparently your Yahoo! card games don’t have certificates associated with them, which is why the default security setting of Java SE 7 Update 51 didn’t allow them to run.

  • I have a 9300 and the track ball is not working how do i fix this?

    I have a 9300 and the trackball is not working how do I fix this?

    Hi THL1234
    Welcome to Support Forums
    You can try this KB and see if that helps in resolving your problem.If that fails then you may have to replace your  Trackball :
    KB29640 : Trackpad ,trackball, or keyboard not working on a BlackBerry Smartphone.
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • HT201401 Backlighting is not working how do I fix this?

    MY sister got a new phone and she gave me her iphone3. However the backlighting does not work, how can I fix this? Do I need to take the phone to apple?

    Try restarting the iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo.  If you are still having problems, then you should take your iPhone to Apple for repair. 

  • When I set a panorama picture as my wallpaper, the live scrolling is not working. Anyone else having this problem?

    When I set a panorama picture as my wallpaper in my iPhone 5, the live scrolling is not working. Anyone else having this problem?
    Please help me to solve this

    Everyone is having the "problem".
    That beta feature is not in the final release of iOS 7.

  • Updated to 10.4 and the New Purchased feature is not working. Anyone else having this problem?

    Updated to 10.4 and the New Purchased feature is not working. Anyone else having this problem?

    I did originally, but it fixed itself after a few minutes.

  • Speaker on phone calls will not work, how can I fix this? I have already done system restart and reset to manufature default.

    speaker on phone calls will not work, how can I fix this? I have already done system restart and reset to manufature default. I also have no voice with Safari or any other apps including music!

    If your speaker is broken, then you may need to get a repair done.
    Are you unable to hear anything at all, or is it just one speaker in particular?
    If it is just one speaker, where's it located?

Maybe you are looking for

  • BI BPC server strategy and the best practice

    Hi  Everyone I would like to know couple of questions: 1) Is any white paper or documentation on pros and cons of having BPC NW installed as a add-on to BW system wherein Planning and Reporting are taking place on the same BW system versus BPC as a s

  • Handling exceptions with servlets

    Hi All, I am trying to to write a servlet that would handle the errors of my applications under Application Server 8.1 Therefore i used the below: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ErrorDisplay extend

  • Error code 4310

    Hi I know there has been a few discussions regarding error code 4310 when trying to burn CDs on itunes while my computer runs Windows 8. I have treid the solution of slowing down speed etc but I cant get it to work yet does anyone have another idea/s

  • Charts usage on 4.0 EA

    Is there any documentation available on how to use the new charts? Looks like, this great product lacks a great documentation.

  • Errors communicating with my GPIB device in C++

    I am trying to communicate with a GPIB device via a custom C++ program.  I am using ni488-2.h and the associated obj file. When I send the commands to the device "manually" through the Measurement & Automation Explorer, everything seems to work fine,