Extended component cannot save data

Hi All,
I am attaching an extended texInput component to allow only numbers and format the number with 2 decimals, also to manage the actual value in different option than text display.
I can assign the value using text or realValue options.
At the time of passing data from my extended component thru remote object it doesn't pass the data.
<mx:method name="addNew" result="addNew_RO_Handler(event)">
            <mx:arguments>
                <number_id>{myField.realValue}</number_id>
When I debug, I can see the value:  realValue = 6565 [0x19a5]
In my method arguments shows as NaN.
Any ideas?I am sure something simple is missing.
Thanks
JFB
<?xml version="1.0" encoding="utf-8"?>
<mx:TextInput xmlns:mx="http://www.adobe.com/2006/mxml" textAlign="right" creationComplete="init()" >
    <mx:Script>
        <![CDATA[
            import mx.controls.listClasses.*;
            import mx.formatters.NumberFormatter;
            private var _realValue:Number;
            private const POSITIVE_COLOR:uint = 0x000000; // Black
            private const NEGATIVE_COLOR:uint = 0xFF0000; // Red
            private function init():void
                //init code
                super.restrict = '0-9\.\\-';
            private function formatDecimal(val:Number):String
                var decimalFormatter: NumberFormatter = new NumberFormatter();
                decimalFormatter.rounding = 'nearest';
                decimalFormatter.precision = 2;
                decimalFormatter.useNegativeSign = false;
                return decimalFormatter.format(val);
            public function set realValue(value:Number):void
                //Set real value
                _realValue = value;
                // format the number here
                super.text = formatDecimal(_realValue);
                dispatchEvent( new Event('realValueChange') );
            [Bindable(Event='realValueChange')]  
            public function get realValue():Number
                //Return component text real value
                return _realValue;
            override public function set text(value:String):void
                _realValue = Number(value);
                // format the number here
                super.text = formatDecimal(_realValue);
            override protected function focusInHandler(event:FocusEvent):void
                //Update component text real value
                super.text = _realValue.toString();
            override protected function focusOutHandler(event:FocusEvent):void
                //Check if the source is blank
                if (event.target.text == '')
                    _realValue = 0;
                else
                    _realValue = Number(event.target.text);
                //Update component text value
                super.text =  formatDecimal(_realValue);
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                // Set the font color red for negative numbers
                setStyle('color', (_realValue < 0) ? NEGATIVE_COLOR : POSITIVE_COLOR);
        ]]>
    </mx:Script>
</mx:TextInput>

Try changing
override public function set text(value:String):void
                _realValue = Number(value);
                // format the number here
                super.text = formatDecimal(_realValue);
to
override public function set text(value:String):void
                realValue = Number(value);

Similar Messages

  • I cannot save data typed into an Adobe form sent to me..??

    I have been sent an Adobe Form that is a Tender Document that I need to complete.  When I open the Document is states in the top left-hand corner the following...."Please fill out the following form.  You cannot save data typed into this form. 
    Please print your completed form if you would like a copy for your records."
     

    What does the creator of the file need to do to make the form fillable? OR is there a program Bob8527 can download to fill in the form and email?
    Please advise.
    Thanks

  • You cannot save data typed into this form

    Hi,
    I created a small interactive form using transaction SFP and I included this form into a WDA application.
    The data I am pushing from the system into the form is visualized, but there is also an error message stating:
    You cannot save data typed into this form.
    Please print your completed form if you would like a copy for your records.
    At first I thought something was wrong with my credentials, but after requesting new credentials this message still appears.
    Does anybody know what is causing this message and how I can fix it?
    Thanks
    Mario

    Hi.
    1. Are you able to generate an interactive form with the save option through a report program or by WDJ or were you able to view an interactive form by any means with your current credential configuration -> i am asking this coz eventhough you have the right credential, cases can be that it is not properly installed. (check out the standard WDA examples)
    2. try using ZCI and xACF layouts. (for ZCI generate the scripts)
    3 . Check if the form properties is set to interactive form.
    4. Check if you have the generated xml in the interface of your form.
    Hope you have checked these already.
    Rgds,
    Anto.

  • Why do some people get "you cannot save data typed into this form" using FormsCentral fillable PDF?

    Hello.  We're using FormsCentral extensively.  We create the fillable PDF and send it to about 80 people.  Each of them is adding content and saving and then passing on to another person for further content.  Ultimately, all parties are happy with the content and submit.  The problem is that some of the people open the PDF and get the message ""you cannot save data typed into this form".  What is causing this?  Please help as it is causing us many problems.

    Thanks for the quick response.  We distribute the form to 80 people who fill it out and create 80 versions.  They then pass the form to one other person who edits.  All 80 forms, once complete, are submitted to FormsCentral.
    I think the problem is with Mac users.  Is there anything unusual about the Mac with Adobe Reader?  If you provide your email address, I can send you one of the filled out forms that is having this issue.  It's quite odd in that the fillable fields don't show up until clicked on and the form is not saveable.
    Thanks!

  • Cannot save data in form create in acrobat

    We have a form created in Acrobat 9 pro and it is setup so that it can be filled out and saved in Adobe Reader 11. We use this form on our small business domain and most of the time the form will save but lately we see an error that tells us very little just "Unexpected Error Occurred" and then no matter what you do you cannot save the form data. It's setup with a master form, then they save it individually by a new name. When this error occurs we just can't save it, nor can we print it! It's as if the data isn't there any more. I'm not sure what is happening but was wondering if anyone has had any experience with this.

    Hi,
    First of all, check the PDF producer of your form. Open Form in Acrobat -> Go to File -> Properties -> Look for PDF Producer in "Description" (Tab).
    1. If your form is created by Acrobat then Reader XI should be able to save the form.
    2. If it is created by LC Designer then you need extend the rights for Reader in the form.
    For Acrobat 9 Pro --
    Go to Advanced > Extended Features in Adobe Reader
    Regards,
    Anoop

  • I cannot save data on a pdf on my tablet since most recent update

    I use Adobe reader on my Galaxy Note 8 to do audits. I fill in with forms with stylus. Since the update I cannot save any data to forms. The "Save" button, previously in upper right hand corner of screen, is gone. There is only a check mark on the screen. I thought that was to save, but it doesn't work.

    "Stylus mode" -- Are you referring to the "Freehand" annotation tool?  It is available regardless of whether you use a stylus or not.
    In the previous version, the Freehand annotation toolbar looked like this.
    The Save button above is used to commit a particular annotation change.  Please note that it does not save other changes (e.g. filling out form fields) that have been made to a PDF document.
    In the latest version 11.4, it now looks like this.
    Once you add a Freehand annotation to a PDF document, you can tap the checkmark icon to commit the change.  Do you see the change that you've just made on a page? 
    Are any changes (not just addition of Freehand annotations) lost once you close the PDF document?
    If none of the changes you've made have been saved automatically, it is highly likely that you encountered a known problem in Adobe Reader for Android.
    Your PDF document is locally stored on an external SD card (not internal storage).
    Your Android OS version is 4.4 (KitKat).
    Adobe Reader cannot save any changes to the files on an external SD card due to the major Android OS changes to SD card permissions on KitKat.  We are still working on fixing the problems.  In the meantime, please copy the files from your external SD card to your device's internal storage (e.g. /storage/emulated/0/Documents/...) using a File Manager/Browser app or use a cloud storage service (Acrobat.com, Dropbox, Google Drive, etc.) to store files.
    Please let us know if you need further assistance.  Sorry for the inconvenience.

  • Cannot save data in item details iview (validations, calculation problem)

    Hello,
    I'm unable to save data in an item details iview. It complains about validations or calculated fields according to error message below.
    I am however able to save data directly in data manager and I have no automatic excutions (set to None) on my validations.
    So I guess I have to check calculations, or?
    #1.5#00144F1E87AC0066000000B1000059190004769A5679B69E#1256305154700#com.sap.pct.mdm.appl.masteriviews.ItemDetails$ItemDetailsDynPage#sap.com/irj#com.sap.pct.mdm.appl.masteriviews.ItemDetails$ItemDetailsDynPage#MDO1#41676##gcomdev_GEQ_35915650#MDO1#720b5f90bfd911de9b3100144f1e87ac#SAPEngine_Application_Thread[impl:3]_33##0#0#Error#1#/System/Server#Java###taxonomies has invalid elements<fieldNameenabledpriorityfieldName1enabled1~priority1...>##
    #1.5#00144F1E87AC005D000001F2000059190004769A74192B38#1256305651690#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: A runtime error occured while evaluating an Validation or calculated field#
    #1.5#00144F1E87AC005D000001F3000059190004769A74194266#1256305651696#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.mdm.validation.commands.ValidateNewRecordValuesCommand.execute(ValidateNewRecordValuesCommand.java:121)#
    #1.5#00144F1E87AC005D000001F4000059190004769A7419431A#1256305651696#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.mdm.admin.utils.MdmUserCommandUtils.validateNewRecord(MdmUserCommandUtils.java:321)#
    #1.5#00144F1E87AC005D000001F5000059190004769A741943B5#1256305651696#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.pct.mdm.appl.web.ValidationService.execute(ValidationService.java:73)#
    #1.5#00144F1E87AC005D000001F6000059190004769A741944DC#1256305651696#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.pct.mdm.appl.web.Record.update(Record.java:2009)#
    #1.5#00144F1E87AC005D000001F7000059190004769A74194574#1256305651696#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.pct.mdm.appl.masteriviews.ItemDetails$ItemDetailsDynPage.saveRecord(ItemDetails.java:2139)#
    #1.5#00144F1E87AC005D000001F8000059190004769A7419460F#1256305651697#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.pct.mdm.appl.masteriviews.ItemDetails$ItemDetailsDynPage.onSaveRecord(ItemDetails.java:1920)#
    #1.5#00144F1E87AC005D000001F9000059190004769A741946AA#1256305651697#System.err#sap.com/irj#System.err#MDO1#41676##gcomdev_GEQ_35915650#MDO1#748f4b50bfd911deacb000144f1e87ac#SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.pct.mdm.appl.masteriviews.ItemDetails$ItemDetailsDynPage.onSaveRecord(ItemDetails.java:1828)#

    Hi Olof,
    From the error message, it seems that the new created record is " Failing a Validation".
    From the Data Manager you can save a record , when automatic executions set to None.
    But the same will fail when it is added to a validation group and that group is used in the Item Details Iview while creating a record.
    Please update the status.
    Regards,
    Nimal

  • Dynamic pdf up to 200 images, the size of pdf is larger, cannot save data and images to the form

    Hi all,
    My client would like to dynamic images up to 200 pictures to my forms. It is working fine. However, when I add images up to 35 images. I could not add images to the form any more. Then, I save data on the form. All images and data typed on the form are disappeared. I don't know reason.
    If I only add 10 images - I can save data and images on the form. The size of pdf is 15456 kb.  I was unable to  add more pictures or data on the form.
    Maybe there are problem the size of pdf? How much size can an dynamic pdf  limited?
    Can we save the information and images as much as we want?
    I have spent 2 weeks to work and try to figure out this problem. However it is not successful.
    Please help,
    Cindy

    You should ensure, that your users do not import big images.
    Therefore you can use a script on the change event of an image field which checks the data size and warns the user if the file is too big.
    function formatNumber(number) {
        var num = number + '',
        x = num.split('.'),
        x1 = x[0],
        x2 = x.length > 1 ? '.' + x[1] : '',
        rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
            x1 = x1.replace(rgx, '$1' + ',' + '$2');
        return x1 + x2 + "KB";
    var sizeLimit = 200, //allow upto 200KB images
      thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
    if (sizeLimit > 0) {
      if (thisSize > sizeLimit) {
      xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0);

  • Cannot save data in data form

    Hi
    I am unablet o save the data in one of the cells in data form.
    i am able to send lock and send data
    access permissions are good.
    member is stored and not dynamic calc.
    any ideas please.

    Is the member you are trying to input against the only child of a parent and both the member and the parent are showing on the form ? If so this falls into 'implicit shared' where Essbase treats the parent as a child, ways round it are to only show the child in the input form, or set the parent to 'Never Share'.

  • Pop up message "Please fill out the following form. You cannot save data typed into this form..."

    I'm using InDesign CS2 to add some functionality to a pdf. Mostly buttons that I've used to create links to pages inside the document.
    When I open the exported pdf I get the unwanted message above, with a little pink icon in upper left hand corner of Acrobat 9.
    Any way to get rid of this?
    When I save the document with the functionality turned off, it's not there. So obviously there is something amiss when the functionality is added back in. But I really have no idea.

    If you're only adding buttons with links, there is no reason to add any of the extra functionality for Reader users.
    Just create the links and make sure that you choose to include links when exporting from ID.

  • Iphone4 camera froze up because photo album was full came up with error cannot save data. now all but 45 very old photo's are left. are they lost or could they have been moved?

    iphone seems to have lost nearly all my photo's because photo album was full. can they be retrieved?

    Hi Le_Mac_Admin,
    Would suggest you to check the below article that talks about issues when working from networks.
    Networks, removable media | Photoshop | CS4 and later
    This should be able to answer your queries.
    Regards
    ~ Arpit

  • Form created in ES4 won't save data entered in acrobat readerXI

    I have created a large form in Live Cycle Designer ES4. If I save the form as a pdf and open it in Acrobat Reader XI I get the message that I cannot save data entered in the form only print it. All I want to do is to put the form on our web site for people to download, complete, save and e-mail it back to me. I did consider an alternative method which is if I distribute the form and take the distributed pdf and save it locally, when it is opened in Reader you get the submit button on teh purple bar on teh right hand side. This will confuse a lot of our users so if there is a way to not have the submit button then that would work but how do I stop the submit button appearing on the purple bar?

    You have to Reader-enable the form. You can do this in Acrobat 11 by opening the form in Acrobat and selecting: File > Save As Other > Reader Extended PDF > Enable More Tools
    Reader 11 can save non-enabled AcroForms (forms created in Acrobat), but not non-enabled XFA forms (forms created in LiveCycle Designer).

  • Cannot save form information!

    When I click on the preview PDF button I can see the following error message -
    "You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    later once I click any text field I can see the following pop-up error-
    "Cannot save form information........"
    Why it shows that error message? How can I solve that?
    Experts, please help me. Thanks .
    Regards,
    Khan

    Answer: $$$
    http://www.adobe.com/products/server/readerextensions/

  • Cannot save search result to spreadsheet

    Hi,
    I cannot save data to speadsheet if the return data is large, it will have "The page cannot be displayed". I already set the "max rows" to a big number. There are errors in the error.log "mod_plsql: Long running URL [pls/htmldb/f] timed out"
    How to fix the problem, is there any settings for that? Thanks for your help.
    Message was edited by:
    lwangf

    You may want to look at this thread:
    Re: Export Excel instead of .csv
    Denes Kubicek

  • Some able to save data in my pdf, some are not...

    I have created a pdf for company use - it's a purchase order form - and about half the company can open it, edit it, save their data, and email it back: perfect. The other half are unable to save to the document. They can open it and fill it out, but they can't save the data anywhere. Some of those having troubles are using macs, some are using PC. Help!

    This may not be an implied share issue. Check out this except from the Hyperion Planning Admin Guide:
    Caution!
    Do not design data forms in which label-only parents follow their first child member, as you cannot save data in the first child member. Instead, create data forms with label-only parents selected before their children, or do not select label-only parents for data forms.
    To see if this is really your problem, remove the label-only parent from the form. Try your save again, and it will work.
    Another way to test this is by recreating your form in the Excel add-in. If your save works in the add-in, but not in the form, this is your problem (and it's not an implied share issue, which would also affect the spreadsheet add-in).
    Hope this helps,
    - Jake

Maybe you are looking for

  • Error Message 3906 After Apple TV Update

    Today my Apple TV updated.  Once the update was complete I was no longer able to connect wirelessly.  I keep getting the error message -3906.  If I plug my ethernet cord into the Apple TV than everything works.  The issues has to do with wireless con

  • ABAP API - Class CL_MDM_PROVIDER_SP05_PL00 not getting

    Hi All, I am using MDM 5.5 SP05. In R/3 side , we  installed MDM_TECH 554_640  Add-On. So I can access the transaction MDMAPIC. But not getting the class CL_MDM_PROVIDER_SP05_PL00. But getting the class CL_MDM_PROVIDER_SP04_PL00. What I want to do fo

  • Having a hard time with group by

    Ok here is my table structure: $query = 'CREATE TABLE '.$this->table_name.' ( '; $query .= 'id number(10) NOT NULL,'; $query .= 'user_id number(6) NOT NULL,'; $query .= 'module_name varchar2(36) NOT NULL,'; $query .= 'link varchar2(150) NOT NULL,'; $

  • Too many http plugin sessions seen in SM04

    Hi, There are too many http plugin sessions created in SM04 in production system for a custom transaction. The client claims that such multiple sessions are there only for this particular transaction so there is some problem in abap code of this z-tr

  • JTable horizontal fit into JScrollPane

    Hi, I am having problems with a JTable that has too many columns so it is not possible to see them all at once. So I am trying to put the table in a JScrollPane that can display the right ends of the table when scrolled, with the correct column width