change a State of buttons based on another value of buttons

do not remember how to change a State of buttons depending on the value of another button.

I think it was a structure of the event?

can someone point out an example?

Thank you

There are several elements to your question:

In response to a status change button: this can be done with either a structure of the event in a loop, or by querying the button in the loop. Examples are provided with LabVIEW on the use of the structures of the event.

Changing the value of another button: this can be done with either a local variable or a "Value" property node (Cue the crowd of local variables at this stage.). Note that the lock of your button action will affect if you can do it. See this article for more information: why is my property a Boolean node a Variant?

Tags: NI Software

Similar Questions

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • Change the type of region based on the value of the element

    Hi all
    Is it possible to change a type of model of a region based on the value of the page element?
    For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.

    I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
    Is this possible?

    Enjoy your entries.

    Thank you!

    Spriya wrote:
    Hi all
    Is it possible to change a type of model of a region based on the value of the page element?
    For example, if I have a template type for the area has as the type of model and the region to hide/show for area B as hide/show as well.

    I want that type of region B model will be replaced by a type of custom template based on the value of an element in A region.
    Is this possible?

    N ° you either need to have 2 instances of region B, based on different models and make one of them conditionally based on the value of the area A; or to develop a unique model with a structure that is flexible enough to be used in both cases and change its appearance and behavior, for example, Exchange classes in dynamic Action.

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • Tabular presentation - column to turn it off (with picture) based on another value of the column

    Hi all

    I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

    I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

    My SQL for the report is something like this: (will keep things simple)

    Select

    emp_id,

    emp_name,

    static_list,

    (case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

    dept_name

    of sample_table

    I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

    I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

    I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

    need your help on how to proceed with this scenario. Thank you in advance.

    Versions: Apex: 4.2, DB: 11 g

    Thank you

    Daniel

    Hi Daniel_A,

    Daniel_A wrote:

    I did my job in Page 4.

    If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

    The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

    This is done with the help of two dynamic actions:

    • DA first loading of the Page / after updating of region "tabular":

    Event: After refresh

    Selection type: region

    Region: The other 'tabular '.

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $( 'select[name="f08"]' ).each(function() {
      if ( $(this).val() === "N" ) {
        $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
      }
    });
    

    Items concerned: no item affected

    • Second DA on the evolution of the selection list:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f08"]

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var el = this.triggeringElement;
    if ( el.value === "N" ) {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
    } else {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
    }
    

    Items concerned: no item affected

    NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

    Kind regards

    Kiran

  • Conditional display of one article based on another value of element

    Hi all

    I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

    For example: 1st selection list item = items (Job, Name, ID)

    2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

    So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

    How can I achieve this?

    Please help me.

    Thanks in advance

    8f4692cc-040e-48EE-B102-590cdd4303fc wrote:

    Please update your forum profile with a real handle instead of '8f4692cc-040e-48ee-b102-590cdd4303fc '.

    I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

    For example: 1st selection list item = items (Job, Name, ID)

    2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

    So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

    How can I achieve this?

    Use the built in support of the LOV cascading by converting static LOVs in dynamic LOVs based on SQL queries:

    Question of LOV1:

    select 'Job' lov_label, 'JOB' lov_value from dual
    union all
    select 'Name', 'NAME' from dual
    union all
    select 'ID', 'ID' from dual
    

    Question of LOV2:

    select name lov_label, name_pk lov_value from names where :LOV1 = 'NAME'
    union all
    select job, job_pk from jobs where :LOV1 = 'JOB'
    union all
    select id, id_pk from ids where :LOV1 = 'ID' 
    
  • Script to change the selection of combo based on numerical values box is entered in a text box

    I implemented a form of feedback to student and I'm looking for how to refine the process for the user. Please see the image below. As you can see that the form has individual learning, each of which has three statements of "feedback". These are currently the combo boxes with predefined statements selected by the user in the menu dropdown. These statements are connected digitally to our marking scheme that is if the feedback statement uses the word "limited", it matches with a score of 20-39 on our scale of correction. If she uses the word 'excellent', he corresponded with a score of 70-100.

    Limited 20 - 39

    40 - 49 adequate

    good 50-59

    very good 60-69

    excellent 70-100

    Currently, the user enters the brand in the small text box size in the right corner of the relevant learning outcomes. The user must then manually select the corresponding instructions of feedback from the drop-down list box. Which is quite tedious. Here's the thing:

    Most of the time statements all match the digital brand, i.e. If the student received a score of 55, then feedback statements would usually all be in the 'good' category: '.. '. good quality research... «, ».. good analysis... «, ».. good research management... ". It would be a great time saver if the statements could be scripted to react to the numbers in the text box. For example, when the user types in a notes 50-59 feedback instructions themselves define automatically to all be '... good... ". There's still a thing.

    It is important that the user has the possibility to change the declarations of individual feedback if necessary. that is a mark of 58 may require two statements of feedback in the "good" and the other in the 'very good' category: '.. '. good quality research... «, ».. good analysis...', '... VERY good orientation of the research... ". The user must therefore always the option to bypass the automatic selection if necessary.

    It's beyond my Basic scripting capabilities, but I wonder if anyone can break this problem? Your help would be much appreciated.

    feedback-form-screenshot.jpg

    Thank you

    Charlie

    Hello

    I create a simple sample here - https://acrobat.com/#d=FFhf7MQtKrH5iickDJBBxw

    I used the blur of the text field event so that the code is triggered when you tab to or click elsewhere in the form, the code can easily be moved.

    I named the fields

    Text1

    Dropdown1

    Dropdown2

    Dropdown3

    and these will have to be renamed according to the names of your fields.

    Hope this helps

    Malcolm

  • Make a column based on another value of the column in the same table

    JDev 11.1.1.6.0

    It may be a silly question but I'm stuck

    I need to conditionally return a column that said Condition is as if the value in the other column of the same table B is equal to F. I should make A column only when this condition is met. I tried the following code:

    < af:column sortProperty = "PhoneNumber1."
    sortable = "false".
    headerText = "#{bindings." A.hints.PhoneNumber1.label}.
    ID = "c146.
    rendering = "#{rank." PhoneNumber1ResponseFlag eq 'F'} ">"
    < af:outputText value = "#{rank." PhoneNumber1}.
    ID = "ot130" / >
    < / af:column >
    < af:column sortProperty = "PhoneNumber1ResponseFlag."
    sortable = "false".
    headerText = "#{bindings." B.hints.PhoneNumber1ResponseFlag.label}.
    ID = "c80" rendered = "true" >
    < af:outputText value = "#{rank." PhoneNumber1ResponseFlag}.
    ID = "ot129" / >
    < / af:column >

    The data presented in the table for the PhoneNumber1ResponseFlag column are F. Still my condition does not work.

    Well, I've finally sorted it myself by managed bean.

    Here are the steps I followed:

    1. Wrote a new bean managed.
    2. Added a Boolean variable called flag and made to true when the "'PhoneNumber1ResponseFlag ' current line attribute is equal to F."
    3. Changing the property made column on this indicator.
  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • Change the State of all the Image inside the list view toggle button when a list is tap

    Hi, please help, is there a way to change the State of a toggle button to image inside the listview where in when you type a list, the toggle button in the list state change and the other toggle button will be set to their default image? the list has a defined Image toggle button to check both...

    
    ListView {
    
                        layout: GridListLayout {
                            cellAspectRatio: 1.4
                        }
    
                        id: denominationList
                        dataModel: _model.denominationModel
    
                        listItemComponents: [
    
                            ListItemComponent {
    
                                id: component
                                type: "item"
                                CustomListItem {
    
                                    id: itemRoot
                                    dividerVisible: false
                                    highlightAppearance: HighlightAppearance.None
    
                                    Container {
                                        id: fieldContainer
                                        topPadding: 5
                                        leftPadding: 10
                                        rightPadding: 10
                                        bottomPadding: 5
                                        //maxWidth: 270
    
                                        layout: DockLayout {}
    
                                        Container {
                                            id: amountContainer
                                            //topPadding: 
    
                                            layout: DockLayout {}
                                            background: Color.create("#ffffff")
                                            horizontalAlignment: HorizontalAlignment.Center
                                            verticalAlignment: VerticalAlignment.Center
    
                                            ImageView {
                                                id: amountBorder
                                                preferredWidth: 400
                                                imageSource: "asset:///images/flux/amount-border-other.png"
                                            }
    
                                            Container {
                                                horizontalAlignment: HorizontalAlignment.Center
                                                verticalAlignment: VerticalAlignment.Center
                                                layout: StackLayout {
                                                    orientation: (!(ListItemData.name > 4) ? LayoutOrientation.TopToBottom : LayoutOrientation.LeftToRight)
                                                }
    
                                                Container {
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    verticalAlignment: VerticalAlignment.Top
                                                    visible: (ListItemData.name.length > 4)
    
                                                    preferredHeight: 60
    
                                                    Label {
                                                        id: loadPromoName
                                                        textFit.mode: LabelTextFitMode.FitToBounds
                                                        //multiline: true
                                                        visible: (ListItemData.name.length > 4)
    
                                                        textStyle{
                                                            fontSize: FontSize.Medium
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.name
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: VerticalAlignment.Center
                                                    topPadding: 8
                                                    rightPadding: 0
                                                    ImageView {
                                                        visible: (ListItemData.name.length <= 4)
                                                        preferredHeight: 40
                                                        imageSource: "asset:///images/flux/pesosign-amount.png"
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: ((ListItemData.name.length > 4) ? VerticalAlignment.Center : VerticalAlignment.Bottom)
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    leftPadding: 0
    
                                                    Label {
                                                        id: amountLabel
                                                        textFit.mode: LabelTextFitMode.FitToBounds
    
                                                        textStyle{
                                                            fontSize: FontSize.XLarge
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.amount
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        ]
                        onTriggered: {
                            var selectedItem = dataModel.data(indexPath);
    
                        }
                    }
                }
    

    link the button to a property of an element, and then change all the elements in the datamodel. ListView reflects these changes.

  • Is it possible to change the State through several buttons?

    If I have already created, say, 100 identical buttons, and I want to change the State 'down' to a new color other than black. is it possible to do it quickly? I use 9 Captivate.

    Because you talked about "buttons" I assumed that you were pointing to the InBuilt States: Normal, rollover and down. The situation with styles is a little confusing IMO concerning States. You cannot set the States in Manager of Style of the object, as was the case of the Captivate 8 buttons. Since 9 Captivate, you will need to define States in the Panel object, for custom reports also state in regard to integrated States. Part of the InBuilt says are really integrated in the style: this is the case for all of the State for the Image buttons, for the background/outline for other types and form buttons. The labels on the buttons (text, system and form) are not part of the style. The exception are the image buttons because you have to put the text in the images. If you add objects in integrated States, they wil not be part of the style.  Even for States custom: they are not part of the style. I have problems with this configuration of confusing. It would be much easier, I think, if everything was recorded in an object style could be edited and changed in the Object styles Manager.

    The button menu "three lines", also called the hamburger or hot dog button, has opportunities to save changes to an existing style, to create a new style to apply a style to objects with a different style by default (as long as you override, leading + sign to appear).

    This no doubt confused answer: the workflow, I proposed with object styles, does that for characteristics that are saved in an object style (there no real explanation to help him as far as I KNOW). Now, I understand your last answer (sorry) that you are talking about a State that isn't integrated, but custom. In this case, you cannot change this State for all buttons at the same time. Only way is to duplicate the buttons. My apologies, I may have to write a blog about the object styles and its Director. I've heard several trainers proclaiming that they never use the OSM.

  • change of State of the photoshop button after it is placed

    I can't find out how to change the State of a button in photoshop after it is placed in the layout. I know I can set the State of a button as I place, but once it's in it seems to be stuck.

    Example: I create a badge in PS with normal, rollover, the mouse down and then active States and place it in my site. Later, I decide I want to active State to even appear in a reversal, but since he's already been placed, I can not change the State.

    Anyone had this same problem, and if so have you been able to change States without remove the button and the re - set?

    So, it might be better to simply have a button to Muse, in this way, you can change the States. You could also use your PS button and oblige States to be something like a shadow that changes in different States. Just a thought.

  • Change the Label element based on the value of another element

    Hi guys,.

    I need to put a label of point (A) based on the value of another article (B). I did the following:
    I created a dynamic action.
    When B changes:
    1. present the value of B
    Article 2-updated
    Is element A label: myitem & b.

    Any ideas?

    Best regards
    Fateh

    His work! Check it out now

    Just do it

    $('#mylabel').children('label').children('span').text($v('P1_A'));
    

    Published by: VC on June 9, 2012 11:21

  • Change of State via a button in an item converter

    Hello
    I have a request, and I'm changing "State" via a click of a button in the dataGrid control. I have outside the grid and not in an itemRenderer buttons that change the State.

    I have attached the code below (about 20 lines).



    Thanks in advance to anyone who can help.

    Click = "outerDocument.CurrentState = 'monthly'"

  • change of State and change read Boolean

    Hello everyone,

    Sorry to bother you, but as a new user of Labview, I always have problems to the VI program. I try to do my best alone, but right now I'm at an impasse for some time... That's why I come back to you.

    Here's my problem:

    -in A VI I made, I have a Boolean value which controls than if the data are recorded or not. When recording is activated, the led lights up, when off the light is.

    -Actually, I bind the Save action to something more complicated:, I wish that the State changing the Boolean value to light several leds in a specific order.

    Thus, when the Boolean value changes, this should change the status of the leds.

    I managed to do it, when you press the button in the boolean_count.VI, which has for result that I would get.

    My problem is that the state change is not triggered by a push button. It depends on several State (true or false), which the record command or not.

    To simulate this, I tried to do the same as above, but with 2 Boolean values, which must be both faithful to initiate a change. I tried to do this in the Try_out_boolean.VI file

    But iin this file, when I push my buttons, there is no change of State in the right part of my Panel of...

    I hope you can underrstand what I mean. If you have any suggestions, I'll be happy to read them.

    in the property node "1and2" of your Try_out_boolean.vi, you read the property "BindingLEDVisible".

    (as I downloaded) That makes no sense at all.

    -> Click on with the mouse on the node of this property one choosing the property "Value" instead.

    Then, your application must react as wanted.

    Thre may be other possible improvements, for example using the event structures instead of constantly of the poll.

    but that's another topic...

    I hope that this help a little.

Maybe you are looking for

  • Firefox hangs frequently on Windows 8.1

    Firefox has been suspended at apparently random times since I got my laptop Windows 8.1, who owns an i7, 8 GB of RAM and Intel HD 4600 Graphics. Hanging itself lasts anywhere from 10 seconds to a few minutes, and it usually freezes all other programs

  • (Error code: sec_error_ocsp_unknown_cert)

    Normally, during the passage of certificate error, you can always allow it but this time I do not get the additional options to enable a... And manually enabling or creating a certificate in firefox does not work or the other... Its a known site of t

  • Change screen saver "Word of the Day" to use a dictionary, English or Japanese.

    Hi all I saw a similar post which has never solved: Change default dictionary for "Word of the Day" screen saver Essentially, I want to be able to use a different dictionary as a source for the screen saver 'Word of the Day. The only options are curr

  • How to change the name of the graphic cursor Position

    LV 8.6.1 - Win Vista I've seen this question asked before, but the responses were 4-5 years ago, and perhaps that things are different now. I have a chart xy (see photo) where I display a cursor and use the NAME attribute to be DISPLAYED. Outside the

  • Loading and playing of music also works on Fuze &amp; Ubuntu 8.10 - Possible with Win XP?

    With the MTP USB Mode selected: (a) Ubuntu 8.10 and Rhythmbox after clicking on eject the device (Sansa Fuze) he continues to collect, but as if I would use a wall charger I can listen to music. (b) with Windows XP SP in Songbird 1.1.1 it does not. I