AdvancedDataGrid - how to display this type of data

I have the following two classes (attached to this message).
I think the AdvancedDataGrid can display it properly.
Basically there can be EmployeeGroups inside of
EmployeeGroups..nested as much as you want. Each group also
contains Employees. I'd like to display these columns:
Name (of group) | Name (of employee) | Dept (of employee)
any help to get started would be great.

"anoweb" <[email protected]> wrote in
message
news:g81cc8$avp$[email protected]..
> so to get things to show up as I wanted I had to add a
"children" property
> to
> my EmployeeGroup (didn't see that anywhere in the
documentation, but I
> noticed
> the Adobe examples have "children" properties).
>
> Obviously it can be more efficient, but it works..which
is the start!
>
> public function get children():ArrayCollection {
> var kids:ArrayCollection = new ArrayCollection();
> for (var i:int=0; i < groups.length; i++) {
> kids.addItem(groups
> }
> for (var i:int=0; i < employees.length; i++) {
> kids.addItem(employees);
> }
> return kids;
> }
Look at HierarchicalData. The children property is pretty
clearly defined
there.
HTH;
Amy

Similar Messages

  • How to out this type of data

    i have one internal table which had 1 field and the data in that field are like an header data and the other internal table with many field which have many different data like an item data .
    now i want to combine header data as an FIELD into new internal table and item data as an item into corresponding fields of that header  .
    i want in alv output format .
    how can i do this ?
    example:
    IT1 has field called as place .  data will be many place names
    in IT2 iteam data i am having corresponding to that place names.
    i want to show like this below .
    HYD | KUR | IND | US | UK | -
    THIS IS LIKE HEADER
    2NO | 3 NO | 4    | 5    | 6   | -
    LIKE THIS I WANT TO SHOW THE ITEAM       
                                                     DATA W.R.T   HEADER IN ALV
    WILL ANY ONE GIVE SOME SOLUTION PLEASE .

    I know how to deny an app my Location - its really annoying because i will not be using any apps and my location arrow goes on.   Then - i deny all of the apps individually - still the arrow is there.  It only goes away if i turn off all of my Location services globally which tells me someone is checking my location.  I realize that apple needs to collect map data to compete with google so thats probably what's going on.  Its either that or your security isn't working very well.  In either case Apple is screwing up and either invading my privacy or allowing others to do so.  I did not like when you turned the arrow notification off by default in one of the ios updates.  Sneaky stuff guys - knock it off.

  • How to use Reference type of Data Element

    Hi guys, is there anyone could give me a trace how to use reference type of data element.
    More details i'm going to reach is:
    I create 2 tables:
    eq.
    1. table ZFIRST has field X with data element ZFX (Data element i declared).
    2. table ZSECOND has field Y.
    Here at field Y (second table) I'm going to declare a new data element say it ZFY, but in ZFY I'm going to use the data element as i declared before (ZFX). Is it possible if I do it using reference type data element (SE11)?
    I already did this way, but I got error :
    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    This error occurs when I activate ZSECOND table. However in creating ZFY (reference) to data element ZFX, there is no error occur.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Any helpful will be highly appreciated.
    Thanks.
    Edited by: dinivian dondi on Nov 4, 2010 8:30 AM

    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    Apparently system doesn't allow you to type a transparent table field with deep type. This refers to references and tables types as components. The RDBMS (Relational DB Management System) cannot interpret this componenets correclty and mapp them to TABLEs in DB.
    So I am affraid you won't be able to type table component with reference to other data element.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Sorry but I don't get it, could you please explain this more clearly. Maybe then we can think of some workaround for you.
    Regards
    Marcin

  • How to create this type of Form?

    Hello ,
    I'm new to java so I would like a hint from experts on how to create such a form :
    A form that displays Customer's Codes and their name from Oracle database , so that they appear in the form as a list of 2 columns , what kind of compnents I should use to display this kind of data ? JTextField ? I dont think so .... . And also I would like to highlight each other line so that the list looks good , then at the top of the list I want a filter so that the data is filtered each time I enter a character . The last thing is how to make the data displayed have the ability to be dragged to another form in the application so that it fills the corresponding fields relative to the data dragged ?
    Too much ha? . Please just provide hints/ideas about each point as I know it can be time consuming to give details about all this.
    Thanks in advance...

    Thank you , I tried with this code to achieve what I wanted but I get no result .
    Can you please tell me whats wrong with this code ?
    package desktopapplication1;
    import java.sql.*;
    import javax.swing.*;
    import java.awt.*;
    public class MainOMSWindow extends JPanel{
        public MainOMSWindow ()
            super(new GridLayout(1,0));
    JTable customerListTable = new JTable();
    customerListTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
    customerListTable.setFillsViewportHeight(true);//to make the table uses the entire height of the container
        JScrollPane pane = new JScrollPane(customerListTable);
        add(pane);
        populateTable(customerListTable);
        private static Connection getConnection()
        Connection con = null;
         try
            String driverName = "oracle.jdbc.driver.OracleDriver";
            Class.forName(driverName);   //registering JDBC Driver
            String serverName = "localhost";
            String portNumber = "1521";
            String sid = "mydb";
            //jdbc:oracle:thin:@localhost:1521:ahmaddb
            String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
            String user = "fundinfo";
            String pw = "tadapps";
            con = DriverManager.getConnection(url, user, pw);
         catch (ClassNotFoundException e) {
                                        System.out.println(e.getMessage());
                                        System.out.println(e.getStackTrace());
                                        System.out.println(e.getCause());
                                        System.out.println(e.getException());
                                        System.exit(0);
         catch (SQLException e) {
                                  System.out.println(e.getMessage());
                                  System.exit(0);
        return con;
        private static ResultSet useConnAndGetData()
            Connection con = getConnection();
        try
             Statement stmt = con.createStatement();
             String select = "select title,year,price from movie order by year";
             ResultSet rows = stmt.executeQuery(select);
             return rows;
        catch(SQLException e) {
                 System.out.println(e.getMessage());
            return null;
        private static void populateTable(JTable table)
            try{
        ResultSet rs = useConnAndGetData();
        while(rs.next())
    public void setValueAt(object value, int row, int column)
    •Value: The new value to be placed in the cell
    •row: The row in the JTable to be changed
    •column: The column in the JTable to be changed
    * rows and columns start at the number "0", not "1".
    * Notice that the first column in a result set is column "1".
         int row = 0;
         table.setValueAt(rs.getString("title"),row,0);
         table.setValueAt(rs.getInt("year"),row,1);
         table.setValueAt(rs.getDouble("price"),row,2);
         row++;
            catch(SQLException e)
             System.out.println(e.getMessage());
            private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("OMS");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            MainOMSWindow newContentPane = new MainOMSWindow();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main (String [] args){
        createAndShowGUI();
    }The programe throws this :
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
            at java.util.Vector.elementAt(Vector.java:427)
            at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
            at javax.swing.JTable.convertColumnIndexToModel(JTable.java:2553)
            at javax.swing.JTable.setValueAt(JTable.java:2719)
            at desktopapplication1.MainOMSWindow.populateTable(MainOMSWindow.java:99)
            at desktopapplication1.MainOMSWindow.<init>(MainOMSWindow.java:24)
            at desktopapplication1.MainOMSWindow.createAndShowGUI(MainOMSWindow.java:119)
            at desktopapplication1.MainOMSWindow.main(MainOMSWindow.java:130)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)

  • I am trying to use a interactive form and it says "If this message is not eventually replaced by the proper contents of the document, your PDF  viewer may not be able to display this type of document."  This is a IRS form and has worked before.

    I am trying to use a interactive form and it says "see below"  This is a IRS form and has worked before.
    is there a tech support phone number?
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries

    That means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
    Either
    download the form to your local disk and fill it from there
    use a browser that employs the Adobe Reader plugin
    configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • PDF viewer may not be able to display this type of document.

    I am trying to down load an HMRC file ChV1 which I believe is interactive (my layman's description - I have to fill it in) but I get the message ...
    "If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document. , etc.,
    I am using Windows 7 and Google Chrome
    But I have the latest version - Adobe Reader Version 11.0.10.  Can anyone help, please?
    Martin

    It may be that the "PDF form" is an XFA form created by LiveCycle Designer. These forms are wrapped in PDF and to view/use one must use Acrobat or Adobe Reader.
    BUT -- today one can use browsers that provide their own built-in PDF reader that cannot 'service' XFA forms.
    Google Chrome is one of those browsers. So, don't bother with trying to view/use/do any thing to - with PDFs when using Chrome.
    Save the PDF to your computer's HDD.
    Now, open the PDF with Adobe Reader XI (fully updated of course). Process the form.
    Be well...

  • How to add this type of effect in photoshop plugin

    How to add this type of effect in photoshop by plugin

    Well, if that's the best you can do in describing what you consider an "effect" in this image, it will take a mind reader or clairvoyant to figure it out. 
    All I see is a guy that looks a lot like the infamous sex-slave-and-women-trafficker Saban Baran, possibly wearing a rug on his usually bald shaven head.
    http://tinyurl.com/jw5lmzy
    If it's someone else and that is real hair, then someone may have selected the hair in Photoshop and applied a tiny bit of the Oil Filter on it.  The Oil Filter has been removed from the newest versions of Photoshop.

  • How to display this 2 character for date field (    \   \       )

    hi friends
    it's possible to display the character format in text field after you run the form
    plz I need your help
    thanks

    Hello,
    So you mean for the date field you want to show slashes by default. I don't think that forms will support this type of things.
    BTW may i know what is the purpose to show like this?
    If you use the normal format which is DD/MM/RRRR it will add the slashes automatically. When user will enter date like this 01012010.
    -Ammad

  • How to Transfer IDoc Type to Data Type in XI

    Dear All,
    I am working on scenario to transfer data(IDoc) from SAP System to Non SAP system through XI.
    While Defining "Data Type" in XI i want to create Data Type as of IDoc type(CREMAS05).There is any direct method to import IDoc type into "Data Type" in XI.
    thanks,
    RP

    Hi Rp,
    External definitions enable you to import WSDL, XSD, and DTD documents to the Integration Repository so that you can access the message definitions they contain as external messages.
    If a description of the message structure already exists in one of the above formats, you can use it in the Integration Repository by importing it as an external definition rather than re-entering it manually using the data type editor.
    Prerequisites
    The document to be imported must conform to the WSDL, XSD, or DTD standard.
    Chk out all the details + how to import Ext Def:
    http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm
    Also refer...
    Connection Using Adapters and Imported Interfaces
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/576d219c340844aaa12ce9bbc2c3ee/frameset.htm
    Incase u want to chk out the details of Idoc scenario.....
    IDoc to File:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Handling different partners for IDoc:
    /people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file%2bto%2bidoc
    Hope this was helpful..
    kanan

  • How to display time duration (NOT dates) with an input mask in a JTable?

    Background: I am trying to display in a JTable, in two columns, the start position and time duration of an audio clip.
    They are stored as type float internally eg. startPosition = 72.7 seconds.
    However I wish to display on screen in the table in HH:mm:ss:S format. eg. 00:01:12:7. The user can edit the cell and input values to update the internal member fields.
    Problem: I am finding it very difficult to implement this - what with the interactions of MaskFormatter, DefaultCellEditor etc.
    Also using SimpleDateFormat and DateFormatter does not work as they insist on displaying the day, month, year also in the table cell.
    Taking the Swing Tutorial TableFTFEditDemo example as a template,
    (http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/index.html#TableFTFEditDemo)
    does anyone know how to do this?
    I can post my (buggy) modifications to the example code - if it would help.
    Appreciate any help.
    thanks,
    Anil

    Here are my modifications to the TableFTFEditDemo example. If you run it, you get an exception
    like java.lang.NumberFormatException: For input string: "18:00:03.500"
    The two modified classes are taken from the Tutorial and are listed below:
    =================
    * IntegerEditor is a 1.4 class used by TableFTFEditDemo.java.
    import javax.swing.AbstractAction;
    import javax.swing.BorderFactory;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JFormattedTextField;
    import javax.swing.JOptionPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.KeyStroke;
    import javax.swing.SwingUtilities;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Toolkit;
    import java.text.DateFormat;
    import java.text.NumberFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    import javax.swing.text.DateFormatter;
    import javax.swing.text.DefaultFormatterFactory;
    import javax.swing.text.MaskFormatter;
    import javax.swing.text.NumberFormatter;
    class TimeRenderer {
         float seconds;
         TimeRenderer(String str) {
              int hSec = Integer.parseInt(str.substring(0,2)) * 60 * 60;
              int mSec = Integer.parseInt(str.substring(2,4)) * 60;
              int sSec = Integer.parseInt(str.substring(4,6));
              float tSec = Integer.parseInt(str.substring(6,7))/10.0F;
              seconds = hSec + mSec + sSec + tSec;
    * Implements a cell editor that uses a formatted text field to edit Integer
    * values.
    public class IntegerEditor extends DefaultCellEditor {
         JFormattedTextField ftf;
         static Date zeroTime = new Date(0L);
         private boolean DEBUG = true;
         SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.S");
         MaskFormatter maskFo = new MaskFormatter("##:##:##.#");
         protected MaskFormatter createFormatter(String s) {
              MaskFormatter formatter = null;
              try {
                   formatter = new MaskFormatter(s);
              } catch (java.text.ParseException exc) {
                   System.err.println("formatter is bad: " + exc.getMessage());
                   System.exit(-1);
              return formatter;
         public IntegerEditor(int min, int max) throws ParseException {
              super(new JFormattedTextField(new MaskFormatter("##:##:##.#")));
              ftf = (JFormattedTextField) getComponent();
              // Set up the editor for the cells.
              ftf.setFormatterFactory(new DefaultFormatterFactory(new DateFormatter(sdf)));
              ftf.setFocusLostBehavior(JFormattedTextField.PERSIST);
              // React when the user presses Enter while the editor is
              // active. (Tab is handled as specified by
              // JFormattedTextField's focusLostBehavior property.)
              ftf.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
              ftf.getActionMap().put("check", new AbstractAction() {
                   public void actionPerformed(ActionEvent e) {
                        if (!ftf.isEditValid()) { // The text is invalid.
                             ftf.setBorder(BorderFactory.createLineBorder(Color.RED));
                             ftf.setBackground(Color.PINK);
                             ftf.postActionEvent(); // inform the editor
                        } else
                             try { // The text is valid,
                                  ftf.commitEdit(); // so use it.
                                  ftf.postActionEvent(); // stop editing
                             } catch (java.text.ParseException exc) {
         // Override to invoke setValue on the formatted text field.
         public Component getTableCellEditorComponent(JTable table, Object value,
                   boolean isSelected, int row, int column) {
              JFormattedTextField ftf = (JFormattedTextField) super
                        .getTableCellEditorComponent(table, value, isSelected, row, column);
              System.out.println("value:" + value);
    //          long milliseconds =(long) (Float.parseFloat(value.toString()) * 1000);
              long milliseconds =(long) (((Float) value).floatValue() * 1000);
              Date dt = new Date(milliseconds);
              ftf.setValue(dt);
              return ftf;
         // Override to ensure that the value remains an Integer.
         public Object getCellEditorValue() {
              JFormattedTextField ftf = (JFormattedTextField) getComponent();
              Object o = ftf.getValue();
              try {               
                   Calendar cal = Calendar.getInstance();
                   cal.setTime((Date)o);
                   float seconds = cal.getTimeInMillis()/1000.0F;
                   return sdf.format(o);
                   //return new Float(seconds);
              } catch (Exception exc) {
                   System.err.println("getCellEditorValue: can't parse o: " + o);
                   exc.printStackTrace();
                   return null;
         // Override to check whether the edit is valid,
         // setting the value if it is and complaining if
         // it isn't. If it's OK for the editor to go
         // away, we need to invoke the superclass's version
         // of this method so that everything gets cleaned up.
         public boolean stopCellEditing() {
              JFormattedTextField ftf = (JFormattedTextField) getComponent();
              if (ftf.isEditValid()) {
                   try {
                        ftf.commitEdit();
                   } catch (java.text.ParseException exc) {
              } else { // text is invalid
                   ftf.setBorder(BorderFactory.createLineBorder(Color.RED));
                   ftf.setBackground(Color.PINK);
                   return false; // don't let the editor go away
              return super.stopCellEditing();
    //=====================================================
    * TableFTFEditDemo.java is a 1.4 application that requires one other file:
    *   IntegerEditor.java
    import javax.swing.JFrame;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.text.ParseException;
    * This is exactly like TableDemo, except that it uses a
    * custom cell editor to validate integer input.
    public class TableFTFEditDemo extends JPanel {
        private boolean DEBUG = false;
        public TableFTFEditDemo() throws ParseException {
            super(new GridLayout(1,0));
            JTable table = new JTable(new MyTableModel());
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Set up stricter input validation for the integer column.
         //   table.setDefaultEditor(Float.class,
           //                        new IntegerEditor(0, 100));
         //If we didn't want this editor to be used for other
         //Integer columns, we'd do this:
         table.getColumnModel().getColumn(3).setCellEditor(
              new IntegerEditor(0, 100));
            //Add the scroll pane to this panel.
            add(scrollPane);
        class MyTableModel extends AbstractTableModel {
            private String[] columnNames = {"First Name",
                                            "Last Name",
                                            "Sport",
                                            "# of Years",
                                            "Vegetarian"};
            private Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new Float(5.7), new Boolean(false)},
                {"Alison", "Huml",
                 "Rowing", new Float(3.5), new Boolean(true)},
                {"Kathy", "Walrath",
                 "Knitting", new Float(2.9), new Boolean(false)},
                {"Sharon", "Zakhour",
                 "Speed reading", new Float(20.8), new Boolean(true)},
                {"Philip", "Milne",
                 "Pool", new Float(10.5), new Boolean(false)}
            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];
             * JTable uses this method to determine the default renderer/
             * editor for each cell.  If we didn't implement this method,
             * then the last column would contain text ("true"/"false"),
             * rather than a check box.
            public Class getColumnClass(int c) {
                 Object obj = getValueAt(0, c);
                 System.out.println("getColumnClass.obj:" + obj);
                return obj.getClass();
            public boolean isCellEditable(int row, int col) {
                //Note that the data/cell address is constant,
                //no matter where the cell appears onscreen.
                if (col < 2) {
                    return false;
                } else {
                    return true;
            public void setValueAt(Object value, int row, int col) {
                if (DEBUG) {
                    System.out.println("Setting value at " + row + "," + col
                                       + " to " + value
                                       + " (an instance of "
                                       + value.getClass() + ")");
                data[row][col] = value;
                fireTableCellUpdated(row, col);
                if (DEBUG) {
                    System.out.println("New value of data:");
                    printDebugData();
            private void printDebugData() {
                int numRows = getRowCount();
                int numCols = getColumnCount();
                for (int i=0; i < numRows; i++) {
                    System.out.print("    row " + i + ":");
                    for (int j=0; j < numCols; j++) {
                        System.out.print("  " + data[i][j]);
                    System.out.println();
                System.out.println("--------------------------");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         * @throws ParseException
        private static void createAndShowGUI() throws ParseException {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("TableFTFEditDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            TableFTFEditDemo newContentPane = new TableFTFEditDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    try {
                             createAndShowGUI();
                        } catch (ParseException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    }

  • How to display metadata such as data load date in answers report title?

    We have a requirement to display the last load date of the data relevant to the report the user is viewing. We have such information stored in a metadata table listed by the fact table the report is referencing. Our proposed solution is to create new answers reports off of this metadata table and put each report (with the appropriate filter on the fact table) on each dashboard section where the corresponding report is placed. One problem with this approach is the load date information will not be reflected in the print form of the report as the date is dashboard content - not report content. Is there any way to overcome this situation (other than create a ton of variables specifically created for this purpose)? I'm open to entertaining javascript ideas, if necessary. I would love to know how to push this OBIEE envelope further. Thanks in advance.

    Hi,
    I discuss with some people who are familiar with SharePoint, we both thought Windows Explorer may
    not accept the custom metadata.
    if we want to do some customization, it is recommended to ask for help in development forum.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How to transfer BLOB type of data from SQL Server to Oracle

    Hi,
    Actually, I create a table with BLOB type data in SQL server. In fact, there is not exact BLOB type in SQL server, it will be separated to image and ntext types. But there is exact BLOB type in Oracle.
    I don't know how to transfer this "BLOB" type into Oracle with DTS or any other methods.
    Many Thanks for your any suggestions,
    Cathy

    JAVA_GREEN wrote:
    No i haven't mixed up.But the file from where i have to retrieve the data is in csv format.Even though i created another csv driver.and tried but i cud not find a solution to load/transfer a set of records from one file(in Excel/csv format) to another file(in mdb format).plz help me.Is there any other methods for this data transfer.A csv file is NOT an excel file.
    The fact that Excel can import a csv file doesn't make it an excel file.
    If you have a csv file then you must use a csv driver or just use other code (not jdbc) to access it. There is, normally, a ODBC (nothing to do with java) text driver that can do that.

  • How to display this  ... ?

    Hi all,
    I have two data model where each one generate data as example below :-
    Data Model A
    Reqnum __ Data
    10671____ Submit
    10671____ Forward
    10671____ Approved
    10672____ Submit
    10672____ Forward
    10672____ Approved
    10673____ Submit
    10673____ Forward
    10673____ Approved
    Data Model B
    Reqnum ____Item ____ Qty
    10671 ____12458____ 15
    10671 ____22222____ 36
    10672 ____45485____ 86
    10673 ____12212____ 14
    10673 ____23233____ 3
    10673 ____11212____ 1
    My expected output is something like this :-
    Reqnum__ Action
    10671____ Submit
    10671____ Forward
    10671____ Approved
    Item______Qty
    12458_____ 15
    22222_____ 36
    Reqnum Action
    10672____ Submit
    10672____ Forward
    10672____ Approved
    Item_____ Qty
    45485____ 86
    and carry on to print 10673 and so on. How to link between the two data model, where in range of searching as above, I need to display the details of data in data model A first and link to data model B. It will carry on until the end of search.
    Please helps!!
    Rgds
    Lim

    Hi
    Sorry for not giving more details... I meant something like this:
    select distinct reqnum
    from tablea -- your data model A table
    union
    select distinct reqnum
    from tableb -- your data model B table
    The "union" is only required if there are reqnums that exist in tableb but not in tablea. It it is not the case, you can use just:
    select distinct reqnum
    from tablea

  • How to display result order by date desc?

    Hi Everyone,
    My DB version is
    BANNER                                                        
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production                          
    CORE 10.2.0.1.0 Production                                        
    TNS for Linux: Version 10.2.0.1.0 - Production                  
    NLSRTL Version 10.2.0.1.0 - Production                          
    Please do have a look at this query and the result displayed. It's always showing results in draw_dt asc. I need to get this result as draw_dt desc. Please suggest something.
    select rownum as sl_no,
           sub.patient_name,
           sub.external_id,
           sub.modality,
           sub.account_number,
           sub.hlab_num,
           sub.spectra_mrn,
           sub.draw_dt,
           sub.requisition_number,
           sub.facility_name,
           sub.facility_id,
           sub.corporation_name,
           sub.acronym,
           sub.patient_id,
           SUB.TEST_ID,
           count(sub.requisition_number) over (partition by null) as entity_count
    from(
    select distinct
            (select p.last_name || ', ' || p.first_name
              from patient p
             where p.patient_id = loc.patient_id) as patient_name,
           (select p.external_id
              from patient p
             where p.patient_id = loc.patient_id) as external_id,
           (select p.spectra_mrn
            from patient p
            where p.patient_id = loc.patient_id) as spectra_mrn,
           ord.requisition_number as requisition_number,
           f.facility_name as facility_name,
           f.facility_id as facility_id,
           (select fad.account_type as modality
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as modality,
           (select fad.account_number as account_number
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as account_number,
           (select fad.hlab_num as hlab_num
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as hlab_num,
           loc.order_draw_dt as draw_dt,
           c.corporation_name as corporation_name,
           c.corporation_acronym as acronym,
           loc.patient_id,
           loct.test_id
      from lab_order_occ loc,
           lab_order_occ_test loct,
           facility f,
           corporation c,
           order_requisition_header ord
    where loc.lab_order_occ_id = loct.lab_order_occ_id
       and loc.facility_id = f.facility_id
       and f.corporation_id = c.corporation_id
       and ord.patient_id = loc.patient_id
       and ord.facility_id = loc.facility_id
       and ord.draw_dt = loc.order_draw_dt
       and loc.order_draw_dt between sysdate - 65 and sysdate
       and loc.status = 'A'
       and loc.msg_sent_to_lab_yn = 'Y'
       and loct.test_id in (
                       select test_id
                         from test_required
                        where required_test_code in (
                                                     select test_code
                                                       from interface_adt_aoe_master))
       and upper (c.corporation_acronym) in ('CORVA', 'DSI', 'USRC', 'DLYSNEWCO')
       and not exists (
                        select 1 from emr_adtaoe_dtl
                        where patient_id = loc.patient_id
                        and facility_id = loc.facility_id
                        and status = 'Y'
                        ))sub
    ORDER BY
            sub.draw_dt,
    --         sl_no,
             sub.corporation_name,
             sub.facility_name,
             SUB.PATIENT_NAME
             desc;
    Result
    SL_NO
    PATIENT_NAME
    EXTERNAL_ID
    MODALITY
    ACCOUNT_NUMBER
    HLAB_NUM
    SPECTRA_MRN
    DRAW_DT
    REQUISITION_NUMBER
    FACILITY_NAME
    FACILITY_ID
    CORPORATION_NAME
    ACRONYM
    PATIENT_ID
    TEST_ID
    ENTITY_COUNT
    9
    New, Pat
    123456
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT005A
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    2
    New, Pat
    123457
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT0057
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    7
    New, Pat
    123458
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT0059
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    16
    Erere, Gggg
    123459
    HEMO
    72910
    A102805
    622200
    29-DEC-13
    9KT0058
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    622
    5558
    16
    10
    Erere, Gggg
    123460
    HEMO
    72910
    A102805
    622200
    29-DEC-13
    9KT0056
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    622
    5558
    16
    1
    Test, Pat
    123461
    HEMO
    72910
    A102805
    367021
    30-DEC-13
    9KT0065
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    14
    Test, Pat
    123462
    HEMO
    72910
    A102805
    367021
    30-DEC-13
    9KT0064
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    4
    New, Pat
    123463
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005W
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    3
    New, Pat
    123464
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005X
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    8
    New, Pat
    123465
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005V
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    13
    Test, Pat
    123466
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006J
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    5
    Test, Pat
    123467
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006G
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    6
    Test, Pat
    123468
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006H
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    11
    Test, Pat
    123469
    HEMO
    72910
    A102805
    367021
    05-JAN-14
    9KT0077
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    15
    Test, Pat
    123470
    HEMO
    72910
    A102805
    367021
    05-JAN-14
    9KT0076
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    12
    New, Pat
    123471
    HEMO
    72910
    A102805
    366999
    06-JAN-14
    9KT0075
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    See the date value for draw_dt column. It's always in asc order. How can I display this result set with draw_dt desc order? Please suggest something.

    ORDER BY  
            sub.draw_dt desc, 
    --         sl_no, 
             sub.corporation_name, 
             sub.facility_name, 
             SUB.PATIENT_NAME 
             desc;

Maybe you are looking for