How to use a checkbox to toggle visibility of a Bar or Line on a Graph

I came across a tutorial but can't seem to get it working properly.  Would someone be able to better explain how you can use checkboxes on/off to toggle the visibility of a line or bar on a graph?  I know you can do this directly within the graph's legend, but my legend is so large that it doesnt fit on my screen, so I need to take an alternative route.
This is the tutorial i'm referencing:
http://analysis-reporting.blogspot.com/2009/06/formatting-tricks-2.html
Here is a screenshot of my dashboard. I want to code the checkbox to turn visibility on/off of the blue bar, the blue bar gets its values from Row 3 Colums B to F:
http://img266.imageshack.us/img266/3838/testah.jpg
Any help would be greatly appreciated!

It appears that you're missing the logic for the check box.  There needs to be a cell whose value changes based on the check box's status (1 for checked, 0 for unchecked).  Do this choosing 'destination' in the check box's options and setting it to a cell in your spreadsheet.  The default values are 1 for checked, 0 for unchecked.  Then, you should have the values for your blue line in a table, but the actual line graph should be driven from an identical table that gets its information from the first table (confusing?).  The logic in the 2nd table should read:   =IF(Control Cell = 1, Actual Value, "")
What this does is if the check box is checked, then the 2nd table will read the same as the first, and your values will appear.  However if the check box is unchecked, the 2nd table will have blank values ( "" ) and thus not register.
Here are some images to help:
This is the dashboard I created, notice the values are mapped to one area but the chart is driven by the other.
http://img191.imageshack.us/i/basicr.png/
This screen shows that the chart is driven from the 2nd set of data.
http://img821.imageshack.us/i/chartdata.png/
This screen shows the logic behind the 2nd table, the one that actually drives the chart.
http://img836.imageshack.us/i/maplogica.png/
This screen shows the check values for the checkbox.  Note that the destination for the first check box is cell B3.
http://img683.imageshack.us/i/checkbox.png/
This is the dashboard in action:
http://img511.imageshack.us/i/inaction.png/
Here is the XLF file so you can look at the logic and stuff.
http://www.filedropper.com/demo1_2
--Hope this helps.

Similar Messages

  • How to use the second display for installation OS in my vertical lines iMac

    My 17" iMac display is full of vertical lines, it is unuseable. Does anyone know how to use the second display for Mac OS X or disable the first display for installation Mac OS x ?

    Go to: *System Preferences > Displays* and select the Arrangement tab, then relocate your Menu bar by dragging it to the other display.
    Unfortunately there is no Hardware or Software switch to turn off the iMac's Internal Display.

  • How to use a checkbox

    I looked at the help for a single checkbox, but there are no examples for it. I have not been able to figure out how to find the state of the box when I submit the page. It is always its default value.
    Help says it can be used as a boolean control. What does this mean? I tried binding a boolean to SelectedValue, escape, but isEscape() does not return the right value. I tried removing this, and then checkbox.getSelectedValue() also does not work.
    Help please.
    Jim

    This shows a demo of checkbox:
    add a textField
    add a checkbox without any change of properties
    add a button - in properties set text to "Change"
    --      doubleclick the button and replace TODO with following code:
         if (checkbox2.isChecked()) {
    checkbox2.setSelected("false");
    } else {
    checkbox2.setSelected("true");
    add another button - in properties set text to "Read"
    --     doubleclick the button and replace TODO with following code:
         if (checkbox2.isChecked()) {
         textField7.setText("true");
         } else {
         textField7.setText("false");
    Run:
    Click checkbox and then Read-button
    Click change-button and then read-button
    If you have a DB in bottom and want a checkbox to show a value from a table
    here is a tutor for that:
    DB-table with columns id of integer, name of varchar, friend of boolean
    Drag the table from Servers to the page
    add 3 textfields
    add a dropDownlist
    rightclick --> Autosubmit on Change
    rightclick --> Bind to data --> select xDataProvider --> select desired value=id and desired display field=name
    rightclick --> Edit EventHandler --> processValueChange
    replace the TODO with
    RowKey[] xrows = xDataProvider.getRowKeys(xDataProvider.getRowCount(), null);
    xDataProvider().setCursorRow(xrows[Integer.parseInt(dropDown1.getSelected().toString())-1]);
    When select a new value the page is sent back to server and you need these 2 lines to update the fields.
    textField1.setText(dropDown1.getSelected().toString()); (Shows dropDown selected item)
    textField2.setText(xDataProvider.getCursorRow().toString()); (shows dataprovider cursorrow)
    textField3.setText(xDataProvider.getValue("DB_tablename.friend", xDataProvider.getCursorRow())); (shows value of dataprovider friend column)
    add a checkbox
    rightclick --> Bind to data --> select xDataProvider --> select desired value=id and desired display field=friend
    in checkbox properties -- Data - converter - select booleanConverter
    in checkbox properties -- Data - selected - set this to true (true represent checked checkbox)
    Run and see changes (need at least 2 rows in DB table with different values for friend)
    Please give feedback if this helps.

  • How to use a checkbox table cell in FXML

    I've figured out how to make a column in a TableView render as a checkbox rather then just text when the UI is written in Java. Now I'm trying to figure out how to do the same thing with FXML. I've tried a couple experiments which have all failed, usually with an exception complaining that it can't coerce a table cell class type (or extension) to an interface (i.e. Callback).
    Right now I'm just trying to make one of the columns be a checkbox. I'm not trying to use any custom type. In other words, in Java I would have done the following:
    TableColumn<MyModel, Boolean> col1 = new TableColumn<MyModel, Boolean>();
    col1.setCellValueFactory(new PropertyValueFactory<MyModel, Boolean>("col1Field"));
    col1.setCellFactory(CheckBoxTableCell.forTableColumn(col1));This works when I build the UI using Java API calls. Does anyone know how to do this in FXML?

    Thank you both.
    I used Luca's suggestion as a first step.
    You'll find attached my v.i. that enables me to do what I wanted. It finally works as I expected. It would have been much simpler if my DAQ was able to measure directly a resistance!
    Loris
    Attachments:
    banc_de_test_température.vi ‏205 KB

  • How to use the checkbox for bapi parameter ?

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

  • [Forum FAQ] How to use multiple field terminators in BULK INSERT or BCP command line

    Introduction
    Some people want to know if we can have multiple field terminators in BULK INSERT or BCP commands, and how to implement multiple field terminators in BULK INSERT or BCP commands.
    Solution
    For character data fields, optional terminating characters allow you to mark the end of each field in a data file with a field terminator, as well as the end of each row with a row terminator. If a terminator character occurs within the data, it is interpreted
    as a terminator, not as data, and the data after that character is interpreted and belongs to the next field or record. I have done a test, if you use BULK INSERT or BCP commands and set the multiple field terminators, you can refer to the following command.
    In Windows command line,
    bcp <Databasename.schema.tablename> out “<path>” –c –t –r –T
    For example, you can export data from the Department table with bcp command and use the comma and colon (,:) as one field terminator.
    bcp AdventureWorks.HumanResources.Department out C:\myDepartment.txt -c -t ,: -r \n –T
    The txt file as follows:
    However, if you want to bcp by using multiple field terminators the same as the following command, which will still use the last terminator defined by default.
    bcp AdventureWorks.HumanResources.Department in C:\myDepartment.txt -c -t , -r \n -t: –T
    The txt file as follows:
    When multiple field terminators means multiple fields, you use the below comma separated format,
    column1,,column2,,,column3
    In this occasion, you only separate 3 fields (column1, column2 and column3). In fact, after testing, there will be 6 fields here. That is the significance of a field terminator (comma in this case).
    Meanwhile, using BULK INSERT to import the data of the data file into the SQL table, if you specify terminator for BULK import, you can only set multiple characters as one terminator in the BULK INSERT statement.
    USE <testdatabase>;
    GO
    BULK INSERT <your table> FROM ‘<Path>’
     WITH (
    DATAFILETYPE = ' char/native/ widechar /widenative',
     FIELDTERMINATOR = ' field_terminator',
    For example, using BULK INSERT to import the data of C:\myDepartment.txt data file into the DepartmentTest table, the field terminator (,:) must be declared in the statement.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,:’,
    The new table contains like as follows:  
    We could not declare multiple field terminators (, and :) in the Query statement,  as the following format, a duplicate error will occur.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,’,
    FIELDTERMINATOR = ‘:’
    However, if you want to use a data file with fewer or more fields, we can implement via setting extra field length to 0 for fewer fields or omitting or skipping more fields during the bulk copy procedure.  
    More Information
    For more information about filed terminators, you can review the following article.
    http://technet.microsoft.com/en-us/library/aa196735(v=sql.80).aspx
    http://social.technet.microsoft.com/Forums/en-US/d2fa4b1e-3bd4-4379-bc30-389202a99ae2/multiple-field-terminators-in-bulk-insert-or-bcp?forum=sqlgetsta
    http://technet.microsoft.com/en-us/library/ms191485.aspx
    http://technet.microsoft.com/en-us/library/aa173858(v=sql.80).aspx
    http://technet.microsoft.com/en-us/library/aa173842(v=sql.80).aspx
    Applies to
    SQL Server 2012
    SQL Server 2008R2
    SQL Server 2005
    SQL Server 2000
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to Use Associated App to open a file in Linux command line?

    Hi all,
    I know in windows i call always run:
    Runtime.exec("start aPicture.jpg");in order to use the default picture viewer to view the pictures
    Runtime.exec("start aEmail.eml");in order to use the default email viewer to view the .eml file
    is there a simular command in linux as well? does it depend on different distributions as well?
    thank you.

    is there a simular command in linux as well? does it
    depend on different distributions as well?In linux it's different because the handling is done by the desktop environment. KDE has it's own file associations and Gnome has it's own. There might be some way to start a file like that, but you first need to see which DE is installed (if any) and start it using that DE's method.
    But I don't know how to do it, even though most likely it's possible.
    Sincerely,
    Jussi

  • How to use a single variable in multiple schedules in bar graph

    Hello Experts,
    I am usiing a variable X in different schedules for creating a bar graph.This variable X is used in all schedules with different restrictions.For that reason I have to use X and follow some space after X to use it in another schedule. Is there any method to use X again base on schedule name? For example: If schedule1 then X where key=1000 and if schedule2 then X where key=2000.

    Hi,
    You can create a variable with the same name but use this in a small case...
    All the Best,
    Madhu....

  • How to use long capture filter with Network Monitor 3.4 command line

    I want to exclude all traffic from a list of subnets in my capture. This makes for a rather long and complex filter. Is there any option on the command line to refer to a file describing this filter or can one only use the /capture "my extremely long
    filter" command? So, I would have to make the entire thing into one line?

    I suppose if it's longer than 2048 or 4096, there will be a command line length limitation.  Maybe there's a way to work around it with a environment variable, but I think there will always be a limit.  Perhaps there's an easier way to right your
    filter?  Can you use something like the subnet example in the library to shorten the filter.
    Also, do you think your filter will affect capturing speed.  The more complex the filter, the longer it takes to evaluate each incoming message.  That means we have to buffer, and if the firehose is too much, we don't catch all the water :) 
    If the UI can keep up, then it shouldn't be a problem, but some firehoses are bigger than others.  Plus, there driver filters which can filter faster for NMCap.
    Moving forward, Message Analyzer (http://blogs.technet.com/blogs), is the replacement for Network Monitor, which can do the same most of the same kinds of capabilities, but using powershell.  I think you'd
    have more flexibility with variable lengths there.  Plus you can script fancy things.
    Paul

  • Use a checkbox to hide/show (toggle) another field

    I have a form I am creating in Adobe Acrobat X.  The form will ultimately be used as a data entry interface on iPads.  I need to keep the form very simple but there is a lot of technical information the end users may need to help fill out the forms.  I would like to be able to have a button, checkbox or other object enable the user to display additional information.
    I have played with making links to attached documents, using the article tool and finally trying to use a checkbox to drive the hidden/visible property of a text field.  Admittedly, I am a horrific programmer so I need some spoon fed help. 
    My check box is called: GMR1_1_Details_Select
    The text field is called: GMR1_1_Details
    I have been trying this and that with JavaScript in both the Actions tab and Calculate tab and am unsuccessful.
    Can anyone solve this puzzle for me?  I want to code this into my form:
    // so when the check box named "GMR1_1_Details_Select" is checked, my text box field ("GMR1_1_Details") is visible.  If the user unchecks the box, it would be hidden.  By default, the text box should be hidden and the checkbox shouldbe unchecked.
    If GMR1_1_Details_Select = yes
    Then GMR1_1_Details = visible
    else
    GMR1_1_Details = hidden
    I have tried codes similar to:
    if (event.target.value!="On") This.getfield(“GMR1_1_Details”).display = display.hidden;
    and other code similar to:
    Var GMR1_1 = this.getField(“GMR1_1_Details”);
    If(GMR1_1==="yes");
    This.getfield(“text10”).display = display.hidden;
    else
    This.getfield(“text10”).display = display.visible;
    In both cases I am getting nothing.  I have realized that I have at least 2 problems:
    1) I don't know how to write the right code and,
    2) I don't know where to put it.
    Please and thank you

    Yes, here is a link to the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.135.html
    There are a number of examples that demonstrate various options. You can add a title, but to make the JavaScript warning go away the document would have to be certified and the user would have to trust it to execute JavaScript, or each user would have to install a JavaScript file in a particular location on their system. If this might be feasible for your situation, post again for more details.
    If you want to get really fancy, it's possible to create custom dialogs that include things like images as well as text, and you have more control over the layout. This is one of the more complicated things in Acrobat JavaScript though, so you have to really want it if you plan on learning more.

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • How to uncheck a checkbox using Screen Variants?

    Hi Masters!
    Anybody knows how to uncheck a checkbox that is already checked by default?
    I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn't work), but at runtime it always shows the checkbox checked.
    At the same transaction there is a unchecked checkbox by default witch I can check it with a screen variant, but somehow I can't do the other way around...
    Any suggestions?
    Many thanks in advance,
    José Omar

    I checked the code and found something interesting. The
    variable I'm trying to uncheck is GV_WITH_CONTACT_PERSON.
    It's declaration:
    DATA: GV_WITH_CONTACT_PERSON TYPE XFELD VALUE 'X'.
    At the initialization of the program (at the first screen module):
    PROCESS BEFORE OUTPUT.
    MODULE INITIAL_STATE.
    And inside the MODULE INITIAL_STATE there is also:
    MOVE 'X' TO GV_WITH_CONTACT_PERSON.
    So there are places in the code that the checkbox is checked.
    Now we get another problem. I don't now when the values set at a screen variant are inserted in the screen. Is it possible that the code itself is overwriting the value set with a screen variant? Or is this not possible at this point in the code?
    Many Thanks,
    José Omar

  • How to use checkboxes in jtable ?

    I am trying to use checkboxes in
    JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
    Thank you for your help!

    Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0

  • How to toggle visible true-false for FourColListBoxNodeWidget Column

    Hi,
    I need to know that whether there is a way by which I can toggle visibility of a column (GenericPanelWithBorderWidget) on click of a button.
    Which Interface can be used to do the same?
    The code for table and button is given below.
    Following is "fr" code for four column table:
    type FourColListBoxNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kDNDTreeNodeWidgetBoss) {};
    resource FourColListBoxNodeWidget(kFourColListBoxElementRsrcID + index_enUS) {
              __FILE__, __LINE__,
              kFiveColListParentWidgetId, kPMRsrcID_None,          // WidgetId, RsrcId
              kBindLeft | kBindRight,                              // Frame binding
              Frame(5, 0, 525, 17),                              // Frame
              kTrue, kTrue,                                                  // Visible, Enabled
              "",                                                                                // Panel name
                        GenericPanelWithBorderWidget (
                                  0, kPMRsrcID_None,                    // WidgetId, RsrcId
                                  kBindNone,
                                  Frame(0,-2,106,17)           // Frame
                                  kTrue, kTrue,                              // Visible, Enabled
                                            ColListBoxTextWidget (
                                                      k5ListTW3ID, kPMRsrcID_None,                                                            // WidgetId, RsrcId
                                                      kBindLeft | kBindRight,                                                                                // Frame binding
                                                      Frame(4,3,104,17)                                                                                          // Frame
                                                      kTrue, kTrue, kAlignLeft,kEllipsizeEnd                                        // Visible, Enabled, Ellipsize style
                                            #if CSVER >= 4
                                                      kTrue, //Convert ampersands
                                            #endif
                                                      "",                                                                                                                                   // Initial text
                                                      0,                                                                                                                                   // Associated widget for focus
                                                      kTipsWindowFontId, //kPaletteWindowFontId,                              // default font
                                                      kTipsWindowFontId,//kPaletteWindowSystemScriptHiliteFontId,                                         // for highlight state.
    Similarly other 3 columns.
    Code for Expand Button
                   // Button Expand
                                                                DynamicIconButtonWidget (
                                                                          kExpandButtonWidgetID,                              // fWidgetId
                                                                          kExpandIconPNGIconRsrcID, kIBPluginPluginID,                    // fRsrcId, fRsrcPlugin
                                                                          kBindNone,//kBindLeft | kBindRight,                    // fFrameBinding
                                                                          Frame(450, 37,470,68 )                              // fFrame
                                                                          kTrue,                              // fVisible
                                                                          kTrue,                              // fEnabled
                                                                          //kIconRaisedLook,          // fStyles
                                                                          kADBEIconSuiteButtonType,
                                                                                              IID_IDYNAMICBUTTONOBSERVER,
    Regards,
    Yogesh Walke

    You can try the approach discussed in this post(assuming you are on 11.1.1.5 or higher ) - http://jobinesh.blogspot.com/2011/07/overriding-display-at-run-time.html

  • How to use multiple connections for xcelsius dashboard via toggle button

    Can anyone shed some light on how to apply a toggle button for multiple connections using xcelsius dashboard.
    I created two SAP connections in my xcelsius dashboard.  The first connection uses query 1 (bottom ten customers) and the second connection uses query 2 (top ten customers).  I wanted to use a toggle button where the user would click Top Ten customers versus Bottom Ten customers.  Which ever the user clicks in the toggle botton would run that query.
    If the toggle button is not the way to handle this can someone explain a better approach to run either query in the same dashboard.
    Thanks,
    Joe

    Hi,
    I've never had to do this so have no practical experience.  However in theory you should be able to do the following (assuming the data connection type youu2019re using has the "Usage" tab):
    Set up the two connections as normal - On the usage tab set the detail query to Refresh before components are loaded and make sure that this is unchecked for the other query.  Set both queries to populate the same range so that one query will overwrite the other in the Xcelsius spreadsheet.
    Bind a toggle button to a cell e.g. A1
    Back to the data connections again and set the "Refresh on trigger" trigger cell to A1.  And set the "When Value Becomes" to either "On" or "Off" dependent on how you've set up the toggle button.  Repeat for the other query.
    Hope this helps,
    Paul

Maybe you are looking for

  • Display freezes at boot until screen moved

    March 2010 Macbook Pro 15 - display freezes at boot from cold. First image is dark purple, this lightens to patchy grey with vertical lines. Move the screen and the display changes to account log in screen, but track pointer is frozen and screen gamm

  • Table controlls in module pool programming

    Hi all. I have an issue in module pool program. I created a table controll in the screen through table controll wizard. In that if I enter the data for 10 records(more than 1),then I(pressed)clicked on ENTER . then only first record is staying in the

  • Not all published folios are showing up in library. Any ideas?

    I've tried rebuilding the viewer app. Also tried deleting and republishing the folios.

  • Lightroom- Import or Export - BSOD

    I just wanted to share this information. I can not say it will work for all but it was a particular solution to my troubles. Had a newly built system. Gigabyte motherboard, 6 gb ram, geforce graphics card, Intel I7 chip. I had a clean install of Wind

  • List view for folders on a sparse image disk

    I have set up a sparse image on an external disk.  I cannot get the sparse image disk folders to default to "List View".  It always opens as "Icons" and I have to click on list view everytime.  Any ideas?