[FLEX] VALIDATE CF

Hi, someone have a code to validate CF in FLEX like this in java?
public static boolean isValid(String parCF){
      // conversione della stringa in caratteri maiuscoli
      String cf = parCF.toUpperCase();
       * eliminazione degli eventuali spazi
      cf = StringMng.removeChars(' ', cf);
       * verifica della lunghezza del codice fiscale
      if (cf.length() == 16){
          * creazione della matrice con i caratteri dell'alfabeto
         char[] Carattere = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                        'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
                        'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0',
                        '1', '2', '3', '4', '5', '6', '7', '8', '9'};
          * creazione della matrice con i valori attribuiti ai caratteri
          * dispari, corrispondenti alla matrice di caratteri
         int[] ValoriDispari = {1, 0, 5, 7, 9, 13, 15, 17, 19, 21, 2, 4,
                           18, 20, 11, 3, 6, 8, 12, 14, 16, 10, 22,
                           25, 24, 23, 1, 0, 5, 7, 9, 13, 15, 17, 19,
                           21};
          * creazione della matrice con i valori attribuiti ai caratteri
          * pari, corrispondenti alla matrice di caratteri
         int[] ValoriPari = new int[36];
         for (int i = 0; i < 26; i++){
            ValoriPari[i] = i;
         for (int i = 26; i < 36; i++){
            ValoriPari[i] = i - 26;
         // conversione della stringa da esaminare ad una matrice di caratteri
         char[] caratteriCF = cf.toCharArray();
         int valore = 0;
         for (int i = 0; i < caratteriCF.length - 1; i++){
             * somma delle posizioni pari in base ai valori
             * corrispondenti contenuti nell'array ValoriPari
             * (tranne l'ultimo carattere che è quello di controllo)
            if ((i+1) % 2 == 0){
               for (int j = 0; j < Carattere.length; j++){
                  if (caratteriCF[i] == Carattere[j]){
                     valore += ValoriPari[j];
                * somma delle posizioni dispari in base ai valori
                * corrispondenti contenuti nell'array ValoriDispari
            }else{
               for (int j = 0; j < Carattere.length; j++){
                  if (caratteriCF[i] == Carattere[j]){
                     valore += ValoriDispari[j];
          * ottenimento del resto della divisione per 26 e
          * valutazione del carattere di controllo (ultimo carattere)
         valore %= 26;
         for (int i = 0; i < 26; i++){
             * verifica che il valore dell'ultimo carattere corrisponda
             * al valore ottenuto attraverso l'algoritmo di somma precedente
            if (caratteriCF[caratteriCF.length - 1] == Carattere[i]){
               if (valore == i){
                  return true;
               }else{
                  return false;
         return false;
      }else{
         return false;

Nevermind. As you can see in the URL, there is no "c:" and I
don't know why that was not there by default in the project set-up.
It doesn't matter. Problem solved.
///johan

Similar Messages

  • Download dynamically generated content (e.g. KML) as file?

    Forgive me if this question has an obvious answer; so far I've come up with nothing.
    Here's my scenario:  A user has data in a form in my Flex app and wishes to export the data to a particular file type (let's use KML as an example) and let the browser handle the resulting file in whatever manner it typically does so (open in Google Earth, for instance).  The current flow is:
    User enters data;
    User clicks "Export to KML" button;
    Flex validates the data and converts it to valid KML;
    Flex executes an HTTP POST to a JSP with the KML data as the content;
    The JSP echoes the data in the POST as the response data, setting the content-type as KML.
    This works fine, but I think I should be able to eliminate the JSP step.  However, I cannot find any way for Flex to directly handle setting up the HTTP response.
    Any suggestions?
    Thanks,
    Doug

    Use FileReference and target FP10
    Sincerely,
    Michael
    El 15/06/2009, a las 8:42, CarLuva <[email protected]> escribió:
    >
    Forgive me if this question has an obvious answer; so far I've come 
    up with nothing.
    >
    Here's my scenario:  A user has data in a form in my Flex app and 
    wishes to export the data to a particular file type (let's use KML 
    as an example) and let the browser handle the resulting file in 
    whatever manner it typically does so (open in Google Earth, for 
    instance).  The current flow is:
    User enters data;
    User clicks "Export to KML" button;
    Flex validates the data and converts it to valid KML;
    Flex executes an HTTP POST to a JSP;
    The JSP echoes the data in the POST as the response data with the 
    content-type for KML data.
    This works fine, but I think I should be able to eliminate the JSP 
    step.  However, I cannot find any way for Flex to directly handle 
    setting up the HTTP response.
    >
    Any suggestions?
    >
    Thanks,
    Doug
    >

  • Is there a API in flex to validate given IPV6 input is valid?

    Hi,
    I am trying to validate the given IPv6 input is valid or not. Is there an API available in flex which will help in doing this?
    Thanks

    By subordinate if you mean, all users for which the given user is a manager ? ? If that is the case the use the following:
                   Hashtable mhSearchCriteria = new Hashtable();
                   mhSearchCriteria.put("Users.Manager Login", "managerUserLogin");
                   tcResultSet moResultSet = moUserUtility.findUsers(mhSearchCriteria);
    If you want something else, let me know.
    Thanks
    Sunny

  • Help needed in migrating Flex 2 application to Flex 3

    Hi All,
    We are in process of migrating a working Flex 2 application
    to Flex 3.
    There were no compilation errors when application was
    compiled with Flex 3 SDK. But when we start the application, it
    throws a script timeout error:
    Error: Error #1502: A script has executed for longer than the
    default timeout period of 15 seconds.
    at
    mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[C:\autobuild\3.2.0\framewo rks\projects\framework\src\mx\managers\layoutClasses\PriorityQueue.as:214]
    at
    mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:915]
    at
    mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\m x\core\UIComponent.as:5679]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\ frameworks\projects\framework\src\mx\core\UIComponent.as:5715
    at mx.controls::TextInput/get
    baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\TextI nput.as:408]
    at
    mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\containers\FormItem.as:913]
    at
    mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:6351]
    at
    mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\core\Container.as:2677]
    at
    mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
    at
    mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:677]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at
    mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
    at
    mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
    The application is taking a huge time to 'validate' each
    component in the UI and each time we observe a timeout at different
    UI component.
    Few observations from our end:
    1. The application is very straight forward and only thing
    complex in it is UI layout. There are a few of complex layouts,
    viewstacks and datagrids used.
    2. The ‘creationPolicy' at application level has been
    set to 'All' because of design. This although is not a standard
    practice but this does not help us because the same application
    compiled with Flex 2 used to load successfully.
    If anybody has faced a similar issue and has some suggestions
    please do give us pointers. Otherwise we are left with a lengthier
    option of re-factoring the application so that creation policy
    defaults to 'auto' and modify the application design.
    Thanks in advance,
    Sujatha

    Hi All,
    We are in process of migrating a working Flex 2 application
    to Flex 3.
    There were no compilation errors when application was
    compiled with Flex 3 SDK. But when we start the application, it
    throws a script timeout error:
    Error: Error #1502: A script has executed for longer than the
    default timeout period of 15 seconds.
    at
    mx.managers.layoutClasses::PriorityQueue/removeSmallestChild()[C:\autobuild\3.2.0\framewo rks\projects\framework\src\mx\managers\layoutClasses\PriorityQueue.as:214]
    at
    mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:915]
    at
    mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\m x\core\UIComponent.as:5679]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\ frameworks\projects\framework\src\mx\core\UIComponent.as:5715
    at mx.controls::TextInput/get
    baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\TextI nput.as:408]
    at
    mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\containers\FormItem.as:913]
    at
    mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:6351]
    at
    mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\core\Container.as:2677]
    at
    mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
    at
    mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:677]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at
    mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
    at
    mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
    The application is taking a huge time to 'validate' each
    component in the UI and each time we observe a timeout at different
    UI component.
    Few observations from our end:
    1. The application is very straight forward and only thing
    complex in it is UI layout. There are a few of complex layouts,
    viewstacks and datagrids used.
    2. The ‘creationPolicy' at application level has been
    set to 'All' because of design. This although is not a standard
    practice but this does not help us because the same application
    compiled with Flex 2 used to load successfully.
    If anybody has faced a similar issue and has some suggestions
    please do give us pointers. Otherwise we are left with a lengthier
    option of re-factoring the application so that creation policy
    defaults to 'auto' and modify the application design.
    Thanks in advance,
    Sujatha

  • Passing null/empty values from Flex to a Coldfusion ORM object

    This is the situation.
    If you have an actionscript VO that binds to a Coldfusion ORM object via the RemoteClass metadata and some of the values are not set, null, or empty strings and you pass it from Flex to Coldfusion then the Coldfusion deserialization barfs saying the values are not acceptable date values (for type="date") or valid emails (for validation="email") or other such validations, even if required="false" on the property.
    For instance, if you have the following actionscript VO:
    package vo
        [RemoteClass(alias="com.companyname.Person")]
        [Bindable]
        public class Person
            public var person_id:Number;
            public var last_name:String;
            public var first_name:String;
            public var email:String;
            public var created_date:date;
         public function Person() {}
    And you have the corresponding Coldfusion component:
    <cfcomponent displayname="person" output="false"
        alias="com.companyname.Person"
        schema="dbo" persistent="true"
        table="PERSON">
        <cfproperty name="person_id" type="numeric" fieldtype="id" validate="integer" required="true" column="PERSON_ID"/>
        <cfproperty name="last_name" type="string" column="LAST_NAME" required="true"/>
        <cfproperty name="first_name" type="string" required="true" column="FIRST_NAME"/>
        <cfproperty name="email" type="string" validate="email" required="false" column="EMAIL"/>
        <cfproperty name="date_created" type="date" required="false" column="DATE_CREATED"/>
    </cfcomponent>
    Then if you pass the actionscript VO as is to Coldfusion, the deserialization complains that you do not have a valid email or a valid date for date_created.  This is bad, bad, bad.  Essentially if you have a validation of certain types (email being one) or a date property, or probably some other cases, then you essentially can not make it not required, it automatically makes it required because the Coldfusion serializer considers null/empty values as invalid dates or emails.  But the serializer should not care for values that are not required, there has to be a way to pass null/empty values to these data types, but apparently there's not.  If you pass an empty string ("") you still have the same problem.  I know Coldfusion does not have null values, but there has to be a way to do this, otherwise it defeats the purpose of having required="false" and some kind of validation on the property.
    There seems to be two ways around it.  One is to override the implicit setters for the properties on the Coldfusion side and check for 0 length values yourself, then set the property if it is not, or create your own validation routine.  I ended up creating my own validation function since I didn't want to have to write a setter function for everyone of these cases and I can pass back user friendly validation messages.
    Have other people encountered this problem?  How have you gotten around it?  Thanks.

    Looks like a known workaround to this issue is to wrap the Flex object in an array.
    The ColdFusion CFC will accept that as an array, with the first an only element being a struct, which is the object you built in Flex.

  • How to validate multiple controls using a single Validator?

    I am trying to do an HourValidator because Flex doesn't have
    this, so i am extending from the Validator class. I read in the
    Creating and extending Flex components document the
    following:
    "A validator can validate more than one field at a time. For
    example, you could create a custom
    validator called NameValidator to validate three input
    controls that represent a person’s first,
    middle, and last names.
    To create a validator that examines multiple fields, you can
    either define properties on the
    validator that let you specify the multiple input fields, as
    does the Flex DateValidator class
    class, or you can require that the single item passed to the
    validator includes all of the fields to
    be validated."
    So according to the document i need to define properties so i
    defined 4 properties:
    startHourSource: the input control containing the starting
    hour
    startHourProperty: the control's property (in this case the
    text property)
    endHourSource: the input control containing the end hour
    endHourProperty: the control's property (in this case the
    text property)
    The thing is that when i call the doValidation of the
    superclass (to validate the required property) it does return a
    validation error but it doesn't mark the input control with the red
    frame that indicates there's a validation error. I assume that is
    because the
    source and
    property properties of the validator are null but that's ok
    because i am not using them, instead i am using the 4 properites
    mentioned above.
    So what do i need to do or override so the red frame appears
    in the input controls??

    Yeah i already know that, but when you use the doValidation
    method, which does the requiredField validation, by default marks
    the input control with the red frame, so that's why i am trying to
    do, doing it so it will do it by default.
    For example, try this:
    <mx:TextInput id="test"/>
    <mx:Validator id="validateTest" source="{test}"
    property="text" required="true" requiredFieldError="The field is
    empty"/>
    If you do
    validateTest.validate( ) and the textinput is empty, it will
    mark it with the red frame by default, that's the kind of behave i
    want for my HourValidator, but if it is not possible then the
    solution you suggested would be the only one to do this.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

  • Flex 4.5 webtier settings

    Hi All,
    I am migrating from flex 3.2 to flex 4.5.
    My flex project contains the flex webtier to compile the project on server.
    I have resolve all the comiler errors of flex 4 but when i deploy a war on Jboss server it's not get compiled.
    Is their any way to generate the webtier in Flash builder 4.5.I am using flah builder 4.5 as a plugin in eclipse.
    I tried to update flex webtier manually by replacing the flex 4 sdk jars and swc.
    Updated flex-config.xml accorfing to the flex 4 sdk.
    I didn't find the latest flex-bootstrap.jar according to flex 4.5 which will validate the flex 4 flex-config file for new tags.
    when i tried to deploy on server i get errors for folloting tags which are not supported
    <omit-trace-statements>
    <runtime-shared-library-path>
    <remove-unused-rsls>
    My web.xml contains follwing entries
    <servlet>
                <servlet-name>MessageBrokerServlet</servlet-name>
                <display-name>MessageBrokerServlet</display-name>
                <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
                <init-param>
                    <param-name>services.configuration.file</param-name>
                    <param-value>/WEB-INF/flex/services-config.xml</param-value>
                </init-param>
                <init-param>
                    <param-name>flex.write.path</param-name>
                    <param-value>/WEB-INF/flex</param-value>
                </init-param>
                <load-on-startup>1</load-on-startup>
            </servlet>
         <servlet>
            <servlet-name>FlexMxmlServlet</servlet-name>
            <display-name>MXML Processor</display-name>
            <description>Servlet wrapper for the Mxml Compiler</description>
            <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
            <init-param>
                <param-name>servlet.class</param-name>
                <param-value>flex.webtier.server.j2ee.MxmlServlet</param-value>
            </init-param>
            <init-param>
                <param-name>webtier.configuration.file</param-name>
                <param-value>/WEB-INF/flex/flex-webtier-config.xml</param-value>
            </init-param>
           <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>FlexSwfServlet</servlet-name>
            <display-name>SWF Retriever</display-name>
            <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
            <init-param>
                <param-name>servlet.class</param-name>
                <param-value>flex.webtier.server.j2ee.SwfServlet</param-value>
            </init-param>
            <!-- SwfServlet must be initialized after MxmlServlet -->
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>FlexForbiddenServlet</servlet-name>
            <display-name>Prevents access to *.as/*.swc files</display-name>
            <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
            <init-param>
                <param-name>servlet.class</param-name>
                <param-value>flex.webtier.server.j2ee.ForbiddenServlet</param-value>
            </init-param>
        </servlet>
        <servlet>
            <servlet-name>FlexInternalServlet</servlet-name>
            <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
            <init-param>
                <param-name>servlet.class</param-name>
                <param-value>flex.webtier.server.j2ee.filemanager.FileManagerServlet</param-value>
            </init-param>
            <load-on-startup>10</load-on-startup>
        </servlet>
    Thanks,
    Amol.

    Flex 4.5 doesn't officially support iOS.  Make sure you are using Flex 4.5.1 which adds support for iOS and BlackBerry Tablet OS platforms.
    Yes iPhone 3GS is the minimum requirement.

  • Oracle apps R12.1.3 Key Flex fields not retrieving Data Automatically

    Dear All,
    I have developed a custom form with 10G forms in R12.1.3 version,
    i have attached the Stock Locator Flex field to one of the column i am able to attach the KFF but no values are returning in that ,
    it always says no exsisting combination
    Pls find below how i am calling the Flex field
    FND_KEY_FLEX.DEFINE(
    block => 'TNV_DEMO_SO_SERIAL_INFO_V',
    Field => 'LOCATOR_KFF_ID',
    Description => 'LOCATOR_KFF_DESC',
    ID => 'LOCATOR_ID',
    autopick => 'Y',
    Appl_short_name => 'INV',
    Code => 'MTLL',
    Num => '101',DISPLAYABLE => 'ALL',
    VRULE => '\\nSUMMARY_FLAG\\nI\\nAPPL=INV;NAME =INV_VRULE_POSTING\\nN',
    VALIDATE=>'FULL',
    QBE_IN=>'Y',
    DERIVE_ALWAYS=>'Y',
    updateable => '');
    Pls suggest.

    yes i have used template.fmb only , and am using FND_KEY_FLEX.DEFINE as i mentioned earlier ,
    i have not given any where clause -- should we give any where clause to retrieve the data into the combinations(LOV)?It depends on what values you want to retrieve.
    i mean my requirement is if i give % and press tab all the valid combinations should be displayed.
    its showing no entries found.Did you review 420787.1 referenced above?
    Thanks,
    Hussein

  • How to validate concurrent program parameter and display a custom message?

    Hi Friends,
    I have a concurrent program which has two non-mandatory parameters.
    The requirement is that user should provide value for any one of the parameters.
    If user does not enter value for both the parameters, i need to display a custom error message.
    Parameter1 has an independent value set.
    Parameter2 has character value set with validation type as special.
    Process i tried so far:
    In the value set for the second parameter, under the Validate event, i have written the following code:
    FND PLSQL "declare
    l_paramb VARCHAR2(20) := :!VALUE;
    l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
    BEGIN
    IF 1 = 1  THEN
    fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
    fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
    fnd_message.raise_error;
    END IF;
    END;" I am not using those variables that are defined for the time being.
    Now since the condition 1=1 is always satisfied, i should always receive the error message.
    I am not receving any error message and i can go ahead and submit the program..
    Please advise on where am i going wrong.
    Reports Version - 6i
    Oracle Apps Version - 11.5.10.2
    Regards,
    Sreekanth Munagala

    Hi srrekanth,,
    I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
    Can you pl provide solution.

  • Flex validation in Java

    I am using a product called Crystal Xcelsius to design and
    develop dashboards for banking customers. The product using Flex
    controls with an Excel spreadsheet to show data. It then supports
    data connections to refresh or update that data. After setting all
    this up, it compiles it down to a Flash (SWF) file that can be
    delivered to our client.
    On the client's machine, the SWF file is loaded into a
    database and then served up to the users as needed. Also loaded
    into the database are the SQL queries which will be used to provide
    the data needed to refresh the connections.
    These SWF files and queries can be provided by us, but we
    also let our clients use Xcelsius to create their own and then
    upload them into our application. What I am looking for is a way to
    validate the SWF file as part of the import process. Specifically,
    since they are providing an SWF and a set of queries with
    connection names and range names, I want to parse the SWF file and
    make sure that the data connections in the SWF file match the
    queries that they have provided with the SWF file. I want to make
    sure that all connections in the SWF file have queries provided,
    and that there are no queries that were provided which don't map to
    connections in the SWF file.
    I can take care of the mapping, the part I don't know about
    is getting the list of connections specified in the SWF file. Since
    the server that is importing these files is running Java, are there
    any Java components or libraries I can use to look into a SWF file
    and get the list of data connections in the file?
    Any help, thoughts, or suggestions would be appreciated.
    -Benjamin

    James,
    If you want client-side validation you must use vbscript or preferrable javascript.
    To do client-side validation in your get or post method use java to validate the incoming paramters.
    By the way if you move to a jsps/struts/jsf environment you'll get more help from the system in dealing with these kinds of problems. Developing sizable applications using only servlets will be very difficult.

  • Flex Mobile textinput

    Hi, I type from Brazil,
    Please I need example textinput with mask for Flex Mobile,
    Thank's

    Friend, I could not, the code for FlexMobile
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:mx="library://ns.adobe.com/flex/mx">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.ValidationResultEvent;
                                  import spark.events.TextOperationEvent;
                                  private var validResult:ValidationResultEvent;
                                  protected function button1_clickHandler(event:MouseEvent):void
                                            validResult= phValidator.validate();
                                            if (validResult.type == ValidationResultEvent.VALID)
                                                      readyNum.text=phFormatter.format(phNum.text) ;
                                            else
                                                      readyNum.text="";
                                  protected function phNum_changeHandler(event:TextOperationEvent):void
                                            if(phNum.text.length >9)
                                                      validResult= phValidator.validate();
                                                      if (validResult.type == ValidationResultEvent.VALID)
                                                                phNum.text=phFormatter.format(phNum.text);
                                                      else
                                                                readyNum.text="";
                                            else
                                                      readyNum.text= "";
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <mx:PhoneFormatter id="phFormatter" formatString="####-####" validPatternChars="#-() "/>
                        <mx:PhoneNumberValidator id="phValidator" property="text" source="{phNum}"  allowedFormatChars=""/>
              </fx:Declarations>
                                  <s:TextInput id="phNum" x="83" y="25" width="274" text="(###) ###-####" change="phNum_changeHandler(event)"/>
                                  <s:TextInput id="readyNum" x="83" y="66" width="274" editable="false" text=""/>
              <s:Button x="33" y="167" width="74" click="button1_clickHandler(event)"/>
    </s:View>
    Thanks.

  • How to use LDAP validations in flex

    Hi All,
    I am working with Flex 2.0. in my application i have to
    validate the controls of LDAP. Suppose if i enter wrong dn in a
    textInput field it has to show the alert message.
    please give some suggestions how to validate the ldap
    controls within flex application.
    Thanks,
    Raga

    Hi
    Here I am placing the syntax and example
    syntax:
    movieclip.gotoAndPlay("framelabel");
    example:
    mc1.gotoAndPlay("intro");
    for further details:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
    If this post answers your question of helps. Please mark it as such

  • Doubt in createing forms in flex ?

    hai all,
    i have doubt in creating forms in flex, how can we validate phone number in form and can we have any script for predefined calender to select date for date of birth. plz help by attaching some references,
              one more doubt how to create my UI(user interface) with good look with dropdown menus and incoprate graphics like .gif,.swf tables ect plz forword or attach some references plz do it fast it very urgent

    Hi,
    Try to use page protection in the Folder. 
    Create a Folder in the Main Area of the table and check the Page Protection Option.  Include all your Line types (Row types) in this folder.
    It will avoid page break and display the records in a set.
    Reward if useful........

  • [svn:bz-4.0.0_fixes] 20651: Some MBean tests needed flex.management. jmx stuff in the allow classes list for the class deserialization validator so adding it in on BlazeDS 4 .0.0_fixes.

    Revision: 20651
    Revision: 20651
    Author:   [email protected]
    Date:     2011-03-07 12:21:11 -0800 (Mon, 07 Mar 2011)
    Log Message:
    Some MBean tests needed flex.management.jmx stuff in the allow classes list for the class deserialization validator so adding it in on BlazeDS 4.0.0_fixes.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.validat ors.xml

    Thank you very much!
    I cant believe this little comment has been so helpful!
    But yes it is:
    I explain, despite my efforts to find, googled it, forums, faqs, etc...
    no where it mentionned the manifest.fm file is... INSIDE the .jar!
    Your comment "a zip" made me attempt to open it with winrar, and I found a manifest.fm file inside!
    So far I was editing the one at the "source" of my project and rebuilding it with netbeans.
    I am going to try that now.
    Actually.... :( no its mentionning my main class!
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.0
    Created-By: 10.0-b19 (Sun Microsystems Inc.)
    Main-class: courseworkjava3d.Simple3D
    Class-Path:
    X-COMMENT: Main-Class will be added automatically by buildWell I have no problems uploading you the .jar, it is for a coursework it is not a private project or whatever:
    http://www.uploading.com/files/CM2LKWYU/BetaCourseworkJava3d_Final.jar.html
    Oh and I felt on your comment "dont ask us" as if I was suppose to know... i'm a beginner, I did not know that! And I tried to give you so many infos so you dont lose your time if you want to help, especially as after my own research I found many, many results for this "main class" and I tried a few solutions!
    Edited by: CupofTea on Apr 13, 2008 3:28 AM

Maybe you are looking for

  • PAR files and jsp pages into NWDS

    Hi, I need to modify transactions from the MSS 50.x package, i.e. HR transactions. I need to delete some fields on the screens. The sysadmin was giving me a par file com.sap.pct.hcm.attendanceoverviewperiod.par.bak But when I import the par file into

  • ? about image resolution/color correction when apple prints photo book

    My first time making a photo book. I color correct and sharpen all of my images in Adobe Lightroom 2 first. Then I save the jpegs and import into iPhoto to make a book. Is there an option for turning off auto color correction when the file is uploade

  • What is testing process

    hi smarts what is what is testing process..please e-mail;[email protected] guna

  • Add Infotype 77 on ESS Screen

    Hi, I am supposed to create the Infotype 77 screeen in WD Java and add it under ESS Personal Info. I do have knowledge in Webdynpro Java but am not updated on FPM. Can some one let me know step by step procedure to accomplish this. Also I believe the

  • Can't see context menus (right click, or "Firefox button" menu)

    Recently my Firefox hasn't been letting me see right click menus. It only happens in Firefox, and will still let me use keyboard shortcuts (such as pressing 'T' after right clicking on a link to open it on a new tab). I thought maybe it was one of my