Clearing a ComboBox

Good Day
Experts:
I am having all kind of trouble here today with my combobox.  So, I am hoping one of you have had a similar problem and could help.  I have a really basic form with 4 controls...2 Comboboxes and 2 Textboxes.
When the screen opens, the 2 Comboboxes are loaded with the valid values and then the last visited record is loaded on the screen.  This is all good and works great.  When the Find MenuEvent is selected, I run a routine to clear the datasources attached to all 4 of the controls and then set the cursor position.  All the data is gones from the screen.  Here is where the problem is...when I execute the FIND stepping through the code, the data is still hanging around "behind the scenes" for my comboboxes.  Here is the code I use to check for what the User has selected in the Combobox:
Dim UserCombo As SAPbouiCOM.ComboBox
UserCombo = PrintForm.Items.Item("cmbUsrCode").Specific
Dim User As String = UserCombo.Selected.Value
Nothing is on the screen but User is showing the value that use to be on the screen before I ran the Cleardatasources behind the Find MenuEvent. 
This is really perplexing to me on how fix this. 
Any help is appeciated,
Ed

ok Ed,
here it is - without the code markup:
public static void ClearCombo(string FormUID, string ItemUID)
        int count;
        try
            if ( ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).ValidValues.Count > 0 )
                count = ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).ValidValues.Count;
                for (int i = 1; i <= count; i++)
                    ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).ValidValues.Remove(count - i - 0, SAPbouiCOM.BoSearchKey.psk_Index);
                ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).ValidValues.Add("0", " ");
                ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).Select("0", SAPbouiCOM.BoSearchKey.psk_ByValue);
                ((SAPbouiCOM.ComboBox)(SBO_Application.Forms.Item(FormUID).Items.Item(ItemUID).Specific)).ValidValues.Remove(" ", SAPbouiCOM.BoSearchKey.psk_ByDescription);               
        catch (Exception er)
            globals.AppendTextToFile("B1C_AddOn.log", "#" + Convert.ToString(DateTime.Now) + "# ERROR: " + er.Message + " [globals.ClearCombo]");
        finally
            GC.Collect();
regards
David

Similar Messages

  • How to clear combobox

    Hi All,
    I want to fill my combobox on the basis of values selected in other combobox. For this I have to Clear the combobox. I have used Remove method with SAPbouiCOM.BoSearchKey.psk_Index.
    But its giving error. Whats the process to Clear Combobox.
    Thanks,
    Anuj Singh

    Hi ,
    You can use the below code.
    int Count = oComboBox.ValidValues.Count;           
    for (int i = 0; i < Count; i++)
                    oComboBox.ValidValues.Remove(oComboBox.ValidValues.Count - 1, SAPbouiCOM.
    BoSearchKey.psk_Index);            
    Cheers,
    Tamara

  • ComboBox not displaying values...

    Hi people,
    I am having a problem, when I run my GUI the ComboBoxes refuse to display the data when I click the search buttons, my code is below (there are 5 separate classes)
    Here is my code:
    MusicListTest.java:
    import java.util.*;
    class MusicListTest
         /* Test */
         public static void main (String[] arg)
              MusicList tMusic = new MusicList();
              tMusic.addMusic(new Music("Reanimation", "Linkin Park", "Ripcord Designs", "5", "July", "2004"));
              tMusic.addMusic(new Music("Black", "Metallica", "Virgin Records", "8","August","2004"));
              //tMusic.addMusic(new Music("1", "2", "3", "Thusday 2nd July 2004"));
              /*tMusic.addMusic(new Music("Maybe", "Linkin Park", "Ripcord Designs"));
              tMusic.addMusic(new Music("Garage", "Metallica", "Virgin Records"));
              tMusic.addMusic(new Music("1", "2", "3"));
              tMusic.addMusic(new Music("The Wall", "Pink Floyd", "MorningStar Records"));*/
              System.out.println(tMusic);
              //System.out.println(tMusic1);
              //System.out.println(tMusic);
              //Initiate the GUI with the current list of names.
              MusicListGUI tGui = new MusicListGUI(tMusic);
    MusicInputComponent.java:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.*;
    class MusicInputComponent extends JComponent
         //Note: Make input components attributes, as other
         //      methods need to refer to them.
            private JTextField  iTitleField;
         private JTextField iAuthorField;
         private JTextField iPublisherField;
         private JComboBox iDayCombo;
         private JComboBox iMonthCombo;
         private JComboBox iYearCombo;
         public MusicInputComponent()
                    //Dimensions for prompts so that all are the same size and line up.
              Dimension d = new Dimension(583,300);
              Dimension e = new Dimension(60,20);
                    Dimension f = new Dimension(100,20);
                    JPanel tPanel;
              JPanel tPanel1;
              //----Title-------------------------------------
              //Create prompt label, and combo box objects
              JTabbedPane tTabPane = new JTabbedPane(JTabbedPane.TOP);
              tTabPane.setPreferredSize(d);
                    tPanel = new JPanel();
                    tPanel1 = new JPanel();
                    iTitleField = new JTextField(40);
                    iAuthorField = new JTextField(40);
                    iPublisherField = new JTextField(40);
                    String[] tDays = {"","1","2","3","4","Mr","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"};
                    String[] tMonths = {"","January","February","March","April","May","June","July","August","September","October","November","December"};
                    String[] tYears= {"","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010"};
                    iDayCombo = new JComboBox(tDays);
                    iMonthCombo = new JComboBox(tMonths);
                    iYearCombo = new JComboBox(tYears);
                    JLabel tTitlePrompt = new JLabel("Title:", JLabel.RIGHT);
                    JLabel tAuthorPrompt = new JLabel("Author:", JLabel.RIGHT);
                    JLabel tPublisherPrompt = new JLabel("Publisher:", JLabel.RIGHT);
                    tTitlePrompt.setPreferredSize(e);
                    tAuthorPrompt.setPreferredSize(e);
                    tPublisherPrompt.setPreferredSize(e);
                    iDayCombo.setPreferredSize(e);
                    iMonthCombo.setPreferredSize(f);
                    iYearCombo.setPreferredSize(e);
              Box tMainBox = Box.createHorizontalBox();
              tMainBox.add(Box.createHorizontalStrut(10));
              tMainBox.add(tTitlePrompt);
              tMainBox.add(Box.createHorizontalStrut(10));
              tMainBox.add(iTitleField);
              tMainBox.add(Box.createHorizontalStrut(10));
              tMainBox.add(tAuthorPrompt);
              tMainBox.add(Box.createHorizontalStrut(10));
              tMainBox.add(iAuthorField);
              tMainBox.add(Box.createHorizontalStrut(10));
                    tMainBox.add(tPublisherPrompt);
              tMainBox.add(Box.createHorizontalStrut(10));
              tMainBox.add(iPublisherField);
                    tMainBox.add(Box.createHorizontalStrut(10));
                    tMainBox.add(iDayCombo);
                    tMainBox.add(Box.createHorizontalStrut(10));
                    tMainBox.add(iMonthCombo);
                    tMainBox.add(Box.createHorizontalStrut(10));
                    tMainBox.add(iYearCombo);
                    tMainBox.add(Box.createHorizontalStrut(10));
                    tPanel.add(tTitlePrompt);
                    tPanel.add(iTitleField);
                    tPanel.add(tAuthorPrompt);
                    tPanel.add(iAuthorField);
                    tPanel.add(tPublisherPrompt);
                    tPanel.add(iPublisherField);
                    tPanel.add(iDayCombo);
                    tPanel.add(iMonthCombo);
                    tPanel.add(iYearCombo);
                    tPanel.setBackground(new Color(200, 221, 242));
                    tPanel1.setBackground(new Color(200, 221, 242));
                    /*Object iM2 = iM.AList();
                    DefaultListModel iD = new DefaultListModel();
                    iD.addElement(iM2);
                    tList = new JList(iD);*/
                    //tList.setBackground(new Color(200, 221, 242));
                    //Box tNameBox = Box.createVerticalBox();
                    JLabel tLabel = new JLabel("Welcome to my CD selector utility, written by: Robert William Rainbird - P03301169", JLabel.CENTER);
                    tTabPane.addTab("Information", tLabel);
              tTabPane.addTab("Details", tPanel);
                    //tTabPane.addTab("D", tList);
              this.setLayout(new FlowLayout(FlowLayout.LEFT));
              this.add(tTabPane);
         //----accessors-------------------------
         //Return a Name object built form the input fields
         public Music getMusicInput()
              return new Music(getTitle(), getAuthor(), getPublisher(), getDay(), getMonth(), getYear());
         public String getTitle()
                    return iTitleField.getText().trim();
         public String getAuthor()
              return iAuthorField.getText().trim();
         public String getPublisher()
              return iPublisherField.getText().trim();
            public String getDay()
              return (String)iDayCombo.getSelectedItem();
         public String getMonth()
              return (String)iMonthCombo.getSelectedItem();
         public String getYear()
              return (String)iYearCombo.getSelectedItem();
         //-----modifiers: to allow setting contents for each field-------
         //Set the fields to display pName
         public void setMusicInput(Music pMusic)
              this.setTitle(pMusic.getTitle());
              this.setAuthor(pMusic.getAuthor());
              this.setPublisher(pMusic.getPublisher());
              iDayCombo.requestFocus();
              iMonthCombo.requestFocus();
              iYearCombo.requestFocus();
         //effectively clears the fields on previous inputs
         public void reset()
              setMusicInput(new Music("", "", "", "", "", ""));
         //pTitle must be one of "","Mr", "Mrs", "Miss", "Ms", "Dr", "Prof"
         public void setTitle(String pTitle)
              iTitleField.setText(pTitle);
         public void setAuthor(String pAuthor)
              iAuthorField.setText(pAuthor);
         public void setPublisher(String pPublisher)
              iPublisherField.setText(pPublisher);
         public void setDay(String pDay)
              iDayCombo.setSelectedItem(pDay);
         public void setMonth(String pMonth)
              iMonthCombo.setSelectedItem(pMonth);
         public void setYear(String pYear)
              iYearCombo.setSelectedItem(pYear);
    Music.java
    public class Music
         private String iTitle;
         private String iAuthor;
         private String iPublisher;
            private String iDay;
            private String iMonth;
            private String iYear;
         public Music()
                    this("","","","","","");
         public Music(String pTitle, String pAuthor, String pPublisher, String pDay, String pMonth, String pYear)
              this.iTitle = pTitle;
              this.iAuthor = pAuthor;
              this.iPublisher = pPublisher;
              this.iDay = pDay;
              this.iMonth = pMonth;
              this.iYear = pYear;
         public String getTitle()
              return iTitle;
         public String getAuthor()
              return iAuthor;
         public String getPublisher()
              return iPublisher;
            public String getDay()
              return iDay;
            public String getMonth()
              return iMonth;
         public String getYear()
              return iYear;
         private String getFullDetails()
              return iTitle + " " + iAuthor + " " + iPublisher + " " + iDay + " " + iMonth + " " + iYear;
         public String getMusicLine()
              return iTitle + ' ' + iAuthor.toUpperCase().charAt(0) + ' ' + iPublisher + ' ' + iDay + ' ' + iMonth + ' ' + iYear;
            public boolean equals(Object obj)
              if (obj==null || getClass()!=obj.getClass())
                   return false;
                   Music n = (Music) obj;
                   return iTitle.equalsIgnoreCase(n.iTitle)
                        && iPublisher.equalsIgnoreCase(n.iPublisher);
         public int hashCode()
              return getFullDetails().hashCode();
         public String toString()
              return getFullDetails();
    MusicList.java:
    import java.util.*;
    public class MusicList
                private List iList;  //names are stored in a list.
         public MusicList()
              iList = new LinkedList();
         public MusicList(List pListOfMusic)
              iList = pListOfMusic;
         public void addMusic(Music pMusicName)
                iList.add(pMusicName);
         public void removeMusic(Music pMusicName)
              iList.remove(pMusicName);
                 //Return the name with the given surname, otherwise return null.
         //Uses a linear search.
            public Music findTitle(String pTitle)
              Music tTitle = null;
              boolean found = false;
              Iterator it = iList.iterator();
              while (it.hasNext() && !found)
                   tTitle = (Music) it.next();
                   found = tTitle.getTitle().equalsIgnoreCase(pTitle);
              if(!found) tTitle=null;
              return tTitle;
         public Music findAuthor(String pAuthor)
              Music tAuthor = null;
              boolean found = false;
              Iterator it = iList.iterator();
              while (it.hasNext() && !found)
                   tAuthor = (Music) it.next();
                   found = tAuthor.getAuthor().equalsIgnoreCase(pAuthor);
              if(!found) tAuthor=null;
              return tAuthor;
            public Music findPublisher(String pPublisher)
              Music tPub = null;
              boolean found = false;
              Iterator it = iList.iterator();
              while (it.hasNext() && !found)
                   tPub = (Music) it.next();
                   found = tPub.getPublisher().equalsIgnoreCase(pPublisher);
              if(!found) tPub=null;
              return tPub;
         public String toString()
              return "Music List = " + iList.toString();
    MusicListGUI.java:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    class MusicListGUI extends JFrame
         private MusicList iMusicList;
         public MusicListGUI()
              this(new MusicList());
         public MusicListGUI(MusicList pMusicList)
                    super("CD List GUI");     //set the title
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    Container tContentPane = this.getContentPane(); //we add components to the contentPane
                    tContentPane.setLayout(new BorderLayout());
                    iMusicList = pMusicList;
                    MusicInputComponent tMusicInputCpt = new MusicInputComponent();
              JLabel tMessageLine = new JLabel();
                    ButtonPanel tBPanel = new ButtonPanel(tMusicInputCpt, tMessageLine, iMusicList);
              /* Use a tabbed pane. Each component has its own tab.*/
                    //add the tab pane to the frame's content.
                    tContentPane.add(tMusicInputCpt, BorderLayout.NORTH);
                    tContentPane.add(tBPanel, BorderLayout.WEST);
                    tContentPane.add(tMessageLine, BorderLayout.SOUTH);
                    tMessageLine.setText("Welcome");
                    this.setLocation(300,200);
              this.setResizable(false);
              this.pack();
              this.setVisible(true);                 //Then add the panel to the tab pane (or content pane).
         public MusicList getMusicList()
              return iMusicList;
         public void setMusicList(MusicList pMusicList)
              iMusicList = pMusicList;
    ButtonPanel.java:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    class ButtonPanel extends JPanel {
         private MusicInputComponent iMusicCpt;
         private JLabel iMessageLine;
         private MusicList iMusicList;
         public ButtonPanel(MusicInputComponent pMusicCpt, JLabel pMessageLine, MusicList pMusicList)
              iMusicCpt = pMusicCpt;
              iMessageLine = pMessageLine;
              iMusicList = pMusicList;
              //Define the buttons and listener methods ----------------------------
              JButton tFindButton = new JButton("Search Title");
              tFindButton.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                                            Music tMusic = iMusicCpt.getMusicInput();
                             iMessageLine.setText("Searching for: ");
                                            String tTitle = tMusic.getTitle();
                                            tMusic = iMusicList.findTitle(tTitle);
                                            if (tMusic != null)
                                  iMusicCpt.setMusicInput(tMusic);
                                  iMessageLine.setText(iMessageLine.getText() + " - found");
                             else
                                  iMessageLine.setText(iMessageLine.getText() + " - not found");
              JButton tFindButton1 = new JButton("Search Author");
              tFindButton1.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             Music tMusic = iMusicCpt.getMusicInput();
                             iMessageLine.setText("Searching for: ");
                                            String tAuthor = tMusic.getAuthor();
                                            tMusic = iMusicList.findAuthor(tAuthor);
                                            if (tMusic != null)
                                  iMusicCpt.setMusicInput(tMusic);
                                  iMessageLine.setText(iMessageLine.getText() + " - found");
                             else
                                  iMessageLine.setText(iMessageLine.getText() + " - not found");
              JButton tFindButton2 = new JButton("Search Publisher");
              tFindButton2.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             Music tMusic = iMusicCpt.getMusicInput();
                             iMessageLine.setText("Searching for: ");
                                            String tPublisher = tMusic.getPublisher();
                                            tMusic = iMusicList.findPublisher(tPublisher);
                                            if (tMusic != null)
                                  iMusicCpt.setMusicInput(tMusic);
                                  iMessageLine.setText(iMessageLine.getText() + " - found");
                             else
                                  iMessageLine.setText(iMessageLine.getText() + " - not found");
              JButton tClearButton = new JButton("Clear");
              tClearButton.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             iMusicCpt.reset();
                             iMessageLine.setText("Enter\n" + "Details");
              JButton tSubmitButton = new JButton("Submit");
              tSubmitButton.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             Music tMusic = iMusicCpt.getMusicInput();
                                            iMusicList.addMusic(tMusic);
                             iMessageLine.setText("Added: " + tMusic.toString());
                             System.out.println(iMusicList);
              JButton tDeleteButton = new JButton("Delete");
              tDeleteButton.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             Music tMusic = iMusicCpt.getMusicInput();
                             iMusicList.removeMusic(tMusic);
                             iMessageLine.setText("Deleted: " + tMusic.toString());
                             iMusicCpt.reset();
                             System.out.println(iMusicList);
              //Construct the ButtonPanel -----------------
              this.setLayout(new FlowLayout(FlowLayout.RIGHT));
              //this.setBackground(Color);
              this.add(tFindButton);
              this.add(tFindButton1);
              this.add(tFindButton2);
                    this.add(tDeleteButton);
              this.add(tClearButton);
              this.add(tSubmitButton);
    }Any light anyone could shed on the situation would be appreciated, I have another GUI with a ComboBox and it allows you to Clear the ComboBox and display search results, my own one and the reference one are both the same (I think)
    Many Thanks,
    Rob.

    Yeah...well you need everything for it to run correctly. And see if there are any mistakes. Not quite. We are not here to debug your programs for you. We are here to help with programming concepts and questions.
    Write a simple program with all the code in one class that demonstrates the problem. Chances are you will find out what you problem is. If you can prove it works in a simple program the you find out what the difference is between the working and non working program.
    Here is an examle of a simple class that responds to a combo box selection:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=428181

  • Appending new pages to signed documents now makes Acrobat 9 and Reader 9 mark signature as invalid

    Hello!
    I have developed a service that appends additional pages to existing PDF documents. Some of the documents the service works on happen to be signed. As the service appends the pages using incremental updates, the signed contents are left untouched. This makes Acrobat 8 and Reader 8 display the signature state as "valid with subsequent changes" which is ok and no one complains about.
    Now along come Acrobat 9 and Reader 9, and all of a sudden the signature state is "invalid" which my users do complain about. Telling them that inspecting the signature state details they can see that the signed content still is untouched and the actual change is recognized to be some appended pages, doesn't help either as they in turn forward the documents to their customers who don't accept the documents if the Adobe Reader sais the signatures are invalid.
    Does anyone know a way new pages can be added to a signed document without having the new Adobe program versions choke on them?
    Even a hint that involves adding some flag to the original unsigned document or the signature itself would help as the users in question can tweak those processes. Due to the nature of the workflow, though, signing unfortunately must happen before my service can add the new pages.
    Best regards, Mikel.
    By the way, the signatures in question are regular approval signatures, nothing fancy, especially not certifying signatures (which indeed can forbid any changes or at least any changes but some form fill-ins and annotations)...

    Hi Fritz,
    In the interest of full disclosure, I got the answer to the problem from one of my distinguished colleagues, I'm just the messenger in this case.
    The problem is that the form adds some items to the Arzneispezialität / Zusatztext combobox which are there during signing but the form doesn’t remember that it did this on the next form open. 
    Since this field is included in the MDP+ signature and the field has changed in the re-opened version vs. the signed version, the MDP+ signature becomes invalid.
    XFA has a feature that remembers these kinds of things for you but it is turned it OFF. Please open the attached screen shot to see the control in question.
    So, you can either (1) turn this feature ON (Automatically), or (2) write some script to clear the combobox items prior to signing or (3) write some script to repopulate the combobox items on the subsequent open to match the items that were there during signing.
    Steve

  • Signature is invalid after signing and saving

    Hi,
    I've been messing around with this problem for days and I don't find a solution.
    I've a PDF document I created in LiveCycle Designer ES 8.2. This document will get populated with data from an XFDF file. After that, user can input data and data will be retrieved via Webservices too.
    After finishing, the user has to sign the document and then it will be saved back to the server with a submit function.
    When I reopen the signed document (or even after I click "save" without sending back to the server and reopening it), the signature is invalid. When I click on "Compare signed version to current version", I get the report "The pages are identical" and when I close the report, the signature isn't invalid anymore. Acrobat then writes: "At least one signature requires validating".
    There are some JavaScript functions in the document which may cause the problem, but I already eliminated most of them, with docReady events, so they won't be executed on start.
    Is there a way to debug the PDF document?
    I've found some debugging hint on the internet from 2003 or 2004, but I can't even find the menus right now, so I think, there must be a new way for this in Acrobat 9.
    I hope, someone can help me, this problem really drives me crazy.
    Thanks.
    Fritz

    Hi Fritz,
    In the interest of full disclosure, I got the answer to the problem from one of my distinguished colleagues, I'm just the messenger in this case.
    The problem is that the form adds some items to the Arzneispezialität / Zusatztext combobox which are there during signing but the form doesn’t remember that it did this on the next form open. 
    Since this field is included in the MDP+ signature and the field has changed in the re-opened version vs. the signed version, the MDP+ signature becomes invalid.
    XFA has a feature that remembers these kinds of things for you but it is turned it OFF. Please open the attached screen shot to see the control in question.
    So, you can either (1) turn this feature ON (Automatically), or (2) write some script to clear the combobox items prior to signing or (3) write some script to repopulate the combobox items on the subsequent open to match the items that were there during signing.
    Steve

  • Issue with selection screen element on At slection scree

    Hi All,
    I am facing an issue with a checkbox which is present within the subscreen of a standard selection screen.
    The issue is that the value of the combobox get toggled by itselfon the event mentioned below. I am unable to find out how this combo box value gets changed by itself on the screen events.I tried clear statemetns etc nothing is helping. I debugged with a watch point on this screen element and found this to happen.It just changes the value of the element to a previously held state.I m trying to clear the combobox but this event puts back the tick mark.How can I stop this.
    AT SELECTION-SCREEN ON COL_FROM.  "COL_FROM is another screen element diffrent from the combobox
    Thanks

    Hi Vighneswaran CE,
    This event corresponds to the PAI module of the COL_FROM field. So, it gets executed each time you press any valid function code on the screen (unless there was an error in a previous field). Nothing abnormal here.
    That's difficult to help you on that topic, you'd better tell us exactly what report it is, where you have added your code (and what code) to change the checkbox, ...
    Best regards,
    Sandra

  • Internet Directory is 'INVALID' after patch

    Dear Friends;
      I'm very new to Oracle Application server. Please help me on this issue.
    1. I installed Application server 10.1.0.2 in RHEL 5.4 32bit
    2. Then patched it to 10.1.0.3 (before that infra db is updated to 10.1.0.5 sucessfully.)
    3. When I execute this command in SQL i got this output.
    SQL> select * from app_registry; 
    WORKFLOW   
    Oracle Workflow                                               
    OWF_MGR   
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:36:16
    SYNDICATION
    Oracle Application Server Syndication Services               
    DSGATEWAY 
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:29:37
    PORTAL     
    Oracle Application Server Portal                             
    PORTAL     
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:29:25
    B2B       
    Oracle Application Server Integration B2B                     
    SYS       
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:38:04
    BAM       
    Oracle Application Server Integration BAM                     
    SYS       
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:38:10
    MRC       
    Oracle Application Server Metadata Repository Version-R       
    SYS       
    10.1.2.0.2
    VALID 
    17-JUL-2013 06:42:51
    OCA       
    Oracle Application Server Certificate Authority               
    SYS       
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:15:46
    OID       
    Oracle Internet Directory                                     
    SYS       
    10.1.2.3.0
    INVALID
    17-JUL-2013 07:27:38
    DCM       
    Oracle Application Server Distributed Configuration Management
    DCM       
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:15:43
    DISCOVERER 
    Oracle Business Intelligence Discoverer                       
    DISCOVERER5
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:15:44
    SSO       
    Oracle Application Server Single Sign-On                     
    ORASSO     
    10.1.2.3.0
    VALID 
    17-JUL-2013 07:28:21
    WCS       
    Oracle Application Server Web Clipping                       
    WCRSYS     
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:29:57
    UDDI       
    Oracle Application Server UDDI Registry                       
    UDDISYS   
    10.1.2.0.2
    VALID 
    15-AUG-2005 03:29:46
    WIRELESS   
    OracleAS Wireless                                             
    WIRELESS   
    10.1.2.1.0
    VALID 
    17-JUL-2013 08:23:38
    Why is this OID INVALID ? How can I make it 'VALID' ?
    Regards
    Vish

    Hi Fritz,
    In the interest of full disclosure, I got the answer to the problem from one of my distinguished colleagues, I'm just the messenger in this case.
    The problem is that the form adds some items to the Arzneispezialität / Zusatztext combobox which are there during signing but the form doesn’t remember that it did this on the next form open. 
    Since this field is included in the MDP+ signature and the field has changed in the re-opened version vs. the signed version, the MDP+ signature becomes invalid.
    XFA has a feature that remembers these kinds of things for you but it is turned it OFF. Please open the attached screen shot to see the control in question.
    So, you can either (1) turn this feature ON (Automatically), or (2) write some script to clear the combobox items prior to signing or (3) write some script to repopulate the combobox items on the subsequent open to match the items that were there during signing.
    Steve

  • Update the testfield when setSelectedItem() for editable JComboBox

    Hi,
    I am having problem with setSelectedItem() and setSelectedIndex() methods of editable JComboBox.
    I extended JComboBox with default dataModel. When I enter some string in the textfield of the combobox, I call insertItemAt() method to dynamically grow the list. The application requires to clear the textfield everytime I enter something and press "return" key. To make it work, I insert an empty string to the list at the very beginning and call the setSelectedItem("") method in the actionPerformed().
    Now the problem is that I know the setSelectedItem("") is called since the getActionCommand() returns "comboBoxChanged" everytime I enter something in the textfield, but the testfield is not cleared. And if I select one item from the list and press "enter" key, the textfield is cleared. To make things more interesting, after I enter the first string and press "enter", the textfield really get cleared, but not for all other later input. Is this a bug? Can anyone please help me? Thanks a lot. Below is my code snippet.
    public class MyComboBox extends JComboBox implements ActionListener
    public GsISCommComboBox()
    jbInit();
    private void jbInit() throws Exception
    this.setEditable(true);
    this.addActionListener(this);
    insertItemAt("",0);
    public void actionPerformed(ActionEvent e)
    String str=null;
    String strrr=e.getActionCommand();
    System.out.println("getActionCommand: "+strrr);
    if(strrr.equalsIgnoreCase("comboBoxChanged"))
    str=(String)this.getSelectedItem();
    return;
    else
    str=strrr;
    // other stuff to process the string and do things
    setSelectedItem("");
    repaint();
    hidePopup();
    insertItemAt(str,0);

    Try inserting your string first and then, try clearing the combobox's textfield.
    insertItemAt(str,0);
    setSelectedItem("");
    hidePopup();
    repaint();
    Since you add the "" string at the begining, it will have the index 0. Perhaps, you want to insert your string this way:
    // insert string at the end
    insertItemAt(str, this.getItemCount());
    //Then use the
    setSelectedIndex(0);
    But you need to remember that if you add an item at the begining, index 0 may not be your '' '' string after that.
    I hope that it helps.

  • Combo select value

    I have a problem with comobox select. I have build a form with 3 comboboxes. I added to the form a button for clear all the controls values in the form. When I am in the find mode nad i want to clear the combobox selected value it does not clear the value. and this is only when I am in find mode.
    I have also added the empty value to the combo datasource.
    the code is something like this:
    oCombo.Select(string.Empty, SAPbouiCOM.BoSearchKey.psk_ByValue);
    string selectedValue = _cmbCausale.Selected.Value;
    The problem is that  when I am in find mode the selectedValue it is not string.Empty but it is the last selected value from the form.
    does any one have any suggestion?

    HI,
    Set the datasource value to clear the combobox, then it will work.
    Regards
    J.

  • Discosing a specific Tab clears combobox values

    Hi All,
    Still in trouble with tabbed panes. I have the following situation (JDev 11.1.1.1.0 + ADF):
    Two tabs (Default Tab and Item Tab), user may select (or add) something in Default tab and it can have many "items", in the item Tab I can navigate to an update page and "update" data for that specific item.
    Default Tab has 2 combo boxes that have mandatory values (working fine)...
    If I leave the app with standard values it updates the item(s) and navigates back to the default tab (entrance point of my task-flow).
    BUT
    In my manage bean I am trying to change de disclosed value of item Tab to TRUE (so when I update an item I get back to the Item Tab and not the default tab)... that's working fine HOWEVER when I try to update a second item from my list (item tab) I get an error because the values from the comboboxes (and those values only - all other values remain in their specific fields) are wipped out (cleared) forcing the user to select the values again (??)
    If I leave the application to get back to the default tab it works (values are not cleared) but then the user has to select item tab again to proceed another update.
    I've tryed to refresh views but it is not working.
    Has anyone in the forum got a clue on how to solve this problem? Is there a way to "fix" the combobox values once the user navigates to Item Tab?
    Edited by: L.Luppi on Dec 29, 2009 4:16 PM

    I did it and the page simply does not show up... I have included the {pageFlowScope.<MB>} in all the calls also but no success. I get an error in the WebLogic console saying that my managedBean is returning "null"... will try again today...
    Just checking your post I have changed my adfc-config.xml to pageFlow! Should that work as well?
    here is the stack:
    Referer: http://127.0.0.1:7101/admin/faces/Admin.jspx?_adf.ctrl-state=y2kjibek0_4
    Cookie: JSESSIONID=M0yQL78Gqqy163vKwfk13vQ9tVkzpLRpbtTT5wZbCyhwV1mrpF8L!-688705151
    ]] Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'menuManagerMB' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:67)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at jsp_servlet._menu.__menuread_jsff._jspx___tag12(__menuread_jsff.java:666)
         at jsp_servlet._menu.__menuread_jsff._jspx___tag11(__menuread_jsff.java:610)
         at jsp_servlet._menu.__menuread_jsff._jspx___tag10(__menuread_jsff.java:559)
         at jsp_servlet._menu.__menuread_jsff._jspx___tag9(__menuread_jsff.java:514)
         at jsp_servlet._menu.__menuread_jsff._jspx___tag0(__menuread_jsff.java:109)
         at jsp_servlet._menu.__menuread_jsff._jspService(__menuread_jsff.java:64)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:407)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:153)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:128)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:485)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
         at jsp_servlet.__menumanager_jspx._jspx___tag8(__menumanager_jspx.java:493)
         at jsp_servlet.__menumanager_jspx._jspx___tag7(__menumanager_jspx.java:454)
         at jsp_servlet.__menumanager_jspx._jspx___tag6(__menumanager_jspx.java:409)
         at jsp_servlet.__menumanager_jspx._jspService(__menumanager_jspx.java:236)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: L.Luppi on Dec 30, 2009 9:42 AM

  • Set a combobox clear from selection

    Hi all,
    do anyone know how to set a combobox clear from selection (none of the value is selected) ?
    pardon me for using wrong words.

    Hi
    Set the datasource value of the combo box to nothing ("").
    If not using datasources, use this code at form startup.
    oForm.DataSources.UserDataSources.Add("dsUID", [type],[size]);
    oCombobox.Databind.SetBound(true, "", "dsUID");
    Use this code to set value to nothing
    oForm.DataSources.UserDataSources.Item("dsUID").ValueEx="";
    Thanks

  • Why does PrintJob clears ComboBox component?

    I am building an on-line form with several text input
    component boxes and a couple combo boxes. I have an option at the
    bottom of the screen to print out a copy of the form. The problem
    is when the print button is pushed, it prints the content, but then
    empties form components completely. It even wipes out the content
    of the ComboBox so there's nothing displayed. I need to reuse the
    form without refreshing or reloading after every print. Why does it
    do this and how can I stop it?

    You need both a renderer and an editor. The renderer draws the cell when it's not being edited and the editor gets put in the table (by the table) when you go to edit the cell.

  • How can i make that in the ComboBox control it will show only part of each item name without the Win32_ in the start of each item ?

    This is my form1 code:
    using System;
    using System.Collections;
    using System.Management;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    namespace GetHardwareInfo
    public partial class frmMain : Form
    public frmMain()
    InitializeComponent();
    cmbxOption.SelectedItem = "Win32_Processor";
    cmbxStorage.SelectedItem = "Win32_DiskDrive";
    cmbxMemory.SelectedItem = "Win32_CacheMemory";
    cmbxSystemInfo.SelectedItem = "";
    cmbxNetwork.SelectedItem = "Win32_NetworkAdapter";
    cmbxUserAccount.SelectedItem = "Win32_SystemUsers";
    cmbxDeveloper.SelectedItem = "Win32_COMApplication";
    cmbxUtility.SelectedItem = "Win32_1394Controller";
    private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
    lst.Items.Clear();
    ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from " + Key);
    try
    foreach (ManagementObject share in searcher.Get())
    ListViewGroup grp;
    try
    grp = lst.Groups.Add(share["Name"].ToString(), share["Name"].ToString());
    catch
    grp = lst.Groups.Add(share.ToString(), share.ToString());
    if (share.Properties.Count <= 0)
    MessageBox.Show("No Information Available", "No Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
    return;
    foreach (PropertyData PC in share.Properties)
    ListViewItem item = new ListViewItem(grp);
    if (lst.Items.Count % 2 != 0)
    item.BackColor = Color.White;
    else
    item.BackColor = Color.WhiteSmoke;
    item.Text = PC.Name;
    if (PC.Value != null && PC.Value.ToString() != "")
    switch (PC.Value.GetType().ToString())
    case "System.String[]":
    string[] str = (string[])PC.Value;
    string str2 = "";
    foreach (string st in str)
    str2 += st + " ";
    item.SubItems.Add(str2);
    break;
    case "System.UInt16[]":
    ushort[] shortData = (ushort[])PC.Value;
    string tstr2 = "";
    foreach (ushort st in shortData)
    tstr2 += st.ToString() + " ";
    item.SubItems.Add(tstr2);
    break;
    default:
    item.SubItems.Add(PC.Value.ToString());
    break;
    else
    if (!DontInsertNull)
    item.SubItems.Add("No Information available");
    else
    continue;
    lst.Items.Add(item);
    catch (Exception exp)
    MessageBox.Show("can't get data because of the followeing error \n" + exp.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
    private void RemoveNullValue(ref ListView lst)
    foreach (ListViewItem item in lst.Items)
    if (item.SubItems[1].Text == "No Information available")
    item.Remove();
    #region Control events ...
    private void cmbxNetwork_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxNetwork.SelectedItem.ToString(), ref lstNetwork, chkNetwork.Checked);
    private void cmbxSystemInfo_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxSystemInfo.SelectedItem.ToString(), ref lstSystemInfo, chkSystemInfo.Checked);
    private void cmbxUtility_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxUtility.SelectedItem.ToString(), ref lstUtility, chkUtility.Checked);
    private void cmbxUserAccount_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxUserAccount.SelectedItem.ToString(), ref lstUserAccount, chkUserAccount.Checked);
    private void cmbxStorage_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxStorage.SelectedItem.ToString(), ref lstStorage, chkDataStorage.Checked);
    private void cmbxDeveloper_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxDeveloper.SelectedItem.ToString(), ref lstDeveloper, chkDeveloper.Checked);
    private void cmbxMemory_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxMemory.SelectedItem.ToString(), ref lstMemory, chkMemory.Checked);
    private void chkHardware_CheckedChanged(object sender, EventArgs e)
    if (chkHardware.Checked)
    RemoveNullValue(ref lstDisplayHardware);
    else
    InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
    private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
    private void chkDataStorage_CheckedChanged(object sender, EventArgs e)
    if (chkDataStorage.Checked)
    RemoveNullValue(ref lstStorage);
    else
    InsertInfo(cmbxStorage.SelectedItem.ToString(), ref lstStorage, chkDataStorage.Checked);
    private void chkMemory_CheckedChanged(object sender, EventArgs e)
    if (chkMemory.Checked)
    RemoveNullValue(ref lstMemory);
    else
    InsertInfo(cmbxMemory.SelectedItem.ToString(), ref lstStorage, false);
    private void chkSystemInfo_CheckedChanged(object sender, EventArgs e)
    if (chkSystemInfo.Checked)
    RemoveNullValue(ref lstSystemInfo);
    else
    InsertInfo(cmbxSystemInfo.SelectedItem.ToString(), ref lstSystemInfo, false);
    private void chkNetwork_CheckedChanged(object sender, EventArgs e)
    if (chkNetwork.Checked)
    RemoveNullValue(ref lstNetwork);
    else
    InsertInfo(cmbxNetwork.SelectedItem.ToString(), ref lstNetwork, false);
    private void chkUserAccount_CheckedChanged(object sender, EventArgs e)
    if (chkUserAccount.Checked)
    RemoveNullValue(ref lstUserAccount);
    else
    InsertInfo(cmbxUserAccount.SelectedItem.ToString(), ref lstUserAccount, false);
    private void chkDeveloper_CheckedChanged(object sender, EventArgs e)
    if (chkDeveloper.Checked)
    RemoveNullValue(ref lstDeveloper);
    else
    InsertInfo(cmbxDeveloper.SelectedItem.ToString(), ref lstDeveloper, false);
    private void chkUtility_CheckedChanged(object sender, EventArgs e)
    if (chkUtility.Checked)
    RemoveNullValue(ref lstUtility);
    else
    InsertInfo(cmbxUtility.SelectedItem.ToString(), ref lstUtility, false);
    private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    linkLabel1.LinkVisited = true;
    System.Diagnostics.Process.Start("http://www.test.net");
    #endregion
    What i get is in the end that in the ComboBox in this case i call it cmbxNetwork i see in it many items all start with Win32_ For example when i click on ComboBox i see the first item is: "Win32_NetworkAdapter"
    Instead Win32_NetworkAdapter i want to see in the ComboBox only: NetworkAdapter But when i select the item it should be selected as Win32_NetworkAdapter but the user should see and select only NetworkAdapter.
    I want to remove as test from the ComboBox items the Win32_ But only that the user will see it without Win32_
    Also in the constructor when i'm doing now: cmbxNetwork.SelectedItem = "Win32_NetworkAdapter"; so instead if i'm doing: cmbxNetwork.SelectedItem = "NetworkAdapter"; it will be enough. THe program will use the "Win32_NetworkAdapter";
    but again what i see and user in the ComboBox as item is only the NetworkAdapter

    Hi Chocolade1972,
    >> I want to remove as test from the ComboBox items the Win32_ But only that the user will see it without Win32_  Also in the constructor when i'm doing now: cmbxNetwork.SelectedItem = "Win32_NetworkAdapter"; so instead if i'm doing:
    cmbxNetwork.SelectedItem = "NetworkAdapter";
    Do you mean that you want the ComboBox show the value of “NetworkAdapter” in the text, but when you refer the value of the cmbxNetwork.SelectedItem, it will be “Win32_NetworkAdapter”? If so, I am afraid that you need create your own ComboboxItem and override
    the ToString() method to return the text you want.
    You could modify the code below for your own achievement.
    public partial class Form0417 : Form
    public Form0417()
    InitializeComponent();
    public class ComboboxItem
    public string Text { get; set; }
    public object Value { get; set; }
    public override string ToString()
    return Text;
    private void Form0417_Load(object sender, EventArgs e)
    ComboboxItem item1 = new ComboboxItem();
    item1.Text = "Processor";
    item1.Value = "Win32_Processor";
    ComboboxItem item2 = new ComboboxItem();
    item2.Text = "DiskDrive";
    item2.Value = "Win32_DiskDrive";
    cmbxOption.Items.Add(item1);
    cmbxOption.Items.Add(item2);
    //MessageBox.Show((cmbxOption.SelectedItem as ComboboxItem).Value.ToString());
    private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
    MessageBox.Show((cmbxOption.SelectedItem as ComboboxItem).Value.ToString());
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Comboboxes are not set  on the 1st time a row is clicked in the dataTable

    I have somewhat the following setup:
    I have a DataTable that is filled with a listof objects, a actionListener is handeled when a row is clicked.
    Under the Table there are two ComboBoxes (lets call them Category and Item) that get their values from lists of Objects. The values of the list that backs the Item combo depend on the selected value of the Category combo.
    Lets assume the values look like this:
    CategoryA
    ---ItemA1
    ---ItemA2
    CategoryB
    ---ItemB1
    ---ItemB2
    Together with some textboxes, they should represent the values of the clicked row in the Table.
    Now the problem:
    When the comboboxes have a different value than the row that is be&iuml;ng selected the values of the comboboxes and textboxes are not set correctly until the 3rd time the row is clicked.
    It also doesn't go into the onClickMehod in the backing bean before the 3rd click. This is checked by a logger.
    an example:
    before clicking, the category combo is set to "CategoryB", the Item combo is set to "ItemB1" and the textboxes are empty. The row that is going to be clicked has as its category "CategoryA" and as its Item "ItemA1"
    1st click:
    the form still shows the values like they were before clicking, the log doesn't show that the method is triggered
    2nd click:
    the Item combo is set to "ItemA1", the category is still set to "CategoryB", the textBoxes are still empty. The log still doesn't show that the method is triggered
    3rd click:
    the Category combo is set to "CategoryA", the Item combo is set to "ItemA1", the textboxes also have their correct values.
    the code is as followed:
    JSP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head></head>
    <body>
    <f:view>
    <h:form binding="#{backingBean.pageLoad}">
    <h:dataTable binding="#{backingBean.dataTable}" columnClasses="COL1, COL1, COL2, COL2, COL3" value="#{backingBean.myObjects}" var="myObject" width="100%" headerClass="HEADING" rowClasses="ROW1, ROW2" rows="10">
    <h:column>
    <f:facet name="header">
    <h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
    <f:attribute name="sortField" value="getItemCategory" />
    <h:outputText value="Category"/>
    </h:commandLink>
    </f:facet>
    <h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.item.itemCategory.description}" actionListener="#{backingBean.rowSelect}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
    <f:attribute name="sortField" value="getItem" />
    <h:outputText value="Item"/>
    </h:commandLink>
    </f:facet>
    <h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.item.name}" actionListener="#{backingBean.rowSelect}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:commandLink actionListener="#{backingBean.sortDataList}" styleClass="rowHeader">
    <f:attribute name="sortField" value="getDescription" />
    <h:outputText value="Certification"/>
    </h:commandLink>
    </f:facet>
    <h:commandLink shape="rect" styleClass="rowtext" value="#{myObject.description}" actionListener="#{myObject.description}"/>
    </h:column>
    <f:facet name="footer">
    <h:panelGroup style="text-align:right">
    <h:commandButton value="first" action="#{backingBean.pageFirst}" disabled="#{backingBean.dataTable.first == 0}" />
    <h:commandButton value="prev" action="#{backingBean.pagePrevious}" disabled="#{backingBean.dataTable.first == 0}" />
    <h:commandButton value="next" action="#{backingBean.pageNext}" disabled="#{backingBean.dataTable.first + backingBean.dataTable.rows >= backingBean.dataTable.rowCount}" />
    <h:commandButton value="last" action="#{backingBean.pageLast}" disabled="#{backingBean.dataTable.first + backingBean.dataTable.rows >= backingBean.dataTable.rowCount}" />
    <h:commandButton value="Append New" action="#{backingBean.ClearFields}" />
    </h:panelGroup>
    </f:facet>
    </h:dataTable>
    <h:inputHidden value="#{backingBean.sortField}"/>
    <h:inputHidden value="#{backingBean.sortAscending}"/>
    <h:inputHidden value="#{backingBean.myObjectId}"/>
    <br />
    <br />
    <table style="border-collapse: collapse; width:100%" cellpadding="3" border="1">
    <tr>
    <td style="text-align:left; width:20%; background-image:url('images/lbar.gif'); font-family:Arial; font-size:smaller; font-weight:bold" colspan="3">Detail</td>
    </tr>
    <tr>
    <td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Category </td>
    <td style="width:80%; background-color:#CCCCCC;font-weight:bold">
    <h:selectOneMenu value="#{backingBean.selectedCategory}" onchange="submit();" valueChangeListener="#{backingBean.CategoryChange}">
    <f:selectItems value="#{backingBean.selectedCategories}"/>
    </h:selectOneMenu>
    </td>
    </tr>
    <tr>
    <td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Item id </td>
    <td style="width:80%; background-color:#CCCCCC;font-weight:bold">
    <h:selectOneMenu value="#{backingBean.selectedItem}">
    <f:selectItems value="#{backingBean.selectedItems}"/>
    </h:selectOneMenu>
    </td>
    </tr>
    <tr>
    <td style="text-align:right; width:20%; background-color:#CCCCCC; font-family:Arial; font-size:smaller; font-weight:bold">Item Description </td>
    <td style="width:80%; background-color:#CCCCCC;font-weight:bold"> <h:inputTextarea value="#{backingBean.description}" cols="60" rows="5"/></td>
    </tr>
    </table>
    </h:form>
    </f:view>
    </body>
    </html>the backing bean:
    public class BackingBean{
    -- Declaration of properties --
    public void rowSelect(ActionEvent event) {
    // Get selected MyData item to be edited.
    logger.debug("Select row");
    FacesContext context = FacesContext.getCurrentInstance();
    try
    if ((sortField != null) && (myObjects != null)) {
    Collections.sort(myObjects, new DTOComparator(sortField, sortAscending));
    dataTable.saveState(context);
    catch(Exception e){
    logger.error(e.getLocalizedMessage(), e);
    context.addMessage("ERROR", new FacesMessage(e.toString()));}
    logger.debug("Setting fields");
    myObject = (MyObject) dataTable.getRowData();
    description = myObject.getDescription();
    itemCategory = myObject.getItem().getItemCategory();
    item = myObject.getItem();
    docDisabled = !certified;
    selectedCategory = itemCategory.getId();
    myObjectId = myObject.getId();
    logger.debug("Fields set");
    public void sortDataList(ActionEvent event) {
    String sortFieldAttribute = getAttribute(event, "sortField");
    // Get and set sort field and sort order.
    if (sortField != null && sortField.equals(sortFieldAttribute)) {
    sortAscending = !sortAscending;
    } else {
    sortField = sortFieldAttribute;
    sortAscending = true;
    // Sort results.
    if (sortField != null) {
    Collections.sort(myObjects, new DTOComparator(sortField, sortAscending));
    public void CategoryChange(ValueChangeEvent vce){
    try {
    logger.debug("SelectedIndexChange: Category: {}",vce.getNewValue().toString());
    selectedCategory = Integer.parseInt(vce.getNewValue().toString());
    logger.debug("SelectedIndexChange: Category");
    itemCategory = itemCategoryService.retrieveItemCategoryById(selectedCategory);
    logger.debug("Showing Category: {}", itemCategory.getDescription());
    } catch (Exception e) {
    logger.error("Error occured: {}",e.toString());
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage("ERROR", new FacesMessage(e.toString()));
    public List<SelectItem> getSelectedItems() {
    selectedItems = new ArrayList<SelectItem>();
    try
    logger.debug("selectedCategory: {}",selectedCategory);
    if (itemCategory!=null)
    logger.debug("Category Object: {}",itemCategory.getId());
    items.clear();
    items.addAll(itemCategoryService.retrieveItemCategoryById(selectedCategory).getItems());
    logger.debug("items recieved: {}",items.size());
    for (int count = 0; count < items.size(); count++) {
    selectedItems.add(new SelectItem(items.get(count).getSeq(),items.get(count).getName()));
    catch (Exception e){
    logger.error("Error occured: {}",e.toString());
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage("ERROR", new FacesMessage(e.toString()));
    return selectedItems;
    public List<SelectItem> getSelectedCategories() {
    selectedCategories = new ArrayList<SelectItem>();
    try{
    for (int count = 0; count < itemCategories.size(); count++) {
    if (itemCategories.get(count).getItems().size() != 0)
    selectedCategories.add(new SelectItem(itemCategories.get(count).getId(),itemCategories.get(count).getDescription()));
    if (selectedCategory == 0)
    selectedCategory = itemCategories.get(0).getId();
    catch (Exception e){
    logger.error("Error occured: {}",e.toString());
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage("ERROR", new FacesMessage(e.toString()));
    return selectedCategories;
    -- other getters and setters --
    }I've already tried to use the action attribute instead of the actionlistener attribute, also tried to add immediate="true" to all fields and columns.
    Did try to add onclick="submit();" to the rows.
    What can be done to fix it??
    ps: the enviroment is JSF + Spring + Hibernate

    The <h:messages/> tag is where the validation exception is shown, but no validation is used on the form, no other exeptions are sown.
    the List<Categories> is filled at a setPageLoad method which is bound to the form by <h:form binding="#{backingBean.pageLoad}">.
    The List<SelectedItem> of the categories box is filled in its getter and filled with the values of the List<Categories>
    And both the List<SelectedItem> of the items box and the List<Item> are filled in the getter of the List<SelectedItem> of the items box
    so instead of that i should rewrite it to something like this:
    public BackingBean() {
        selectedCategories = new List<SelectedItem>();
        selectedItems = new List<SelectedItem>();
        categories = CategoryService.retrieveCategories(); //gets all categories
        items = ItemService.retrieveItemsByCategory(selectedCategory); //gets the items
        for (int count = 0; count < categories.size(); count++) {
            selectedCategories.add(new SelectItem(categories.get(count).getId(),categories.get(count).getDescription()));
        if (selectedCategory == 0){
            selectedCategory = categories.get(0).getId();
        for (int count = 0; count < items.size(); count++) {
            selectedItems.add(new SelectItem(items.get(count).getId(),items.get(count).getDescription()));
        if (selectedItem == 0){
            selectedItem = items.get(0).getId();
    public void CategoryChange(ValueChangeEvent vce){
            try {
                if (vce.getPhaseId() != PhaseId.INVOKE_APPLICATION) {
                    vce.setPhaseId(PhaseId.INVOKE_APPLICATION);
                    vce.queue();
                } else {
                    FacesContext.getCurrentInstance().renderResponse();
                    selectedCategory = Integer.parseInt(vce.getNewValue().toString());
                    category = CategoryService.retrieveCategoryById(selectedCategory); // gets the category Object
            } catch (Exception e) {
                logger.error("Error occured: {}",e.toString());
                FacesContext context = FacesContext.getCurrentInstance();
                context.addMessage("ERROR", new FacesMessage(e.toString()));
    public List<SelectItem> getSelectedCategories() {
        return selectedCategories;
    public void setSelectedCategories(List<SelectItem> selectedCategories) {
        this.selectedCategories = selectedCategories;
    public List<SelectItem> getSelectedItems() {
        return selectedCategories;
    public void setSelectedItems(List<SelectItem> selectedItems) {
        this.selectedItems = selectedItems;
    }The bean is request scoped.

  • Adding custom combobox to my scene7 tab in contentfinder

    I am trying to add custom combobox by extending the OOB scene7 contentfinder in CQ. But for some reason, I am not seeing my combo box (id and selected value) getting passed in the  request header as query parameter. Following is the js code I am using, has anyone worked on such a customization?
    =================================================
    CQ.Ext.ns("MyClientlib");
    MyClientlib.ContentFinder = {
        TAB_S7_BROWSE : "cfTab-S7Browse",
        S7_QUERY_BOX: "cfTab-S7Browse-Tree",
        CONTENT_FINDER_TAB: 'contentfindertab',
        S7_RESULTS_BOX: "cfTab-S7Browse-resultBox",
        addPageFilters: function(){
            var tab = CQ.Ext.getCmp(this.TAB_S7_BROWSE);
            var queryBox = CQ.Ext.getCmp(this.S7_QUERY_BOX);
            queryBox.add({
                "xtype": "label",
                "text": "Select Path",
                "cls": "x-form-field x-form-item-label"
            var metaCombo = new CQ.Ext.form.ComboBox({
            typeAhead: true,
            triggerAction: 'all',
            lazyRender:true,
            mode: 'local',
            store: new CQ.Ext.data.ArrayStore({
                id: "cfTab-s7Browse-metaDataStore",
                fields: [
                    'myId',
                    'displayText'
                data: [[1, 'Name'], [2, 'Keywords'], [3, 'Description']]
            valueField: 'myId',
            displayField: 'displayText',
                listners: {
                    select: function (combo, record, index) {
                                        var store = CQ.Ext.getCmp(this.S7_RESULTS_BOX).items.get(0).store;
                                                                                              store.setBaseParam("mFilter",CQ.Ext.getCmp(" cfTab-s7Browse-metaDataStore").getValue());
                                                                // CQ.S7.setSearchQualifiers(store);
                                        store.reload();
                        queryBox.add(metaCombo);
                  var cfTab = queryBox.findParentByType(this.CONTENT_FINDER_TAB);
        queryBox.add(new CQ.Ext.Panel({
                border: false,
                height: 40,
                items: [{
                    xtype: 'panel',
                    border: false,
                    style: "margin:10px 0 0 0",
                    layout: {
                        type: 'hbox'
                    items: [{
                        xtype: "button",
                        text: "Search",
                        width: 60,
                        tooltip: 'Search',
                        handler: function (button) {
                            var params = cfTab.getParams(cfTab);
                            cfTab.loadStore(params);
                        baseCls: "non-existent",
                        html:"<span style='margin-left: 10px;'></span>"
                        xtype: "button",
                        text: "Clear",
                        width: 60,
                        tooltip: 'Clear the filters',
                        handler: function (button) {
                            $.each(cfTab.fields, function(key, field){
                                field[0].setValue("");
            queryBox.setHeight(230);
                  queryBox.doLayout();
            var form = cfTab.findByType("form")[0];
            cfTab.fields = CQ.Util.findFormFields(form);
    changeResultsStore: function(){
            var queryBox = CQ.Ext.getCmp(this.S7_RESULTS_BOX);
            var resultsView = queryBox.ownerCt.findByType("dataview");
            var rvStore = resultsView[0].store;
            rvStore.proxy = new CQ.Ext.data.HttpProxy({
                url: CQ.S7.getSelectedConfigPath() + "/jcr:content.search.json",
                method: 'GET'
    (function(){
        var INTERVAL = setInterval(function(){
            var c = MyClientlib.ContentFinder;
            var tabPanel = CQ.Ext.getCmp(CQ.wcm.ContentFinder.TABPANEL_ID);
            if(tabPanel){
                clearInterval(INTERVAL);
                c.addPageFilters();
                //CQ.Ext.Msg.alert('meta','CQ.Ext.getCmp("cfTab-s7Browse-metaDataStore").getValue()');
                c.changeResultsStore();
        }, 250);
    =================================================

    Hi Aanchal,
    i have posted exactly the same problem a few months ago, and no one answered me.
    I couldn't find any documentation on how to add custom GP parameters in the universal worklist, in the examples on customizing the UWL XML they always refer to parameters from the r/3 webflow, never GP.
    I really can't believe that nobody ever tried to do this and faced this problem!
    Please let me know if you find something..
    Regards,
    Marco.

Maybe you are looking for

  • E1EDKA1 WE missing in IDOC for purchase orders

    Hi, We have an issue where our users create a PO by following the steps below. 1. In ME21N screen, Pull up document overview and from there display the materials listed in each contract. 2. Drag and drop the materials into "shopping cart" , enter qty

  • Breaking in bugs or Faults?

    Hi, first post on the forums so want to say hi to all i have had a N96 for about a week now (well since Monday and have had a few problems, most of them have disappeared like slowness and lag but i have been faced with a few persistent problems that

  • Still images with lines

    Hey Guys, This sounds like such an elementary issue that I should be able to figure out. But basically I have some images (psd) that I imported into Final Cut and I have put basic motion on all of them. Everytime I export the video I end up with line

  • BUG OR IMPROVMENT: navigation buttons

    Hi When we use the first and last button on navigation button the behavior isn't correct. The last record button goes to the maximum DocNum not to the maximum DocEntry, and in the first record button has the same behavior. This occurs when we have se

  • Form handler

    hi all, form handler's handle methods return type is boolean, the question is here, when it will set false and when it will set true. and where the success and failure url has been set. Regards 333