Clear a field by a touch

Thank you for your visit... hehe

I have a problem. I want to add EditFields to the manager at the click of a button.

So I used this code.

VerticalFieldManager v=new VerticalFieldManager();
ButtonField addN=new ButtonField("Add field");
ButtonField remov=new ButtonField("Remove last Field");

FieldChangeListener inc=new FieldChangeListener()
{
   public void fieldChanged(Field f, int i)
   {
        up.add(new EditField("Enter: ",""));
        total=total+1;
   }
};

I applied the scope change listener to the button modalities.

The Builder on my screen has two managers, a Vertical FieldManager for my EditFields and Horizontal FieldManager for my buttons.

Now, I got the addition of buttons to work, but eliminating a problem. The buttons are on a different Manager and so remove does not work?

What I want to do is to press the button Delete and remove the last added EditField... Any suggestions please?

Yes

Tags: BlackBerry Developers

Similar Questions

  • Clear a field of data card/CDO

    Hello

    We are working on sending emails that will have a merge field to a data card/CDO object that is sometimes filled out and sometimes not; merged field of emails are sent through program generator when merging field no those are batched. After the merged field email is sent from the Builder program, we want to clear this field on the data card, so that if we batch email from contact with another email, the merger of field will be empty and not present information completely foreign to the emailed batch. Is it possible to do in E10? I can't find an option for it in the program generator. The only work around us would think has been implemented the merger of field as a piece of dynamic content and add a contact field that gets checked when the merger of field CDO / Data Card is necessary and not controlled when it's not like this can be done in the program generator.

    Hi Allan,

    If your goals is to update the field and future data communications player card... I think that there are few options, but the one I can suggest the use of the program generator.

    In the program generator.

    Create a program that takes the contacts it is a member.

    1. check if the email you want to send using email that address data slag is sent? If Yes

    2. take contact with Cloud connector for submit and add static value as empty (Leavve it blank)

    Form...

    3. create the form and map all data fields to a custom form to this exact object with a value field empty

    4. use and field to future communications drive additional Fusion by email.

    I would like to know if this helps or you are looking for.

    Thank you

    Amit

  • How is it that when I click on clear form Acrobat is option clears all fields populated by a JavaScript document level and if I save them the start of the JavaScript document level form is no longer works?

    How is it that when I click on clear form Acrobat is option clears all fields populated by a JavaScript document level and if I save them the start of the JavaScript document level form is no longer works?

    Or a link to the form or a sample with the same problem.

    You only set the function to run but not executed.

    You should add a line like:

    AtStartup();

    to your script.

    As noted if you have been set "defaultValue" to the fields, then clear the fields would remove any entry present and restore the default values.

    Or you could write a custom JavaScript to clear the fields and then run your startup script.

  • clear the fields for entering the loading of the page

    I have a few jspx pages that are displayed as menu items in a menu group and are present in the adfc - config.Xml. These pages are rendered by default in several tabs. the pages have input fields where the user enters input data and click the button to generate a report. My problem is that after generating the report on a tab when the user goes to another tab and returns, previosly entered data in the fields are not allowed to go out. What is the best way to disable previosly entered data. most of these fields is bound to a property in a managed bean. using jdev 11 1 1 6. I am explicitly deleting the report generated in the tables data by erasing your used by table on the event beforePhase of the page when the page makes. How to clear these fields that are not preserved entry?

    You can bind the inputText and try the resetValue() method.

    Deepak

  • Clear text fields

    I create a dashboard with lots of buttons that display pieces of text to an XML file. The problem is, I can't understand how to clear the text field, once it is posted. If I press another button, the new data will replace the old data, but if the new button is display a smaller set of data, it won't replace some of the old data set and the rest remains displayed. Who is?

    I found a code that removes the text fields, but I don't know where to put:

    ///////////////

    import flash.events.MouseEvent;

    import flash.text.TextField;

    var adminUnitsXML:XML;

    var adminloader:URLLoader = new URLLoader();

    adminloader.addEventListener (Event.COMPLETE, onAdminComplete);

    adminloader. Load (new URLRequest ("FY2012units.xml"));

    function onAdminComplete(evt:Event)

    {

    adminUnitsXML = new XML (adminloader.data)

    }

    var adminMeasuresXML:XML;

    var adminloadermeasures:URLLoader = new URLLoader();

    adminloadermeasures.addEventListener (Event.COMPLETE, onAdminCompleteMeasures);

    adminloadermeasures. Load (new URLRequest ("2011xmlmeasures.xml"));

    function onAdminCompleteMeasures(evt:Event)

    {

    adminMeasuresXML = new XML (adminloadermeasures.data)

    }

    -Buttons on unit-------.

    adminu1.addEventListener (MouseEvent.CLICK, adminu1Click);

    adminu2.addEventListener (MouseEvent.CLICK, adminu2Click);

    adminu3.addEventListener (MouseEvent.CLICK, adminu3Click);

    adminu4.addEventListener (MouseEvent.CLICK, adminu4Click);

    adminu5.addEventListener (MouseEvent.CLICK, adminu5Click);

    adminu6.addEventListener (MouseEvent.CLICK, adminu6Click);

    adminu7.addEventListener (MouseEvent.CLICK, adminu7Click);

    adminu8.addEventListener (MouseEvent.CLICK, adminu8Click);

    adminu9.addEventListener (MouseEvent.CLICK, adminu9Click);

    adminu10.addEventListener (MouseEvent.CLICK, adminu10Click);

    adminu11.addEventListener (MouseEvent.CLICK, adminu11Click);

    adminu12.addEventListener (MouseEvent.CLICK, adminu12Click);

    adminu13.addEventListener (MouseEvent.CLICK, adminu13Click);

    adminu14.addEventListener (MouseEvent.CLICK, adminu14Click);

    adminu15.addEventListener (MouseEvent.CLICK, adminu15Click);

    adminu16.addEventListener (MouseEvent.CLICK, adminu16Click);

    adminu17.addEventListener (MouseEvent.CLICK, adminu17Click);

    Here I attributed to plaintext to all buttons;

    adminu1.addEventListener (MouseEvent.CLICK, plain text);

    adminu2.addEventListener (MouseEvent.CLICK, plain text);

    adminu3.addEventListener (MouseEvent.CLICK, plain text);

    adminu4.addEventListener (MouseEvent.CLICK, plain text);

    adminu5.addEventListener (MouseEvent.CLICK, plain text);

    adminu6.addEventListener (MouseEvent.CLICK, plain text);

    adminu7.addEventListener (MouseEvent.CLICK, plain text);

    adminu8.addEventListener (MouseEvent.CLICK, plain text);

    adminu9.addEventListener (MouseEvent.CLICK, plain text);

    adminu10.addEventListener (MouseEvent.CLICK, plain text);

    adminu11.addEventListener (MouseEvent.CLICK, plain text);

    adminu12.addEventListener (MouseEvent.CLICK, plain text);

    adminu13.addEventListener (MouseEvent.CLICK, plain text);

    adminu14.addEventListener (MouseEvent.CLICK, plain text);

    adminu15.addEventListener (MouseEvent.CLICK, plain text);

    adminu16.addEventListener (MouseEvent.CLICK, plain text);

    adminu17.addEventListener (MouseEvent.CLICK, plain text);

    -Button of the device functions-------.

    Here's the function of clear text, but I don't know where to put this. When it is placed here, I can't get my text to display when I click on the buttons.

    function clearText(e:MouseEvent):void {}

    measures_txt. Text = "";

    measures1_txt. Text = "";

    measures2_txt. Text = "";

    measures3_txt. Text = "";

    measures4_txt. Text = "";

    measures5_txt. Text = "";

    measures6_txt. Text = "";

    measures7_txt. Text = "";

    measures8_txt. Text = "";

    measures9_txt. Text = "";

    measures10_txt. Text = "";

    }

    function adminu1Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu1.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu1.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu1.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [6].rdu.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [6].mmrslt.text ())

    measures2_txt. Text = (adminMeasuresXML.measure [7].mmrslt.text ())

    measures3_txt. Text = (adminMeasuresXML.measure [10].mmrslt.text ())

    measures4_txt. Text = (adminMeasuresXML.measure [11].mmrslt.text ())

    measures5_txt. Text = (adminMeasuresXML.measure [12].mmrslt.text ())

    measures6_txt. Text = (adminMeasuresXML.measure [13].mmrslt.text ())

    measures7_txt. Text = (adminMeasuresXML.measure [20].mmrslt.text ())

    measures8_txt. Text = (adminMeasuresXML.measure [24].mmrslt.text ())

    measures9_txt. Text = (adminMeasuresXML.measure [25].mmrslt.text ())

    measures10_txt. Text = (adminMeasuresXML.measure [26].mmrslt.text ())

    }

    function adminu2Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu2.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu2.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu2.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [6].rdu.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [14].mmrslt.text ())

    }

    function adminu3Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu3.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu3.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu3.employeect.text ())

    }

    function adminu4Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu4.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu4.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu4.employeect.text ())

    }

    function adminu5Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu5.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu5.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu5.employeect.text ())

    }

    function adminu6Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu6.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu6.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu6.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [1].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [8].mmrslt.text ())

    measures2_txt. Text = (adminMeasuresXML.measure [9].mmrslt.text ())

    measures3_txt. Text = (adminMeasuresXML.measure [27].mmrslt.text ())

    }

    function adminu7Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu7.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu7.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu7.employeect.text ())

    }

    function adminu8Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu8.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu8.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu8.employeect.text ())

    }

    function adminu9Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu9.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu9.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu9.employeect.text ())

    }

    function adminu10Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu10.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu10.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu10.employeect.text ())

    }

    function adminu11Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu11.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu11.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu11.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [2].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [3].mmrslt.text ())

    }

    function adminu12Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu12.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu12.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu12.employeect.text ())

    }

    function adminu13Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu13.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu13.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu13.employeect.text ())

    }

    function adminu14Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu14.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu14.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu14.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [4].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [5].mmrslt.text ())

    }

    function adminu15Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu15.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu15.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu15.employeect.text ())

    }

    function adminu16Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu16.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu16.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu16.employeect.text ())

    }

    function adminu17Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu17.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu17.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu17.employeect.text ())

    }

    IN EAC h case when you assign text, if you want the textfields which have no new text to display nothing, then you must assign them nothing in the form of text.  What you could do for each case, it's the same unique feature allows to clear all fields before rewrite you everything, as in...

    function clearAll (): void {}

    UnitBudget_txt.text = UnitName_txt.text = UnitEmployees_txt.text = measures_txt.text = measures1_txt.text = "";

    }

    function adminu15Click(event:_MouseEvent):void {}

    clearAll();

    UnitBudget_txt.text = (adminUnitsXML.adminu15.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu15.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu15.employeect.text ())

    }

    function adminu16Click(event:_MouseEvent):void {}

    clearAll();

    UnitBudget_txt.text = (adminUnitsXML.adminu16.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu16.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu16.employeect.text ())

    }

    and so on for all the others...

  • Clear text fields values without submit?

    Hello

    I have a screen with some text fields, two-button (first button runs a procedure of search and the other would erase the values in order to start a new search). The user wants to be able to clear the fields values without going through the submitted page. How can I do?

    Thank you.

    Hello:

    You could change the second page your buttons execute a javascript function that will be the effect on the erasure of field. Change this target of buttons to be a URL. For the URL, specify

    JavaScript:clearFields();

    Add this javascript in the page header.

    
    

    CITY

  • Blocks from target field scroll on touch devices

    Hello forum! (my first post)

    I searched the forum over and over again and found no solution, that is:

    I have a screen that extends from PopupScreen, inside a VerticalFieldManager scrollable and inside the if a bunch of buttons that occupy more height then visible (they do occupy the entire width however).

    Now, when the upper button has the focus, I don't do scroll with touch screen - the screen scrolled down and then immediately goes back to the previous state, probably to make first visible button (because it has developed!).

    Any suggestions how to solve this are welcome (for example how to focus change first field visible after scrolling), as I've been dealing with it all morning and didn't so far.

    Apology. It was our bug - when scrolling occurred that a field would change its label, cosing one repaint and fast development no doubt jump, who jubilantly manager turned upward. Sorry for wasting your time.

  • How to clear the field in the APEX...?

    Can any body tell me how to clear or reset the fields in the UI (APEX 4.0)...? for example, the page elements... When I click on the reset button, I want that all fields in my area to be cleared...

    Thank you

    -Best regards,.
    Beginner...

    Create a new process, select "Session State" as process category. Select "Empty the Cache for all items on the page (PageID PageID, PageID)" as the Type of process.

    The conditions for link it to your button.

    Best regards

    Gokhan Atil

    -------------------------------------------------------
    If you answer this question, please mark appropriate as correct/useful messages and the thread as closed. Thank you

  • Clear text fields button

    Hi all

    I am very new to Flash, but I need a button to clear all the entries in a form text fields, so that the user can delete all their data and start over.

    Any hepl would be greatly appreciated.

    Concerning

    John

    If you mean you want to deselect everything that is selected in the drop-down list, then you must set the property selectedIndex-1...

    aCb.selectedIndex = - 1;

  • image bitmap field not seized touch event

    Hi all

    I've implemented a customButton class that extends from BitmapField to tuchscreen.

    The CustomField is FOCUSABLE.

    I placed 6 these customButtons in a horizontal field.

    First 3 buttons are getting clicked correctly but the last three are not capture any key event.

    The procedure is the same for all. But still this is happening.

    Can someone tell me why its happening? How can I solve this problem?

    I solved the problem

    the code is shown in the link

    http://supportforums.BlackBerry.com/T5/Java-development/capturing-click-event-of-buttons-oat-right-c...

  • Clear the fields - refreshing the Page

    Hello when I send my page, not to delete the fields. I tried with branches and processes, but did not work. Information about the workspace: http://pastebin.com/nk7FL0Ny someone can help me? Thank you!

    I was just focused on your fields of compensation and penetrates only not in the data.  When your data insertion, you must make sure that the point of the process are after him present.  You will notice that I created a new process called Insert Data.  I also have some of your code in comment and put your success message in the 'Success Message' field and added your error message in the field "error process.  Then I was 1 more change to your branch that States include any message of success of the process.

    If all goes well, this should be what you need.

    Paul

  • VSM RP2 9.1 how to "Clear" a field using the API

    Hello again,

    I have a simple question. We want to update an entity instance folder of the person with a call to webservice (method PersonUpdate()), our problem is that we sometimes have to empty a field (for example Work'stitle). But it seems not so easy. When we set the value to null or an empty string, the old value is always there that even a space does not remove the value.

    In the Guide of the API (Page 106) in the table in section update person exists for the field 'by default is' Work'stitle -Ok, but how can I delete now a value?

    Thanks in advance

    Just the idea. If to try this day the field as CustomParamData?

    for example

    ...

    Dim _ws_cust_data_list As New List (Of CustomParamData)
    _ws_cust_data_list. Add (New CustomParamData ("TITLE", String.Empty)) '? or function ?

    ...

  • PeopleSoft framework 8,53 test - how to clear a field?

    I did a test which requires that a field has a default value have the erased value (empty value ""). The step is in the test, but using that default value is not changed. I tried with empty value step test and a space (' ' ').

    How to achieve this?

    Dan

    Change your test, find the line that has something like column Type = Text, Action = Set_Value, recognition = Name = ID_IN_HTML_PROBABLY, value = probably empty. Anyway, you look for the line in the definition of test script that corresponds with the field your trying to 'nothing '. When you find this line actually change the value of #NOTHING, no need to re-register the test, simply change the value, and save. #NOTHING is a reserved word for the text box values to do exactly what you want.

    for example.
    save will process monitor script and remove default OPRID of research, by default, your username.
    script records with something like

    Type, Action,    Recognition,                   Value
    Text, Set_Value, Name=PMN_FILTER_WRK_WS_OPRID, (empty space)
    

    Change the value to #NOTHING field

    Text, Set_Value, Name=PMN_FILTER_WRK_WS_OPRID, #NOTHING
    

    Save and run the test again.

    Let us know if you have any other questions.
    Thank you
    Randy

  • How to clear the field of the image stored while the data type is LONG RAW

    Assalam O alaikoum

    I have a table of LONG RAW data type field. I made a form on that table. and the images stored in this area to help after the program.

    DECLARE
    filename VARCHAR2 (256);
    BEGIN
    filename: = GET_FILE_NAME;--(File_Filter = > ' JPEG (*.)) JPG; *. JPG; *. JPE; *. (JFIF)');
    READ_IMAGE_FILE (filename, 'JPEG', 'work_order.article_image');
    END;

    And he stored images when I commit / saves the form.

    Problem:

    I want to remove the image from this specific record field. I don't want to delete the entire record, I don't want to replace the image. I want to only empty this field.

    HOW CAN I DO?

    +"... I don't want to replace the image. I want to only empty this field... « +

    Have you tried:

    Go_Item('image_item');
    Clear_Item;
    

    François

  • clear a field object

    Hi people,
    There is a command to delete a subject field?
    example:

    + person
    -age
    -name
    -family name

    is it possible to erase 'name' on the fly?
    before you start doing an appropriate code, I'd rather know is there already exists...

    Bye and tahnks :D

    I answer... maybe it can help someone else...

    a quick way to do this is:

    Remove person.name;

    very very simple... :))

Maybe you are looking for

  • Satellite A100-207 - \windows\system32\config\system is corrupt

    Hello Can someone help me with the following problem. With regard to a Toshiba Satellite A100-207 with windows XP media edition When starting the laptop hangs with error * \windows\system32\config\system is corrupt *. This article is the closest to t

  • HP Jet Pro 11: Bios password forgotten HP flow 11 Pro

    55526944 Hi, I forgot my Bios password on my HP Netbook PC stream, is it possible that I can get back. The password I can remember brings system 55526944 disabled

  • Search table 1 d for a value

    Hi all I have a table 1 d of numbers that goes from 255 to 0, I want to seek a first element which is less than 100 and retrieve the index. Can someone help me how to on this subject.

  • Having the Type Cast issues with FY 2011

    Hi all Just to start 2011 with AF in labview and ran through a few examples and I had a pretty good understanding of the functioning of thought.  Ive tried to do a simple on my own now and get error 1448 whenever I launch the joint project.  Basicall

  • ASA - 1 > en password: *, stuck at this point

    Hello I'm stuck at this point, pls advise, 9.x, OS ASA - 1 > sh curprivUsername: admin1Current privilege level: 1Current Mode/s: P_UNPRASA - 1 > enPassword: *---> > the enable password is cisco, but does not workPassword: Here is the config Console t