Show value for key in table

Hello,
i have a table in a view that shows data that comes from a aRFC
model from the R/3 backend.
So far so good, the values shown are the same as in the backend.
Now i have the problem that two colums in this table contain only
keys (one character, represented as String).
I want to show the right values for this keys in the table, so i created
two simple types that contain the enumerations for these two columns.
The problem is, that i can not change the type of these two elements
in the Context of the view controller, because they are mapped from
the model and can not be altered.
Is there a "best practice" approach to the topic of getting values for
given keys from the backend?

Hello Armin,
yes you can change the type of your with something like this:
// get Mofiable type of your model attribute
ISimpleTypeModifiable statiType =               wdThis.wdGetAPI().getContext().getModifiableTypeOf(
     "YourModelNode.YourModelNode.YourModelAttribute");
// Set valid values for this data type
IModifiableSimpleValueSet statiValues =statiType.getSVServices().getModifiableSimpleValueSet();
statiValues.clear();
      for (int i = 0; i < yourValues.size(); i++) {
          //set key value pairs
          String statusText = yourValues.get(i);
         statiValues.put(i, statusText);
Hope it helps, regards
Sakib

Similar Messages

  • ERROR ITMS-9000: "This bundle is invalid. The value for key CFBundleVersion...

    Hi
    I've tried to submit to the AppStore my new revision V27 (1.0.5) instead of V28 (1.0.2) for Ipad 1 compatibility but i get this error :
    ERROR ITMS-9000: "This bundle is invalid. The value for key CFBundleVersion [3.2.4.6.88575] in the Info.plist file must contain a higher version than that of the previously uploaded version [3.3.1.3.8
    How could i change the CFBundleVersion ????
    Thanks

    DPS gold support can help you. Please login to your DPS dashboard https://digitalpublishing.acrobat.com/SignIn.html and you'll find the contact information on the bottom of the page

  • Data dictionary doesn't have a value for key 'WMD_AGENT_VERSION'

    i get this msg for my s4
    data dictionary doesn't have a value for key 'WMD_AGENT_VERSION'

    Kies is generally awful on the Mac. Have you got the latest installed?
    Also see
    https://discussions.apple.com/thread/5516972?start=15&tstart=0

  • Why in FI doc. show value 909 but in table BSEG-DMBTR show 9.09 ?

    hello everyone .
    I have problem
    in FI document (transaction code FB03) system show value 909
    but in BSEG it's show 9.09
    and i use this value to show in report .
    it's show 9.09 .
    could you tell me why this happen ?
    what should i do to fix this problem ?
    please help.

    Hi
    There are some currencies which will not always use 2 decimals, they can be 3, 4 or even none. Since the data element used for storing this field is 2 decimals, internally the amount will be stored after converting the amount to 2 decimals.
    But when the same amount is displayed in any screen or reports it will use the currency key associated with the amount and does the conversion as per table TCURX and displays them.
    So this is not any problem, you do not have to worry. But whenever you are using these amount fields always add the currency addition for any purpose be it ALV, list output etc. so that you will not have any issue.
    Regards
    Ran ganath

  • Show N/A for for particular combination and show value for specific combination only

    I have following cube Structure:
    Measure
         Value
    DimTime
        Fiscal Month
    DimTable
       Table Name
       Row Name
       Column Name
    DimGeography
       GeographyLevelName
       GeographyName
    Questions:
    1) I want to show N/A when only measure value is selected
    2) I want to show N/A when I slice measure value w.r.t to GeographyLevelName, GeographyName, FiscalMonth, TableName, Row Name
    3) I want to show measure value for this combination only FiscalMonth, GeographyLevelName, GeographyName, FiscalMonth, TableName, Row Name, Column Name and Value (measure)
    Option tried:
    I used Scope to achieve this but not able to do for all scenarios:
    SCOPE(Measure.[Value]);
         SCOPE(Root());
               SCOPE(Measure.[Value], DimTime.[Fiscal Month].MEMBERS, DimTable.[Table Name].MEMBERS,
                      DimTable.[Row Name].MEMBERS, DimTable.[Column Name].MEMBERS,
                      DimGeography.[GeographyLevelName].MEMBERS,   
                      DimGeography.[GeographyName].MEMBERS);
                      THIS = 'N/A';
            END SCOPE;
         END SCOPE;
    END SCOPE;
    Any suggestion is appreciated :) :D

    SCOPE(
              [Measures].[Metric Value]
            , [Dim Time].[Fiscal Month Name].MEMBERS        
            , [Dim Geography].[Geography Name].MEMBERS
            , [Dim Metric].[Row Name].MEMBERS
            , [Dim Metric].[Column Name].MEMBERS
        THIS = IIF (
                    [Dim Metric].[Row Name].CurrentMember 
    IS [Dim Metric].[Row Name].[All]
    OR [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].[All]
    OR [Dim Time].[Fiscal Month Name].CurrentMember 
    IS [Dim Time].[Fiscal Month Name].[All]
    OR [Dim Geography].[Geography Name].CurrentMember 
    IS [Dim Geography].[Geography Name].[All] 
            , "Error: Check the Dimension selected"  
            , IIF (
                          //Enter your combination                        
    [Dim Metric].[Row Name].CurrentMember IS 
    [Dim Metric].[Row Name].&[MPS]  
    AND  [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].&[YoYASP]
    OR 
                     [Dim Metric].[Row Name].CurrentMember 
    IS [Dim Metric].[Row Name].&[ASP] 
                     AND  [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].&[% PTR]
                  , "N/A"
                  , IIF (
                            ISEMPTY([Measures].[Metric Value])
                           , "No Data"
                           ,[Measures].[Metric Value] 
    END SCOPE;

  • Need to create a report to show values for a particular date range

    I have to create a report, out of which I need two columns : << Customer Value Variance and Churn Score Variance >> to show values only for a custom date range, which will be entered via a dashboard prompt.
    These generic date columns are not present and cannot be added. I have to make use of Pres variables
    What I have currently done is:
    1) Created a prompt with 2 different date columns and passing those values into variables vStartDate and vEndDate. (I don't actually need those 2 column which I have selelcted, but I have taken those so that I can prompt the values in calendar format and pass onto the variables)
    2) Created report with necessary columns, with 2 extra columns (hidden) as vStart Date Column and vEnd Date Column which take the values from the presentation variables defined in the prompt. I have created these columns as then I can reference these in the two required columns if necessary.
    I am already facing error in report after doing this and I am confused how to proceed. Any suggestions?
    Thanks.

    Yes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
    Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables.

  • Module pool program - populating values for columns in Table control

    Hi all,
    In my module pool program Table control i  am having 10 columns fields.
    in one of the column field i have used 'PROCESS ON VALUE-REQUEST'   to get the material no.
    in that F4 search help list is having releated information of the material like material group, company code, description etc.
    user while searching for material  they will use F4 search help and in that list they will select the material .
    From the list I need releated information of the materials like material group, company code, description etc
    to be populated in other columns while selecting the material .( User is not ready to enter all the values for the fileds)
    I appended the releated values for the material in the Table control Internal table in the Process on value-request  Module.
    (after selecting material by the user from F4 search help)
    even then I am not getting the data in the screen.
    kindly help me how to proceed  to get the data in other columns.
    Thanks in advance,
    sharma

    Hi Himanshu Verma ,
    Thanks for fast reply.
    but i tried with field names available in F4  Internal table.
    even then I am not getting.
    T_DYNPFLD_MAPPING-FLDNAME = ' MTART.
    APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.
    T_DYNPFLD_MAPPING-FLDNAME = 'MBRSH'.
    APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.
      SELECT
      MATNR
    MTART
    MBRSH
    MATKL
    BISMT
    MEINS
    BSTME
      FROM MARA
      INTO TABLE INT_F4
      up to 5000 rows
      CLEAR INT_F4.
    ****function module to get pop-up window of f4.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'MATNR'
          DYNPPROG        = W_PROGNAME
          DYNPNR          = W_SCR_NUM
          DYNPROFIELD     = 'V_TAB-MATNR'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = INT_F4
          RETURN_TAB      = RETURN_VALUES
          DYNPFLD_MAPPING = ITAB_DYNPFLD_MAPPING
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC NE 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE .
        V_TAB-matnr = RETURN_VALUES-FIELDVAL.
    endif.
    I have used the above code.  I am not getting the field values available in ITAB_DYNPFLD_MAPPING.
    kindly help me how to get the exact row for the F4 table.
    Thanks in advance.
    sharma

  • F4 not showing values for Variable

    Hi Everyone,
    In BEx Web analyzer, the one of variable not showing values after pressing F4 but for the same query if we execute in BEx analyzer it shows the variable values.
    How we can rectify this issue for BEx Web Analyzer?
    Please suggest..
    Thanks
    Kind Regards
    Anukul

    Hi,
    Just check following setting are also done.
    transaction RSA1 -> Query-infoprovider -> "display" -> look for the relevant infoobject -> right-mouse-click -> "provider-specific Properties" -> "Query Exec. FilterVal"
    Set this option to "Master Data" and recheck the behaviour.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20ecb78c-374a-2d10-c6af-f024f19b785d?QuickLink=index&overridelayout=true
    If above doesn't help pl check for sap note.
    Thanks and regards

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • Read Internal Table based on Multiple Values for Key Field

    Hi Gurus,
    i have one query can you tell me how read an internal table it_kna1 for multiple values of land1 DE US IND etc.
    i had tried as below but i could not can you try and let me knwo at the earliest.
    here i want read the values with DE or US and want further prosess them.
    REPORT  YC001.
    tables kna1.
    select-options: cust for kna1-kunnr.
    data: begin of it_kna1 occurs 0,
            kunnr like kna1-kunnr,
            name1 like kna1-name1,
            land1 like kna1-land1,
            end of it_kna1.
    select kunnr name1 land1 into table it_kna1 from kna1 where kunnr in cust.
    read table it_kna1 with key land1 = ( 'DE' OR 'US' ) .
    can anybody suggest me some solution.
    Thanks,
    Jeevi.

    This should be what you need:
    REPORT ztest NO STANDARD PAGE HEADING LINE-SIZE 80 MESSAGE-ID 00.
    TABLES kna1.
    SELECT-OPTIONS: cust FOR kna1-kunnr.
    DATA: BEGIN OF it_kna1 OCCURS 0,
            kunnr LIKE kna1-kunnr,
            name1 LIKE kna1-name1,
            land1 LIKE kna1-land1,
          END OF it_kna1.
    DATA: itab_index LIKE sy-tabix.
    SELECT kunnr name1 land1
      INTO TABLE it_kna1
      FROM kna1
      WHERE kunnr IN cust.
    SORT it_kna1 BY land1.
    READ TABLE it_kna1 WITH KEY
      land1 = 'DE'
      BINARY SEARCH.
    itab_index = sy-tabix.
    WHILE sy-subrc = 0.
      itab_index = itab_index + 1.
      WRITE: /001 it_kna1-kunnr, it_kna1-land1, it_kna1-name1.
      READ TABLE it_kna1 INDEX itab_index.
      IF it_kna1-land1 <> 'DE'.
        sy-subrc = 99.
      ENDIF.
    ENDWHILE.
    SKIP 1.
    READ TABLE it_kna1 WITH KEY
      land1 = 'US'
      BINARY SEARCH.
    itab_index = sy-tabix.
    WHILE sy-subrc = 0.
      itab_index = itab_index + 1.
      WRITE: /001 it_kna1-kunnr, it_kna1-land1, it_kna1-name1.
      READ TABLE it_kna1 INDEX itab_index.
      IF it_kna1-land1 <> 'US'.
        sy-subrc = 99.
      ENDIF.
    ENDWHILE.
    Rob

  • How to restrict the Null Values for Key Figules in the Bex Query

    Hi Friends,
        I want to restrict the Null values of a perticular key figure in the Bex Query Output.
    I will explain in details. i have 3 key figures in my query.. let us assume.. key1 key2key3
    key1           key2                key3
    4                4                   100.00
    5                0                   200.00
    1                0                    19.00
    0                1                    10.00
    i don't want to see the the records for which key 2 is 0.
    we have a setting in the Bex Query for restricting the Zero values in the query properties. If we enable that setting it will show
    4               4          100.00
    but i want the report to display..
    4               4           100.00
    0               1           10.00
    can any body guide me. <b>i want to display the values if key2 <> 0.</b>
    Regards,
    Nagesh.

    Hi AVR,
    nice to see reply.
    can you eloborate your view...how can i put the condition.
    <b>i want to put the condition key2 <> 0.</b>
    Regards,
    Nagesh.

  • Removing Drill Down is not summing up the values for key figure

    Hi ,
    While analysing the data in BW report , I have encounter the problem in getting the correct data.
    BW report is showing two records for material , having different customer ie. customer1 & customer 2 .
    If i remove the customer from the Drill down , then values is not summed up , rather it is showing the values only for customer1
    Scenario:
    With  customer drill Down:
    Material    Customer   Key Figure1   Key Figure 2
    Mat1       Customer1     1000          2000
    MAt1       Customer2     3000          4000
    Without customer Drill Down
    Material  Key figure1  Key Figure2
    Mat1          3000          4000
    In the query designer there is restriction of customer on two characteristic in default value pane.
    The issue is happening for particular material , for other material , BW report is working fine.
    Please suggest , to resolve the issue.
    Regards,
    Sudheer

    Hi Sudheer,
    What properties are set on your key figures 1 & 2.  Could they be set to Min or Max.
    There may be an aggregation level set if they are calculated key figures that is worth checking.
    With regards
    Gill

  • Removing an empty value for a imported table shown in a slicer

    Hi,
    I've imported a table and I've put the related code field in a slicer for a my pivot table. In the slicer I can see an empty box that I want to eliminate. I've tried to apply a filter for original data and powerpivot data from the powerpivot window. Moreover
    I've tried to uncheck the showing elements without data, but unsuccessfully. I've tried to update the imported tables after each applied change but no results.
    Any suggests to me, please? Thanks

    Hi there,
    i'm facing a similar problem which i find it hard to understand.
    1x fact table with 2 columns (to keep it simple):
       + col.1 - id_Division
       + col.2 - Sales_Amout
    1x dimension table with the the Company Business Organization (Departments, Business Units, etc) with 3 columns:
       + col.1 - id_Division
       + col.2 - Business_Unit
       + col.3 - Business_Area
    If i just load these two tables in my PowerPivot, then go to a worksheet and create a pivot table, selecting just the dimension table col.1 to the Values and col.2 to a slicer, i get the correct situation = 10x slicers corresponding to the 10x Business Units
    existing in the table, as you can see in the imagem attached.
    If i create a relationship between the fact table col.1  (id_Divion) with the dimension table col.1 (id_division), and then refresh the same pivot i've just created before, i get an extra empty slicer with no values in it. IS there any reason for this
    to appear?
    Appreciate your kind help and inputs. IF required i can share my workbook in order to get some further help.
    Regards
    Felino ([email protected])

  • Problem showing values for JProgressBar!!

    Hi there!!
    I'm having two classes,one named TestProgressBar which contains a JProgressBar whose values I want to increment for every specific calculated value and the second named showTable which defines the table model for a table structure I'm showing in the frame of TestProgressBar.In fact I'm trying to load the values of an in-class defined array into the table but I want to do it in a way that after every line shown in the table my JProgressBar increments the percentage of lines shown,,e.g I have 4 rows to populate and after 1 line has been shown in the table,the percentage out of 4 lines checked becomes 25%,,so I want the JProgressBar to show 25%,,then come back,,show the second line in the table and increment the JProgressBar to the next calculated percentage,,which in this case wud be 50%...I'm attaching my code for the two classes here,,
    /////////////////TestProgressBar/////////////////////////////////
    import javax.swing.JTable;
    public class TestProgressBar extends javax.swing.JFrame implements Runnable{
        static int rowsCheckedPercentage;
        static int noOfRows;
        static int currentRowNumber;
        int[] arr={1,2,3,4};
        /** Creates new form TestProgressBar */
        public TestProgressBar() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jScrollPane1 = new javax.swing.JScrollPane();
            jButton1 = new javax.swing.JButton();
            jProgressBar1 = new javax.swing.JProgressBar();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Click");
            jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    jButton1_Clicked(evt);
            jProgressBar1.setStringPainted(true);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(198, 198, 198)
                            .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 470, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                    .add(41, 41, 41)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 220, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(16, 16, 16)
                    .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 30, Short.MAX_VALUE)
                    .add(jButton1)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void jButton1_Clicked(java.awt.event.MouseEvent evt) {                                 
            run();
         * @param args the command line arguments
        public void run()
            showTable tableModel=new showTable();
             table=new JTable(tableModel);
             System.out.println("No. of rows"+table.getRowCount());
             noOfRows=table.getRowCount();
             for (int i=0;i<arr.length;i++)
                table.setValueAt(arr,i,0);
    table.setValueAt(arr[i],i,1);
    table.setValueAt(arr[i],i,2);
    table.setValueAt(arr[i],i,3);
    currentRowNumber=i;
    try
    Thread.sleep(2000);
    new Thread(new thread2()).start();
    catch (InterruptedException ex)
    ex.printStackTrace();
    jScrollPane1.setViewportView(table);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new TestProgressBar().setVisible(true);
    public class thread2 implements Runnable{
    public void run()
    System.out.println("Thread for JProgressBar");
    rowsCheckedPercentage=(currentRowNumber+1)*100/noOfRows;
    System.out.println("**Percentage checked "+rowsCheckedPercentage);
    jProgressBar1.setValue(rowsCheckedPercentage);
    jProgressBar1.repaint();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JProgressBar jProgressBar1;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration
    private javax.swing.JTable table;
    //////////////showTable//////
    * showTable.java
    * Created on May 28, 2007, 3:37 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author Kamran
    import javax.swing.table.*;
    public class showTable extends AbstractTableModel{
        public showTable()
        /** Creates a new instance of showReults */
        private String[] columnNames = {"Col1","Col2","Col3", "Col4"};
        private Object[][] data = {
        public int getColumnCount() {
            return columnNames.length;
        public int getRowCount() {
            return data.length;
        public String getColumnName(int col) {
            return columnNames[col];
        public Object getValueAt(int row, int col) {
            return data[row][col];
        public Class getColumnClass(int c) {
            return getValueAt(0, c).getClass();
         * Don't need to implement this method unless your table's
         * editable.
        public boolean isCellEditable(int row, int col) {
            //Note that the data/cell address is constant,
            //no matter where the cell appears onscreen.
                return false;
         * Don't need to implement this method unless your table's
         * data can change.
        public void setValueAt(Object value, int row, int col) {
            data[row][col] = value;
            fireTableCellUpdated(row, col);
    }One more problem associated with it is that the first percentage values being shown in the console is 50% not 25%,,don't get what's the problem for it,,though this values when calculated inside the JProgressBar's run() method gives me right values,,i.e 25,50,75,100..
    Can anybody please help??Thanks in advance,,,,,

    Project definition values appear fine as expected in CN41 .
    Is that mean that you have created a new custom fields for project definition using an exit? Are you able to view those fields in CN41 report?  Please confirm. 
    Because, there is a thread available now, where a user is not able to see project definition custom fields in CN41 report. You reply may help him.

  • Array of Ring to string value for creating a table

    I want to convert an array of ring to string and generate a table from it.
    But using property node for converting each ring is changing all the value of the table!
    each array represents different register!hence required to change  for different array! 
    i am hereby attaching a  Vi!
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏1944 KB

    How about this simple solution? Array of a ring control to Array of string.
    /Y
    Message Edited by Yamaeda on 04-13-2010 08:36 AM
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for