• Waseem AlBatsh
    May 16, 2016 at 1:26 am #1799


    Noticed an issue when using a Masked Text  , where the control doesn’t update it’s bound variable, as below scenario:

    I have a Masked Text , and a Button “Labeled: Clear Data”

    1. Masked Text is bound to variable “var1”
    2. User enters any value in the Masked Text
    3. User clicks on the Button to Clear entered data (tw.local.var1=””)
    4. Now If the user re-enters the same value (as entered in step 2), then variable will not be updated with the new data , also clicking the Clear Data Button will not have an effect on the control as the old value stays displayed on the Masked Text.


    • Attached screenshot for extra info (logging variable change)
    •  I’m using community edition v4.3.2.1
    Rackley Boren
    May 20, 2016 at 4:24 pm #1831

    Hi Waseem,


    I am not seeing any issue when I tried to recreate it. Based on what you described, I set it up when you click “Clear Data” it runs through a server side script to set the variable = “”. I am not sure what is going on for you and how you are logging could have something to do with it. Have you tried just debugging through it?

    Also, is there a particular reason for going back to the server side to clear the value of the variable? You can use SPARK to handle all of this client side. For your “Clear Data” button. In the On Click event handler. ${Masked_Text1}.setText(“”);  should clear out the data with no problem and allow you to set a different value.




    Rackley Boren

    Waseem AlBatsh
    May 23, 2016 at 3:31 am #1851


    From what I’m seeing here , I guess the issue is not wheather I’m clearing the value server side or client side, cause I’m getting the same behaviour eitherways.

    As per the above attached screenshot the Masked Text does not bind the value entered the 2nd time if it’s the same exact value entered the 1st time, I logged the variable before and after entering same value , and the variable stays empty if the same value is eneterd the 2nd time (after clearing the variable by serverside/client side script).

    This behaviour does not happen with Text control , only noted on Masked Text .

    Rackley Boren
    May 24, 2016 at 2:33 pm #1892

    Hi Waseem,

    I am going to need some additional information to help as I am not seeing this issue at all. Please provide some screenshots of your binding and the set up of your test service.

    Have you debugged and stepped through to see that the value is set after the coach is submitted before the logging occurs?




Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search