List item/combo

hi,
anyone know how to programmatically invoke a list item ?
thanx.
n

Andrew EJ
Thanks, I hadn't thought of that and will bear it in mind. However, my current problem revolves around a non-mandatory item which is currently null. Forms does include a blank value in the list but puts it at the bottom, hence the bottom of the list is being displayed. I don't want to use your technique in this case because it will be updating the item with a value the user has not actually chosen. What I really want is the blank at the top. I will experiment with including a null in my list but I suspect forms might put another in at the bottom.
As for opening the list automatically, I think I will experiment with changing the list style to tlist and increasing the vertical size when the user navigates to it.

Similar Messages

  • List item (combo box) issues...

    Hi,
    I have a form I'm creating that returns several records based on a query that the user may edit. I do not base these items on database values, but rather control the data within the form. I have created dynamic combo boxes for the return values (ie, they're only visible when valid values are returned to them). Basically, when I click on a combo box after the items have been populated, I want to populate the combo box, but exclude the values in the remaining combo boxes restraining the user from trying to specify the definition for a value type twice. I'm running into two problems. First, I use the when-mouse-click trigger on the combo box to populate the values, however, it seems it's automatically generating a scrollbar within the combo box, showing two arrows (which I don't want but can't seem to disable). Also if a user clicks on it twice, it's continuing to add values. I have used the clear_list function, but that seems to be causing other problems such as removing one value, but leaving another and after 2 clicks stops working. Has anyone done something similar or have an idea as to how I might get the functionality I want?
    Thank you.

    Can u try to attach a record group to the list item
    and you only populate record group with commands
    1. Create record group with 2 columns
    2. Populate the group
    FUNCTION POPULATE_GROUP
    (recordgroup_id RecordGroup);
    3.Populate list
    PROCEDURE POPULATE_LIST
    (list_id ITEM,
    recgrp_id RecordGroup);
    this way you will have better control.Hi,
    This actually worked great. Thank you!
    The only issue I'm still having is the initial when-mouse-click action is bringing up a scrollbar and minimizing what you can view to one value inside the existing list item, but allowing you to scroll through the list displaying one item at a time (within the list item). If I click twice, the scrollbar disappears, but you still can't see the full list. If I click three times, it starts functioning the way I want it to on the initial click by displaying all values as a combo box list with no scrollbar (all values visible). Is there a behavior I'm overlooking that will force it to behave this way from the initial mouse click?
    Thank you again!

  • Multi Selection in List Item

    Hi all,
    I'm using Oracle Forms 10g and i want to make a multi selection
    in List Item(combo box, poplist or tlist). If anybody can help plz.
    Thanks
    Charbel

    Hello,
    Go to the OTN Forms page then download the Forms demos. They contain a multi-select demo.
    Francois

  • List Item - Retrieve  occurances of pattern entered

    Hi,
    In Oracle Developer 10g, is it possible in list items (combo box style) to retrieve the first occurrence of the entered pattern automatically while typing down letter by letter. We can do this in a LOV . Please help
    May

    Hello,
    I don't think there is someting native for this.
    Francois

  • List Item problem in oracle forms

    Hi,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    Hi Shweta,
    Please post your query in Oracle Forms discussion forum.
    Thanks,
    Wilson.

  • Eliminating the null values from popup list item

    Dear All,
    i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
    i want to eleminate the blank null value from the popup list.
    Need Help.
    Thanks & Regards.

    Okay,
    i create a popup list, populate it in runtime with create_group_from_query builtin.
    now when i run the form and click the list item, it display a null value among the other values which are
    return from the create_group_from_query .
    the procedure is below
    procedure Department_proc is
    rg recordgroup;
    n number;
    begin
    remove_record_group('RG');------  this is another procedure which checks for Record group existance and remove it.
    rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
    UNION
    SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
    n:=populate_group(rg4);
    populate_list('control_block.department',rg4);
    end;
    it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
    and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
    from.
    Best Regards

  • List Item Problem(Urgeng!)

    Hi all,
    I have one list tiem(Combo Box) and I have some element in the list like:
    DHAKA
    BABNA
    DALCHUT
    DATABASE
    BANGLA
    BONDHU
    COMMILLA
    What I want to do is when my user press B from keyboard the list will show or sort the item starting with B first and and rest of the item. Can I do it? Please reply.
    regards,
    suddin

    no chance. When your focus is in the item you cannot change the elements on key-pressed. This is a feature that forms has only in LOV's. Maybe you should use a LOV instead.
    try it
    Gerd

  • List item problem - couldn't pick a value

    Dear professionals,
    i used Andreas's code to dynamically populate list item (http://andreas.weiden.orcl.over-blog.de/article-28957008.html) and it works fine (nice work Andreas)!
    My problem is that i couldn't pick any value from list - I see many values, but there is now way to choose any of them. (video and picture are here: http://imageshack.us/g/3/property.jpg/)
    Also, i spotted that it's not possible to use Combo-box property along with encapsulating procedure - the form is just not opened...
    I'm using JRE 1.6, 10gR2 (10.1.2) F&R...
    Does anyone know why is that ?
    Thanks in advance,
    Adnan
    Edited by: adnanBIH on Jul 5, 2011 8:33 AM

    Andreas Weiden wrote:
    You didn't show us the query you use to populate the list. I would guess that all entries have the same value for the VALUE-column of the select, so that they are all "identical" from the value.Andreas bravo ! :))
    Yes, you're right - my select statement looks like this:
    select a value, "Word" label
    from emp;I'll fix it tomorrow - thx once again, generic procedure is excellent !
    Adnan

  • List items problems in oracle forms 6i

    Hello friends,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    I have a question related to this post...what if you want the first item on the list to be the null record - but have it at the top of the list - like all other drop downs I've seen? I'm running on forms 9i
    Edited by: saburo on Mar 2, 2010 7:58 AM

  • How to populate List Item from the table in a form builder

    I want to know how to populate the List Item (pop up menu and combo box) from a table.
    Supposing I have a table Customer(cust_id,cust_name)
    and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

    This is the method i am using to populate a list.
    1- First of all you need to create a non-database list item for customer_name.
    2-create this procedure
    PROCEDURE populate_list_with_query
    --Populates the given list item with the specified query.
    (p_list_item in VARCHAR2
    ,p_query in VARCHAR2)
    IS
    /* Name the record group after the list item (no
    block prefix). */
    cst_rg_name constant VARCHAR2(30) :=
    GET_ITEM_PROPERTY(p_list_item,item_name);
    v_rg_id RECORDGROUP;
    BEGIN
    v_rg_id := FIND_GROUP(cst_rg_name);
    IF ID_NULL(v_rg_id) THEN
    v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
    END IF;
    IF POPULATE_GROUP(v_rg_id) = 0 THEN
    POPULATE_LIST(p_list_item,v_rg_id);
    /* Force display of first list element label
    in the list item. */
    COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
    END IF;
    END populate_list_with_query;
    3- Create When-Create-Record on the block level and write this code
    BEGIN
    POPULATE_LIST_WITH_QUERY('bk1.customer_name',
    'SELECT customer_name, to_char(customer_id) FROM customer');
    END;
    In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
    i hope this will solve your problem ...

  • How to resize the poplist List Item

    How can I resize a poplist List Item so that when it's expanded all of my item choices are displayed and the user doesn't have to use a scroll bar to move up and down the list of choices?

    The number of choices that are displayed in a poplist (or combo box) is determined by Forms and cannot be specified. However, if you use a t-list you can expand the list by using the height property.
    Message was edited by:
    Mark Roberts

  • Tooltips don't work with list items?

    Hi
    I have a list item (I've tried with both combo and poplist), I've set the tooltip and the tooltip doesn't get displayed. I tried setting the tooltip on a normal text item control for comparison and that displays the tooltip. Do tooltips not work on list items?
    Marc

    It's work in 10gR2.
    It's not work with Combo Box!
    Could be a problem about what JRE you are working? Jinitiator or Sun JRE.
    Try your test on it
    Regards

  • Set vertical gap of menu items, list items...

    Hi, is there any way to adjust the vertical gaps between menu items, between list items, between combo box list lits? I am trying to make my Java application look like Windows application, but the vertical gaps in these Java components are just too big. Thanks!
    Yu

    Sorry for the massive bit of code, but you can use this to display the UI defaults and decide what to change if you want to try to affect (simple) global changes to the look and feel:
    It's far from beautiful but I've found it helpful from time to time.
    import javax.swing.JFrame;
    import javax.swing.Icon;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.UIManager;
    import javax.swing.UIDefaults;
    import javax.swing.border.Border;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.Component;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Insets;
    import java.util.Iterator;
    import java.util.Set;
    import java.util.TreeSet;
    import java.util.Comparator;
    import java.util.Enumeration;
    public class DefaultsDisplayer extends JFrame
         private static class ResourceLabel extends JLabel
              private ResourceLabel(Object key, Object value)
                   super(key.toString());
                   if(value instanceof Icon)
                        setIcon(new SafeIcon((Icon)value));
                   else if(value instanceof Color)
                        setIcon(new ColorIcon((Color)value));
                   else if(value instanceof Font)
                        setIcon(new ColorIcon(null));
                        setFont((Font)value);
                   else if(value instanceof Border)
                        setIcon(new ColorIcon(null));
                        setBorder(new SafeBorder((Border)value));
                   else if(value instanceof String)
                        setIcon(new ColorIcon(null));
                        setText(key.toString() + ": '" + value.toString() + "'");
                   else
                        setIcon(new ColorIcon(null));
                    setText(key.toString() + ": " + value.getClass().getName());
         private static class SafeIcon implements Icon
              private Icon icon;
              private SafeIcon(Icon icon)
                   this.icon = icon;
              public int getIconWidth()
                   return icon.getIconWidth();
              public int getIconHeight()
                   return icon.getIconHeight();
              public void paintIcon(Component comp, Graphics g, int x, int y)
                   try
                        icon.paintIcon(comp, g, x, y);
                   catch(Exception e)
         private static class ColorIcon implements Icon
              private Color color;
              private ColorIcon(Color color)
                   this.color = color;
              public int getIconWidth()
                   return 32;
              public int getIconHeight()
                   return 32;
              public void paintIcon(Component comp, Graphics g, int x, int y)
                   if(color == null)
                        return;
                   g.setColor(color);
                   g.fillRect(x, y, 32, 32);
         private static class SafeBorder implements Border
              private Border border;
              private SafeBorder(Border border)
                   this.border = border;
              public Insets getBorderInsets(Component c)
                   try
                        return border.getBorderInsets(c);
                   catch(Exception e)
                        return new Insets(0, 0, 0, 0);
              public boolean isBorderOpaque()
                   return border.isBorderOpaque();
              public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
                   try
                        border.paintBorder(c, g, x, y, w, h);
                   catch(Exception e)
         private static class ObjectComparator implements Comparator
              public int compare(Object o, Object p)
                   String s = o.toString().toLowerCase();
                   String t = p.toString().toLowerCase();
                   return s.compareTo(t);
         public DefaultsDisplayer()
              super("Default Displayer");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Box box = new Box(BoxLayout.Y_AXIS);
              UIDefaults defaults = UIManager.getDefaults();
              Set keys = new TreeSet(new ObjectComparator());
              for(Enumeration e = defaults.keys(); e.hasMoreElements(); )
                   keys.add(e.nextElement());
              Object key, value;
              JLabel label;
              for(Iterator i = keys.iterator(); i.hasNext(); )
                   key = i.next();
                   value = defaults.get(key);
                   label = new ResourceLabel(key, value);
                   box.add(label);
                   box.add(box.createVerticalStrut(5));
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(new JScrollPane(box), BorderLayout.CENTER);
              setLocation(50, 50);
              setSize(500, 500);
              doLayout();
              setVisible(true);
         public static void main(String[] args)
              new DefaultsDisplayer();
    }

  • Error while editing a list item - SharePoint 2010.

    Hi ,
    i have 2 site collection one is read only site and another one is authoring site. both site collection are inside single web application and referring same content database.
    when i try to edit a list item using authoring site i am getting the below error message. this is for all the lists in the site.
    " the item is no longer available. it may have been deleted by another user. click ok to refresh the page."
    i am able to edit the list items using read only site as an administrator.
    please help me on these.

    This could be a permission issue, refer to the following post for more information
    http://techtrainingnotes.blogspot.in/2012/02/sharepoint-error-this-item-is-no-longer.html
    Cheers,

  • List item problem in oracle forms 6i

    Hello,
    I've 10 test filed, in-front of each text field there are 10 list item (separate list item)
    for each list item element list is given below
    Route
    Customer name
    Delivery date
    Delivery Time
    Delivery Session
    Expected received
    Actual Received
    Fresh Received
    Rate per liter
    Debit Amount
    On text fields I am fetching records from another file. User will map the list item with text item.
    What i want to check is, list item should not get repeated. i.e suppose I've run time display like this
    text item
    list item
    A
    ROUTE
    B
    DELIVERY DATE
    C
    DELIVERY TIME
    D
    DELIVERY DATE
    E
    EXPECTED RECEIVED
    F
    ACTUAL RECEIVED
    G
    FRESH RECEIVED
    H
    RATE PER LITER
    I
    DEBIT AMOUNT
    J
    DELIVERY SESSION
    on text filed B- DELIVERY DATE is assign and at text field D again DELIVERY DATE is assign. I want to avoid this thing and prompt the user regarding the same. How should I go about this? Should I design a button for validation, if yes then what should be the code? or should i go with WHEN-LIST-CHANGE? if so, then what should be the code?
    my design time display is like this
    text
    list item
    txt1
    lst1
    txt2
    lst2
    txt3
    lst3
    txt4
    lst4
    txt5
    lst5
    txt6
    lst6
    txt7
    lst7
    txt8
    lst8
    txt9
    lst9
    txt10
    lst10
    please suggest something
    Thank You
    Sam

    THe most user-friendly way would be to remove elements from all other lists when they are chosen once. You would have to have a WHEN-LIST-CHANGED-trigger on all listitem and populate the the listitems accordingly.

Maybe you are looking for

  • Is it possible to return a HP printer that I did not order from HP?

    Back story: Ordered an HP Officejet 6500 E709n wireless all-in-one from an online retailer. It wouldn't connect wirelessy and after trying to instal it 3 times the printer itself "locked up" and none of the buttons would work --including power. So, I

  • Downloading data from a different carrier

    is it possible to set the iphone to download date from a different network, im with telstra who have horrible data prices, so i i could manage to get a prepaid data pack through someone else it would be helpful. Otherwise ill just try to shut out 3g

  • How to set network date/time?

    Apple TV wont let me continue setup until network date/time is set.  Runs in endless circles trying to set but never does.  WIFI is good with strong signal and everything has been reset.

  • Demand Management: single Supplying Plant to multiple Demand Plant

    Dear All, I have following scenario to mapp: There is one supplying plant (Plant A) and 3 demand plants (Plant B,C,D). Out of 3 demand plant, two plants (Plant C and D) are assigned to different company code then supplying plant while one demand plan

  • Issues installing Adobe Master Collection /Win thru Parallels 3.0 On Macpro

    Yeah Im at a loss too for what is going On here I Do Audio video Editing On the PC side till Now Just got a Not even 6 mo old Mac book pro Dual core 2.5 Ghz 17 in 160 Gb HD 2 GB Ramm did fresh reinstalled of tiger Patched to 10.4.11 then asked the te