Button-table with colors?

Hey everybody,

I made a matrix table buttons (please open my attached picture to understand what I wanted).

I want to do two things:

1 make the clickable buttons, and to make an event every time that one of them was clicked by the user.

2. to control the color of each sepertly button in the table.

I use CVI 2013 with academic courses.

Who are possible? and what are the commands that I can use for these tasks?

Best,

Tom

Button cells are already active as far as the table either warm or normal mode.

If in hot mode, you receive an EVENT_COMMIT in the callback of the table: you can detect and then press the call GetTactiveTableCell key and contact information processing cell.

Individual cells can be painted in colors as Panel, the command is enabled is not to follow the Windows theme: change the attributes of the Control Panel, select other attributes... and uncheck use Windows visualization Styles to checkbox controls.

The only table can also be defined this way leaving the Panel and other controls to join the theme: you can get this by calling:

SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_DISABLE_PANEL_THEME, 1);

In this case, the individual cells must be painted programmatically by calling:

SetTableCellAttribute (panelHandle, PANEL_TABLE, MakePoint (col, row), ATTR_CMD_BUTTON_COLOR, VAL_CYAN);

where col, row are 1 column and index of the row of the cell base to work on. The function will fail if the cell is not a button.

Tags: NI Software

Similar Questions

  • brand value in the time table with colors according to the selected employee

    Hello
    My question is
    I created the time table for a class for a bit longer want to filter to the time table used.

    for example. If I select the emp_id he's from, select the list then this period of teaching should be highlighted time table.
    Please can u help me.

    the table name is:-Time_Table
    the columns are:-

    EMP_ID
    CLASS_ID
    SECTION
    SUBJECT_ID
    PERIOD_NO
    DAY
    DATE


    Thank you
    Nisha

    Published by: Nisha Rani on September 3, 2009 02:57

    Published by: Nisha Rani on September 3, 2009 23:08

    Hi Nisha,

    Try this:

    SELECT
    DY,
    MIN(CASE WHEN LEC_NO = '1' THEN
    CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD1, MIN(CASE WHEN LEC_NO = '2' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD2, MIN(CASE WHEN LEC_NO = '3' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD3, MIN(CASE WHEN LEC_NO = '4' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD4, MIN(CASE WHEN LEC_NO = '5' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD5, MIN(CASE WHEN LEC_NO = '6' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD6, MIN(CASE WHEN LEC_NO = '7' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD7 FROM TM_TEACHER_LEC_DETAIL WHERE CLASS_ID = :P1_CLASS_ID and SECTION = :P1_SECTION GROUP BY DY order by dy

    As I do not have the structure of your table or any data, I can't test this. Let me know if it works for you

    Andy

  • Remove a line of table with a button in Livecycle Designer SS3

    I have a table in Livecycle which includes 16 static lines. Several lines can be added or removed dynamically at the end of the table.

    I want the user to be able to remove one of the static lines if they want to however I can't get the script to work.

    I have a button at the end of the line with the script:

    driverTable._Row2.removeInstance (true);

    I tried various forms of this script such as do not use the abbreviation for 'instanceManager', leaving 'real' outside, etc. Where it says 'Row2' I would like to use this script for the following lines, Row3, etc. Row4.

    I tried with the initial counter value of 1 and tried to zero. The table is in a fluid subform.

    Can anyone help?

    Hello

    A line cannot be set to 0 cases, if you want to remove a line, you need to hide by using its property of presence...

    But if you use 1 table for 16 different ranks, why don't you set the table with dynamic lines and have an initial 16 meter, then you can delete the lines you want with the removeInstance method

  • We can create a view or table with a form button?

    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Gul says:
    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Yes. You can. Use the FORMS_DDL built-in. For example

    BEGIN
      Forms_DDL('create table temp(n NUMBER)');
      IF NOT FORM_SUCCESS THEN
        Message ('Table Creation Failed');
      ELSE
        Message ('Table Created');
      END IF;
    END; 
    

    Hope this helps

    Hamid

  • ADF: How to fill a column in a table with a specific color

    Hi all
    I want to fill the cells of table with different colors based on the value (for example: 10, 40...) in this cell output text area.
    Help, please.

    Rognard

    Hello

    You can use the same code for the inlinestyle column: but it will color the entire column


    headerText = "#{bindings." EmployeesView1.hints.Salary.label}.
    ID = "c9".
    inlineStyle = "#{yourconAttr > 10?'" background-color: Red;': ' background-color: Orange ;'} ">}"

  • Help: Change the color of the font of the text in a Table with the key

    Hi all

    I'm designing a website for a college project in Dreamweaver CS3. Currently, I am implementing accessibility for users, creating a background/font color changer. By making the transparent table, I can now change the background color together. However, I'm fighting to change the color of the font.

    To see what I mean, here is so far the Web site: http://itsupport.comlu.com/index.html

    At the top left, you will notice buttons. It's the color changer.

    The problem of course, is that the text is unreadable when I change for say, a white background.

    Here is my code for the buttons:

    <! - color changer - >

    < form >

    "" < input type= "button"

    value= "White" style= 'background: white;"

    onClick= "document.body.style.backgroundColor ="#FFFFFF "; "Table1.FgColor = '#000000';" >


    "" < input type= "button"

    value= "Green" style= 'background: Green;"

    onClick= "document.body.style.backgroundColor = ' #008000 '; document.fgColor =' #FFFF00";">"


    "" < input type= "button"

    value= "Blue" style= 'background: Blue;"

    onClick= "document.body.style.backgroundColor = ' #0000CC '; document.fgColor ='#FFFFFF ';" > "


    "" < input type= "button"

    value= "Red" style= 'background: Red;"

    onClick= "document.body.style.backgroundColor = ' #FF0000 '; document.fgColor =' #FFFF00";">"

    < / make >

    The table is named "Table1". I guess I have to refer to this somehow, but I don't know how. You can see in the code of the white button I tried "Table1.fgColor" and similar variations.

    I know many of you will say just "do not use tables. Yes, I learned that the hard way. Unfortunately, I have no time completion of this project, so I do not wish to recreate the entire site using DIV tags

    Thanks in advance!

    You can download the .js files on the example site you mentioned. Or, you could use a CDN service hosted and your page a link to there .js files.

    You can link jquery.js from Google - http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

    Code will be in yourTags as follows:

    You can also download these files .js locally and bind them on your own server.

    This is a jQuery CDN repository: http://code.jquery.com/

    You can also use another CDN - http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery

  • As a table with search button

    Hi all

    I have a table with the columns form: en Id Type_email
    E-mail type can have some values.
    I also made a page, named «Type-email search» element
    This article is a list of selection with certain values that can have the Type_email column.
    When I select one of the values, only the rows with this value should be included in the tabular presentation.
    Is someone can you please tell me how I can do?

    Thank you much in advance.

    Set up your report by adding this in your WHERE clause.

    SELECT ...
      FROM ...
     WHERE TYPE_EMAIL = :PX_TYPE_EMAIL
        AND ...
    

    As long as the value of return in your list of values is the datatype of the column in the report, you will have a match.

    Now, if you want to get a bit more fancy, you can also make your limited report If the limit value is set and if not, it will include all. The NVL command converts to:

    SELECT ...
      FROM ...
     WHERE TYPE_EMAIL = NVL(:PX_TYPE_EMAIL,TYPE_EMAIL)
        AND ...
    

    In this example, if your selection value returns null, you will get all values in your database, but if user selects something in the drop-down menu, you will see those. These types of selection lists are very practical for users.

  • AF:table with Pagination. How to get to the specific page?

    Hi all!

    I use jDev 12.1.3

    I have the following case, based on the Employees of HR schema table.

    In a stubborn workflow, I have 2 pages.

    The 1era page has a read-only table with the employees. The peculiarity is that the instance of the opinion of the employees is tuned with Page Ranging (lazy employees is a huge table).

    Af: table has autoHeightRows = "15" scrollPolicy = 'page' and the iterator has RangeSize = 15.

    By clicking on a button, the user goes to the second page, where the selected record should be changed (with the help of the SetCurrentRowWithKey method). Then, the user wants to go back to the first page.

    The question starts here.

    Assume that the user is on the page with the table and wants to change an employee who is on the page of the 3rd (paging) of the table. After the change of registration, the user wants to return back to the page 'table', but not on the first page (of the paging), but 3rd page.

    So, how I put the current page and the return line to the initial selection of the user?

    I ' tried scrollToRangePage() but nothing seems to happen.

    Thank you very much

    ~ Apostolos

    You can do it if you save the page the row is turned on, or the beginning of the beach page. Her edit you the line and after you have finished editing, you set the rear range.

    To set a table on a specific page, you use a RangeChangeEvent where you specify the table, oldstart, oldend, newstat index values and newend.

    Before you begin to modify or end edit, you can calculate the values of the iterator. Something like

    {} public void onGotoPage (ActionEvent actionEvent)

    BindingContainer bindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    get the number of page to goto

    AttributeBinding attr = bindingContainer.getControlBinding("gotopage1") (AttributeBinding);

    Entire NewPage = (Integer) attr.getInputValue ();

    If (newPage == null) {}

    return;

    }

    first page starts at index 0 so subtract 1 from the number of page

    -newPage;

    DCIteratorBinding iter = bindingContainer.get("EmployeesView1Iterator") (DCIteratorBinding);

    calculate the old and new rage for the RangeChangeEvent

    range int = iter.getRangeSize (); Note both the table and we take the RangeSize of the iterator page size

    int oldStart = iter.getRangeStart ();

    int oldEnd = oldStart + Beach;

    Newstat int newPage = * rank;

    int newEnd = Newstat + range;

    Find the table

    UIViewRoot iViewRoot is FacesContext.getCurrentInstance () .getViewRoot ();.

    UIComponent table = iViewRoot.findComponent("t1");

    create the event and fire

    Event RangeChangeEvent = new RangeChangeEvent (table, oldStart, oldEnd, Newstat, newEnd);

    table. Broadcast (Event);

    Update table

    AdfFacesContext.getCurrentInstance () .addPartialTarget (table);

    }

    I've marked the essential parts "BOLD".

    Timo

  • Table with checkbox that should engage when check/uncheck

    Hi all

    I have a table with two columns only read and a checkbox. When the box is checked / unchecked by the user, I would like this to commit to the database.

    I solved this by adding a * ValueChangeListener * method that executes the commit method, essentially the one below:

        public String btnCommit() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                System.out.println("Errors");
                return null;
            }
            System.out.println("OK");
            return null;
        }
    


    This method is basically drag the shape of the operation 'engage' and create the Bean Backed method by double clicking on it.


    Now, the problem is this, if I have my check, I'm still a 'commit' behind, even if the code is triggered.


    By clicking the Commit button, it committed very well.

    IMO, ValueChangeListener shooting events business is bad practice, especially if you use business components.

    What you can do is to override the Set accessor method of your box on your implementation of the line:

    public void setYourCheckbox (Boolean value)

    {

    setAttributeInternal(..., value);

    this.getDBTransaction () .commit ();

    }

    This allows you to test your business logic within BC Tester - a fundamental element in the ADF development productively.

    But, in case you want to continue your existing approach, you can place this line at the beginning of your valueChangeListener method:

    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());

  • Dreamweaver CC 2015 table border colors

    Is there a way to change a table border color in Dreamweaver CC 2015?

    Thank you

    If you don't want to or don't know how to manually encode the border, you can do it from the interface of DW...

    1. click on the Board design or Live View
    2. I know it sounds counterintuitive, but in the Properties window, set the border 0 (disables the html border and allows you to control your styles with css only)

    3. also set the CellSpace and CellPad fields to 0
    4. click on the + sign in the selectors section of the CSS designer

    5 double-click element selector he created (usually something like 'body div table') and change it to something like '.borders td' (with the forwards and the space between) so you can affect all cells of a table with class = 'borders' in its html code

    6. with .borders has highlighted, scroll down to the setting of the border in the Properties section of the CSS designer (to half way down)
    7. set the width, style and color it (1px green solid)

    8. click again on the table and make sure that the "borders" class is displayed in the field of the property inspector main class. (just 'borders' not 'borders td"

  • How can I make three buttons that change color when selected...

    Without that ugly radio button select view on them? We want a part of our form to be a stolight - red, yellow, green color and we want users to be able to click on one of them to indicate green light, red light or put in custody. I did the buttons in Indesign, but I can't figure out how to make buttons come with this feature.

    This is their sole purpose, they do not need values associated with them. Any suggestions would be greatly appreciated.

    As a MouseUp event of the button use this code:

    if (color.equal(event.target.fillColor, color.red)) event.target.fillColor = color.yellow;
    else if (color.equal(event.target.fillColor, color.yellow)) event.target.fillColor = color.green;
    else if (color.equal(event.target.fillColor, color.green)) event.target.fillColor = color.red;
    

    Then manually set the fill in red color and you're ready to go...

  • How can I remove the imported tables frame color?

    Hello. I imported my Word document that has a table. Everything looks great, but when I export to PDF format, the table box is gray. I want the table to show.

    I don't want to have to re - create the entire table with text boxes, so I wonder if I can just remove the color of the frame?

    Thank you!

    You are welcome.

    Please remove your personal information when you respond by e-mail. Thank you.

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • Adding a button before the button table of contents in a WebHelp Pro navigation bar

    My customer wants to add a "Home" button to the left of the button table of contents in the navigation bar. I can button ad to the right of the 'standard' buttons: table of contents, search, print, and glossary, but even if I go and edit the skn file and add the 'Home' botton before the table of contents one, it always displays to the right. Is that all that I'm missing?

    Thank you.

    Using RoboHelp 9 and Robohelp Server.

    Thank you

    Hello

    I have HR server, so it's kinda a guess but I think as a method of work.

    Change the order of the toolbar in the whstart.js file.

    1. in the whstart.js file, go to line 184 (RH10), it has the text ElseIf (nMsgId == WH_MSG_TOOLBARORDER).

    2. we will find the opening brace, add the following code:

    oMsg.oParam = "CUSTOM" TOC | GLO | IDX | FTS | blackblock | searchform | banner ";

    Returns false;

    3. open whskin_tbars.htm and go to the bottom of the file to find some calls starting with addButton.

    4 Copyt the id of the button (customxxxx) and replace the CUSTOM in the whstart.js file text.

    Change whskin_tbars.htm

    1. open whskin_tbars.htm

    2. go in the bottom of the file and find some calls starting with addButton.

    3. fix the lines in the order you want the buttons to appear. (Remember the "blankblock" button to push some content to the right of the toolbar.

    4. remove the call to the ReSortToolbarButtons() function in the whskin_tbars.js file.

    If WebHelp always use the buttons, try adding return false; as the first code of the ReSortToolbarButtons() function in the whtbar.js file

    Hope this helps,

    Take a bow

    Willam

Maybe you are looking for

  • HP envy 15: bat audio problems

    Hello Last month I had a update on my laptop, after that the update showed the sound through the output headphone that goes out without value to my stereo. (It was before the update) I arranged the sound always using the program audio beats what stan

  • Why Firefox instructions for Media Player do not work?

    I tried to follow the instructions of Firefox to download the plugin for Windows Media Player. Say the instructions to save the file on my desk when you are prompted to save. However, when you are prompted, after clicking on 'save', a blank pop-up wi

  • I'm looking for recovery disc for a Satellite A60 - 302

    Hi, I'm new to this forum so please be patient.I am looking for a set of recovery disks (all 2 in.) for this laptop no are T #-R-02163001 # 02163000 R and TPMR40170EN1 PMR400170EN1 2/1 2/2

  • Satellite 1000-z2: where to buy a power supply?

    Hi guys, does anyone know where I can buy a straight plug for Toshiba Satellite 1000-z2, I tried so many sites, but they do not have my model.Please help me.

  • Phone Samsung s6

    I have a Verizon Samsung S6, but my computer does not recognize it as a phone, say I need a driver, but it won't keep the driver on my computer.  I am running Windows 7.  My husband has 10 window on his computer and it does the same thing. Accept tha