Getting multiple panels in one extension

Hi,
I'm having trouble setting up multiple panels in my extension. I've seen similar posts on here but what fixed it for them doesn't seem to solve it for me!
My first panel appears fine, but clicking the menu option for the second one does nothing.
I have a WidgetBoss for each:
          Class
                    kPanelAWidgetBoss,
                    kPalettePanelWidgetBoss,
                  IID_IPANELMENUDATA, kCPanelMenuDataImpl,
          Class
                    kPanelBWidgetBoss,
                    kPalettePanelWidgetBoss,
                  IID_IPANELMENUDATA, kCPanelMenuDataImpl,
ALocaleIndex for each:
resource LocaleIndex (kPanelAResourceID)
          kViewRsrcType,
                    kWildFS, k_Wild,           kPanelAResourceID + index_enUS
resource LocaleIndex (kPanelBResourceID)
          kViewRsrcType,
                    kWildFS, k_Wild,           kPanelBResourceID + index_enUS
A separate PanelList for each:
resource PanelList (kPanelAResourceID)
                    // 1st panel in the list
                    kPanelAResourceID,
                    kPluginID,
                    kNotResizable,
                    kPanelAWidgetActionID,
                    kPanelAMenuPath,
                    kPanelAMenuItemPosition,
                    0,0,
                    c_Panel,
resource PanelList (kPanelBResourceID)
                    // 2nd panel in the list
                    kPanelBResourceID,
                    kPluginID,
                    kNotResizable,
                    kPanelBWidgetActionID,
                    kPanelBMenuPath,
                    kPanelBMenuItemPosition,
                    0,0,
                    c_Panel
A type definition:
type PanelAWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kPanelAWidgetBoss)
          CPanelMenuData;
type PanelBWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kPanelBWidgetBoss)
          CPanelMenuData;
And a definition for the resource itself:
resource PanelAWidget(kPanelAResourceID + index_enUS)
          __FILE__, __LINE__,                                                  // Localization macro
          kPanelAWidgetID,                                        // WidgetID
          kPMRsrcID_None,                                                            // RsrcID
          kBindNone,                                                                      // Binding (0=none)
          0, 0, 207, 95,                                                            // Frame: left, top, right, bottom.
          kTrue, kTrue,                                                            // Visible, Enabled
          kFalse,                                                                                // Erase background
          kInterfacePaletteFill,                                        // Erase to color
          kFalse,                                                                                // Draw dropshadow
          kPanelATitleKey,                                        // Panel name
          kInternalPopupMenuNameKey                    // Popup menu name (internal)
resource PanelBWidget(kPanelBResourceID + index_enUS)
          __FILE__, __LINE__,                                                  // Localization macro
          kPanelBWidgetID,                                        // WidgetID
          kPMRsrcID_None,                                                            // RsrcID
          kBindNone,                                                                      // Binding (0=none)
          0, 0, 207, 95,                                                            // Frame: left, top, right, bottom.
          kTrue, kTrue,                                                            // Visible, Enabled
          kFalse,                                                                                // Erase background
          kInterfacePaletteFill,                                        // Erase to color
          kFalse,                                                                                // Draw dropshadow
          kPanelBTitleKey,                                        // Panel name
          kInternalPopupMenuNameKey                    // Popup menu name (internal)
PanelB is nowhere to be seen.
I guess I'm missing something obvious. Can anyone help?
Thanks
Liz

Hi
I just copied that into my plugin and it seems to be correct.
Bellow you can find change log from my plugins.
Regards
Bartek
1. Claas definitions
    Class { kPanelAWidgetBoss, kPalettePanelWidgetBoss,
        {   IID_IPANELMENUDATA,             kCPanelMenuDataImpl,                       }},
    Class { kPanelBWidgetBoss, kPalettePanelWidgetBoss,
        {   IID_IPANELMENUDATA,             kCPanelMenuDataImpl,                       }},
2. PanelList definitions:
resource PanelList (kPanelAResourceID)
        // 1st panel in the list
        kPanelAResourceID,
        kMYUIPluginID,
        kNotResizable,
        kPanelAWidgetActionID,
        "AAA",
        kPanelAMenuPath,
        kPanelAMenuItemPosition,
        0,0,
        c_Panel,
resource PanelList (kPanelBResourceID)
        // 2nd panel in the list
        kPanelBResourceID,
        kMYUIPluginID,
        kNotResizable,
        kPanelBWidgetActionID,
        "BBB",
        kPanelBMenuPath,
        kPanelBMenuItemPosition,
        0,0,
        c_Panel
3. Layout definitions
resource PanelAWidget(kPanelAResourceID + index_enUS)
    __FILE__, __LINE__,                                                  // Localization macro
    kPanelAWidgetID,                                        // WidgetID
    kPMRsrcID_None,                                                            // RsrcID
    kBindNone,                                                                      // Binding (0=none)
    0, 0, 207, 95,                                                            // Frame: left, top, right, bottom.
    kTrue, kTrue,                                                            // Visible, Enabled
    kFalse,                                                                                // Erase background
    kInterfacePaletteFill,                                        // Erase to color
    kFalse,                                                                                // Draw dropshadow
    kPanelATitleKey,                                        // Panel name
    kMYUIInternalPopupMenuNameKey                    // Popup menu name (internal)
resource PanelBWidget(kPanelBResourceID + index_enUS)
    __FILE__, __LINE__,                                                  // Localization macro
    kPanelBWidgetID,                                        // WidgetID
    kPMRsrcID_None,                                                            // RsrcID
    kBindNone,                                                                      // Binding (0=none)
    0, 0, 207, 95,                                                            // Frame: left, top, right, bottom.
    kTrue, kTrue,                                                            // Visible, Enabled
    kFalse,                                                                                // Erase background
    kInterfacePaletteFill,                                        // Erase to color
    kFalse,                                                                                // Draw dropshadow
    kPanelBTitleKey,                                        // Panel name
    kMYUIInternalPopupMenuNameKey                    // Popup menu name (internal)
4. Locale definitions
resource StringTable (350 + index_enUS)          // No-Translate strings go here:
{   k_enUS,  kEuropeanMacToWinEncodingConverter, // Locale Id, Character encoding converter
          {          kMYUIInternalPopupMenuNameKey,          kMYUIInternalPopupMenuNameKey,
resource LocaleIndex (kPanelAResourceID)
{   kViewRsrcType,
    {   kWildFS, k_Wild,           kPanelAResourceID + index_enUS
resource LocaleIndex (kPanelBResourceID)
{   kViewRsrcType,
    {   kWildFS, k_Wild,           kPanelBResourceID + index_enUS
5. Type definitions:
type PanelAWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kPanelAWidgetBoss)
    CPanelMenuData;
type PanelBWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kPanelBWidgetBoss)
    CPanelMenuData;
6. Other definitions:
// Boss classes:
DECLARE_PMID(kClassIDSpace,             kPanelAWidgetBoss,                  kMYUIPrefix + 7 )
DECLARE_PMID(kClassIDSpace,             kPanelBWidgetBoss,                  kMYUIPrefix + 8 )
// Action IDs:
DECLARE_PMID(kActionIDSpace,            kPanelAWidgetActionID,              kMYUIPrefix + 12)
DECLARE_PMID(kActionIDSpace,            kPanelBWidgetActionID,              kMYUIPrefix + 13)
// Widget IDs:
DECLARE_PMID(kWidgetIDSpace,             kPanelAWidgetID,                    kMYUIPrefix + 10)
DECLARE_PMID(kWidgetIDSpace,             kPanelBWidgetID,                    kMYUIPrefix + 11)
#define kPanelAMenuPath            ""
#define kPanelBMenuPath            ""
#define kPanelAMenuItemPosition   0.0
#define kPanelBMenuItemPosition   0.0
#define kPanelATitleKey         "AAA"
#define kPanelBTitleKey         "BBB"
const RsrcID kPanelAResourceID            =    700  + 50;
const RsrcID kPanelBResourceID            =    700  + 51;

Similar Messages

  • User  getting multiple labels in one copy instead of one label.how to solve this issue?

    user getting multiple labels in one copy instead of one label.
    The detail is unexpectedly prints several labels.The amount is variable, may be 10 or 20 such tags.
    any solution for the above issue?

    Hi sriram,
    may i know,Adjusting the SAPscript form will resolve the issue?
    device details:
    access method is "S"
    Thanks,
    Prasad.

  • How to get multiple takes on one track?

    Using the latest version of GarageBand, how can I get multiple takes of a vocal, for example, on one track and then select the best one?

    See this support article:
    Record multiple takes:  http://help.apple.com/garageband/index.html#gbnda1184253

  • Creating multiple panels in one frame

    Greetings,
    As a newbie, I am sure you all have been in my place at one time or another so I will skip right to the meat of what I am trying to do.
    I originally started out with GridBagLayout() and placing all my code in the main function declaration but that has it's limits.
    I am trying to find a way to mount / add multiple panes onto one JPanel using functions in order to break up the code. I don't get an error when I compile, but the screen appears blank which tells me that I am adding one JPanel onto another in the wrong manner.
    class PanelTest extends JFrame
      private JPanel mainPanel;
      private JPanel headerPanel;
      public void PanelTest()
        mainPanel = new JPanel(new BorderLayout());
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
        mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        mainPanel.setPreferredSize(new Dimension(400, 100));
        mainPanel.add(topPanel(), BorderLayout.NORTH);
        getContentPane().add(topPanel());
      private JPanel topPanel()
        headerPanel = new JPanel ();
        headerPanel.setPreferredSize(new Dimension (300, 50));
        headerPanel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Header Image"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
        JLabel text = new JLabel("TEST");
        headerPanel.add(text);
        return headerPanel;
    }I then use the following code in my main file to call and execute the code
    class BerylMain extends JFrame
      public static void main(String args[])
         PanelTest panelTest = new PanelTest();
         panelTest.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
         panelTest.setSize(500, 400);
         panelTest.setVisible(true);
    }I appreciate any advise on this.

    public void PanelTest()  {
        /* try commenting this.
        mainPanel = new JPanel(new BorderLayout());
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
        mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        mainPanel.setPreferredSize(new Dimension(400, 100));
        mainPanel.add(topPanel(), BorderLayout.NORTH);
        getContentPane().add(topPanel());
    }

  • Multiple panels on one panel

    i have three panels-mainPanel, panel1, panel2. my mainPanel has a borderlayout. i am trying to set both panels1 and 2 onto the center of the mainpanel. i only want to show one panel at a time until a button is clicked. i have used the setVisible command but i still get a panel with nothing on. is there a way around this. the following is my code. is there a way so i can have both panels in the center with all the components for each panels.
    public class IssueBook extends JFrame{
    private JFrame IssueBook;
    JFrame mainFrame = this;
    private JPanel mainPanel, panel1, panel2;
    public IssueBook() {
    IssueBook = new JFrame("Issue Or Return Book");
    mainPanel = new JPanel();
    panel1 = new JPanel();
    panel2 = new JPanel();
    mainPanel.setLayout(new BorderLayout());
    IssueBookPanel.setLayout(new FlowLayout());
    ReturnBookPanel.setLayout(new FlowLayout());
    mainPanel.add(IssueBookPanel, BorderLayout.CENTER);
    mainPanel.add(ReturnBookPanel, BorderLayout.CENTER);
    panel1.setVisible(true);
    panel2.setVisible(false);
    IssueBook.show( );
    }

    Layout managers and panels are one of those things that has to be studied, the good new is that for the most part it isn't difficult;-import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class TwoPanels extends JFrame implements ActionListener {
       JButton start = new JButton("Start");
       JButton submit1 = new JButton("<html><center><b>Add B<br>Remove A</center></html>");
       JButton submit2 = new JButton("<html><center><b>Add A<br>Remove B</center></html>");
       JPanel panel1, panel2, panel3, panel4;
       Container cont;
    public TwoPanels(){
       cont = getContentPane();
       cont.setLayout(new BorderLayout() );
       panel1 = new JPanel();
       panel1.setLayout(new FlowLayout());
       JLabel label1 = new JLabel("My application");
       panel1.add(label1);
       start.addActionListener(this);
       panel1.add(start);
       panel2 = new JPanel();
       panel2.setLayout(new FlowLayout());
       JLabel label = new JLabel("My starting panel");
       panel2.add(label);
       panel3 = new JPanel();
       panel3.setLayout(new FlowLayout());
       panel3.setBackground(Color.magenta);
       JLabel label2 = new JLabel("This is my pink panel, Panel A");
       label2.setForeground(Color.yellow);
       panel3.add(label2);
       submit1.addActionListener(this);
       panel3.add(submit1);
       panel4 = new JPanel();
       panel4.setLayout(new FlowLayout());
       panel4.setBackground(Color.blue);
       JLabel label3 = new JLabel("This is my placid panel, Panel B");
       label3.setForeground(Color.cyan);
       panel4.add(label3);
       submit2.addActionListener(this);
       panel4.add(submit2);
       cont.add("North", panel1);
       cont.add("Center", panel2);
       public void actionPerformed (ActionEvent e){
          if (e.getSource() == start){
             cont.remove(panel2);
             cont.add("Center", panel3);
             validate();
          if (e.getSource() == submit1){
             cont.remove(panel3);
             cont.add("Center", panel4);
             validate();
             repaint();
          if (e.getSource() == submit2){
             cont.remove(panel4);
             cont.add("Center", panel3);
             validate();
             repaint();
      public static void main(String[]args){
         TwoPanels m = new TwoPanels();
         m.setSize(240, 180);
         m.setLocation(150, 200);
         m.setDefaultCloseOperation( EXIT_ON_CLOSE );
         m.setVisible(true);
    }

  • How to get multiple photos as one clip in imovie?

    i have 13 school photos that i want to include in an imovie slideshow project. i wanted them to scroll from left to right, but can't seem to get them all in one clip. is there a way to do this? i found a way to do it by adding all 13 pictures into one photo using photobucket, but when i import that massive photo into imovie, it is such poor quality that it isn't worth it. please help. i'm going crazy over here.

    In that case, I have never done this before, but here is how I would approach it.
    In Photoshop, or similar app, I would create a photo that is 1080pixels high or bigger and wide enough to hold all pictures.
    I would place all photos in here and export as a single photo.
    In iMovie, I would set the image to Ken Burns, with the starting rectangle on the first photo, and the ending rectangle on the last photo.

  • How to get multiple rows at one time in a table?

    hi
    I have a JTable bound with ViewObject and i use multiple selection mode setting to get selection row.
    My question is when i select more then one row at one time i only can get those index from JTable but can't get those rows from ViewObject.is it possible to get rows from ViewObject? or how to use JTable row index to get row from ViewObject?

    repost

  • Line separator to get multiple records in one variable

    Hi Experts,
    I have a requirement where i need to get data in the below form , in exactly one variable.
    Invoice No.       Inv. Date      Voucher   Gross Amount    TDS Amount     Discount    Paid Amount  
    986013092,17   04/08/2010    00091217   32415.00            .00                 .00          32415.00
    Bharti Infot      27/07/2010     00091230   19600.00            .00                 .00          19600.00
    9860442689    04/08/2010       001247     47374.00            .00                  .00         47374.00
    2031565000,2031565000Total Amount     99389.00             .00                  .00         99389.00
    As of now, I have written the following,
    loop at lt_merge into ls_merge.
      lv_skfbt  = ls_MERGE-SKFBT.
      lv_budat  = Ls_MERGE-budat.
      lv_wskto  = Ls_MERGE-wskto.
      lv_wrbtr  = Ls_MERGE-wrbtr.
      lv_WT_QBSHB = ls_merge-WT_QBSHB.
    concatenate invoice_id
                ls_merge-BELNR
                lv_BUDAT
                ls_merge-XBLNR
                lv_skfbt
                lv_wt_qbshb
                lv_WSKTO
                lv_wrbtr
    into invoice_id separated by space.
    endloop.
    which gives me one row of the table where, invoice_id stores my entire one record as a string. My question is how do I proceed with separating the lines if I have multiple records?
    Thanks in advance..
    Regards,
    Trishna

    HI
    choose some character that will be not use in your data for example '|' vertical separator. You will get string:
    invoice_id  = line1 | line2 | line3 |.....
    loop at lt_merge into ls_merge.
    lv_skfbt = ls_MERGE-SKFBT.
    lv_budat = Ls_MERGE-budat.
    lv_wskto = Ls_MERGE-wskto.
    lv_wrbtr = Ls_MERGE-wrbtr.
    lv_WT_QBSHB = ls_merge-WT_QBSHB.
    concatenate invoice_id
    ls_merge-BELNR
    lv_BUDAT
    ls_merge-XBLNR
    lv_skfbt
    lv_wt_qbshb
    lv_WSKTO
    lv_wrbtr
    into invoice_id separated by space.
    new code
    concatenate  invoice_id '|' into invoice_id
    endloop.

  • User in multiple groups gets multiple copies of one mail

    I have a user who is the manager in a department with multiple groups in it.  There is an email group in eudora set up for each administrative group (logical), and the manager's user is in each of those groups (also logical).  Frequently it will be logical to send an email to 2, 3 or 4 of those groups, and then (just as you would expect) she gets 2, 3, 4 copies of the email in her inbox.  Which falls into the "just what we asked for but not what we want" category...
    Does anyone know how to get mac mail or eudora to do "de-duplicating" ?  Or are we just stuck with this?

    Hi..
    Ok, so forget group mapping from AD. What you have here are two seperate network services that require individual provisioning... what I call "Service Differentiated Provisioning"
    This is where Shared RADIUS Authorisation Profiles come in (I know because I deisgned them :)
    Create a NAF for each device - simplest by using their IP addresses.
    Next create two shared RACs - one for each service (mobile & home). Inside use RADIUS attributes to assign the ip pool depending on your RADIUS vendor (Cisco?)
    eg cisco-av-pair = ip:addr-pool=poolA
    Next create the two NAPs - one for mobile access and the other for home access by selecting the appropriate NAF to activate on. Select the authentication types (MSCHAP) and databased (Windows)
    Next, edit the Authorisation part of each NAP. Uncheck the tick boxes "Include attributes from user & group records" - this will merge attributes from group, RAC and user... gets MESSY. Anyway you should see a default rule displayed "If a condition is not defined...." - in the Shared RAC dropdown select the RAC that is appropriate for the NAP (ie mobile or home). Then submit.
    At this point to avoid clashes... remove any ip allocation settings in the ACS groups A & B.
    You should now be able to authenticate users on each network service. They will still map to an ACS group (as before). However the ip pool allocation will now come from the relavent RAC instead of a group.
    It may look complicated (um, guess it is) and the NAP pages are not very friendly, but if you work through these steps it should work a treat.
    If you run CSRadius -z -p from the command line you'll see all the extra helpful debug I put in :)
    Now all you need to do is download the trial of extraxi aaa-reports! (www.extraxi.com) so that you can generate reports to audit the fruits of your labours!
    Good luck
    Darran

  • How to get multiple elements into one element as multiple occurences

    I can't figure out how to do this. I have an input message that has multiple elements and I need to take those elements and copy them into one element with each new element going in as a new occurence or instance. For example
    I have this input under one parent node.
    element1
    element2
    element3
    element4
    and this is the output I need
    Node
    Element1[0]
    Element2[1]
    Element3[2]
    Element4[3]
    The input XML looks like this
    Payload
    Element1
    Element2
    Element3
    and the output XML needs to look like this
    Payload
    Element.
    Thanks in advance

    How about this.
    Input XML:
    <Row>
              <Column1>TOTAL</Column1>
              <Column_9_2_2008>900</Column_9_2_2008>
              <Column_9_2_20082>890</Column_9_2_20082>
              <Column_9_3_2008>52</Column_9_3_2008>
              <Column_9_4_2008>0</Column_9_4_2008>
              <Column_9_4_20082>0</Column_9_4_20082>
              <Column_9_5_2008>0</Column_9_5_2008>
              <Column_9_5_20082>0</Column_9_5_20082>
              <Column_9_8_2008>0</Column_9_8_2008>
              <Column_9_8_20082>0</Column_9_8_20082>
              <Column_9_9_2008>0</Column_9_9_2008>
              <Column_9_9_20082>0</Column_9_9_20082>
              <Column_9_10_2008>0</Column_9_10_2008>
              <Column_9_10_20082>0</Column_9_10_20082>
              <Column_9_11_2008>0</Column_9_11_2008>
              <Column_9_11_20082>0</Column_9_11_20082>
              <Column_9_12_2008>0</Column_9_12_2008>
              <Column_9_12_20082>0</Column_9_12_20082>
              <Column_9_15_2008>0</Column_9_15_2008>
              <Column_9_15_20082>0</Column_9_15_20082>
              <Column_9_16_2008>0</Column_9_16_2008>
              <Column_9_16_20082>0</Column_9_16_20082>
              <Column_9_17_2008>0</Column_9_17_2008>
              <Column_9_17_20082>0</Column_9_17_20082>
              <Column_9_18_2008>0</Column_9_18_2008>
              <Column_9_18_20082>0</Column_9_18_20082>
              <Column_9_19_2008>0</Column_9_19_2008>
              <Column_9_19_20082>0</Column_9_19_20082>
              <Column_9_22_2008>0</Column_9_22_2008>
              <Column_9_22_20082>0</Column_9_22_20082>
              <Column_9_23_2008>0</Column_9_23_2008>
              <Column_9_23_20082>0</Column_9_23_20082>
              <Column_9_24_2008>0</Column_9_24_2008>
              <Column_9_24_20082>0</Column_9_24_20082>
              <Column_9_25_2008>0</Column_9_25_2008>
              <Column_9_25_20082>0</Column_9_25_20082>
              <Column_9_26_2008>0</Column_9_26_2008>
              <Column_9_26_20082>0</Column_9_26_20082>
              <Column_9_29_2008>0</Column_9_29_2008>
              <Column_9_29_20082>0</Column_9_29_20082>
              <Column_9_30_2008>0</Column_9_30_2008>
         </Row>
    Output XML:
    <Total>
              <Payload>900</Payload>
         </Total>
         <Total>
                   <Payload>890</Payload>
         </Total>
         <Total>
                   <Payload>52</Payload>
         </Total>

  • How do I get multiple reports in one window (using windows app)?

    Our users want to be able to launch a "package" of reports.  Meaning, that you can select more than one report to print/preview at once (using .Net 2.0 WinForms).  We are having a tough time getting more than one report to display in one window (or at least, with simple navigation). 
    Any suggestions?

    Hi Christian,
    Download Sample codes from [here|https://boc.sdn.sap.com/codesamples] and have a look to [Dev library|https://boc.sdn.sap.com/developer/library]
    Hope that helps!!
    Regards,
    Shweta

  • Get multiple values into one field

    I want to get following two rows into one record.
    Thank you in advance!
    ID     Name     Category
    109     John     C1
    109     John     D8
    Result:
    ID     Name     Category
    109     John     C1, D8

    hi, i used centinul suggestion to create this is query.
    WITH tablet AS
         (SELECT '109' AS ID, 'John' AS NAME, 'C1' AS CATEGORY
            FROM DUAL
          UNION ALL
          SELECT '109' AS ID, 'John' AS NAME, 'D8' AS CATEGORY
            FROM DUAL)
    SELECT     ID, NAME,
               LTRIM
                  (MAX (SYS_CONNECT_BY_PATH (CATEGORY, ','))KEEP (DENSE_RANK LAST ORDER BY ID),
                  ) AS CATEGORY
          FROM (SELECT ID, NAME, CATEGORY,
                       ROW_NUMBER () OVER (PARTITION BY ID ORDER BY CATEGORY)
                                                                          AS curr,
                         ROW_NUMBER () OVER (PARTITION BY ID ORDER BY CATEGORY)
                       - 1 AS prev
                  FROM tablet)
      GROUP BY ID, NAME
    CONNECT BY prev = PRIOR curr AND ID = PRIOR ID
    START WITH curr = 1;or
    WITH tablet AS
         (SELECT '109' AS ID, 'John' AS NAME, 'C1' AS CATEGORY
            FROM DUAL
          UNION ALL
          SELECT '109' AS ID, 'John' AS NAME, 'D8' AS CATEGORY
            FROM DUAL)
    SELECT     ID, NAME, SUBSTR (SYS_CONNECT_BY_PATH (CATEGORY, ','),
                                 2)CATEGORY
          FROM (SELECT ID, NAME, CATEGORY, COUNT (*) OVER (PARTITION BY ID) cnt,
                       ROW_NUMBER () OVER (PARTITION BY ID ORDER BY CATEGORY) seq
                  FROM tablet)
         WHERE seq = cnt
    START WITH seq = 1
    CONNECT BY PRIOR seq + 1 = seq AND PRIOR ID = ID;Edited by: DeepakDevarapalli on Nov 12, 2009 2:45 PM
    Edited by: DeepakDevarapalli on Nov 12, 2009 2:46 PM

  • SQL Query from getting multiple itemName against one production No.

    Hello Everyone !!!!!!
    My Client required an interface which can combine the production cycle. In which single Interface shows all the Production cycle like Bills of material, Production Order, Issue from Production and received from Production.
    Similarly i have developed single interface for now i have 1 problem ,
    when i show all the the production order number in a matrix i got Prodcution order number, DocNo,and Status .
    as u know in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName .
    For this i have developed a Query but unfortunately my query doesn't show all the ItemName.
    Select Distinct B.* from OWOR
    Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry
    Inner Join OITM C On OWOR.ItemCode = C.itemCode
    Where OWOR.ItemCode = '16.0LF2060WGD'
    And OWOR.Status = 'R'
    AND DocNum = 708680
    Here 16.0LF2060WGD= Production order Number
    R = Status of that production Order number which is in the Release Mode
    Please make sure that in one Production order against multiple itemcode nad multiple ItemName exist and Production order also Exist in the OITM table ........Please help me out
    Could anybody help me out to update my Query according to my Client request ...
    Please ..............
    Thanx
    Edited by: Rizzikhan on Oct 13, 2010 9:31 AM

    Hello Everyone !!!!!!
    My Client required an interface which can combine the production cycle. In which single Interface shows all the Production cycle like Bills of material, Production Order, Issue from Production and received from Production.
    Similarly i have developed single interface for now i have 1 problem ,
    when i show all the the production order number in a matrix i got Prodcution order number, DocNo,and Status .
    as u know in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName .
    For this i have developed a Query but unfortunately my query doesn't show all the ItemName.
    Select Distinct B.* from OWOR
    Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry
    Inner Join OITM C On OWOR.ItemCode = C.itemCode
    Where OWOR.ItemCode = '16.0LF2060WGD'
    And OWOR.Status = 'R'
    AND DocNum = 708680
    Here 16.0LF2060WGD= Production order Number
    R = Status of that production Order number which is in the Release Mode
    Please make sure that in one Production order against multiple itemcode nad multiple ItemName exist and Production order also Exist in the OITM table ........Please help me out
    Could anybody help me out to update my Query according to my Client request ...
    Please ..............
    Thanx
    Edited by: Rizzikhan on Oct 13, 2010 9:31 AM

  • Getting multiple accordions on one page to work properly

    I'm trying my hand at using accordions, and have managed to
    have 2 just about working properly on one page, although I'm not
    able to get the tabs to change color when they're open on both
    accordions. One properly displays the feature, the other doesn't.
    Can I have 2 accordions on one page, w/ the tab that is open a
    different color. Everything else appears to be working fine.
    Thanks for your help, I'm a rookie at scripting.

    Hi coatsleeve,
    Each accordion tracks its own open state, so what you are
    describing is possible. You can even see it in action here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html
    Did you make any CSS changes that may have altered things?
    Its hard to tell what the problem is without actually seeing your
    page/markup/code.
    --== Kin ==--

  • How to get multiple records in one row and different column

    Hi All,
    I am using oracle database 11g
    and i have a two tables table_1, table_2
    table_1 having columns
    emp_no
    first_name
    middle_name
    last_name
    email
    and table_2 having columns
    emp_no
    phone_type
    phone_number
    and having entires
    emp_no phone_type phone_number
    1001 MOB 9451421452
    1001 WEMG 235153654
    1001 EMG 652341536
    1002 MOB 9987526312
    1003 WEMG 5332621456
    1004 EMG 59612356
    Now i want the output of values with phone type as MOB or WEMG in a single row with different columns
    emp_no first_name middle_name last_name email mobile officeno
    1001 mark null k [email protected] 9451421452 235153654
    1002 john cena gary [email protected] 9987526312 null
    1003 dany null craig [email protected] null 5332621456
    1004 donald finn sian [email protected] null null
    can i have any inputs to achive this???
    Regards
    $sid

    Frank Kulash wrote:
    sonething like this:Frank, you missed aggregate function (pivot requires one). However main thing is it will cause ORA-01748:
    with table_1 as (
                     select 1001 emp_no,'mark' first_name,null middle_name,'k'last_name,'[email protected]' email from dual union all
                     select 1002,'john','cena','gary','[email protected]' from dual union all
                     select 1003,'dany',null,'craig','[email protected] null' from dual union all
                     select 1004,'donald','finn','sian','[email protected]' from dual
         table_2 as (
                     select 1001 emp_no,'MOB' phone_type,9451421452 phone_number from dual union all
                     select 1001,'WEMG',235153654 from dual union all
                     select 1001,'EMG',652341536 from dual union all
                     select 1002,'MOB',9987526312 from dual union all
                     select 1003,'WEMG',5332621456 from dual union all
                     select 1004,'EMG',59612356 from dual
    SELECT     *
    FROM     table_1      t1
    JOIN     table_2      t2  ON  t1.emp_no = t2.emp_no
    PIVOT     (    max(t2.phone_number)
         FOR  t2.phone_type  IN  ( 'MOB'   AS mob
                                 , 'WEMG'  AS wemg
            FOR  t2.phone_type  IN  ( 'MOB'   AS mob
    ERROR at line 19:
    ORA-01748: only simple column names allowed hereYou need to:
    with table_1 as (
                     select 1001 emp_no,'mark' first_name,null middle_name,'k' last_name,'[email protected]' email from dual union all
                     select 1002,'john','cena','gary','[email protected]' from dual union all
                     select 1003,'dany',null,'craig','[email protected] null' from dual union all
                     select 1004,'donald','finn','sian','[email protected]' from dual
         table_2 as (
                     select 1001 emp_no,'MOB' phone_type,9451421452 phone_number from dual union all
                     select 1001,'WEMG',235153654 from dual union all
                     select 1001,'EMG',652341536 from dual union all
                     select 1002,'MOB',9987526312 from dual union all
                     select 1003,'WEMG',5332621456 from dual union all
                     select 1004,'EMG',59612356 from dual
         table_3 as (
                     select  t1.emp_no,first_name,middle_name,last_name,email,
                             phone_type,phone_number
                       FROM     table_1      t1
                       LEFT JOIN     table_2      t2  ON  t1.emp_no = t2.emp_no
    SELECT     *
    FROM     table_3
    PIVOT     (    max(phone_number)
         FOR  phone_type  IN  ( 'MOB'   AS mob
                                 , 'WEMG'  AS wemg
        EMP_NO FIRST_ MIDD LAST_ EMAIL                     MOB       WEMG
          1004 donald finn sian  [email protected]
          1003 dany        craig [email protected] null            5332621456
          1001 mark        k     [email protected]      9451421452  235153654
          1002 john   cena gary  [email protected]    9987526312
    SQL>SY.

Maybe you are looking for

  • How to transport this code to an applet

    Hi friends.. the following page has a program to capture images from a web-cam.. can u help me how to transport that code into an applet. So that i can import that applet into an html page, where the live video can be streamed. the link is :- http://

  • Does 3.0 add iCal invitations?

    Does 3.0 add the ability to send/receive meeting invites that are compatible with iCal from your iPhone? You've been able to do this for a while with Exchange, but it doesn't work with iCal on 2.2.1.

  • Re-install of online purchase of Photoshop not working

    I have to remove un-install my photoshop and now I can't get it re-install from the online purchase receipt. When I downloaded it, Creative cloud was installed with all the apps that I can TRY....how do I get the original photoshop to download?

  • Acrobat X: Java-Script-Problem

    Hallo zusammen, ich habe folgendes Problem: aus einer .pdf-Datei möchte ich die Bookmarks, die ich selbst erstellt habe, auslesen (warum führt zu weit). Dafür verwende ich folgendes Script, das ich von www.evermap.com/javascript.asp habe: /* Create a

  • Can we get the list of all BO report scheduled to be sent(or have been sent) for a specified day?

    Hi all, For all BO reports scheduled to be sent out, can we get the list of all BO report to be sent(or have been sent) for a specified day?(For example, today or nex Monday).    Thank you. Regards, Eton.