How to put data in an ActiveX SequenceVi​ew Control Object (not MFC)?

Hi!
In my application (not MFC) I added an ActiveX SequenceView Control Object.
I want to put data in it.
But nothing is in it after executing the following code:
HWND hListView=(HWND)GetDlgItem(IDC_SEQUENCEVIEW1);
LVITEM lvi;
lvi.mask = LVIF_TEXT;
lvi.pszText = "text";
ListView_InsertItem(hListView, &lvi);
SendDlgItemMessage(IDC_SEQUENCEVIEW1,LVM_INSERTITE​M,0,(LPARAM)&lvi);
What is wrong or missing?
Thanks for helping me!!!
I tried to use the SimpleMFCOperatorInterface-example but as I am not using MFC it said:
'CListCtrl' : undeclared identifier
So this example isn't helpful for me.

Hi
If you have TestStand 3.0 installed then you will find a simple example using MFC under
\OperatorInterfaces\NI\Simple\C++ using MFC
The OI is written using the new UI controls and the manager controls.
You need TestStand 3.0 or greater to use the new UI controls
I hope this helps.
Regards
Anand Jain

Similar Messages

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • How to put datas from database in html�s forms?

    Does anyone have any idea how to put datas from the database using JSP???

    One option: put your data into a JavaBean and then put that into the session. You can then access it from your JSP. You can access the properties of the bean using the basic JSP scripting elements, or if you want to get fancy, both JSTL and Struts have a bunch of custom tags for working with JavaBeans.

  • How to put data restrictions in transaction: GR55

    Hi,
    When I run a report with gr55 it shows figures for all profit center.I have defined a role which has profit centers restriction .
    but when ever user run gr55 he can see the data for the all proit center.
    How can i put data restriction on GR55.
    Anybody?
    Best regards,
    Bhavesh

    Hi,
    You can create a selection group that will serve as parameter in your GR55 report. Go to transaction code GRR2 and edit your form. You can set/tick the hierarchy node or variable in the profit center characteristic.

  • How and put data frrom DB into JFrame.tables ?

    hello,
    I tried to get rows from a DB into a table. Therefore I created a class(A) with a function(a1) throws SQLException. Connect and select rows from the DB runs perfectly. Now I want to put this data into a table. I created another class(B) extends JFrame with an inner class(icB1) extends AbstractTableModel. From here I tried call A.a1 to get the rows but
    1. the return type should be StringArray, how should i declare a function returning type stringarray and
    2. I tried to put the data into a String, so that the return value is String(Iwould try sort the data after returning values) like
    " icB1 extends AbstractTableModel { A.a1(); }" then i get the error msg: "java.sql.SQLException; must caught or declared to be thrown". Then i tried with this: " try { statement } catch { statement }" but it also doesnt func .. So how put I data from a DB into a table ? the main idea is to show and manage DB tables from the web. Many Thanks
    regards erkan

    Hi Erkan
    Here's parts of a simple tutorial style app that shows how to easily get data from a DB into a table. Note that the code is incomplete and may have typos.
    public class SQLHandler {
      public List getData(String sql, List headers) {
        List result = new ArrayList();
        ResultSet rs = connection.executeQuery(sql);
        // Get column details
        ResultSetMetaData rsmd = rs.getMetaData();
        int columns = rsmd.getColumnCount();
        for (int i=0;i<columns;i++) {
          headers.add(rsmd.getColumnLabel(i+1));
        while(rs.next()) {
          Object array = new Object[columns];
          for(int i=0;i<columns;i++) {
            array[i] = rs.getObject(i+1); 
          list.add(array):
        return result;
    public class SQLDataTableModel implements AbstractTableModel {
      private List data;
      private List headers = new ArrayList();
      public SQLDataTableModel(String sql) {
         data = sqlHandler.getData(sql,headers);
      // abstract methods
      public int getRowCount() {
        return list.size();
      public int getColumnCount() {
        return headers.size();
      public Object getValueAt(int row, int column) {
        Object[] array = data.get(row);
        return array[column];
    // Create JTable and assign a model
    JTable table = new JTable();
    table.setModel( new SQLDataTableModel("select * from table")):cheers
    Dave

  • How to put data into textbox using JSP

    How can I put data into a textbox using JSP?
    This code prints to a html page but I want it inside an text area:
    // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
                    out.print("DIR\t");
                else if(type == FtpListResult.FILE)
                    out.print("FILE\t");
                else if(type == FtpListResult.LINK)
                    out.print("LINK\t");
                else if(type == FtpListResult.OTHERS)
                    out.print("OTHER\t");
                out.print(ftplrs.getName() +"<br>");
            }I have tried with the code below:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    %>
                    <%= "DIR\t" %>
    <%            else if(type == FtpListResult.FILE) %>
                    <%= "FILE\t" %>
    <%            else if(type == FtpListResult.LINK)  %>
                    <%= "LINK\t" %>
    <%            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>
    <%            String temp = ftplrs.getName() +"<br>");
                  <%= temp > <br>
    %>
    </textarea>I get the following error:
    Location: /myJSPs/jsp/grid-portal-project/processviewfiles_dir.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:151: 'else' without 'if'.
    else if(type == FtpListResult.FILE)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:165: 'else' without 'if'.
    else if(type == FtpListResult.LINK)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:179: 'else' without 'if'.
    else if(type == FtpListResult.OTHERS)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:193: ';' expected.
    String temp = ftplrs.getName() +"");
    ^
    4 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Please help???

    Yes indeed this works:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    {%>
                    <%= "DIR\t" %>
    <%}            else if(type == FtpListResult.FILE)  {%>
                    <%= "FILE\t" %>
    <%}            else if(type == FtpListResult.LINK)  {%>
                    <%= "LINK\t" %>
    <%}            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>            
                  <%= ftplrs.getName() %>
    <%
    %>

  • How to put data from database into array

    I need to answer hot to put data from database directly into array.
    I tried like the code below but the error message said: java.lang.ArrayIndexOutOfBoundsException: 0, and it points to this line: numbers [row][0]= rs.getString("ID");
    Hope you can help.
    ResultSet rs = stmt.executeQuery(query);
         int row=0;
         String [] [] numbers=new String [row][10];
         // output resultset
         while ( rs.next() )
              numbers [row][0]= rs.getString("ID");
              numbers [row][1]= rs.getString("name");
         row++;
         // close resultset
         rs.close();
    thanks,Devi

    The exception is been thrown simply because you assigned '0' to the 'row' variable, indicating a zero length of the array. In fact you should assign the row count to it.
    After all, don't do that. Make use of the Collection framework and map the ResultSet to a Collection of DTO's.
    List<User> users = new ArrayList<User>();
    while (resultSet.next()) {
        User user = new User();
        user.setID(resultSet.getString("ID"));
        user.setName(resultSet.getString("name"));
        users.add(user);
    }

  • How to put mp3 along in flash file and control stop start

    Can someone tell me how to put mp3 which is just speaches done, be put alone in a flash file. Do i have to import sound? I wanted to be able to put 3 different mp3 files in flash and have people able to click on any sound and hear it. Be able to play and start and pause a sound. Is it possible are should I use something other than flash. Are should I convert to mp3 into another format and put in flash.
    Thanks for you help,

    Yes, you need to import sound. It's just File>Import>Open External Library (in CS4, the third step may be different for others), and then browse to the files you want. They'll be put into the library.
    To do what you're asking, I would put the sounds into each of their own movie clips, and have buttons inside the movie clips to control the timeline. For instance, the pause button would just have the onRelease = function(){ stop(); }; code applied to it.
    Does this help?
    EDIT: Also, mp3 is good for Flash.

  • How to put date&time into a variable from a database?

    In an Oracle table, myDateColumn is 2002-06-25 17:40:55. I can't put it into a variable.
    java.text.SimpleDateFormat dF=new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    rs=stmt.executeQuery("select myDateColumn from myTable");
    rs.next()
    System.out.println(rs.getString(1)); // 2002-06-25 17:40:55 is output
    java.util.Date myDate=rs.getDate(1);
    out.println(dF.format(myDate)); // 25/06/2002 00:00:00 is output
    java.util.Date myDate=rs.getTime(1);
    out.println(dF.format(myDate)); // 01/01/1970 17:40:55 is output
    My question is: How should I put this date (both date and time) into a variable, myDate?

    There are three JDBC types relating to time:
    1] The JDBC DATE type represents a date consisting of day, month, and year. The corresponding SQL DATE type is defined in SQL-92, but it is implemented by only a subset of the major databases. Some databases offer alternative SQL types that support similar semantics.
    2] The JDBC TIME type represents a time consisting of hours, minutes, and seconds. The corresponding SQL TIME type is defined in SQL-92, but it is implemented by only a subset of the major databases. As with DATE, some databases offer alternative SQL types that support similar semantics.
    3] The JDBC TIMESTAMP type represents DATE plus TIME plus a nanosecond field. The corresponding SQL TIMESTAMP type is defined in SQL-92, but it is implemented by only a very small number of databases.
    In ur case pls use:
    java.sql.Timestamp
    good luck !
    ...san :--)

  • How to put data into a array element in the BPEL

    Hi,
    I have a element in the WSDL which is of type Array. (i.e accepts unlimited data for the same element). How should i put a data into a array in the BPEL.
    Example:
    The below Example gives u an idea about wht iam asking:pasting a piece of my requirement:
    <s:element minOccurs="0" maxOccurs="1" name="parameters" type="tns:ArrayOfCSParameters" />
    <s:complexType name="ArrayOfCSParameters">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded"
    name="CSParameters" nillable="true" type="tns:CSParameters" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="CSParameters">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="RevenueItem" type="tns:RevenueItem" />
    <s:element minOccurs="0" maxOccurs="1" name="AccountURIs" type="tns:ArrayOfString" />
    <s:element minOccurs="0" maxOccurs="1" name="GroupURIs" type="tns:ArrayOfString" />
    <s:element minOccurs="1" maxOccurs="1" name="Percentage" nillable="true" type="s:decimal" />
    </s:sequence>
    <s:attribute name="Version" type="s:decimal" use="required" />
    <s:attribute name="URI" type="s:string" />
    </s:complexType>
    Any suggestion is appreciated.
    Regards
    pavan

    You have 2 options i guess.
    Use the transformation and the for-each to construct the array-list
    or like Richard said, use a loop in bpel, assign in the loop an variable of element type="CSParameters" and append this variable to your variable with accepts the arraylist.

  • How to put data in JTable from database

    hi everyone,
    i want to query the databse and put the result in the JTable and if possible i want to edit some information. For example: i have 5 records in the database query them and place them in JTable and each record has its own status. if i want to change the status For Example: the status of the 4 records are "Cleared" and the other one is "RELEASEd" so if i have JCombo Box to set the 4 records in to RELEASED status and then save the changes is that possible?
    thank you
    dhing

    In [url /thread.jsp?forum=54&thread=387565]this thread I describe how to use a result set as a basis for table data. Check some database tutorials for information on getting a result set.

  • How to put data in datagrid with AS3 AIR?

    Hi, I'm doing an AIR app scheduler to load data from a .txt. I'm able to trace the data in flash but how do I put those data into flash components (maybe datagrid? Maybe something that can let the user delete part of the entry of their schedule in the scheduler. For example if they wish to delete entry 5 of the scheduler, what should the code for the app be? After displaying the code in the app via flash, the user will be able to delete the fifth entry in the scheduler, or something similiar to this idea. How can I achieve that?
         function loadData(event)
                   var bytes = file.data;
                   str = bytes.readUTFBytes(bytes.length);
                   trace(str);

    Hi, I'm not sure what is a Data Provider actually.
    How about if in flash I make a combo box that list out all the sheduler entries that is grabbed from the .txt file, allowing the user to select which sheduler entry they want to delete. Is that possible? Using FileReference or FileStream is better in this case? How can this be done?

  • How to Put Date in a Textbox after Select

    Hi, DWMX. How do i put todays date into a text box after
    selecting an item from a ListBox. ie I want to change the staus in
    the Listbox and have the StatusChangedOn Text box filled
    automatically so it gets saved on submit.. I guess it's a bit of
    java which i don;t know any of. I am using VBScript for the server
    code. Thanks. Dave(UK)

    Dave
    If this is being a saved to a database simple set the default
    value of the
    database field to record the server time when the entry is
    made. In Access
    this is Date(), in msSQL it is getDate()
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Dave(UK)" <[email protected]> wrote in
    message
    news:e5v91r$olj$[email protected]..
    > Hi, DWMX. How do i put todays date into a text box after
    selecting an
    > item
    > from a ListBox. ie I want to change the staus in the
    Listbox and have the
    > StatusChangedOn Text box filled automatically so it gets
    saved on submit..
    > I
    > guess it's a bit of java which i don;t know any of. I am
    using VBScript
    > for
    > the server code. Thanks. Dave(UK)
    >

  • How to put data in a waveform

    I need to put all data in the same ascii file and in the same wavwform. How can I do it?
    I have same problems because I have a sequense VI. Because I need to communicate with my devices using a biderectional comunication. Serial port is used for this propose.
    Thank's
    Olga
    Attachments:
    Serial_Communication_novo.vi ‏159 KB

    Hi,
    If you want to plot all data in a graph,but as different plots, then you need to build them into a 2D array and it will plot two plots. Otherwise, you build them into an array and right click on the build array VI and select "Concatenate inputs" if you want to concatenate the two set of data you have.
    Please let me know if you have further questions.
    Also, you may want to take a look at examples on Development Library.
    Sincerely,
    Sastry V.
    Applications Engineer
    National Instruments

  • How to put data (from texte file) in the Tab

    Hi,
    I have a file with one line data.
    I want to put the data in a tab with 5 colums and x line.
    I attach a example.
    Thank's
    Attachments:
    ni-help.zip ‏9 KB

    You need to modify the input parameters in the Spreadsheet Sheet String to Array. For the delimeter, you need to specify a space. By default, the function uses a tab as a delimiter.

Maybe you are looking for

  • How to skip characters using JTextBox.getText()

    First, I'd like to say these forums rock! They've helped me so much. As I get better at this, I hope to be able to return the favor. I've set up a couple methods to allow users to edit specific text fields and then save. I'm trying to get a Double va

  • Formula node uotput variable

    If i use two different formula nodes with the same output and input variable names will the variables (scope) be the same? In the first formula node i define a variabe "int32 first ==0" then in a seperate node embedded in a for loop structure I write

  • 404 Error???

    I'm getting completely p*ed off with iWeb 09. Can anybody help? I have created a small website so that my client can preview a series of photographs that I have taken for them. I uploaded it to my web space on my web server (BT Business Broadband in

  • Two subects - tabpage&icons

    Hi, people!! How can I change the selected tabpage programatically? I have another question that completely doesn't concern with the first one: buttons' icons aren't shown neither in design time neither in runtime.Although, it just work out in anothe

  • Adobe tool erases all CS5 design suite

    I used the CC cleaner tool to help me install a new programme. And it has erased my entire CS5 creative suite? @Adobe How can I get my programmes back? I cannot find the installation disk I used almost 4 years ago to reinstall!