Text Input and dataProvider

I have Text input box for the user to enter the heading for a new record in NewRecord form.
Like:
<mx:TextInput text="Enter Subject Here"/>
and then it is saved in the Database...
I have another form called ChangeRecord so that the user can change the heading or Subject..
How do i populate the name already in DB in the TextInput Box above... There is no dataProvider pram in TextInput...
I have the following:
CODE
[Bindable] public var NR:ArrayCollection;
private function resultNR(event:ResultEvent):void{
           NR:ArrayCollection(event.result);
<mx:TextInput text="Enter Subject Here"/>
Any help is appreciated.

Hi,
Post this over at the flex general discussions forum - they'll have better answers for this.
-Anirudh

Similar Messages

  • Can a ComboBox be used for Text Input ?

    Hi
    In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven't being successful in getting it to work.
    Thanks for you help in advance
    ParaicKW

    I am using a Dataservices Commit method to write to the Database via a button on the screen
    When I type into the ComboBox's text input and click outside the combobox or on the commit button the application effectively freezes
    SituationService is a CRUD type servicePHP to MYSQL and it works with the Datagrid
    Here is the code -
    ParaicKW
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:situationservice="services.situationservice.*">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                protected function Situation_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult3.token = situationService.getAllTblsituation();
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult.token = situationService.getAllTblsituation();
                protected function button1_clickHandler(event:MouseEvent):void
                    situationService.commit();
                protected function vGroup_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult2.token = situationService.getAllTblsituation();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="updateSituationResult"/>
            <situationservice:SituationService id="situationService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getAllSituationResult"/>
            <s:CallResponder id="getAllTblsituationResult"/>
            <s:CallResponder id="getAllTblsituationResult2"/>
            <s:CallResponder id="getAllTblsituationResult3"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:DataGrid x="96" y="167" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllTblsituationResult.lastResult}" editable="true" width="470" height="237">
            <mx:columns>
                <mx:DataGridColumn headerText="ID2" dataField="ID2"/>
                <mx:DataGridColumn headerText="SITUATION" dataField="SITUATION" width="200"/>
            </mx:columns>
        </mx:DataGrid>
        <s:Button label="Commit Updates" click="button1_clickHandler(event)"/>
        <s:HGroup width="90%" height="80%" verticalCenter="20" horizontalCenter="0">
            <mx:ComboBox width="476" id="cmbSituation" creationComplete="Situation_creationCompleteHandler(event)" dataProvider="  
                     {getAllTblsituationResult3.lastResult}" labelField="SITUATION" editable="true">
            </mx:ComboBox>
            <s:TextArea width="426" id="textArea" text="{getAllTblsituationResult3.lastResult.SITUATION}"/>
            <s:Button label="Back" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex-1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
            <s:Button label="Forward" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex+1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
        </s:HGroup>
    </s:Application>

  • Text Input Help!

    Hello, I have a couple questions when it comes to using text input:
    After typing into a text input component, how can I get the cursor to disappear?? If I click outside it, that doesn't work. If I press enter, that doesn't work. If I click a custom component, that doesn't work. Is clicking a wireframe component, like a button or a data list, the only way?
    Is there a way to make text input connected? For example, say I have a text input component and a search button. If I type "dog" into the text input and click search, a box appears that displays the results. Could I make it say "Your search for <blank> returned 5 results" where <blank> is whatever I just typed (in this case, "dog")?
    Thanks!

    Hi Sponce,
    1) You are correct. Once a component has focus (i.e. the cursor), the only way for it to lose focus is for another component to gain focus. You can work around this with some programming, but you can't do it in FC. This actually seems wrong to me, so I'm going to file an enhancement request about it.
    2) There is no way to do this in the current version of FC. (But of course, you can code it if you're willing to go to Flash Builder). We certainly hope to add it in the future. How would you imagine that working?
    -Adam

  • Make use of text input to submit text

    Hello,
    thanks for a lot of wonderful features in the second beta release. I particularly like the improved ability to do editing in catalyst (instead of always going back to illustrator to modify the slightest things, in the previous beta) and the improved performance.
    My question is:
    How can I submit text in a text input? (Say, the user keys in something into a text input, and clicks submit, is there a way for me to "receive" the things he keyed in and maybe even validate it?)
    Thanks in advance!
    By the way, I would like it if the performance can be improved further and i also vote for allowing us to reorder states in catalyst (I don't seem to be able to promote that idea in the Labs IDeas section)!
    Regards,
    Colin

    Hey Colin,
    Thanks for the feedback, we appreciate it!
    So, to 'receive' the user's input text and validate it, you're going to have to bring your fxp project into Flash Builder and do a little bit of coding.
    The TextInput documentation gives some really good detail on how you can work with this control in more advanced ways: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/T extInput.html
    I think you're going to want to listen to a textInput, or change event, and then validate there.
    You can also add a Validator to validate your text input, where this flex quick start to validation guide might help you: http://www.adobe.com/devnet/flex/quickstart/validating_data/
    In the meantime, if you have any ideas on how a feature like this may work in Catalyst, please post to the ideas site.
    http://ideas.adobe.com/ct/s.bix?c=DA4859AD-8934-4F93-983A-4219E2DD9275
    Thanks,
    Tara

  • Setting CSS Class for a Text Input Item when the disable property set to true

    Hi,
    i have OAF page and the item style is Message text input and i have set the disable property is TRUE using SPELL.
    i want to display the value is BOLD for the item. so i set the CSS class for the item to  OraTipLabel,OraDataText etc using item property or in process request also. the value is not setting BOLD.
    the field is gery out and frozen and it is not displaying BOLD.
    Please advise for the same.
    Thanks
    Sreekanth

    Hi Avaneesh,
    It is still not working for me.
    Still waiting for some pointers
    Anas.

  • TextArea and TextInput on mobile device the text disappears and works fine on desktop

    I'm developing a mobile app with a view that contains 1 Text Area, 1 Text Input and a group of 3 buttons. The app runs well in Desktop mode ( Run & Debug ), but when run in an android device ( Sony Tablet S) when the view is loaded,  the text (text property set at design or runtime)  "flashes" and disappear, if I change the device orientation of the tablet (phisically) the text draws correctly and don't disappear, even if you return to the original orientation. Also, if I pop-up a message (SkinnablePopUpContainer) in the same view, the text appears, and when I close the pop-up the text disappears again.
    Is this an identified bug ? ... is there a workaround ? ... I tried to set visible property to false and true and sometimes it works and sometimes not at random.
    Thank you for you help.

    UPDATE : if I set Focus=true the text appears. I think that the text should be there even if I don't set focus.
    This simple code when run in the device (Sony Tablet S) doesn't work as expected ... ( the text in the textbox dissapears, and if you change orientation appeears).
    <?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="Editar acción"
                        xmlns:dao="dao.*" creationComplete="view1_creationCompleteHandler(event)" >
      <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
                                            txt1.text="Hola";
                                            txt1.validateNow();
                                            txt1.setFocus(); // <---- if not set the text "Hola" flashes and dissapear.
                        ]]>
      </fx:Script>
              <s:TextInput id="txt1" x="26" y="44"/>
    </s:View>

  • Keyboard hiding Text Input on Android

    Good Day,
    I have a mobile Flex Application, that isn't scrolling to show a text input and the softkeyboard at the same time.  I have check the app.xml file and any other documentation about the use of the keyboard, and it _should_ be working.
    I have <fullscreen>false</fullscreen>
    and in the main application mxml file: resizeForSoftKeyboard="true"
    however whenever I go into view that needs to show the keyboard and the input together, the keyboard still covers the input.  The scrolling never fires.
    Has anyone experienced this?  Or have some other solution that I should try?
    Cheers,
    Rob

    Hi Rob,
    I think the app.xml could also have:
    <softKeyboardBehavior>none</softKeyboardBehavior>
    specified/added (hint: it could be missing from commented defaults in app.xml)
    http://help.adobe.com/en_US/flex/mobileapps/WS82181550ec4a666a39bafe0312d9a274c00-8000.htm l
    http://opensource.adobe.com/wiki/display/flexsdk/Mobile+SoftKeyboard+Support+Spec
    hth,
    regards,
    Peter

  • Text input into WebTemplate and sending it to an ODS - urgent

    SDNers,
    I have a unique requirement. I need to take in text input on screen and then send back the same into an ODS in BW.
    Something like :
    Project Overrun | Text Area
    20% | <Project Manager's comments>
    I need to pass this on to atleast an ABAp FUnction modue so that I can do the further processing.
    Heike I did see some posts by you on using the help service - could you walk me through as to how to do it. and also how to modify the onclick event.
    If you can direct me to any how to paper / site also it would be useful.
    Arun Varadarajan

    Hi Arun,
    in this scenario I wouldn't use the help service. The help service is more suited if you need to interact with your web application later on (meaning the state of the web items or data provider changes) or you need the state of a Data Provider or web item in your application. In your case it's just write something to an ODS. Why not just include a form in your Web Template. When submitting a form just call a BSP in a new window. In the BSP read the transfered parameters and do whatever you like.
    Heike

  • Text input boxes same colour as background - so "invisible", and button text or buttons often missingt

    I have turned off all addons/extensions/plugins - still the same problem:
    1: Text input boxes appear to be the same colour as the background - and hence "invisible"
    2: Clickable buttons on websites are often invisible, or if they display have no text; e.g. button to right of google search ("go" button?) is seen as a plain box with no text - although button is clickable.
    3: Google webpage usually has an image - this is missing, and merely has "UK" to the top left of the input box.
    4: On this page for example I can see directly above this text box two vertical black lines - it appears to be a button with a pop-up "insert a link" - it can obviously be clicked when I mouse over it.

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Problem with action script 3 make input text box and button....

    Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
    air for android only work with AS3,
    the search function is to type a person's name and hit submit then go to a specific frame.
    have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
    Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
    (it work find in AS2 but not in AS3,)
    Here is my current code that is placed on the main timeline, first frame:
    stop();
    onEnterFrame = function () {
        submit.onRelease = function() {
            switch (yourname.text) {
            case "name1" :
                gotoAndStop(2);
                break;
            case "name2" :
                gotoAndStop(3);
                break;
    My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
    My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
    Basically, I'm having a problem with making this to work with AS3.

    you should use the default option in the switch statement
    that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
    function onSubmit(e:MouseEvent):void
                                  switch (yourname.text)
                                            case "name1":
                                                      gotoAndStop(2);
                                                      break;
                                            case "name2":
                                                      gotoAndStop(3);
                                                      break;
                                            default:
                                                      goToAndStop(you frame you want);
                                            break;

  • Changing the cursor position in an input text field and Removing leading numeric zeros

    Flash8 - AS2
    It's good to be back after all these years and thanks for the faithfull folks like kglad, Ned Murphy, Rothrock and all the others who give so much of themselves to make this forum a success!
    My Problem:
    I have an input text field that is named in the properties box as 'numberOfKids'.
    When the program is executed, and a delete or backspace is pressed the input textfield goes blank
    and any calculations that use 'numberOfKids' shows NaN.
    I have trapped the NaN and undefined so that a numeric 0 shows up instead of a blank.
    There are two problems:
    First problem:
      The cursor is to the left of the zero, so the first number inputted by the user is 10x larger than what they want.  0 becomes 10.
    Question:  How do I get the cursor to move to the right of the 0?
    Second Problem: 
      When I manually move the cursor to the right of the 0 and input a number, say 4, it shows up as 04.
    Question 2:  How do I delete the leading numeric zero in the input textfield?
    Thanks for the help.
    Here's the code I am using:
    calculateChildWeight = function () {
    if (isNaN(numberOfKids)) {
      numberOfKids = 0;
    if ((numberOfKids) == undefined) {
      numberOfKids = 0;
    if (numberOfKids>=0 && numberOfKids<=137) {
      numberOfKids = numberOfKids;
    } else {
      numberOfKids = 0;
    if (isNaN(adjustedChildWeight)) {
      adjustedChildWeight = 0;
    if ((adjustedChildWeight)=undefined) {
      adjustedChildWeight = 0;
    adjustedChildWeight = Number(numberOfKids*(-100));
    //numberOfKids.setSelection(numberOfKids.length, numberOfKids.length);
    //if (numberOfKids.length=2 && numberOfKids<10) {
      // remove the first character or leading zero
    //  numberOfKids = numberOfKids;

    Thanks Rothrock for being so  patient.
    I'm lost!
    I go back to a brand new flash file to try and implement the textfields as a stand alone test document.  I have lost the concept I think.
    I created on the stage of a blank .fla file  4 text fields, 2 input and 2 dynamic.  I gave them an instance name in the properties box.  I use this instance name.text to find the value of the field.  I use the parseInt to put that value into a numeric variable for calculation.  The results are put to the appropriate textfield.
    All seems to work except one of my input text fields.   I use the value of this field  to calculate:
    revisedValue = parseInt(numberOfKids.text);
    revisedValue = revisedValue*(-100);
    The problem now is that if the numberic '2' is inputted into numberOfKids, numberOfKids.text shows up as 200 and a trace shows up as '2NaN'.
    Flash is logical and consistant, I must conform to it but I'm in the dark.
    (( Concerning the forum:  If I click on helpful, which your posts have been in directing me, does that blank out the possibility of selecting the correct answer in the future???))

  • IME API and IME Text Input Enhancement

    Hi All,
    I am presently using Adobe Air 1.5 Framework and i want to update the Air 2 Beta version. Help me in setting the same.
    As in my application, it uses TLF which doesn't supprot IME. But as i came to know the features from AIR 2 Beta it provides.
    Can you help me for the same in implementing the feature "IME API and IME Text Input Enhancement" with some samples or examples.
    Thanks in advacne.
    Krishna

    I do not know what VM is ported on ur Pocket PC? It depends on the MIDP RI [Reference Imlementation] ported specific for each device. for e.g.:- for few pointer/touch screen devices the MIDP RI ported handles both the keypad and the pointer mappings automatically.
    Kindly check out the below link where-in you have list of JVM's that you could port on your pocket PC.
    http://www.comp.lancs.ac.uk/~fittond/ppcjava.html
    Most of the palm or pocket PC's would be ported with CDC/Foundation Profile where you will have JNI support that may help you to develop your own application specific API's using the existing device native libraries provided by the vendor.
    IBM's J9 VM for example supports JNI.
    ~Mohan

  • How can I have a checkbox that a user checks and populates a field with read only text, then if another checkbox is checked it will allow user text input

    Hi
    How can I have a check box that a user checks and populates a field with read only text, then if another check box is checked it will allow user text input into that same field, her is my javascript
    var a ="Not Applicable"
    if (this.getField("Do").value == "Yes")
    a=""
    if (this.getField("DoNot").value =="Yes")
    a=a + ""
    event.value=a
    say if the "Do" cb is checked, Not Applicable would populate the text field, and if the "DoNot" cb is checked it would allow user input into the same text field, the javascript I have will not allow user input,
    thanks for any help I am new to javascript

    Are these fields mutually exclusive?

  • Yosemite Mail 8.0 and Safari 8.0 text input slow

    Since I upgraded to Yosemite I have noticed that text input in Mail 8.0 and Safari 8.0 is extremely slow. Mail, however, is somewhat worse than Safari. As I type this there is a lag before what I type appears on the screen but in Mail it can be as much as three or four seconds - so if I make a typing error, trying to backspace and correct it can be a bit of a nightmare.
    As far as I can tell, it does not occur in any other application. I have read reports of Yosemite being slow but nothing seems to mention this particular problem. That said, I have tried some of the fixes such as turning off transparency but nothing has worked.
    Anybody any clues?

    I'm looking at Activity Monitor and at the moment, under Memory > Memory, I see:
    (plugin icon) Mail Web Content 2.0
    Safari 1.22 GB
    No other applications have anything near this. Even Photoshop with several images open only has 300 MB.
    Is this normal?

Maybe you are looking for