Disable the item based on a different value of items

Hello, I am trying to disable an element based on the value of another, and I'm not sure what I'm doing wrong.

I have in the header section of HTML form:

< script type = "text/javascript" >
function disFormItems (item1) {}
disItem = document.getElementById (item1);
disItem.style.background = "#eeeeee";
disItem.disabled = true;
}
< /script >


In the foot of the region, when I had the bottom it works.
< script type = "text/javascript" >
{disFormItems ('P19_RETURN_TO_CUSTOMER')}
< /script >

When I try to add my condition, nothing happens.
< script type = "text/javascript" >
IF ("P19_FILE_STATUS" = "A")
{disFormItems ('P19_RETURN_TO_CUSTOMER')}
< /script >

Why don't you use:
$f_DisableOnValue (pThis, pValue, pThat)
Checks the value (pValue) of an element (pThis). If it matches, this feature disables the element or the array of items (pThat). If it does not, then the element is activated.

so in your case: $f_DisableOnValue ('P19_FILE_STATUS', 'A', 'P19_RETURN_TO_CUSTOMER');

Tags: Database

Similar Questions

  • Enable and disable the item based on the Condition

    Hi Experts,

    I work in the form of 10g, I conditionally.

    I have the block master detail.

    Master block contains sub elements.

    CUSTOMER

    Address (read only) - no database element

    PRODUCT GROUP (read only) - no database article

    Note: The CUSTOMER is LOV, when I select the customers, I'm failing address and product group.

    Block detail contains sub elements.

    DATE OF START OF BLOCK

    DATE OF END OF BLOCK

    REASON

    Note: when I opened form all fields of retail blocks are enabled

    Requirement:

    1. when I created new record, at the time where I select the customer name, Bill and product group will be by default, in the block of detail - I want to activate and deactivate the block start date based on the value of the product group.

    2 if I erase block master, I need to activate the block_start_date like back when the new form is opened

    3. when I search the data also, block start date must be enabled and disabled based on the value of the product group.

    Could someone help me the best approach to achieve so that she will have no side effects.

    Thank you

    801619 wrote:

    Hello

    Thank you for your response... I have tried code trigger after change of category of products below.

    If: blockname.product_group = "Aviation" then

    set_item_property ('block.block_start_date', enabled, property_false);

    On the other

    set_item_property ('block.block_start_date', enabled, property_true);

    end if;

    1. it is disable the Group field when I put the cursor inside if the product category is "Aviation", but I want it to be automatic at a time where it will default to the value of product category.

    2. If the master clear record, is not allowing return product group

    3 suppose that if enter new record category of products "Aviation", once I put the cursor inside, it's debilitating, let's say if I erase the main recording without saving the changes, it not again allows the Group of products, it is now status (disable) previous.

    4. in query mode, it is not disabling or enabling from a group of products.

    Help, please.

    Thank you

    Ok.

    1. put your code on this trigger after changing point that fills the default value in the product category.

    2. remove the trigger after change of product group.

    3 put the same code to trigger once - new - Record - Instance of the main block.

    Hope this helps

    Hamid

  • Disable the inputText based on the value selected on SelectOneRadio

    Hi guys
    With the help of Jdev 11 g Release 1.
    I have a page with a selectOneRadio which has an option or NOT.
    Here's an inputText which is only enabled when the user selects No.
    I have a valueChangeEvent on the selectOneRadio that checks if this OPTION is enabled then it blanks to the inputText. AutoSubmit was true on selectOneRadio.
    However, this does not work.
    When I select No., the inputText is not getting activated. There is a partial trigger on it as well.
    The below code:

    < af:selectOneRadio label = "#{ebundle.» FORM5_UNSERVICEABLE}.
    ID = 'sor1"layout ="horizontal ".
    autoSubmit = 'true '.
    Binding = "#{pageFlowScope.ForBean.SERVICEABLE} '"
    showRequired = 'true '.
    valueChangeListener = "#{pageFlowScope.ForBean.servicebleChange}" >
    < af:selectItem label = "Yes" value = "Y" id = "si2" / >
    < af:selectItem label = "" value = "N" id = "si1" / >
    < / af:selectOneRadio >

    < af:inputText id = "it2" rows = "3" columns = "100".
    Binding = "#{pageFlowScope.ForBean.Reason} '"
    "Disabled =' #{pageFlowScope.ForBean.SERVICEABLE.Value =="Y"}"
    partialTriggers = 'sor1' / >

    {} public void servicebleChange (ValueChangeEvent valueChangeEvent)
    try {}
    If (this.serviceable.getValue () == "Y") {}
    this.reason.setValue (BLANK);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.pgl_reason); n < panelGroupLayout encompassing the inputText >
    } ElseIf (this.serviceable.getValue () == "N") {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.pgl_reason);
    }


    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    Any help... I have done the above with select box Boolean, but it doesn't seem to work with selectOneRadio.

    The af:selectItem do not have a connection to the managed bean. All that is not selected, the managed bean has no binding value.

  • How to select a pixel, or the value of the pixels based on a RGB value, or a range of values?

    Can Photoshop select a pixel, or a set of pixels based on a RGB value? For example, select all the pixels that are 5,6,5 or all pixels that are 238-248, 238-248, 238-248

    Yes.

    Select the ranges of colors in Photoshop

  • try to disable the items from an old computer that no longer works please help!

    tried to go through the text following steps how to disable the Adobe ID but I don't have a button 'manage plans '. My old PC that had my photoshop elements above no longer works after moving cross-country.

    When you have a non-functional computer and cannot turn it off, click on the link below

    Serial number and activation support (no-Cloud) https://forums.adobe.com/thread/2041990 to adjust the number of activations

  • Impossible to disable the item key

    I tried to disable the page with the dynamic action (Disable) and javascripts option question button
    document.getElementById("IDOFBUTTON").disabled = true;
    calls: $x_disableItem
    but not working, any idea?

    Thank you

    Hello
    >
    IM has added a new dynamic action
    onPageLoad > run Javascript > $("#TEST").unbind ("click");
    Scope of the event: Bind
    but can't make it work...

    I know it depends on the themes/templates. (my theme 23 Apex 4.1)
    >
    I presume that you have specified a TEST like the static ID of the button.
    To disable the button, you need to remove the href attribute

    $("#TEST").removeAttr("href");
    

    To enable it, you need to add the attribute href return

    $("#TEST").attr("href","javascript:apex.submit('')");
    

    See you soon,.

    PS: Inspect your HTML element button. You will see something like this

    Click Me
    

    NOTE: There should be no space in h ref, just added to post.
    In the code above
    ID = 'TEST', where the TEST is the static ID of the button. Button required with #BUTTON_ATTRIBUTES model #.
    CLICK_ME is the name of the button, the button REQUEST
    Click on me is the test Label /Alt.

    Published by: Dominique on August 13, 2012 17:14

  • Disable the settings based on the value of the parameters one another

    Hello

    I create a report that has a bunch of parameters. From among them when a user enters a value for say including OrderID parameter I want to disable all settings. For settings that are populated by a list of Values (LOV), I added a condition in the query, saying OrderID should be empty and the OrderID parameter I chose the option of "discounting the other settings on the changes. So whenever the command is empty all the other settings in the Menu have no value in their menus for the user to select.

    But I don't know how I can stop the user to select a value for the date parameters and the parameters typed in. Please let me know.
    Thank you
    DY

    I don't know anyway that you can prevent them to enter data in the other settings (except, as you said, for those sql-based).

    There is no reason, however, that you must use the values provide you these parameters. You should be able to structure the SQL behind your report to assess the setting entry (returns would work probably) to use only the values of the parameters B, C and D, if the parameter is set to null.

  • Disable the navigation based on the value of the column?

    Hello

    When you activate the navigation I don't want the hyperlink in navigation is enabled for the particular data values in the column of the query.

    For example in my request Req_A I have column A, which has enabled another report of navigation. Column A has the following values 'ABC' and 'XYZ' "TUV". Can I some how disable/remove navigation links where that value is "TÜV"?

    Hello

    You now use standard column navigation. Instead, you must create a Case statement and use [Url GO | http://download.oracle.com/docs/cd/E12096_01/books/AnyWebAdm/AnyWebAdm_APIWebIntegrate6.html#wp1005251] feature.

    Use a URL for the values you want to naviagate on. Otherwise, just show the value.

    Good luck

    Daan Bakboord
    http://obibb.WordPress.com

  • How to disable the datepicker based on the selection in a table list

    I created an example on

    https://Apex.Oracle.com/pls/Apex/f?p=85310:23:9121532652163:

    follow-up

    https://community.Oracle.com/thread/1119800

    but no luck

    My needs: -.

    with selection N dymanic action datepicker should be disabled

    and now, I think I need help.

    anyone if possible have a look what I'm doing wrong

    Hi ReemaPuri,

    Check your application on apex.oracle.com. The problem is resolved.

    Here are the steps:

    • Page-> section JavaScript attributes-> function and Global Variable declaration drafted according to the javascript function:
    function f_disableDtPicker (pThis) {
        var row_val = pThis.value;
        var row_id = pThis.id.substr(4);
        if (row_val == 'N') {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", true).addClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').addClass('apex_disabled').unbind('click');
        } else {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", false).removeClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').removeClass('apex_disabled').unbind('click');
        }
    }
    
    • Changed your SQL query from:
    select APEX_ITEM.SELECT_LIST(1,'Y','Yes;Y,No;N','class=myclass" onchange="f_disableDtPicker(this);"')yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    to do this:

    select APEX_ITEM.SELECT_LIST(
            p_idx           =>   1,
            p_value         =>   'Y',
            p_list_values   =>   'Yes;Y,No;N',
            p_attributes    =>   'class=myclass" onchange="f_disableDtPicker(this);"',
            p_show_null     =>   'NO',
            p_null_value    =>   NULL,
            p_null_text     =>   NULL,
            p_item_id       =>   'f01_'||ROWNUM,
            p_item_label    =>   'Label for f01_'||ROWNUM,
            p_show_extra    =>   'YES') yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    Kind regards

    Kiran

  • Disable the item the highest 'recommended' in the address bar list

    Even with Search Suggestions provide not checked on everything: #search and history, bookmarks and open tabs not controlled on all preferences: preferences #privacy, the address bar still shows an element of 'Recommended' at the top of the list, above even the ability to use a search engine. It is displayed in a different style as any other element. More cause confusion, it is often a site I have ever visited, then it may be possibly get from my history and is therefore almost always useless to me. How can I disable this? He put above all other elements: I have to jump in front of it to find what I'm looking for really. It essentially behaves like an advertisement, and when it pops up after that I typed it only one or two letters, it's practically guaranteed to not apply to what I'm actually looking for.

    Hi andygoth, it comes from the experience of universal search test driver you have, I guess: https://testpilot.firefox.com/experiments/universal-search

  • disable the items in cluster

    I have a cluster consisting of 10 Boolean buttons.

    Is it possible to easily disable some of the Boolean buttons inside the cluster without unbundling and rebundling of the cluster?

    YES you can get references to elements of a cluster individule.

    Right-click on your reference node and linkto the element of the cluster.

  • Time Dimension type to different values in the attributes - Bug or feature?

    Not sure if this is a bug or a feature.

    But if there is a time dimension hierarchies. You have the option of specifying different values for member attributes in different hierarchies.

    For example.

    A hierarchy has MIN_ID for its members and uses MIN_END_DATE for its end_date

    Hierarchy B has MIN_ID for its members and uses SESS_END_DATE for its end_date

    According to this message and a comment by David Greenfield:

    Gender issue when several mappings for different hierarchies

    "You try to map the same attribute, SORT, on different columns in two hierarchies? In other words, what do you expect the same Member to have different values for the attribute in the two different hierarchies? If so, then this is a problem because a member must have the same value for the attribute independently of the hierarchy. »

    Unlike a dimension of the user, a time dimension seems to allow this and it seems to work as expected. Behavior in this case is the difference between a user and the time dimension?

    Your description of the structure of the dimension is very clear, but I have a question about system requirements. When you say you want to the time running from 17:00 to 16:59, do you mean that the calculation must spand day? for example "5:00 PM: Jan 1, 2012" to "4:59 PM: 2 Jan 2012".» If so, then this you is impossible by making a loop only the dimension of time-seconds. Or do you really mean it must wrap around the same day. for example "5:00 PM: Jan 1, 2012" at "11:59 PM: 1 Jan 2012", then again to "00:00 AM: 1 Jan 2012" to "4:59 PM: 1 Jan 2012"?»»»

    If you want the calculation for the period of days, then I think you need to spend TIME on the DATE dimension level. You can leave some MINUTES in the second dimension, which can be a dimension of standard user. You must then two levels of the DAY (with different members) in the date dimension - each with a different set of the child. You can assign the TIME_SPAN to the TIME level 1.

  • How to disable the transfer of Subscriber conversation options?

    I have a worm unit 4.2 on CallManager optional Conversation 1 running for subscribers.

    Is there a way to remove the menu "press 4 to transfer options?

    The customer would prefer users not be able to change call extension or block of transfer by the auto attendant.

    Thank you

    Scott

    The best way to go about what works in any version of the unit is to assign users to a Service class that has a transfer restriction table the value ' * ' as not allowed. This means that users cannot change their strings of transfer to alll via web interfaces or phone. An administrator, however, will receive an Admin cos that would (probably) enter any number they like (do not forget that the restriction tables are applied based on the user who changes the number, not the user who's number is changed).

    In the next version 5.0 of the unit early next year custom keymap tool allows you to create a personalized conversation based on option 1 Covnersation if you like and it allows you to disable the items of the menu setup you want that users come - that inclusdes the conversation of transfer settings.

  • Invalidation of the index based on a function because the recompilation

    Hello

    one of our customers has two indices according to the functions that fall under the State "off" in some situations. After looking more closely at the situation, there are some things that my opinion are different from what I expected of a function-based index. Because I am unable to find anything about either on metalink (or I'm not asking the right question) I would appreciate a second opinion of you.

    To keep things simple, I gave an example to illustrate the behavior. I use Oracle 12.1.0.2, although it can also be reproduced on versions 10.2 and 11.2.

    It's my environment and three parameters that I find relevant to the discussion:

    SQL> select banner from v$version;
    
    BANNER
    ----------------------------------------------------------------------------
    
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    PL/SQL Release 12.1.0.2.0 - Production
    CORE    12.1.0.2.0      Production
    TNS for Linux: Version 12.1.0.2.0 - Production
    NLSRTL Version 12.1.0.2.0 - Production
    
    SQL> show parameter remote_dependencies
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ----------
    remote_dependencies_mode             string      TIMESTAMP
    
    SQL> show parameter query_rewrite
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- -------------
    query_rewrite_enabled                string      TRUE
    query_rewrite_integrity              string      enforced
    

    Test case:

    SQL> CREATE OR REPLACE FUNCTION f1 (p_string IN VARCHAR2)
      2  RETURN VARCHAR2
      3  DETERMINISTIC
      4  IS
      5  BEGIN
      6    RETURN lower(p_string);
      7  END f1;
      8  /
    
    Function created.
    
    SQL> CREATE TABLE tmp_t1 (a_string VARCHAR2(10));
    
    Table created.
    
    SQL> INSERT INTO tmp_t1 VALUES ('a');
    
    1 row created.
    
    SQL> COMMIT;
    
    Commit complete.
    
    SQL> CREATE INDEX x1_tmp_t1 ON tmp_t1(f1(a_string));
    
    Index created.
    
    SQL> set linesize 80;
    SQL> column index_name format a10;
    SQL> SELECT index_name, index_type, status, funcidx_status
      2    FROM user_indexes;
    
    INDEX_NAME INDEX_TYPE                  STATUS   FUNCIDX_
    ---------- --------------------------- -------- --------
    X1_TMP_T1  FUNCTION-BASED NORMAL       VALID    ENABLED
    

    We have our table and our based on an index function which basically converts the values to lowercase. From here on things, download a little weird. What happens with the index based on a function if the underlying function is recompiled? I always thought (and which is also stated in the Concepts and the use of function index (Doc ID 66277.1)) that the index would change its status to "disabled". Here is an excerpt of the said Doc ID:

    The index depends on the State of the PL/SQL function. The index can be

    struck down or rendered useless by changes to the function. The index is marked

    People with DISABILITIES, if he is brought to the function or function is re-created.

    The timestamp of the function is used to validate the index.

    To allow the index after it is created, the function if the signature of the

    the function is identical to the front:

    ALTER INDEX ENABLE;

    If the signature of functions is changed, to make the changes effective

    in the index, the index must be renewed to make it valid.

    ALTER INDEX REBUILD.

    It seems that this is not the case, as the index remains valid and activate.

    SQL> alter function f1 compile;
    
    Function altered.
    
    SQL> SELECT index_name, index_type, status, funcidx_status
      2    FROM user_indexes;
    
    INDEX_NAME INDEX_TYPE                  STATUS   FUNCIDX_
    ---------- --------------------------- -------- --------
    X1_TMP_T1  FUNCTION-BASED NORMAL       VALID    ENABLED
    

    OK, explicitly recompiling function F1 single timestamp changed. What if we replace the function completely and we change the output of the function - for example we will switch from a LOWER function to SUPERIOR function in the body of the F1. Again, it is change that I thought would be not only to disable the index based on a function, but also force its reconstruction. At least that is my understanding of the explanation in Doc ID).

    SQL> CREATE OR REPLACE FUNCTION f1 (p_string IN VARCHAR2)
      2  RETURN VARCHAR2
      3  DETERMINISTIC
      4  IS
      5  BEGIN
      6    RETURN UPPER(p_string);
      7  END f1;
      8  /
    
    Function created.
    
    SQL> SELECT index_name, index_type, status, funcidx_status
      2    FROM user_indexes;
    
    INDEX_NAME INDEX_TYPE                  STATUS   FUNCIDX_
    ---------- --------------------------- -------- --------
    X1_TMP_T1  FUNCTION-BASED NORMAL       VALID    ENABLED
    
    

    Should not be. Because of the function "create or replace" F1 never go through a "invalid" phase which may be necessary for index becomes unusable? What about queries on the TMP_T1 table? Does optimizer always uses access index or not? What about the results?

    SQL> EXPLAIN PLAN SET statement_id='s1' FOR
      2  SELECT a_string, f1(a_string) as f1_a_string, f1('a') as f1_literal
      3    FROM tmp_t1
      4   WHERE f1(a_string) = 'a';
    
    Explained.
    
    SQL> SELECT * from table(dbms_xplan.display(statement_id=>'s1'));
    
    PLAN_TABLE_OUTPUT                                                                                                   
    ------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 3133804460                                                                                         
                                                                                                                        
    -------------------------------------------------------------------------------------------------                   
    | Id  | Operation                           | Name      | Rows  | Bytes | Cost (%CPU)| Time     |                   
    -------------------------------------------------------------------------------------------------                   
    |   0 | SELECT STATEMENT                    |           |     1 |  2024 |     2   (0)| 00:00:01 |                   
    |   1 |  TABLE ACCESS BY INDEX ROWID BATCHED| TMP_T1    |     1 |  2024 |     2   (0)| 00:00:01 |                   
    |*  2 |   INDEX RANGE SCAN                  | X1_TMP_T1 |     1 |       |     1   (0)| 00:00:01 |                   
    -------------------------------------------------------------------------------------------------
    

    The index is used by the optimizer, see the results.

    SQL> column f1_a_string format a15;
    SQL> column f1_literal format a15;
    SQL> SELECT a_string, f1(a_string) as f1_a_string, f1('a') as f1_literal
      2    FROM tmp_t1
      3   WHERE f1(a_string) = 'a';
    
    A_STRING   F1_A_STRING     F1_LITERAL
    ---------- --------------- ---------------
    a          a               A
    

    A_STRING = value in the table

    F1_A_STRING = value of f1 (a_string) but the value is not evaluated because it comes from an index, so tiny value (remember, at the time index created the function returned small values)

    F1_LITERAL = value of the function f1 newly evaluated, using literal instead of the value in the table.

    Predicate f1 (a_string) = 'a' should return no rows because no character uppercase is equivalent to "a". Query with f1 (a_string) = 'A' should return a line, but it doesn't.

    SQL> SELECT a_string, f1(a_string) as f1_a_string, f1('a') as f1_literal
      2    FROM tmp_t1
      3   WHERE f1(a_string) = 'A';
    
    no rows selected
    

    Anyone know if this is an expected behavior? And, is it possible to disable the index based on a function whenever the underlying function signature is changed? The parameter query_rewrite_integrity = applied from

    DOC-ID 66277.1 does not seem to do the trick:

    (c) session variables

    ~~~~~~~~~~~~~~~~~~~~

    QUERY_REWRITE_ENABLED (true, false),

    QUERY_REWRITE_INTEGRITY (confidence, forced, stale_tolerated)

    determines the optimizer to use index based on a function with

    expressions using SQL, user defined functions functions.

    TRUST: Oracle allows rewrites using relationships that have

    was declared.

    APPLIED: Oracle ensures and guarantees consistency and integrity.

    STALE_TOLERATED: Oracle allows rewrites using vessels of the relationship not applied.

    Used in the case of materialized views.

    Set session variable cost function optimizer to choose the

    a function-based index

    Kind regards

    SAMO

    From the Manual 11.2 ( https://docs.oracle.com/cd/E11882_01/appdev.112/e41502/adfns_indexes.htm#ADFNS254 )

    "If you change the semantics of a DETERMINISTIC run and recompile, then you must manually rebuild all addicts depending on index and materialized views." Otherwise, they report results for the previous version of the function. »

    This note is not that I made my initial comment well - which was based on an incorrect memory the relationship between function-oriented and autonomous pl/sql functions, so I won't try to explain it. In fact, I went back to Oracle 8i practice to see if something had changed between yesterday and today and found that I had described exactly the behavior that the OP has been seeing. It's the way it is supposed to be.

    Concerning

    Jonathan Lewis

  • Add the symbol to the stage based on string of symbols

    Hello

    I am the string to add a symbol on the stage based on a string value in an existing symbol which is on the stage. I get no error when the game turns, but the symbol just reproduce on stage. I have no idea why

    This is the code:

    Variables used

    var score: int = 0

    var startX:int = stage.stageWidth = 920

    var startY: int = stage.stageWidth = 475

    Check to see if the "partition" amounts to 350 in ScoreBoardDisplay.txtScore.text

    If (ScoreBoardDisplay.txtScore.Text == String (350))

    {

    var HD1 = new HealthDrop();

    HD1.x = stage.stageWidth = startX

    HD1.y = stage.stageHeight = startY

    stage.addChild (HD1);

    HealthDrops.push (HD1)

    }

    Assuming you do not penetrate into this framework, when you check the score, but are always there, or at least hang out for a while, the problem is that the conditional code that you show only will run once, immediately entering into this framework.  He is not sitting it monitor any changes in the value of the text field.  You must specify the code to run.

    In this case what you could do is to place this code in a function that runs whenever the textfield value is changed.

    This code that you have to change the value of the TextField?

Maybe you are looking for