How to get the phone for example number zero. 0612345678

Dear Adobe Flex Builder Professional,

I have a problem with getting the phone for example number zero. 0612345678

If I get the phone number following as input:

0612345678

I'll get the phone number in output:

612345678

The application was written in Adobe Flex Builder 3.

The code in the MXML file is:

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Canvas xmlns:mx = "http://www.adobe.com/2006/mxml"
creationComplete = "init ()" "
horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >

< mx:Metadata >
[Event (name = "customerSaveEvent", type = "events. CustomerEvent")]
[Event (name = "customerCancelEvent" type = "flash.events.Event")]
< / mx:Metadata >

< mx:Script >
<! [CDATA]
Import util.ComboBoxUtil;
Import mx.controls.Alert;
How to import events. CustomerEvent;
Import mx.collections.ArrayCollection;
Import mx.core.Application;
Import valueObject.Customer;
Import mx.validators.Validator;
Import mx.validators.PhoneNumberValidator;

private var phoneCheck:PhoneNumberValidator;

[Bindable]
public var selectedCustomer:Customer;

private function init (): void {}
this.cretePhoneValidator ();
if(this.selectedCustomer == null) {}
this.clearForm (null);
}
}

private function cretePhoneValidator (): void {}
phoneCheck = new PhoneNumberValidator();
phoneCheck.source = phone number;
phoneCheck.property = 'text ';
}

private function validateForm (): void {}
var validatorList:Array = new Array (emailCheck, phoneCheck);
Validator.validateAll (validatorList);
}

private function cancelClickHandler (): void {}
var cancelManageCustomerObj:Event = new Event ("customerCancelEvent");
dispatchEvent (cancelManageCustomerObj);
}

private function saveCustomer (): void {}
validateForm();

var c:Customer = null;
var selCust:Customer = Application.application.selectedCustomer;

If (selCust! = null) {}
c = selCust;
} else {}
c = new Customer();
}
c.setLastName (lastName.text);
c.setFirstName (firstName.text);
c.setStreet (street.text);
c.setPostal (postal.text);
c.setCity (city.text);
c.setEmail (email.text);
c.setPhoneNumber (new Number (phoneNumber.text));
c.setMailing (mailing.selectedItem.data);
c.setComment (comment.text);
var changed: client = Application.application.customerService.createOrUpdate (c);

var customerEventObj:CustomerEvent = new CustomerEvent ("customerSaveEvent", modified);
dispatchEvent (customerEventObj);

this.clearForm (selCust);
}

private void clearForm(selCust:Customer):void {}
if(selCust == null) {}
this.lastName.text = "";
this.firstName.text = "";
This.Street.Text = "";
This.postal.Text = "";
This.City.Text = "";
this.phoneNumber.text = "";
This.email.Text = "";
this.mailing.selectedIndex = 0;
This.Comment.Text = "";
}
focusManager.setFocus (lastName);
}
[]] >
< / mx:Script >

<!-mx:EmailValidator id = "emailCheck" source = "{email}" = "text" property
trigger = '{save}' triggerEvent = ' click on ' /-->

< mx:Form id = "manageCustomerForm" >
< mx:FormItem label = "Achternaam:" >
< mx:TextInput id = text = "{selectedCustomer.getLastName ("lastName")}" / >
< / mx:FormItem >
< mx:FormItem label = "Voorletters:" >
< mx:TextInput id = text = "{selectedCustomer.getFirstName ("firstName")}" / >
< / mx:FormItem >
< mx:FormItem label = "Straat:" >
< mx:TextInput id = text = "{selectedCustomer.getStreet () ' street'}" / >
< / mx:FormItem >
< mx:FormItem label = "zip code:" >
< mx:TextInput id = text = "{selectedCustomer.getPostal ('post')}" / >
< / mx:FormItem >
< mx:FormItem label = "Stad:" >
< mx:TextInput id = "City" text = "{selectedCustomer.getCity ()}" / >
< / mx:FormItem >
< mx:FormItem label = "number:" >
< mx:TextInput id = text = "{selectedCustomer.getPhoneNumber ('Phone number')}" / >
< / mx:FormItem >
< mx:FormItem label = "e-mail:" >
< mx:TextInput id = "email" text = "{selectedCustomer.getEmail ()}" / >
< / mx:FormItem >
< mx:FormItem label = "" unstable: ">"
< mx:TextArea id = "comment" text = "{selectedCustomer.getComment ()}" "
width = "447" height = "144" / >
< / mx:FormItem >
< mx:FormItem label = "send:" >
< mx:ComboBox id = dataProvider = "{Application.application.comboBoxUtil.yesNo"mailing"} '"
selectedIndex = "{ComboBoxUtil.getIndex (selectedCustomer.getMailing ())}" / >
< / mx:FormItem >
< mx:HBox id = "manageButtonBox" >
< mx:Button id = "Save" label = "Opslaan" click = "saveCustomer ()" / > "
< mx:Button id = "resetButton" label = "Wis" click = "clearForm (null)" / > "
< mx:Button id = "cancelButton" label = "Annuleer" click = "cancelClickHandler ()" / > "

< / mx:HBox >
< / mx:Form >
< / mx:Canvas >

The code in the SQL file is:

create the customer table)
ID integer not null primary key autoincrement,.
lastName varchar (50),
firstName varchar (50),
Street varchar (50),
City varchar (50),
postal varchar (10),
Telephone INT number (10),
Email varchar (50),
sending Boolean default false,
Comment by varchar (255)
);

create table (treatment)
ID integer not null primary key autoincrement,.
Date Date,.
treatment varchar (255),
whole customerId not null,
constraint fk_customer foreign key (customerId) references customer (id)
);

create table (user)
ID integer not null primary key autoincrement,.
loginName varchar (50) not null,
lastName varchar (50) not null,
firstName varchar (50) not null,
password varchar (50) not null,
Active Boolean true not null default,
accessright varchar (10) not null
);

create table (of the order of the day
ID integer not null primary key autoincrement,.
whole userId not null,
Date Date,.
time integer,
full minute,
Description varchar (50),
constraint fk_user foreign key (userId) references user (id)
);

create table (license)
ID integer not null primary key autoincrement,.
key varchar (50),
Val varchar (50)
);

I hope someone can help me with this problem.

Hi Buxsnl,

I think that I already gave the answer in my previous post. But think that you have not implemented it.

The threshold of the code is not necessary...

m:System.NET.SocketAddress.ToString (), c.setPhoneNumber (new Number (phoneNumber.text));

Instead you can replace it with the below a...

c.setPhoneNumber (phoneNumber.text);

and the function setPhoneNumber() in your client class must be less to:

public void setPhoneNumber(phoneNumber:String):void

{

//

}

Can send you the code to your client class... ??

Thank you

Jean Claude

Tags: Flex

Similar Questions

  • How to get the phone in ongoing call screen

    It is a follow-up on the menu of the phone not shown thread.

    I checked with the KB and found an interesting topic: How - to upgrade a screen on the main event Thread

    My original question (as can be seen in the thread has already been mentioned) was to know how to draw something on the screen of the phone.

    Example:

    (1) a user accepts a call.

    (2) my application implements PhoneListener and in callConnected() just draws a picture on the top of the phone application

    (3) all the features of the phone (menu of the phone for example) are preserved.

    The article mentioned shows that it is possible to draw something on a screen.

    How can I get an instance of the phone screen?

    Here is my proposal (but it does not work):

    public void callConnected(int arg0){ UiApplication.getUiApplication().invokeLater(new Runnable()        {
    
                public void run()            {                Screen screenName = UiApplication.getUiApplication().getActiveScreen();                //Perform screen changes here.                Graphics g = screenName.getGraphics();                g.setColor(0xFF8080);                g.fillRect(10, 10, 100, 100);                //Calling invalidate() on your screen forces the paint                 //method to be called.                 screenName.invalidate();            }        }); }
    

    How to make the getUiApplication() to pick up the phone?

    Do you ever feel like you're talking to yourself ?

    That's what I had:

    //Calling invalidate() on your screen forces the paint                 //method to be called.                 screenName.updateDisplay();                //screenName.doPaint();                //screenName.invalidate();
    

    Why the work of updateDisplay doPaint (as well as his brothers and sisters invalidate()) does not work?

    But, alas, my efforts have been in vain.

    The 'red square' disappears when something is painted on them -ruins it a bit.

    So, I guess, my quest continues.

    Someone has an idea how draw a persistent image on the VoiceApp and always to enable all the features of VoiceApp (menu, for example)?

  • How to get the password for my blackberry BlackBerry Smartphones?

    Hello everyone,

    I would like to know how to get the password for the purpose of activation. My phone is blackberry bold 9700...

    Thank you

    You must call your network and they will advise you the plans they have. There is usually a monthly for the BIS service, which includes the internet aswell.

    Once this is done, your phone will be automatically the personal e-mail address of installation option.

    I hope this helps.

  • How to get the smartlist for calcscript text

    Hello

    How to get the smartlist for hyperion planning 11.1.1.3 calcscript and calcscript tx example text

    Rgds

    Uka fp

    Published by: uka firman on November 25, 2010 10:35

    I think that ENUMTEXT is purely essbase and MDX to retrieve the value of text against the essbase text measures that are not the same as planning for the smart lists.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to get the manual for Satellite Pro 4200?

    How to get the manual for Pro 4200. I have download olm_up and setup.exe (72 kt) of http://eu.computers-toshiba-europe.com?.

    Hello

    Please visit this link:
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_manuals.jsp

    I m you will find a good manual of your device.

    Good bye

  • I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin

    original title: admin password.

    I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin

    Hello
    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the sticky below.

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • How to get the phone and messages back in my dock apps? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    How can I get the phone and messages apps in my dock? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    Try

    Settings > general > reset > reset home screen presentation.

    Note: All other applications will be organised by alphabetical order.

  • Windows vista Home premium recovery question - how to get the source for windows vista home edition premium as the recovery does not work since the recovery partition

    How to get the source to windows vista Home premium recovery is not from the recovery partition and gives me an error message

    Hello

    Contact the computer manufacturer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • How to get the license for Adobe Edge?

    Hello

    My Adobe Edge trial expires and I would like to know how can I get the license for the software that I can't find anything on the Adobe Web site.

    Thanks in advance.

    All the apps you plan should have.

    https://creative.Adobe.com/plans

  • How to get the PIN for the bb device number

    Hi all, I want to get the ID of device bb, how to get it thanks to all

    Integer.toHexString (DeviceInfo.getDeviceId ()) .toUpperCase)

  • How to get the report for the set items

    I created an element defined for all payments that are made to the employee. Now I would that these elements that are there in the element the value to display in a separate report and not in my payslip. How can I do this? Please can you tell me the names of the tables where I can get the required data?


    Appreciate all your help!

    Try this query

    SELECT ppf.employee_number "Employee Number",
              petf.element_name "Element Name",
              to_number(prrv.result_value) "Amount"
    FROM per_all_people_f ppf,
            per_all_assignments_f paf,
            pay_element_types_f petf,
            pay_assignment_actions paa,
            pay_payroll_actions ppa,
            pay_input_values_f pivf,
            pay_run_results prr,
            pay_run_result_values prrv,
               pay_element_type_rules petr,
               pay_element_sets pes
    WHERE  ppf.person_id = paf.person_id
    AND    petf.element_type_id = prr.element_type_id
    AND    pes.element_set_id = petr.element_set_id
    AND    pes.element_set_name = :Element_Set_Name
    AND    petr.include_or_exclude = 'I'
    AND    petf.element_type_id = petr.element_type_id
    AND    paf.assignment_id = paa.assignment_id
    AND    ppa.payroll_id = paf.payroll_id
    AND    paa.payroll_action_id = ppa.payroll_action_id
    AND    ((:pmon IS NULL AND :pyear IS NULL) OR TO_CHAR(ppa.date_earned,'MONYYYY') = TO_CHAR(UPPER(:pmon)||:pyear))
    AND     paa.assignment_action_id = prr.assignment_action_id
    AND    prr.run_result_id = prrv.run_result_id
    AND    pivf.element_type_id = petf.element_type_id
    AND    prr.element_type_id = petf.element_type_id
    AND    pivf.input_value_id = prrv.input_value_id
    AND    ppa.effective_date BETWEEN petf.effective_start_date AND petf.effective_end_date
    AND    ppa.effective_date BETWEEN pivf.effective_start_date AND pivf.effective_end_date
    AND    ppa.effective_date BETWEEN paf.effective_start_date AND paf.effective_end_date
    AND    ppa.effective_date BETWEEN (to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') ) AND last_day(to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') )
    AND    (to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') ) between ppf.effective_start_date AND ppf.effective_end_date
    AND    pivf.name ='Pay Value'
    ORDER BY to_number(ppf.employee_number) ,ppf.person_id,petf.element_name
    

    This query gives the values of outcome performance of the elements in the set of elements.
    HTH

  • How to get the symbol for ´´yens´´

    The symbol for ´´yen´´ is no longer in the 10.0.2 IOS and it is part of my code to open my ipad air 2. Instead, Apple made some changes in the keyboard and included our symbol of the currency of Costa Rica. How can I get?

    On the on-screen keyboard, press the '123' button, then press "#+=" and you should see the Yen sign (A Y with a sign = top)

  • How to get the recovery for Satellite L100 bought in China cd?

    I just buy a satellite L100 in China, the language of windows is Chinese... How can I change the language to Chinese to English on my windows. Or how can I get thecd recovery for satellite L100 innglish language... Thank you...

    Hi Santo

    If you use the advanced search of this forum you will find a lot of comments on a similar theme!

    In any case, I'll explain it once more ;)
    Usually the recovery CD, you can get the Toshiba ASP. BUT you bought the laptop in China. In this case you will not be able to order the CD image of Toshiba in the English language. You can only get a restore CD in the same language, where you bought the laptop.

    But if you want to have the English language operating system, install the Windows from the original CD of Microsoft English.
    You can download Toshiba drivers and utilities form the Toshiba site and install it.

  • How to get the license for end user to the BT stack?

    How can I get a license of end-user for BT stack worm 5?

    Thank you!

    Talk with the manufacturer of the BT device. If you use the BT device with software Toshiba BT they should help you to get the update.

Maybe you are looking for

  • Help me get back my iTune library

    Hello I lost my mac mini 2009 with my library of more than 3,000 titles iTune. For now, I have an old Dell with Windows 7 and iTunes. I still have access to my iTune and iTune Store account, but I have nothing left to synchronize. My external drive b

  • Why my Windows Firewall keep turn off briefly?

    I just launched a recovery on Pavilion Media Center TV m7470n desktop my father, which has restored XP Media Edition 2005 SP2. I then installed SP3 and use Windows Update to get the latest updates. The system now works fine, but from time to time, I

  • access to all CBS

    Thinking about buying the new Apple TV, I want to be sure that I will be able to watch CBS all access to this topic.  Can someone tell me if the CBS app is available on the Apple TV?  Thank you!

  • voice call blocking the g motorcycle problem

    voice of incoming and outgoing call is blocked in bike G. This problem occurs frequently. You need to restart the phone again and again to rectify the problem. It is a very serious issue with bike G. Please suggest its permanent attachment.

  • high-definition audio Sigma's usage but no sound.

    high-definition audio Sigma has check mark green and in-use bu if I test sounds there is no sound what so ever... Why?