Column configuration

Hi all,
I built search help by using the function 'RH_OBJID_REQUEST' ON VALUE-REQUEST.
I want to configure the column that represent on the 'choose field of infotype' window throw the program.
How should i do it?
10X.

Issue resolved temporarily, find a configuration where we manage to get an empty column(can be added for entering the material). In IMG >Controlling>Cost Centre Accounting>Actual Posting>Manual Posting>Define Own Screen Variants for Posting in controlling
Meanwhile if anybody find the solution to edit the table, pl let me know

Similar Messages

  • How to input data in a database table without knowing in advance table and column configurations

    Hi,
    I have a problem using LabVIEW for input data (manually) in a SQL database. I have about 40 tables in the database, each of them is related to a specific engine component. I need to create a user interface (maybe visualizing the table with a table control) where the users can insert data in the database table fields. Could someone give me some suggestion on how to do it?
    Using the  DB tools insert data.vi I need to know in advance the column configuration of the table, but in my database each table has its own structure! So do I have to create 40 different masks, one for every different table?
    Thanks in advance.
    Michela

    I have not actually used the LV SQL Toolkit, but I will try and offer high level ideas :-)
    when you have retrieved the construction data for a table, you should be able to use array and cluster indexing to aquire the names of the fieds, enough to create a labelled table on the LV Front panel.
    After completing a new entry you can INSERT the entry into the database using the same data.
    Is the SQL toolkit an additional purchase, or included in newer versions as standard? If you post a sample of the cluster/array that you retrieve, I could give you a sample VI to give you some pointers in creating the User Interface table 
    - Cheers, Ed

  • Appraisal - Column Configuration ( Apprisal Template)

    Hello All,
    I am implementing PMS on Ehp4.
    I really want to understand how to do the column configuration. Any tips & Tricks pls share with me.
    I tried to read various materials and help.sap but still i would like to understand the experiences in column configuration.
    Especially i want to understand how the ratings are calculated and taken a average weighting etc.. 
    Hide or un hide of the column between manager and employee etc..
    Pls help me on this...

    >
    Vijay Mohan wrote:
    > Hello All,
    >
    > I am implementing PMS on Ehp4.
    >
    > I really want to understand how to do the column configuration. Any tips & Tricks pls share with me.
    >
    > I tried to read various materials and help.sap but still i would like to understand the experiences in column configuration.
    >
    > Especially i want to understand how the ratings are calculated and taken a average weighting etc.. 
    >
    > Hide or un hide of the column between manager and employee etc..
    >
    > Pls help me on this...
    column config can feel very non-intuitive, since both the config and the way it displays in the new user interface (webdynpro) is all vertical or row driven.
    the better way to thing about the column config, is an "attribute" config for your template.  Any attribute (column) you want to use on the template, must be configured at the template level to make it available lower level criteria groups or criterion. 
    You may for example need to use "objectives" on a criteria group, but you don't want it displayed at the template level, at the template level you may only want the final calculated performace scale.  to make the column available for lower levels, but not displayed, you make sure the "use" is checkmarked, but than you configure no value list, value class, value determination, make sure the value input is "No Entry" and Note = "No note".
    to calculate final appraisal, a simple example could be,
    Template, with 3 Criterion Nodes.  Each criterion node you will have FAPP checkmarked, you can use a qualtative value scale, which will give the user a drop down box during selection.  Value Input = Required or Optional Entry.
    Than at the template level you would have FAPP checkmarked and you would put the BADI "Average (Weighted)" in the value determination column, leave value class / value list blank.  Make sure that Value input = No Entry.  This will calculate the score of the 3 criterion nodes as an average.  Since you selected no value input, the output will be displayed as read-only calculated field.  They can only change calculated score, by rescoring one of the child nodes. 
    hope that is a start for you.
    Edited by: Michael L Pappis on Dec 22, 2010 11:29 PM

  • ECM worksheet - Column configuration

    Hello,
    Under Object and Data Provider section I am configuring the Compensation worksheet columns.
    In the column definition there is a options to provide the service key to lunch standard or custom application.
    Basically this column will be visible on comp worksheet as a hyperlink. Once end user click on this hyperlink it would  launch the service which was assigned in column definition as a service key.
    Manger can see all the reporting employees in the worksheet. He can choose any of the employee from the sheet and click on the hyperlink(service) which is available under column section have created one custom service  which I want to launch.  I want to pass the employee name/number to my custom application based on the Manager selection. Currently I am stuck with this. Could anybody let me know how to achieve this. Any help greatly appreciated.
    Thanks,
    Sardinians

    Hi Suresh,
    Yes, I have checked Event-Link check box. But not sure how to get the parameter(emp number) in my custom application.
    Thanks,
    Srinivas

  • Datagrid with checkbox in its column

    In my application I have a datagrid (a custom datagrid -
    CheckBoxDatagrid), whose first colum contains checkbox as
    itemrenderer. There is another column (Latest Version) - this
    column can have two values either "Available" or "Update".
    The requirement here is that, when the page is getting loaded
    then depending on the value of the column "Latest Version" the
    checkboxes will have to be loaded. If the value of the coluem is
    "Available", then the checkbox corresponding to that row should get
    automatically selected as soon as the page gets loaded.
    I am attaching the code snippet below,
    <configure:CheckBoxDataGrid id="swDataGrid"
    initialize="swDataGrid.dataProvider=MaintenanceViewController.softwareList"
    alternatingItemColors="[#ffffff, #ffffff]" paddingLeft="10"
    paddingRight="5"
    allowMultipleSelection="true" width="95%" height="60%"
    paddingBottom="5" selectionColor="#1b77b7"
    verticalGridLines="false"
    creationComplete="{MaintenanceViewController.checkBoxSelect()};">
    <configure:columns>
    <mx:DataGridColumn id="checkBox" dataField="softwarename"
    textAlign="center" headerText=" " width="20" sortable="false"
    itemRenderer="com.pmc.view.tasks.wizard.CheckBoxRenderer"
    editable="false">
    </mx:DataGridColumn>
    <mx:DataGridColumn id="swName" headerText="Software Name"
    dataField="softwarename" width="130"/>
    <mx:DataGridColumn id="cVersion" headerText="Current
    Version" dataField="currentversion" width="80"/>
    <mx:DataGridColumn id="updStatus" headerText="Update
    Status" dataField="updateStatus" width="80"/>
    </configure:columns>
    </configure:CheckBoxDataGrid>
    where, configure = defined namespace.

    "BlueRHBA" <[email protected]> wrote in
    message
    news:go0hkf$2kt$[email protected]..
    > In my application I have a datagrid (a custom datagrid -
    > CheckBoxDatagrid),
    > whose first colum contains checkbox as itemrenderer.
    There is another
    > column
    > (Latest Version) - this column can have two values
    either "Available" or
    > "Update".
    >
    > The requirement here is that, when the page is getting
    loaded then
    > depending
    > on the value of the column "Latest Version" the
    checkboxes will have to be
    > loaded. If the value of the coluem is "Available", then
    the checkbox
    > corresponding to that row should get automatically
    selected as soon as the
    > page
    > gets loaded.
    >
    > I am attaching the code snippet below,
    What is your question? Or are you looking to hire someone to
    fulfill your
    requirement?

  • Columns in a 2way Mirror Storage Space

    Hi
    I have a similar question like J_Rod: http://social.technet.microsoft.com/Forums/en-US/7a37e6ed-7e22-485c-a5d1-6460b2c4d63b/mimicing-raid-10-resiliency-with-storage-spaces?forum=windowsserverpreview
    Why should I consider using more than 2 Columns in a 2 way mirror Storage Space? For me it makes little difference between a Storage Space with a 2 Column 2 Way Mirroring and a 6 Column 2 Way Mirroring on a 12 Disk Storage Pool (like in the Picture).
    Apart from:
    big write/reads  which are processed by 6 disk in the 6 column configuration instead of 2 in the 2 column configuration
    Filling of the disk is not synchron over all disk with the 2 column configuration
    therefor i get exactly what I expect of the Storage Space when I use the 2 column configuration and try to achieve the same Result as a classic RAID10 (RAID 0 over X RAID1)

    So when I create a 2 Column Mirror Storage Space can I be certain sure that I will have a disk configuration like:
    Disk1 -- Disk2 -- Disk3 -- Disk4 -- Disk5 -- Disk6
    Data1 -- Data1 - Data2 -- Data2 - Data3 -- Data3
    So I could loose disk 1,3 and 5?
    Or is there some other Magic in Storage Spaces?

  • Link column in report

    Hello,
    How can I create a link column in a report region (not in an interactive report region).
    Link Column configuration section is not available for a report region.
    APEX version: 4.0.1.00.03
    Thanks.

    Dave,
    Do you not see a section labeled
    "Column Link"
    when you drill down on a particular report column??? I see this section for both Interactive and Classic reports.
    -Joe

  • JTable (dynamic columns)

    Well guys, voil� my problem...
    I've a Person class, who has some methods to get the person information, like getName(), getAge(), getAdresse(), etc... I would display the information of all the persons in the diary in a JTable... Ok, it's all right, i made a class who extends AbstractModelTable, overriding the getValueAt(int, int) with a switch:
    // private static final int COLUMN_NAME = 0;
    // private static final int COLUMN_NAME = 1;
    switch (column) {
            case COLUMN_NAME:
                  return cols[rowIndex].getName();
             case COLUMN_AGE:
                   return cols[rowIndex].getAge();
              default:
                    return;
    }The code it's something like that... I'm sorry i don't show the code, i've not the source here!
    It works very fine!... But now, i want to let the user choose witch columns to display...
    I made a lot of tries, but i could not get the solution... The only one thing I could, was to eliminate the columns with zero value in the conf file, but the headers were not in the correct order!... And there's another problem too, when I switch the columnIndex, if it equals to COLUMN_EMAIL = 15 means that JTree is getting the value of the 15th column, but if the user had removed the 2 column for example, the 15th column is not more the email column, it's the 15+1 columns :S... is it clair? I think it's a little difficult to explain, and as you see, i don't speak english very well :P...
    Summary: I would create a class extending JTable with columns configurables, i mean, let the user choose witch columns should be showed... Any idea ?... I can avoid the JTable component, so If you've another solution, it will be ok...
    Greetings and thank you guys...

    Your requirement is very general so we can't give you an exact solution, but I can try explaining how JTable works.
    The TableModel is used to store the data. The JTable is used to display the data. When a table is first created using a TableModel a TableColumnModel is created. Each TableColumn in the TableColumnModel maps directly to a column in the TableModel.
    Now what happens if the user moves column 15 to the first column in the table? The data hasn't changed, only the view of the data has changed. So even though the column is in column 0 of the table, the data must still come from column 15 in the TableModel. The TableColumns of the TableColumnModel do the mapping for you so you don't need to worry about the reordering of columns.
    However, if you have some code in your program that accesses the data directly, then you need to be aware of this situation. Fortunately JTable has some methods to make this mapping easy.
    table.getValueAt(...) will get data from the requested column in the view of the table
    table.getModel().getValueAt(...) will get data form the requested column in the TableModel.
    You can also do the mapping between "view" and "model" columns using the methods:
    table.convertColumnIndexToModel(...)
    table.convertColumnIndexToView(...) So what does this mean with dynamic columns? Well, you would build your table normally, then you would remove the TableColumns from the TableColumnModel that the user does not want to see.
    The following example is so code I wrote a while ago that will help in manipulating the TableColumnModel. Right click on the TableHeader to see the visible/hidden status of each column:
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableColumnManager implements MouseListener, ActionListener
         private static final String HIDDEN_COLUMN = "HiddenColumn:";
         //  Reference to the Singleton instance of this class
         private static TableColumnManager singleton;
         *  Use a private constructor so we can create a Singleton.
         private TableColumnManager()
         *  Get the Singleton instance of the <code>TableColumnManager</code>.
         *  @return  the Singlton instance of <code>TableColumnManager</code>
         private static TableColumnManager getInstance()
              if (singleton == null)
                   singleton = new TableColumnManager();
              return singleton;
         *  Add support for the management of visible <code>TableColumns</code>
         *  for a given <code>JTable</code>.
         *  @param  table the table to provide support for
         public static void install(JTable table)
              table.getTableHeader().addMouseListener( getInstance() );
         *  Remove support for the management of visible <code>TableColumns</code>
         *  for a given <code>JTable</code>.
         *  @param  table the table to remove support from
         public static void uninstall(JTable table)
              table.getTableHeader().removeMouseListener( getInstance() );
         *  Hide a column from view in the table.
         *  @param  table        the table from which the column is removed
         *  @param  modelColumn  the column index from the TableModel
         *                       of the column to be removed
         public static void hideColumn(JTable table, int modelColumn)
              int viewColumn = table.convertColumnIndexToView( modelColumn );
              if (viewColumn != -1)
                   TableColumn column = table.getColumnModel().getColumn(viewColumn);
                   hideColumn(table, column);
         *  Hide a column from view in the table.
         *  @param  table        the table from which the column is removed
         *  @param  columnName   the column name of the column to be removed
         public static void hideColumn(JTable table, String columnName)
              try
                   TableColumnModel tcm = table.getColumnModel();
                   int index = tcm.getColumnIndex( columnName );
                   TableColumn column = tcm.getColumn( index );
                   hideColumn(table, column);
              catch(IllegalArgumentException e) {}
         *  Hide a column from view in the table.
         *  @param  table   the table from which the column is removed
         *  @param  column  the TableColumn to be removed from the
         *                  TableColumnModel of the specified table
         public static void hideColumn(JTable table, TableColumn column)
              table.getColumnModel().removeColumn( column );
              //  Save the column so it can be redisplayed
              ArrayList list = (ArrayList)table.getClientProperty(HIDDEN_COLUMN);
              if (list == null)
                   list = new ArrayList();
                   table.putClientProperty(HIDDEN_COLUMN, list);
              list.add(column);
         *  Show a hidden column in the table.
         *  @param  table        the table to which the column is added
         *  @param  modelColumn  the column index from the <code>TableModel</code>
         *                       of the column to be added
         public static void showColumn(JTable table, int modelColumn)
              ArrayList list = (ArrayList)table.getClientProperty(HIDDEN_COLUMN);
              if (list == null) return;
              ListIterator it = list.listIterator();
              while (it.hasNext())
                   TableColumn column = (TableColumn)it.next();
                   if (column.getModelIndex() == modelColumn)
                        table.getColumnModel().addColumn( column );
                        it.remove();
                        break;
         *  Show a hidden column in the table.
         *  @param  table        the table to which the column is added
         *  @param  columnName   the column name from the <code>TableModel</code>
         *                       of the column to be added
         public static void showColumn(JTable table, String columnName)
              ArrayList list = (ArrayList)table.getClientProperty(HIDDEN_COLUMN);
              if (list == null) return;
              ListIterator it = list.listIterator();
              while (it.hasNext())
                   TableColumn column = (TableColumn)it.next();
                   if (column.getHeaderValue().equals(columnName))
                        table.getColumnModel().addColumn( column );
                        it.remove();
                        break;
         //  Implement the MouseListener
         public void mousePressed(MouseEvent e)
              checkForPopup( e );
         public void mouseReleased(MouseEvent e)
              checkForPopup( e );
         public void mouseClicked(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         private void checkForPopup(MouseEvent e)
              if (e.isPopupTrigger())
                   JTableHeader header = (JTableHeader)e.getComponent();
                   int column = header.columnAtPoint( e.getPoint() );
                   showPopup(header.getTable(), column);
         *  Show a hidden column in the table.
         *  @param  table        the table to which the column is added
         *  @param  columnName   the column name from the <code>TableModel</code>
         *                       of the column to be added
         public static void showPopup(JTable table, int tableColumn)
              int columns = table.getModel().getColumnCount();
              JCheckBoxMenuItem[] items = new JCheckBoxMenuItem[columns];
              //  Create menu items for hidden columns
                 ArrayList list = (ArrayList)table.getClientProperty(HIDDEN_COLUMN);
                 if (list != null)
                   ListIterator it = list.listIterator();
                   while (it.hasNext())
                        TableColumn column = (TableColumn)it.next();
                        String columnName = column.getHeaderValue().toString();
                        JCheckBoxMenuItem item = new JCheckBoxMenuItem( columnName );
                        item.setSelected( false );
                        item.addActionListener(getInstance());
                        items[column.getModelIndex()] = item;
              //  Create menu items for visible columns
              TableColumnModel columnModel = table.getColumnModel();
              int columnCount = columnModel.getColumnCount();
              for (int i = 0; i < columnCount; i++)
                   TableColumn column = columnModel.getColumn(i);
                   String columnName = column.getHeaderValue().toString();
                   JCheckBoxMenuItem item = new JCheckBoxMenuItem( columnName );
                   item.setSelected( true );
                   item.addActionListener(getInstance());
                   items[column.getModelIndex()] = item;
              //  Create popup menu from array of menu items.
              //  Override the setSelected method to select the
              //  specified menu item. (ie. this is a bug fix)
              JPopupMenu popup = new JPopupMenu()
                   public void setSelected(Component sel)
                        int index = getComponentIndex( sel );
                        getSelectionModel().setSelectedIndex(index);
                        final MenuElement me[] = new MenuElement[2];
                        me[0]=(MenuElement)this;
                        me[1]=getSubElements()[index];
                        SwingUtilities.invokeLater(new Runnable()
                             public void run()
                                  MenuSelectionManager.defaultManager()
                                       .setSelectedPath(me);
              for (int i = 0; i < items.length; i++)
                   if (items[i] != null)
                        popup.add( items[i] );
              //  Display the popup below the TableHeader
              JTableHeader header = table.getTableHeader();
              Rectangle r = header.getHeaderRect( tableColumn );
              popup.show(header, r.x, r.height);
              int modelColumn = table.convertColumnIndexToModel( tableColumn );
              popup.setSelected( items[modelColumn] );
         *  Responsible for processing the ActionEvent. A column will either be
         *  added to the table or removed from the table depending on the state
         *  of the menu item that was clicked.
         * @param event the ActionEvent.
         public void actionPerformed(ActionEvent event)
              JMenuItem item = (JMenuItem)event.getSource();
              JPopupMenu popup = (JPopupMenu)item.getParent();
              JTableHeader header = (JTableHeader)popup.getInvoker();
              JTable table = header.getTable();
              if (item.isSelected())
                   showColumn(table, item.getText());
              else
                   hideColumn(table, item.getText());
         public static void main(String[] args)
              JTable table = new JTable( new DefaultTableModel(5, 10) );
              TableColumnManager.install(table);
              TableColumnManager.hideColumn(table, 2);
              TableColumnManager.hideColumn(table, "E");
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add( new JScrollPane(table) );
              frame.pack();
              frame.setVisible( true );
    }Hopefully I've made some sense.

  • View Columns - On My Mac

    Is there a way to save preferences for viewing specific boxes? I have archives of my Inbox and Sent Mail downloaded from an IMAP server. I want the Inbox to show the "FROM" field and the Sent box to show the "TO" field, but not both. If I fix the view on one, and then select the other, I get the wrong fields displayed and need to adjust the view again. It seems to me there should be a way to save this step.

    as i said, this only works with the main Sent mailbox, not with any other mailboxes you set up yourself. I've seen a few people asking for the option to have separate column configuration for different mailboxes. seems a reasonable request to me but there is currently no way to accomplish this. leave apple feedback on the issue
    http://www.apple.com/feedback/macosx.html

  • Colum Configuration in the Team Viewer iview

    Hi Customizers/Developers,
    We have been running MSS for some time on our portal, and just recently an issue has been raised by our customers. In the upper, right corner in the Team Viewer iview there is an icon leading to a new window where one can add certain information in the Team Viewer column (I think the window/icon is called something like Column Configuration). One of the options here is TO_ATTEND, but we want to remove this option.
    Does anyone know where to change/custimize this?
    I tried to look in the IMG -> integration with other SAP components -> business packages/functional packages -> MSS -> Object and data provider -> Define Columns. But I couldn't figure out quite what to do.
    Have anyone else faced the same issue? What were your experiences?
    Help is highly appreciated!
    Many thanks!
    Regards,
    Stina.

    Stina,
    can you upload a screenshot
    Thanks
    Bala Duvvuri

  • Getting Null while trying to printhe column value entered in advanced table

    Hi All
    I am developing a OAF data entry form, which has advanced table region with LOV for each column.
    I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    this Retuns 1
    String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    System.out.println("Value: "+a);
    This returning null
    I tried folleowing code also
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String[] as = null;
    String[] vNumber = null;
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new String[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
    System.out.println("Output"+as[i] +vNumber);
    i++;
    //System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    //String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    //String b=(String)vo.getCurrentRow().getAttribute("Configuration");
    //System.out.println("Value: "+a);
    //System.out.println("Value1: "+b);
    am.save(pageContext);
    }catch (Exception exception)
    throw new OAException("unable to print the records",OAException.WARNING);
    Still the output retuning null
    abouce try
    Fetched row count 1
    Inisde the do while loop0
    Outputnullnull
    But records are saved successfully
    Can someone assist why it is printing null for column Configuration?
    Thanks in advance.
    Srini
    Edited by: user608535 on Jan 30, 2013 11:53 PM
    Edited by: user608535 on Jan 31, 2013 1:10 AM

    Hi All
    I am developing a OAF data entry form, which has advanced table region with LOV for each column.
    I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    this Retuns 1
    String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    System.out.println("Value: "+a);
    This returning null
    I tried folleowing code also
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String[] as = null;
    String[] vNumber = null;
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new String[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
    System.out.println("Output"+as[i] +vNumber);
    i++;
    //System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    //String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    //String b=(String)vo.getCurrentRow().getAttribute("Configuration");
    //System.out.println("Value: "+a);
    //System.out.println("Value1: "+b);
    am.save(pageContext);
    }catch (Exception exception)
    throw new OAException("unable to print the records",OAException.WARNING);
    Still the output retuning null
    abouce try
    Fetched row count 1
    Inisde the do while loop0
    Outputnullnull
    But records are saved successfully
    Can someone assist why it is printing null for column Configuration?
    Thanks in advance.
    Srini
    Edited by: user608535 on Jan 30, 2013 11:53 PM
    Edited by: user608535 on Jan 31, 2013 1:10 AM

  • Disable Reject Button for Invoice on Work Item Screen

    Hi! I know we can use the Dynamic Column configuration to disable and enable the Approve/Reject button on the Inbox screen where the approval work items are displayed. However, I would like to know whether it is possible to have only the Reject button disabled? Reason for asking this is a rejection reason needs to be maintained for the rejection. The check is in place if we reject the invoice from the detail screen. However, if we reject it from the Inbox screen, it will go through without any warning or error message. I have searched OSS notes but found nothing so am wondering whether this can be considered a bug or not. If not, then I want to know what solution option I have relating to this. I am thinking of either a repair to disable the button on the screen for invoice approval or find a why with the dynamic columns to do that.
    Appreciate any comments on the above.
    Cheers!
    SF

    No response

  • A puzzling situation...help needed urgently!

    This is somewhat related to the topic I posted here (the app is the same) : http://forum.java.sun.com/thread.jspa?threadID=5253292
    So I managed to set things straight and pass the value of the floor selected from the drop down list to a page called FloorPlanRender.jsp (the parameter name is "floorselected", and I store this parameter into an integer variable of the same name as shown in the code for the whole page below). A controller class receives the request, initializes the DB connection and redirects to the appropriate JSP page (not shown in the codes below, but it works fine) -
    [BTW, I have posted the entire code for the page and classes involved...that was just to make the code more informative. The problem seems to be in a very small part of the code alone].
    <%@page language="java" contentType="text/html"%>
    <%@page import="java.util.Iterator"%>
    <%@page import="java.util.ArrayList"%>
    <%@page import="seatplanner.beans.FloorPlanRenderElement"%>
    <% String base = (String)application.getAttribute("base"); %>
    <% String imageURL = (String)application.getAttribute("imageURL"); %>
    <jsp:useBean id="dataManager" scope="application"
      class="seatplanner.model.DataManager"/>
    <!DOCTYPE html
         PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>Tech Mahindra SeatMaster&reg; | Floor Plan</title>
      <link rel="stylesheet" href="/TechMSeatPlan/css/pagestyle.css" type="text/css"/>
    </head>
    <body>
    <div id="all">
    <!-- Display logo -->
    <div id="toppanel"> <jsp:include page="TopPanel.jsp"/> </div>
    <br/> <br/>
    <!-- Display main content -->
    <div id="contentpanel">
    <!-- Store the floor selected and get the row and column count for the floor -->
    <% String floorselect = request.getParameter("floorselected");
       int floorselected = Integer.parseInt(floorselect);
       int rowcount = dataManager.getRowCount(floorselected);
       int columncount = dataManager.getColumnCount(floorselected);
       ArrayList<FloorPlanRenderElement> floorplanelements = dataManager.getFloorPlanElements(floorselected);
       Iterator<FloorPlanRenderElement> iterator = floorplanelements.iterator(); %>
    <!-- Create Table to display the grid -->
    <% if(!(floorplanelements.isEmpty())) // Checks whether the retrieved ArrayList is empty or not
    FloorPlanRenderElement anelement = new FloorPlanRenderElement();%>
    <table id="floorplan">
    <% while(iterator.hasNext())
         for(int i=1; i==rowcount; i++)
              { %>
                   <tr>
                   <% for(int j=1; j==columncount; j++)
                        anelement = iterator.next(); // Store the elements one by one
                   %>
                   <td width=30px height=30px> <img src="<%=imageURL + anelement.floorelement.getElementType() + "-" + anelement.floorelement.getOccupied()%>"/> </td>
                    <% } //close for...j loop %>
                    </tr>
          <% } //close for...i loop %>
    <% } //close while... loop %>
    </table>
    <% } //close if, start else
    else { %>
    No floor plan exists. Please choose another floor.
    <% } //close else %>
    </div>
    </div>
    </body>
    </html>
                        Now, using this value for floor selected, I have to get the rows and columns configured for this floor from a database. This involves performing a select max statement so that I can get the maximum row and column number respectively. So I call upon the relevant methods in the DataManager class by creating an object, which in turn gets forwarded to a class known as FloorPlanRenderPeer.java [The code for both are shown below]:
    DataManager.java
    package seatplanner.model;
    import java.util.Hashtable;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import seatplanner.beans.FloorPlanRenderElement;
    public class DataManager {
      private String dbURL = "";
      private String dbUserName = "";
      private String dbPassword = "";
      /*Basic and connectivity operations */
      public void setDbURL(String dbURL) {
        this.dbURL = dbURL;
      public String getDbURL() {
        return dbURL;
      public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
      public String getDbUserName() {
        return dbUserName;
      public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
      public String getDbPassword() {
        return dbPassword;
      public Connection getConnection() {
        Connection conn = null;
        try {
          conn = DriverManager.getConnection(getDbURL(), getDbUserName(),
              getDbPassword());
        catch (SQLException e) {
          System.out.println("Could not connect to DB: " + e.getMessage());
        return conn;
      public void putConnection(Connection conn) {
        if (conn != null) {
          try { conn.close(); }
          catch (SQLException e) { }
         /* Floor related operations */
         public ArrayList<Integer> getAllFloorNumbers() {
              return FloorPeer.getAllFloorNumbers(this);
         /* Floor Plan Rendering related operations */
         public int getRowCount(int floorselected) {
              return (FloorPlanRenderPeer.getRowCount(this, floorselected));
         public int getColumnCount(int floorselected) {
              return (FloorPlanRenderPeer.getColumnCount(this, floorselected));
         public ArrayList<FloorPlanRenderElement> getFloorPlanElements(int floorselected) {
              return FloorPlanRenderPeer.getFloorPlanElements(this, floorselected);
    FloorPlanRenderPeer.java
    package seatplanner.model;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import seatplanner.beans.FloorPlanRenderElement;
    /* This class handles all floor plan rendering operations */
    public class FloorPlanRenderPeer
    /* This method returns the number of rows configured for the floor */
    public static int getRowCount(DataManager dataManager, int floorselected) {
         int rowcount=0;
        Connection connection = dataManager.getConnection();
        if (connection != null) {
          try { 
              Statement s = connection.createStatement();
              try
            String sql = "select max(grid_x_pos) from seatplanner.floorgridpart where floor_id =" + floorselected;
            ResultSet rs = s.executeQuery(sql);
              try {
                  rowcount = rs.getInt(1);
              finally { rs.close(); }
            finally {s.close(); }
          catch (SQLException e) {
            System.out.println("Could not get row count: " + e.getMessage());
          finally {
            dataManager.putConnection(connection);
        return (rowcount);
    /* This method returns the number of columns configured for the floor */
    public static int getColumnCount(DataManager dataManager, int floorselected) {
         int columncount=0;
        Connection connection = dataManager.getConnection();
        if (connection != null) {
          try {
            Statement s = connection.createStatement();
               try {
            String sql = "select max(grid_y_pos) from seatplanner.floorgridpart where floor_id =" + floorselected;
              ResultSet rs = s.executeQuery(sql);
              try {
                  columncount = rs.getInt(1);
                        } finally { rs.close(); }
               } finally {s.close(); }
          catch (SQLException e) {
            System.out.println("Could not get column count: " + e.getMessage());
          finally {
            dataManager.putConnection(connection);
        return columncount;
    /* This method returns all the grid elements needed to render the floor plan for the selected floor */
    public static ArrayList<FloorPlanRenderElement> getFloorPlanElements(DataManager dataManager, int floorselected) {
        ArrayList<FloorPlanRenderElement> floorplanrenderelements = new ArrayList<FloorPlanRenderElement>();
         FloorPlanRenderElement oneelement = new FloorPlanRenderElement();
        Connection connection = dataManager.getConnection();
        if (connection != null) {
          try {
            Statement s = connection.createStatement();
            String sql = "select distinct A.grid_x_pos, A.grid_y_pos, A.element_ID, B.element_type, B.occupied" +
                              "from seatplanner.floorgridpart A, seatplanner.floorelement B where (A.floor_ID = " + floorselected +
                              "and A.element_ID = B.ID) order by A.grid_x_pos, A.grid_y_pos asc";     
            try {
              ResultSet rs = s.executeQuery(sql);
              try {
                while (rs.next()) {
                  oneelement.floorgridpart.setGridXPos(rs.getInt(1));
                     oneelement.floorgridpart.setGridYPos(rs.getInt(2));
                     oneelement.floorgridpart.setElementID(rs.getString(3));
                     oneelement.floorelement.setID(rs.getString(3));
                     oneelement.floorelement.setElementType(rs.getString(4));
                     oneelement.floorelement.setOccupied(rs.getString(5));
                     floorplanrenderelements.add(oneelement);
              finally { rs.close(); }
            finally {s.close(); }
          catch (SQLException e) {
            System.out.println("Could not get floor numbers: " + e.getMessage());
          finally {
            dataManager.putConnection(connection);
        return floorplanrenderelements;
    }When I run the application and choose my floor, the result throws me a "No floor plan exists...." [the else...part in the jsp page].
    I have come to know that it is because for some odd reason, the rowcount and columncount variables are not being set properly. I have tested the queries used in the FloorPlanRender peer class in the mySQL query browser and they work (both the row and column count for floor 3 for example, should return 20). But they don't. When I printed out the rowcount and columncount variables, they were set to a 0. I thought the floorselected parameter wasn't retrieved from the previous page properly, but to my surprise it was successfully set to 3, indicating the desired floor number.
    I can't begin to see where the error is. There is nothing wrong with the DB connection or the query, but the correct value is not being set to the variables in the jsp page.
    Can someone please have a look at the code and guide me as to what possibly is going wrong? I have spent a lot of time and effort and still haven't spotted the mistake, if any. Your help is much appreciated.

    Again wrong usage of Iterator :)
    <%@page language="java" contentType="text/html"%>
    <%@page import="java.util.Iterator"%>
    <%@page import="java.util.ArrayList"%>
    <%@page import="seatplanner.beans.FloorPlanRenderElement"%>
    <% String base = (String)application.getAttribute("base"); %>
    <% String imageURL = (String)application.getAttribute("imageURL"); %>
    <jsp:useBean id="dataManager" scope="application"
      class="seatplanner.model.DataManager"/>
    <!DOCTYPE html
         PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>Tech Mahindra SeatMaster&reg; | Floor Plan</title>
      <link rel="stylesheet" href="/TechMSeatPlan/css/pagestyle.css" type="text/css"/>
    </head>
    <body>
    <div id="all">
    <!-- Display logo -->
    <div id="toppanel"> <jsp:include page="TopPanel.jsp"/> </div>
    <br/> <br/>
    <!-- Display main content -->
    <div id="contentpanel">
    <!-- Store the floor selected and get the row and column count for the floor -->
    <% String floorselect = request.getParameter("floorselected");
       int floorselected = Integer.parseInt(floorselect);
       int rowcount = dataManager.getRowCount(floorselected);
       int columncount = dataManager.getColumnCount(floorselected);
       ArrayList<FloorPlanRenderElement> floorplanelements = dataManager.getFloorPlanElements(floorselected);
       Iterator<FloorPlanRenderElement> iterator = floorplanelements.iterator(); %>
    <!-- Create Table to display the grid -->
    <% if(!(floorplanelements.isEmpty())) // Checks whether the retrieved ArrayList is empty or not
    FloorPlanRenderElement anelement = new FloorPlanRenderElement();%>
    <table id="floorplan">
    <% while(iterator.hasNext()){
    anelement = iterator.next(); // The iterator.next() every call would takes the pointer to the next element in the collection
    for(int i=1; i==rowcount; i++){ %>
    <tr>
    <% for(int j=1; j==columncount; j++){%>
    <td width=30px height=30px> <img src="<%=imageURL + anelement.floorelement.getElementType() + "-" + anelement.floorelement.getOccupied()%>"/> </td>
    <% } //close for...j loop %>
    </tr>
    <% } //close for...i loop %>
    <% } //close while... loop %>
    </table>
    <% } //close if, start else
    else { %>
    No floor plan exists. Please choose another floor.
    <% } //close else %>
    </div>
    </div>
    </body>
    </html>For god sake please bother to understand how any implementation of java.util.Iterator works
    for more info go through javadocs
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html
    and i believe you have completey ignored my other suggestion of using enhanced loop in J2SE 5.0+ if iterator is confusing.
    Anyways,hope the above might help you in fixing of what you are trying to..
    REGARDS,
    RaHuL

  • MSS - team - General Data, Employee selection add Custom col with KM link

    Hi There,
    I am trying to add a custom column for MSS team selection for general data. Which works alright, now i want to make that column click able (like email) and this should direct me to a dynamic Km link based on employee selected.
    I have added custom column and able to display custom content on the team member selection table. I am able to make it clickable if i select "link" option on column configuration. So that also works.. now i want to pass employee number to my custom webdynpro application. Can you suggest anything here.
    Thanks a lot.
    Regards,
    Sudhir

    Hi Sudhir,
    If I understand correctly, though oadp config, you have added new column and attached a service key to make it as a clickable one. Once u er clicks on the link, I believe you want to display the KM doc which takes pernr as url parameter or some thing like that.
    If my understanding is correct then, you have to  create a WD Application, which reads the selected pernr( or org or position). You need to add pcui_gp/xssutils as used DC and then add context nodes of FcObjectSelection to read the selected record details as described in the above wiki which I gave i.e. https://wiki.sdn.sap.com/wiki/display/profile/How-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29
    You have to pass the value returned by the Selected Object to the KM as url parameter.
    Also use this blog to see the frontend context values of WDJ application. It will help you in understanding the various values of the context nodes.
    /people/yugandhar.reddy/blog/2011/03/26/simple-way-to-debug-ess-and-mss-web-dynpro-java-based-applications--very-useful-technique
    This should wok for you, let me know if your requirement is different.
    Regards
    Yugandhar Reddy

  • OSA - reading final appraisal (value text)

    Hi,
    We are using Objective Setting & Appraisal and I need to display the final appraisal (text) on a form. I'm reading the final appraisal value from HTHAP_FINAL but I'm having problems reading the text. The appraisal ratings and descriptions exist in table T71GS but some of the External value id descriptions are configured differently in the Template catalog (/PHAP_CATALOG_PA):  <b>Template Category > Template > tab Value texts</b>.  In the catalog, the external values are apparently linked to the scale id which is linked to the template. I need to read the descriptions as configured in the catalog. In which table are these descriptions stored and if I need to access it via the scale id where can I find the scale id?
    We are using the old Compensation Model, not ECM.
    Your help will be much appreciated.
    Regards
    Liza-Marie

    Hi,
    I assume you read the value directly from the HRHAP_FINAL table. We don't recommend this, its easier just to use HRHAP_DOCUMENT_GET_DETAIL and read the value you want (it also delivers all the needed texts).
    However, if you want to stick with reading directly from the DB you do following. I assume you read the HRHAP_FINAL with the appraisal id and that you want the end result, so on template level (VA)!
    Then after you do this you run FM HRHAP_TEMPLATE_OF_DOCUMENT_GET to get the template ID used for the appraisal document.
    then use FM HRHAP_C_IT5022_READ to get the column configuration of the template and read the values for the FAPP column (you need the value class and type).
    then FM HRHAP_CONVERT_VALUE_DB_TO_CHAR to get the correct text to the value you read from the data base.
    But really, try to use HRHAP_DOCUMENT_GET_DETAIL instead, less programming and it does the same.
    Regards and Groetjes,
    Maurice

Maybe you are looking for

  • Send an event from Java Web Service to BPEL

    Hi, I have a requirement where from an Async BPEL service I have to call a Java Web Service. After the completion of its task Java Web Service will fire an event that has to be consumed by the BPEL to initiate further process. Can anybody help me wit

  • Block noise in CC2014 Adobe Media Encoder Quicktime H.264 Export

    I would love some input from the community here. Perhaps someone else is having a similar issue. I've been wanting to make a full switch from CS6 to CC2014, but I am experiencing a host of issues that I don't experience in CS6. For one, when I export

  • How to use Tools Error Console

    I was recently trying to troubleshoot a problem of access a secure bank site [SSL problem] and trying to use the error console to figure out what was wrong. It makes little sense to a common end user of Java such as myself. What does one do with the

  • Problem calling simplebutton from library

    Hi guys, I'd like to ask for your assistance. I have a problem calling SimpleButton from library. I already checked the Linkage:Export for actionscript but still an error appear "Call to a possibly undefined method OkBtn". I'm just wondering because

  • Adobe CC will not install programs onto the selected drive.

    I have 2 hard drives in my computer. I have low space on my boot drive so i'm attempting to install adobe cc premiere onto my 2tb storage drive. however whenever i attempt the install it wants to install onto the c:// drive. where i have no space. I