Is it possible to have colums displayed inside a combo box?

I would like to know if it is possible to have several columns in a JCombobox.

http://forum.java.sun.com/thread.jspa?threadID=160944&messageID=556723

Similar Messages

  • Entity Descriptions are not displayed correctly in Combo box dropdown list

    In Web Analysis, Entity Descriptions are not displayed correctly in Combo box dropdown list when entity descriptions from HFM contains a dot(.)
    Example:
    'Entity A. LTD' becomes 'LTD'
    'Entity B Inc.' becomes blank
    It seems that everything before the dot is not displayed when opening the combobox.
    It looks like it is acting like the option to show short description for entities in HR where the parent-child relation is not shown. This behaviour I don't expect for descriptions. And in my opinion is not an option in Web Analysis.
    Does anybody knows the sollution or have seen this issue before?

    Hi,
    This is a known issue with combo box list of values.
    Please follow this workaround:
    - Remove ComboboxLOV on Deptno
    - Create an updateable transient attribute(Say Dname) of type String
    - Define combobox lov with following values:
    List Data Source: DeptView1
    List Attribute: Dname
    List Return Values:
    Dname - Dname
    Deptno - Deptno
    UI Hints: Display Attribute - Dname
    - Edit Dname(transient attribute) and provide following groovy expression
    oracle.jbo.Key key = new oracle.jbo.Key(Deptno);
    return DeptView1.findByKey(key, 1)[0].getAttribute("Dname");- Now, you are done and observe that Dname combo box lov shows Description even on selection and change in this combo box sets the Deptno value
    Sireesha

  • Display issue with Combo Boxes and Logo

    Hi All,
    I am facing a couple of issues with my dashboard:
    1. Combo boxes display - I have placed a series of combo boxes one below the other. During the preview, when I click on the first combo box, the values spread below. That is, the labels, and options of the next combo box are also visible. The options in the combo box are not seen clearly. I have tried many permutations and combinations with "Bring Forward +" and "Send Back -" but none of them seem to work. For example, keeping the first combo as bring forward and next one as send back etc. Can you please help me in this regard?
    2. Logo - I have used image component and embedded a logo from my local system. Later I saved the xlf in the repository. When I import the xlf from the platform, it displays the logo fine. But however, this behavior is not constant. It sometimes doesn't show the image. Do I have to save the image also in the repository? or in a common shared folder? If I embed the logo does it not mean that the xlf hold the copy?
    Any help in this regards is highly appreciated.
    Thanks and regards,
    Sandeep.

    Hi:
       For your question
    1) Do you need your combox overlapped? I tried to overlap my comb box and preview it, seems works fine for me. it only chooses the first comb box. But I am suggesting that if you want to show/hide the different combox in the same position at run time, you can try to control the visibility by some other component.
    2) The answer is NO, the image embedded in the image component will be saved to xlf file, there is no need to save it individually. Try to clean your cache files in your machine and do it again.
    Hope it helps.

  • Possible to have Mail display like an SMS or Missed Call?

    Is it possible to have a mail icon or message display when new mail is received via a POP3 mail account (non-push)? Basically, the exact same thing that (if you have it turned on) pops up for a missed call or an SMS message. I'm looking for the same thing, just for new email messages.
    Thanks

    Bump, thanks.

  • Input Controls - is it possible to change the font for a combo box

    I have an input Control combo box that is a mixture of english/chinese characters. In Webi I can view the chinese characters correctly if I change the font to MingLIU. Is it possible to change the font for an input control OR to set a default font?

    I am a first-time user of the photo book application in iPhoto.
    I also was a first-time user, so I started using it. Exploring the possibilities, learning my way around.
    Thanks, in advance, for any suggestions someone might have.
    Click the ? icon
    Oops. Sorry, but you're in the wrong forum : iLife > iPhoto

  • How to display data in combo box from xml file.

    Hi All,
            I have the data in xml file.
      <jukebox>
        <song>
            <title>When the Levee Breaks</title>
            <artist>Kansas Joe and Memphis Minnie</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Better Leave that Stuff Alone</title>
            <artist>Will Shade</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Walk Right In</title>
            <artist>Cannon's Jug Stompers</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
    </jukebox>
    and i want to display the only url in combo box list. for that how can load this xml file and how can i show.
    Can any one help me.
    thanks
    Raghu.

    Raghuvasa,
    Get the XML file data into an XML variable in your code, say var jukebox: xml. Then do
    combo.dataProvider = jukebox.song.url
    or as a shortcut
    combo.dataProvider = jukebox.descendants("url")
    The latter will pull out elements with tag name url at any depth in the xml structure, so sometimes you have to be careful, but in your case there should be no problem.
    Richard

  • ABAP Webdynpro cannot display value help, combo box properly in IE ?

    Hi WDA expert,
    I have problem developing webdynpro in NW 7.0 EHP1 SPS02. All the combo box, value help, drop down input did not properly display using IE 7.0 / 8.0. It is something like create another  blank input beside the original object.
    but everything ok if i am using mozilla firefox.
    I am not sure what is the problem with this.
    Please help.
    Thank You and Best Regards
    Fernand.

    Hi Thomas,
    Thank you for your response, But i am still not able to solve the problem. Let me give you more detail information regarding this issue.
    are you using the Portal? The other poster in this thread seems to think so, but I don't see anything in your postings to indicate that. IE7 is supported on your release/SP level. IE8 is not supported until SPS5.
    => I am not using portal it is just normal test from SAP GUI. I am using IE 8.0.6001.18702. So far i have tested the sample webdynpro "WDR_TEST_SELECT_OPTIONS" to 4 different server (PID, PIQ, ECD, ECQ) all using the same version NW 7.0 EHP 1 SPS02. (i have check for ABAP and BASIS package). The problem only occur in PID (Initially the icm service is not start so i use transaction SICF to start the webdynpro service) not sure if there is missing java script library ?
    Please refer in this link for the different result screen capture below:
    http://i802.photobucket.com/albums/yy310/pisuper/WDA_DEV.jpg   --> error in PID
    http://i802.photobucket.com/albums/yy310/pisuper/WDA_QA.jpg    -
    > success in PIQ, ECD, ECQ
    I would recommend clearing your browser cache and the server side cache. For the server side cache go to transaction SMICM and choose Administration->ICM->Exit Hard->Global.
    I have restarted the whole server and i did again from SMICM. But still having the same problem like in the screen capture.
    Are you using a standard or customized theme?
    I am using standard theme base on demo "WDR_TEST_SELECT_OPTIONS"
    Base on my latest investigation seems like those 3 success server PIQ, ECD and ECQ always download this file ls_ie6.nosprite.css in the internet temporary directory, but then no for PID. 
    is that any idea or suggestion that i can try to solve this problem. it seems like some configuration was missing for the standard theme in PID
    Thank You and Best Regards
    Fernand Lesmana
    Edited by: Fernand Lesmana on Jun 16, 2010 3:52 PM

  • How to programatically display text in combo box?

    Is there a way to programatically display text in a combo box.  I would like to display the word "Select" in the combo box each time my program starts.  As it is now, my combo box displays the last string that was selected the last time the program ran.
    Thanks in advance.
    Solved!
    Go to Solution.

    Actually, after actually reading your post...
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Is it possible to have 2 display names (one for internal use; the other for external use) in Active Directory?

    The idea:
    When communicating amongst our own staff via email we'd like to see our display names in this format:
    Firstname Lastname (Division/Department/Branch/Unit)
    Whereas, when we send emails to people outside the company, we'd like to be seen as:
    Firstname Lastname (Company Name)
    Is this technically possible?
    Regards,
    Anthony

    Please read about Exchange Simple Display Name if you are using Exchange in your environment. It should be suitable for your needs, but as far I know not every Exchange version support it.
    In Exchange 2003 this Simple Display Name was at Advanced tab of user, but now..
    With Exchange 2013, SimpleDisplayName is configured using Exchange Management Shell (EMS)
    Example:
    Set-Mailbox ALIAS -SimpleDisplayName $True
    ..and as with Exchange 2007/2010, you will need to enable UseSimpleDisplayName on RemoteDomain.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Is it possible to have multiple hyperlinks inside an interactive button?

    For example I have 5 buttons on a page.
    Each button when clicked reveals a three column text chart.
    In each of the columns there is a different hyperlink.
    It appears that when I convert that chart to a button, so it can be hidden and revealed it loses the text hyperlinks inside the columns.
    Is there a way around this?
    Am I doing something incorrect?
    I'm currently using InDesign CC.
    Thanks.

    You can go to the InfoObject for which you want to create Hierarchy
    Infoobject Change
    Hierarchy Tab -
    Manage Hierarchy -
    Creater Hierarchy in the Popup Window
    You can follow the link which Noor has updated
    Thanks
    Hari

  • Is it possible to have two OIA instances on same box

    Hi All
    We would like to install two OIA instaces (one for Dev and One for QA) on one linux box and those will be deployed on two different weblogic servers (two web logic installations are there in this box). Is it poosible? if yes, How can we manage RBACX_HOME environment varibale? Can we define our own variable? if yes, Where do we need to replace this RBACX_HOME variable, only in .xml and .properties files or any jar files also using this variable? Please suggest on this.
    Thanks in advance !!!

    I think its possible. We can define our environment variable and use replace accordingly in .xml and .properties. JAR files do use this environment variable by resolving the path at runt-time and having two variables will not be a problem. Along with these changes, 'oscache.properties' is also required to be changed. Also while deploying on weblogic, make sure to have two different context names and force the server to use libraries present in WEB-INF/lib folder .

  • Display Attribute for Combo Box List of Value

    Hi all,
    I am wondering that if even for JDeveloper 12c we need to keep doing this work around https://blogs.oracle.com/adf/entry/combo_lov_how_to_display in order to display a meaningful attribute?
    Regards

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Can I have a form inside another form?

    Hi!
    Is it possible to have a form inside another form?
    Regards,
    Filipa

    I think I'm messing up everything and i'm confused with how jsf works.
    I've noticed now that my problem doen't have todo with if i'm usin one form or nested forms :(
    The problem is (as i understood) that if the backing bean that I'm using for the chart part is a request chart, every time i submit the form a new instance of the bean is created and so the initialization of the selected checkboxes is redone.
    How can I avoid this? I would like to have only the choosen checkboxes selected.
    Here is the jsp code I'm using:
    <h:form>
    <h:panelGrid id="selectMenus" columns="2" style="margin-bottom:10px">
         <h:panelGroup style="margin-right:5px">
              <h:selectOneMenu id="projectSelectBox"
                   value="#{chartTypesBean.selectedProject}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projects}" />
              </h:selectOneMenu>
         </h:panelGroup>
         <h:panelGroup>
              <h:selectOneMenu id="chartSelectBox"
                   value="#{chartTypesBean.selectedProjectChart}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projectCharts}" />
              </h:selectOneMenu>
         </h:panelGroup>
    </h:panelGrid>
    <h:panelGrid id="calcByDay_grid" columns="2"
         rendered="#{chartTypesBean.lineRendered}">
         <h:panelGroup>
              <jd:barChart3d dataset="#{lineChartBean.lineDataset}" width="400"
                   height="400" fileExt="png" chartTitle="Calc by Day"
                   includeLegend="true" formatter="#{lineChartBean.formatter}"
                   type="Line" plotColor="#D8D8D8" binding="#{lineChartBean.lineChart}" />
         </h:panelGroup>
         <h:panelGroup>
              <h:selectManyCheckbox id="lineSeries" layout="pageDirection"
                   immediate="true" value="#{lineChartBean.lineSelectedSeries}">
                   <f:selectItems value="#{lineChartBean.lineSeries}" />
              </h:selectManyCheckbox>
              <h:commandButton id="lineSubmit" value="Submit"
                   action="submit()" />
         </h:panelGroup>
    </h:panelGrid>
    ... (other charts) ...
    </h:form>
    here is the line chart backing bean code:
    public class LineChartBean {
         private Logger logger = Logger.getLogger(LineChartBean.class
                   .getSimpleName());
         private boolean firstTime = true;
         private final String[] lineCategories = { "27/07/05", "28/07/05",
                   "29/07/05", "30/07/05", "31/07/05", "01/08/05", "02/08/05",
                   "03/08/05", "04/08/05", "05/08/05", "06/08/05", "07/08/05",
                   "08/08/05", "09/08/05", "10/08/05", "11/08/05", "12/08/05",
                   "13/08/05", "14/08/05", "15/08/05", "16/08/05", "17/08/05",
                   "18/08/05", "19/08/05", "20/08/05", "21/08/05", "22/08/05",
                   "23/08/05", "24/08/05", "25/08/05", "26/08/05" };
         private final SelectItem[] lineSeries = { new SelectItem("Open", "Open"),
                   new SelectItem("P1(Open)", "P1(Open)"),
                   new SelectItem("P2(Open)", "P2(Open)"),
                   new SelectItem("Active", "Active"), new SelectItem("Test", "Test"),
                   new SelectItem("Evol", "Evol") };
         private final double[][] lineValues = { { 8, 1, 4, 6, 7, 11.60483871 },
                   { 11, 1, 4, 7, 5, 11.62903226 }, { 11, 1, 4, 7, 5, 11.65322581 },
                   { 11, 1, 4, 7, 5, 11.67741935 }, { 11, 1, 4, 7, 5, 11.7016129 },
                   { 13, 2, 5, 7, 5, 11.72580645 }, { 14, 2, 5, 7, 5, 11.75 },
                   { 12, 3, 4, 9, 5, 11.77419355 }, { 12, 3, 4, 9, 5, 11.7983871 },
                   { 12, 3, 4, 9, 5, 11.82258065 }, { 12, 3, 4, 9, 5, 11.84677419 },
                   { 12, 3, 4, 9, 5, 11.87096774 }, { 14, 3, 5, 10, 4, 11.89516129 },
                   { 13, 2, 6, 12, 4, 11.91935484 }, { 13, 2, 6, 12, 4, 11.94354839 },
                   { 13, 2, 6, 12, 4, 11.96774194 }, { 12, 2, 5, 4, 13, 11.99193548 },
                   { 12, 2, 5, 4, 13, 12.01612903 }, { 12, 2, 5, 4, 13, 12.04032258 },
                   { 12, 2, 5, 4, 13, 12.06451613 }, { 12, 2, 4, 4, 11, 12.08870968 },
                   { 12, 2, 4, 3, 9, 12.11290323 }, { 14, 3, 5, 2, 4, 12.13709677 },
                   { 11, 0, 5, 3, 5, 12.16129032 }, { 11, 0, 5, 3, 5, 12.18548387 },
                   { 11, 0, 5, 3, 5, 12.20967742 }, { 12, 0, 6, 2, 5, 12.23387097 },
                   { 12, 0, 6, 2, 4, 12.25806452 }, { 12, 0, 6, 2, 4, 12.28225806 },
                   { 12, 0, 6, 2, 4, 12.30645161 }, { 12, 0, 6, 2, 4, 12.33064516 } };
         private DefaultCategoryDataset lineDataset;
         private String[] lineSelectedSeries;
         private NumberFormat formatter = new DecimalFormat("#,###.##");
         public CategoryDataset getLineDataset() {
              if(firstTime) {
                   lineSelectedSeries = new String[lineSeries.length];
                   for (int i = 0; i < lineSeries.length; i++) {
                        lineSelectedSeries[i] = (String) lineSeries.getValue();
                   firstTime = false;
              lineDataset = new DefaultCategoryDataset();
              for (int serie = 0; serie < lineSeries.length; serie++) {
                   String serieName = (String) lineSeries[serie].getValue();
                   boolean isSelected = false;
                   for (String selectedSerie : lineSelectedSeries) {
                        if (lineSeries[serie].getValue().equals(selectedSerie)) {
                             isSelected = true;
                             break;
                   if (!isSelected) {
                        continue;
                   } else {
                        for (int category = 0; category < lineCategories.length; category++) {
                             double y = lineValues[category][serie];
                             lineDataset
                                       .addValue(y, serieName, lineCategories[category]);
              return lineDataset;
         public NumberFormat getFormatter() {
              return formatter;
         * @return Returns the lineSelectedSeries.
         public String[] getLineSelectedSeries() {
              return lineSelectedSeries;
         * @return Returns the lineSeries.
         public SelectItem[] getLineSeries() {
              return lineSeries;
         * @param lineSelectedSeries
         * The lineSelectedSeries to set.
         public void setLineSelectedSeries(String[] lineSelectedSeries) {
              this.lineSelectedSeries = lineSelectedSeries;

  • Is there any limit to the no.of items to be displayed in combo box

    I would like to know is there any limit to have the list of items to be displayed in a combo box.
    My requirement is to show the list in 2nd combo box based on the selection of an item from 1st combo box. But if I select an item from first combo box, then second combo box is not showing the list of dependent items in case the list exceeds 10.

    I'm not sure if there is a limit but if there is its definatley higher than 10.

  • I have to combo box content change based on the selection on the other

    I have huge unsolve problem where by I have to combo box change content of the combo box based on the selection in the first combo box . The problem is The value changes do not have effect on the second combo box. Below is the content of the coding used for both the combo box.
    function setReasonCode(obj){
                         <%String sql_query3 = "SELECT DISTINCT (ir_tran_typ) "+
                                              "  FROM intrcd ";
                               System.out.println("trans type"+sql_query3 );           
                                try{
                                    rset = db.execSQL(sql_query3);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query3);
                                while(rset.next()){
                                    tran_cde = rset.getString("ir_tran_typ");
                                            tran_typ.addElement(rset.getString("ir_tran_typ"));
                                            System.out.println("trans type 34 "+tran_typ );%>
                                            <% }%>
                                          alert(obj.value);
                                  <%for(int i=0 ;i<tran_typ.size();i++){
                                     System.out.println("trans type 222  "+ tran_typ.size());
                                       tran_cde =tran_typ.elementAt(index).toString();%>
                                       <%System.out.println("trans type before "+ tran_cde);%> 
                                        eval(document.all.tran_cde.option
                                      if(D == <%=tran_cde%> ){
                                       <%System.out.println("trans type D"+ tran_cde);%>     
                                       <%String sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'D' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query"+ sql_query2);           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - emmast2 - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       tran_typ.removeAllElements();
                                       }%>
                                  if( R == obj.value){
                                       alert(R)
                                      if(R== <%=tran_cde%> ){
                                       <%System.out.println("trans type R"+ tran_cde);%>     
                                       <% sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'R' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query 2"+ sql_query2 );           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       }%>
              <%}%>
                }

    Not unless you know which file in the app sets the choices. I've been through it pretty thoroughly and can't find the one.

Maybe you are looking for

  • Cannot open certain preferences after strange boot

    I turned on my mid-2007 macbook, os 10.6.4, today and it had a grey loading bar on the boot screen which I have never (or don't remember) encountered in the three years that I've owned this. After the computer finally turned on, I noticed that my blu

  • Help with atuo-importing from finder

    I am trying to set a folder action or workflow that will find images dropped into a specific folder and import them into a specific album in iPhoto 8. I found what I thought were the right choices in Automator, but when it runs, nothing is imported e

  • Nakisa 4.1 - Org Chart does not display

    Hello gurus, I do have an issue with our fresh implementation of SOVN 4.1 (Org Chart, Build 0911012400, SAP_live build). I did set up the authentication to Logon Screen, and configured the org chart settings (very basic). I did not set up any Role ma

  • Entering HTML Entity Codes

    I haven't been able to find a way to insert HTML entity codes (specifically, to use em dashes, but other needs arise) through the interface. HTML snippets are intended for something entirely different. Apart from opening published output in an editor

  • Pay Pal buttons in Photo Grid

    I have a website in iWeb, and the photos of my jewelry that is for sale are done using the photo grid. I followed the instructions found elsewhere on these forums for using HTML snippets to do the Pay Pal buttons, and they worked great - except the b