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...

Tags: Adobe Animate

Similar Questions

  • 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;

  • 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

  • How to reset text fields

    Hello world

    I created a password change form that contains 3 (old password, newpassword, renterpassword) text fields and buttons (change, reset) 2.

    I created a password change process which changes the password when the user click the button change.

    My question is when the user clicks the reset button it will be the clear text fields and the focus of the cursor will be old password text field.
    Please tell me how to do it.

    I use apex 4.1

    Thank you
    Kind regards
    Paul

    Published by: Dan on May 31, 2012 22:01

    Published by: Dan on May 31, 2012 22:03

    Looks like you have not found anything useful or Correct. :(

    Kind regards

  • Filled text field, clear the default checkbox

    I've seen a lot of question and scripts on when a box is checked, then the text field copies the value of the checkbox.

    What I'm trying to do is the opposite, i.e. If a text field is empty, the check box by default is checked; But if the text field is filled with what, check the check box disappears. Could someone help with scripts?

    Let's say that the checkbox is named "Check Box1". Enter this code in the custom text box validation event:

    this.getField("Check_Box1").checkThisBox (event.value == 0, "");

  • Slider custom text field (Cap) does not appear

    All;

    I created a custom text field based on the standard text field, changes work fine (really just a custom height and width and a border).  The problem is the method of painting which seems to remove the cap of the field when it gets the focus.  To be clear the carret never shown at all.

    public class CustomText extends TextField //cutom text field width
    {
        //Custom Height and Width in Pixels
        final static int textwidth=125;
        final static int textheight=25;
    
         CustomText()
         {
         super(); // Call the default constructor    
    
         //Border for text fields
         XYEdges padding = new XYEdges(5, 5, 5, 5); //space between box and border
         Border theborder = BorderFactory.createSimpleBorder(padding, Border.STYLE_SOLID);
    
         //Assign the border to the object
         this.setBorder(theborder);
         }
    
         public void onFocus( int direction )
         {
            super.onFocus( direction ); //invoke parent procedure
            invalidate(); //mark for redraw
         }
    
         public void onUnfocus()
         {
        super.onUnfocus(); //invoke parent procedure
        invalidate(); //mark for redraw
         }
    
         //Override the layout with the custom Width and Height
         protected void layout(int width, int height)
         {
            super.layout(textwidth,textheight);
            setExtent(textwidth,textheight);
    
         }      
    
        //Override the display message such that no message is displayed when the field is full
        protected void displayFieldFullMessage()
        {
        }
    
        //Override the default paint method to call the super class constructor and then assign the border
        protected void paint(Graphics graphics)
        {
           // int prevColor = graphics.getColor(); //Save Previous Color
            graphics.setBackgroundColor(Color.LIGHTGRAY); // Set to Gray
            graphics.clear(); // Clear for redraw
            super.paint(graphics); //Force Redraw of Object
          //  graphics.setColor(prevColor); //restore for cursor paint
    
        }
    
    };
    

    In the paint in the first and last method lines that are commented out were a soloution that I tried after reading on this subject.  Something along the lines of the restoration of the default color, but unfortunately without success.   Any ideas would be more useful

    Thank you!

    Quick thoughts:

    (a) to remove the requirement to substitute paint by setting the background a Color.LIGHTGRAY using the base class

    (b) you put on the field by using this:

    Super.Layout (TextWidth, TextHeight);

    If you then do the following:

    setExtent (textwidth, textheight);

    you are likely to confuse the field.  If you still want to use the entire height and use the full width and then try to deal with it in the Style, that is, replace this:

    Super(); Call the default constructor

    with this

    Super(TextField.USE_ALL_HEIGHT |) TextField.USE_ALL_WIDTH); Call the default constructor

    (c) why you override onFocus and onUnfocus?  I would like to delete these if you do not have anything specific to these methods.

    Make these changes, and you'll have a more simple TextField.  See if these changes will solve the problem of the caret too.

  • How to check automatically check box a specific word is entered in a text field?

    I need help for a formula; I want to enter a specific word in a text field (labeled: food Group1).

    If I type the word 'Fruit', I want a check box (labeled: Fruit1) which appears later in my form to fill out.

    If I type the word "Grain", I want a box (marked: Grain1) which appears later in my form to fill out.

    Can someone please help me with a script that I can insert?

    Thank you very much!

    Kind regards

    Novice

    > I want to use capital LETTERS when you fill out the form

    Text comparisons are always case sensative.

    > Well, I need to all food includes Fruits, vegetables, cereals, meat, dairy products.

    > Appear which means, that when I type of fruit or grain in the text field, a check will "appear" in the box no fields are hidden or created. (not sure what you're asking here)

    On the forms fields can be visible or hidden. Appear implies that they are not visible or do not exist.

    > No, just a Word as one box of targets. for example, if I type "FRUIT" in the text field (labeled: Food Group), which should place a check in the box (labeled: Fruit1).

    If you have a limited number of registrations and specific words in a specific foramt, I would use a drop down box.

    I would like to use the 'Blur' action with the followting custom JavaScript:

    Fruits, vegetables, cereals, meat, dairy products.
    this.resetForm (["Fruit1", "Grain1", "Vegetable1", "Meat1", "Dairy1"]);  clear the result fields.

    test the text entered;
    var oCheckBox = null;
    Switch (Event.value)
    {
    case "FRUIT":
    oCheckBox = this.getField ("Fruit1");
    break;
    case "GRAIN":
    oCheckBox = this.getField ("Grain1");
    break;
    case "VEGETABLES":
    oCheckBox = this.getField ("Vegetable1");
    break;
    case 'MEAT ':
    oCheckBox = this.getField ("Meat1");
    break;
    case 'MILKMAN ':
    oCheckBox = this.getField ("Dairy1");
    break;
    by default:
    App.Alert ("No match for------" "+ event.value +"------"!", 1, 0);
    break;
    } / / end of switch.
    If (oCheckBox! = null)
    {
    oCheckBox.checkThisBox(0,true);
    }

  • Clone of Windows VM - avoid clear text password of domain registration

    When you use the "Clone, windows with single NIC" in my scheme, it takes a junction station password field.  How can I change this to a SecureString or avoid saving the password of a user in the field in clear text in the workflow?  The goal is to automate the deployment of the VM, setting the variable in the input parameter is not an option.

    Just call this workflow in an another workflow that uses SecureString. You can link to string SecureString - you will get validation warning, but not of error if the workflow will run very well. It is the approach that I took. You can then store the password as a SecureString as an attribute of the Configuration element and that map to your custom workflow.

  • How can I make a box autopopulate a text field

    I have 2 text fields named MailingAddress and GarageAddress.

    I would like to have a check box next to my MailingAddress the field when checked would be autopopulate my GarageAddress with the value of MailingAddress.

    I scrounged around forums and cobbled this together (with my very limited knowledge of JavaScript)... but get a syntax error.  I'm sure it's something obvious... If you understand JavaScript!

    Any help would be greatly appreciated

    var aMailing = this.getField ("MailingAddress");
    var aGarage = this.getField ("GarageAddress");

    If (this.getField (event.target.name) .value is 'Yes')
    {
    copy the mailing address to the address of Garage;
    aMailing.value = aGarage.value;
    }
    aGarage.readonly = true; do GarageAddress readonly;
    }

    on the other

    {
    aGarage.readonly = false; clear readonly
    this.resetForm ([aGarage.name]) / / reset GarageAddress
    }

    You have syntax errors in your code. Also, it seems that the logic of your code is reversed. You copy the value of GarageAddress to MailingAddress, instead of what you have described. I suggest using this code (as the MouseUp event of the checkbox) instead:

    var aMailing = this.getField("MailingAddress");
    var aGarage = this.getField("GarageAddress");
    
    if (event.target.value == "Yes") {
        // copy Mailing address to Garage address;
        aGarage.value = aMailing.valueAsString;
        aGarage.readonly = true; // make GarageAddress readonly;
    } else {
        aGarage.readonly = false; // clear readonly
        this.resetForm([aGarage.name]) // reset GarageAddress
    }
    
  • ADD ITEMS TO THE LIST DROP-DOWN LIST TO A TEXT FIELD (USER ENTERS THE ITEM) AND ALSO RELATED TO VALUE

    Untitled.jpg

    I have WANTED to ADD of ELEMENTS from the list drop-DOWN OF THE AREA of TEXT (the ELEMENT NAME) WHERE the USER BETWEEN of THE DESCRIPTION of POINT

    AND RELATED value SHOULD ALSO BE ADDED to THE SAME ELEMENT.

    LIKEWISE REMOVE ITEMS IN THE DROP-DOWN LIST

    PLEASE GIVE SHAPE TO SAMPLE OR JAVASCRIPT FOR THE ABOVE SCENARIO...

    INDEED USEFUL FOR MY PROJECT PLEASE SEND PDF FORM

    Hi Praveen,

    You can add items to the list in a specific order, which would be to load the elements in an array, sorting and then load in the dropdown list drop-down list.  This would be in the click event of the button Add.

    Create a table to hold all the list items, table drop-down list contains objects with a property 'displayItem' and 'value '.

    dropDownItems var = [];

    Add the new

    dropDownItems.push ({displayItem: ItemName.rawValue, value: BoundValue.rawValue});

    Add existing ones

    for (var i = 0; i)< dropdownlist1.length;="">

    {

    dropDownItems.push ({displayItem: DropDownList1.getDisplayItem (i), value: DropDownList1.getSaveItem (i)})

    }

    Sort by ascending order of displayed text

    () dropDownItems.sort

    function (a, b)

    {

    If (a.displayItem< b.displayitem)="" return="">

    If (a.displayItem > b.displayItem) return 1;

    return 0;

    });

    clear all items

    DropDownList1.clearItems ();

    load the sorted items

    for (var i = 0; i)< dropdownitems.length;="">

    {

    var dropDownItem = [i] dropDownItems;

    DropDownList1.addItem (dropDownItem.displayItem, dropDownItem.value);

    }

    clear the fields of the source

    ItemName.rawValue = null;

    BoundValue.rawValue = null;

    I added a button 'Add' sorted in my sample https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g

    Concerning

    Bruce

  • Custom Custom Format AND Date text field label

    I have created a form where I wanted each form field to have a label so that the user knows what to connect, BUT when I arrived at this day it became clear that I can only do one or the other, enter a name or select a date format, because they are both under the same category selection and you can choose only one. I found a previous discussion and was able to use the following code to label all the text fields and he also mentioned that an additional coding would be required to customize the date:

    Custom format for text field script

    If (! event.value) {}

    Event.Value = "enter meeting requested Date."

    Event.Target.Display = display.noPrint;

    } else {}

    Event.Target.Display = display.visible;

    }

    Now my problem is that in order to label the tabled text, I had to do a custom format, so I am unable to choose a custom date format. Instead of getting the error message when the format is wrong there at - it a way to make sure that no mater what type of date is connected, it is automatically reformatted to (mmmm dd, yyyy)?

    I don't know am new to the form of coding features and indeed if there is another way to lock it I would appreciate the help.

    Yes, it is possible... Basically you would use something like this as the custom for the field validation script:

    Event.RC = true;

    If {(event.value)

    var d = util.scand ("mm/dd/yyyy", event.value);

    If (d == null) {}

    App.Alert ("Invalid value.");

    Event.RC = false;

    } else {}

    Event.Value = util.printd ("mmmm dd, yyyy", d);

    Event.Target.Display = display.visible;

    }

    } else {}

    Event.Value = "enter meeting requested Date."

    Event.Target.Display = display.noPrint;

    }

    I have not tested, but I think he should do the trick.

  • Definition of child page value to the Parent page text field

    Apex 4.1.

    I have a form of the apex. When the user clicks a button on this page, it redirects to another page and the user can select a value from a list of values (Group of Radio buttons) and when the user click on the "Done" button on the second page, I'm again redirect to the front page and what needs to happen is the selected value in the second page should be set to a text field in the first page (parent). How can I do this, I tried the following,.

    (1) on the second page (list of values), I added a process to get the selected value and set it to the field of the 1st page (Page Item)
    (2) I created a branch to redirect to the first page when the user hit "Done" button and in the branch options, I gave the order of the day of the 1st page (at what value need to be defined) and the value selected in the second page.
    (3) in both methods, after redirection back to (1) parent Page, I checked the value of this particular text field page element, and it had the value selected in page 2. but still, it was did not update the user interface.

    Really grateful if someone can help on this.

    Apex-EPA,

    Some things could happen...

    1. your text field still has its source type by replacing the value and is overwhelming everything you set the value on.
    2. on your second page, you do not use the branch that you think that you use to return to the first page.
    3. your branch to the first page is clear the cache on the first page.

    Here is an example of this work: http://apex.oracle.com/pls/apex/f?p=43401:35:0

    See you soon,.
    Janet Tyson

  • How to automatically remove the "Default Value" of the text field text.

    Y at - it a java script, or something that I can apply to a text field that would automatically "By default" disappear when the person clicks on this area?  Instead of the need to highlight the text before you start typing...

    Screen Shot 2012-10-02 at 4.05.07 PM.png

    It is dangerous because it clears the field of the value entered by the user. In addition, event.value does not work in this context. You must use event.target.value.

    You use it for the event on Focus:

    If (event.target.value == event.target.defaultValue) event.target.value = "";

    And for the event on the blur:

    If (event.target.value == "'") event.target.value = event.target.defaultValue;

  • Spry validation text field ID error.

    Problems making a simple email form, after you remove an earlier version. When I try to insert a new text field, I get an error message saying that ID is used. I removed all the old pieces of code from an older form that I had replaced and cleaned my folder root roots but cannot get rid of this error message! Any ideas?

    UPDATE: it was the original question, I posted. I am reposting because I spent a day trying to the bottom of this and hopefully avoid that someone else is having the same problem. I finally called Adobe and they told me to delete all my active browsers then try and place the text field again. If someone understands why this works I would l appreciate an explanation. All spry elements get downloaded from the internet? I had the question once again, and because of the time, I just gave the text of new domain names and changed names on my php file. It bothers me only when things like this wrong to go and I don't know why. The work around was pretty easy and intuitive, but would like to understand why it occurs for later use. Thanks in advance to anyone who can help!

    faithkkuddles888 wrote:

    I had deleted all associated with HTML, CSS and the files of the current folder Spry support and continued to get the error message.

    I guess that since the Adobe rep told me to clear my browsers and try again it means that the support files that are automatically placed in the current folder Spry come from the internet. That is my question at this point. Thank you.

    No, they aren't. The Spry support files are placed when and if they are necessary and they are certainly not placed there directly from the internet.

    GRAMPS

  • text field with numeric values for sorting

    I'm having a problem my sort. Usually, when the column follows a format, I can use a combination of INSTR and LPAD to sort correctly. In this new case, my columns does not follow a specific format.

    Sample data:
    with t as(
    select 'xxx 10 MG yyy' sortcol from dual union
    select 'xxx 5 MG yyy' from dual union
    select 'xxx 28 MG yyy' from dual union
    select 'aa 10% 12.5 ' from dual union
    select 'aa 6.25% 12.5' from dual union
    select '222 zzz 30/17.5' from dual union
    select '222 zzz 30/5.5' from dual
    )
    select * from t
    
    SORTCOL
    222 zzz 30/17.5
    222 zzz 30/5.5
    aa 10% 12.5 
    aa 6.25% 12.5
    xxx 10 MG yyy
    xxx 28 MG yyy
    xxx 5 MG yyy
    I want to sort the data in the
    222 zzz 30/5.5
    222 zzz 30/17.5
    aa 6.25% 12.5
    aa 10% 12.5 
    xxx 5 MG yyy
    xxx 10 MG yyy
    xxx 28 MG yyy
    I'm trying to replace all numerical values in the string to have 4 digits. For example:

    xxx yyy MG 0010
    xxx yyy MG 0028
    xxx yyy 0005 MG
    0222 zzz 0030/0017.0005
    0222 zzz 0030/0005.0005

    If Oracle will sort correctly digital in the form of text fields. I thought I found the solution with the regular expression:
    select regexp_replace('x10x100x6.5x','([0-9]+)',lpad('\1', 4,0)) from dual
    
    x0010x00100x006.005x
    But the problem is that the backreference in the LPAD overrides the value before it run LPAD. He treats her like the literal string '\1' as oppose to the reference value: 10, 1, 6, and 5. Therefore, LPAD think length is always 2, length ('\1') = 2 instead of length('100') = 3.

    Is there another method to develop all the numbers? Thank you for your time.

    Hello

    You can do with nested REGEXP_REPLACEs:

    SELECT   sortcol
    ,      REGEXP_REPLACE ( REGEXP_REPLACE ( sortcol
                                 , '([0-9]+)'
                              , '000\1'
                              )
                   , '[0-9]+([0-9]{4})'
                   , '\1'
                   )     AS four_digits
    FROM       t
    ORDER BY four_digits
    ;
    

    You probably don't want to display the string converted; you want to just ORDER BY it. It is included in the SELECT clause only if you could see what it was, for the tests.
    Output:

    SORTCOL         FOUR_DIGITS
    --------------- ------------------------------
    222 zzz 30/5.5  0222 zzz 0030/0005.0005
    222 zzz 30/17.5 0222 zzz 0030/0017.0005
    aa 6.25% 12.5   aa 0006.0025% 0012.0005
    aa 10% 12.5     aa 0010% 0012.0005
    xxx 5 MG yyy    xxx 0005 MG yyy
    xxx 10 MG yyy   xxx 0010 MG yyy
    xxx 28 MG yyy   xxx 0028 MG yyy
    

    As you can see, the inner REGEXP_REPLACE adds 3 leading 0 to each number, if she need to 0, 1, 2, or 3. This means that each number will be at least 4 digits, but maybe more. The external REGEXP_REPLACE replaces 4 digits with the last 4 digits only.

    Thanks for posting the sample data in a useful form. The description of the problem was very clear, and it was useful to see that you had already tried and your results on why it does not work. I wish we could mark questions as "Correct." This one was really were.

    Published by: Frank Kulash, January 21, 2011 16:20

Maybe you are looking for