Help needed: Populating a list item

I want to populate a list item (combobox) on a form with data from a column in a table, how do I do that? Please help. I am using Developer Suite 10g.

Thanks Andreas, I found the link very helpful. I have managed to populate the list item.

Similar Messages

  • Help needed in linked lists...

    I have been working on this computer assignment lately but I still don't understand linked lists yet..I did an assignment on array based implementation and now I am supposed to do the same thing in linked list implementation..
    I need help on how to change this into a linked list implementation..any help would be appreciated. Thank you..below is the code for the array based implementation..the only thing that needs change here is after where is says Array-based implementation of the ADT list.
    public class ListArrayBasedDriver {
      public static void main(String [] args) {
        ListArrayBased myGroceryList = new ListArrayBased();
        myGroceryList.add(1,"milk");
        myGroceryList.add(2,"eggs");
        myGroceryList.add(3,"butter");
        myGroceryList.add(4,"pecans");
        myGroceryList.add(5,"apples");
        myGroceryList.add(6,"bread");
        myGroceryList.add(7,"chicken");
        myGroceryList.add(8,"rice");
        myGroceryList.add(9,"red beans");
        myGroceryList.add(10,"sausage");
        myGroceryList.add(11,"flour");
        printList(myGroceryList); //print out original List
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
        System.out.println("adding juice for 5th item...");
        myGroceryList.add (5, (Object) "juice");  //add juice
        System.out.println("item 5 is: " + myGroceryList.get(5)); //get position 5
        printList(myGroceryList);
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
        System.out.println("removing juice...");
        myGroceryList.remove (5); //remove item at position 5
        printList(myGroceryList);
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
      public static void printList(ListArrayBased myList)
            //method prints a list, numbering the values,  e.g, "1.  milk" .... "5.  juice".... etc.
            int i;
            for(i=1; i <= myList.size(); i++)
                String tempString = new String((String)myList.get(i));
                System.out.println(i+" "+ tempString);
    // Array-based implementation of the ADT list.
    class ListArrayBased {
        private static final int MAX_LIST = 50;
        private Object items[];  // an array of list items
        private int numItems;  // number of items in list
        public ListArrayBased()
        // creates an empty list
             items = new Object[MAX_LIST];
             numItems = 0;
        }  // end default constructor
        public boolean isEmpty()
          return (numItems == 0);
        } // end isEmpty
        public int size()
           return numItems;
        }  // end size
        public void removeAll()
          // Creates a new array; marks old array for
          // garbage collection.
          items = new Object[MAX_LIST];
          numItems = 0;
        } // end removeAll
        public void add(int index, Object item) throws  ListIndexOutOfBoundsException
          if (numItems > MAX_LIST)
            throw new ListException("ListException on add");
        }  // end if
          if (index >= 1 && index <= numItems+1)
            // make room for new element by shifting all items at
            // positions >= index toward the end of the
            // list (no shift if index == numItems+1)
            for (int pos = numItems; pos >= index; pos--) {
              items[translate(pos+1)] = items[translate(pos)];
          } // end for
          // insert new item
          items[translate(index)] = item;
          numItems++;
          else
          {  // index out of range
            throw new ListIndexOutOfBoundsException(
             "ListIndexOutOfBoundsException on add");
          }  // end if
        } //end add
        public Object get(int index) throws ListIndexOutOfBoundsException
          if (index >= 1 && index <= numItems)
            return items[translate(index)];
          else 
          {  // index out of range
            throw new ListIndexOutOfBoundsException(
              "ListIndexOutOfBoundsException on get");
          }  // end if
        } // end get
        public void remove(int index) throws ListIndexOutOfBoundsException
          if (index >= 1 && index <= numItems)
            // delete item by shifting all items at
            // positions > index toward the beginning of the list
            // (no shift if index == size)
                for (int pos = index+1; pos <= size(); pos++) {
                    items[translate(pos-1)] = items[translate(pos)];
          }  // end for
          numItems--;    
          else
          {  // index out of range
            throw new ListIndexOutOfBoundsException("ListIndexOutOfBoundsException on remove");
          }  // end if
        } // end remove
        private int translate(int position) {
        return position - 1;
       } // end translate
    }  // end ListArrayBased
    class ListException extends RuntimeException
      public ListException(String s)
        super(s);
      }  // end constructor
    }  // end ListException
    class ListIndexOutOfBoundsException
                extends IndexOutOfBoundsException {
      public ListIndexOutOfBoundsException(String s) {
        super(s);
      }  // end constructor
    }  // end ListIndexOutOfBoundsException

    Could someone check for me if this will work and if it doesn't what I need to do to make it work..Thanks...
    public class ListArrayBasedDriver {
      public static void main(String [] args) {
        ListArrayBased myGroceryList = new ListArrayBased();
        myGroceryList.add(1,"milk");
        myGroceryList.add(2,"eggs");
        myGroceryList.add(3,"butter");
        myGroceryList.add(4,"pecans");
        myGroceryList.add(5,"apples");
        myGroceryList.add(6,"bread");
        myGroceryList.add(7,"chicken");
        myGroceryList.add(8,"rice");
        myGroceryList.add(9,"red beans");
        myGroceryList.add(10,"sausage");
        myGroceryList.add(11,"flour");
        printList(myGroceryList); //print out original List
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
        System.out.println("adding juice for 5th item...");
        myGroceryList.add (5, (Object) "juice");  //add juice
        System.out.println("item 5 is: " + myGroceryList.get(5)); //get position 5
        printList(myGroceryList);
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
        System.out.println("removing juice...");
        myGroceryList.remove (5); //remove item at position 5
        printList(myGroceryList);
        System.out.print("numItems is now: " + myGroceryList.size() + "\n");
      public static void printList(ListArrayBased myList)
            //method prints a list, numbering the values,  e.g, "1.  milk" .... "5.  juice".... etc.
            int i;
            for(i=1; i <= myList.size(); i++)
                String tempString = new String((String)myList.get(i));
                System.out.println(i+" "+ tempString);
    // Linked List-based implementation of the ADT list.
    class ListNode
         //class to represent one node in a list
         class ListNode
              //package access members; List can access these directly
              Object data;
              ListNode nextNode;
              //contructor creates a ListNode that refers to object
              ListNode( Object object)
                   this( object, null );
              } //end ListNode one-argument constructor
              //constructor creates ListNode that refers to
              // Object and to the next ListNode
              ListNode ( Object object, ListNode node)
                   data = object;
                   nextNode = node;
              // end ListNode two-argument contructor
              //return reference to data in node
              Object getObject()
                   return data; // return Object in this mode
              //return reference to next node in list
              ListNode getNext()
                   return nextNode; // get next node
              } // end method getNext
    } //end class ListNode
    //class List Definition
    public class List
         private ListNode firstNode;
         private ListNode lastNode;
         private String name; // string like " list " used in printing
         //contructor creates empty List with " list " as the name
         public List()
              this(" list ");
         } //end List no-arguement constructor
    //contructor creates an empty list with a name
    public List( String listName )
         name = listname;
         firstNode = lastNode = null;
    } //end List no-arguement contructor
    //insert Object at front of List
    public void insertAtFront ( object insertItem )
         if ( isEmpty() ) //firstNode and lastNode refer to same object
              firstNode = lastNode = newListNode( insertItem );
         else // firstNode refers to new node
              firstNode = new ListNode ( insertItem, firstNode );
    } // end method insertAtFront
    // insert Object at end of List
    public void insert AtBack ( Object insertItem )
         if ( isEmpty() ) //firstNode and lastNode refer to same object
              firstNode = new ListNode ( insertItem );
         else // firstNode refers to new node
         firstNode = new ListNode (insertItem, firstNode );
    } // end method insertAtFront
    // insert Object at end of List
    public void insertAtBack ( Object insertItem )
         if ( isEmpty() ) //firstNode and LastNode refer to same Object
              firstNode = lastNode = new ListNode ( insertItem );
         else // lastNode = lastNode.nextNode = new ListNode ( insertItem );
    } // end method insertAtBack
    //remove first node from List
    public Object removeFromFront() throws EmptyListException
         if( isEmpty() ) //throw exception if list is empty
         throw new EmptyListException( name );
         object removedItem = firstNode.data; //retrieve data being removed
    // update references firstNode and lastNode
    if (firstNode == lastNode )
         firstNode =lastNode = null;
    else
         firstNode = firstNode.nextNode;
         return removedItem; // return removed node data
    } //end method removeFromFront
    //remove last node from List
    Public Object removeFromBack() throws EmptyListException
         If ( isEmpty() ) // throw exception if list is empty
              throw new EmptyListException( name );
         Object removedItem = lastNode.data; // retrieve data being removed
         // update references firstNode and lastNode
         If ( firstNode == lastNode )
              firstNode = lastNode = null;
         else // locate new last node
              ListNode current = firstNode;
              // loop while current node does not refer to lastNode
              while ( current.nextNode != lastNode )
                   current = current.nextNode;
              lastNode = current; // current is new lastNode
              current.nextNode = null;
         } // end else
         return removedItem; // return removed node data
    } // end method removeFromBack
    // determine whether list is empty
    public boolean isEmpty()
         return firstNode == null; // return true if list is empty
    }     // end method isEmpty
    //output List contents
    public void print()
         if (isEmpty() )
              System.out.printf(�Empty %s\n�, name );
              return;
         System.out.printf(�The %s is: �, name );
         ListNode current = firstNode;
         //while (current != null )
              System.out,printf(�%s �, current.data );
              current = current.nextNode;
         } //end while
         System.out.println( �\n� );
    } //end method print
    } end class List

  • Help needed with xml list

    hi,
    i need to make a list in which all the list items will come
    from xml file. these items will also be clickable so that they open
    a new respective hyperlink on click. i need something like
    www.sponky.com ' s portfolio list. can somebody please help me? i
    really need your help.
    thanks,
    gaurav

    I'm hoping I understand what you're doing... I would probably
    do it all in one frame and just toggle the .visible property of the
    subcategory list after the first one has been clicked, but there's
    no rules about how you do it.
    Without being sure, I think what you may have done is put a
    second "copy" of the category list on another keyframe, which
    replaces the previous instance. By taking away the second copy it
    should work. If that's not the case, then I'm stumped... otherwise
    read on.
    So if you have the category list in its own layer, just have
    it in frame one, on frame 2 of the same layer have a frame but
    not a keyframe. This will mean the instance in frame one is
    still the same one when the playhead gets to frame 2.
    And have the subCategory list on a separate layer, it appears
    on frame 2...
    BTW the .getSelectedItem() method of the list reminds me of
    flash mx... is that the version you're using (curiosity only I
    don't think its relevant, because its obviously working).

  • Dynamic Population of List Item Not Working

    My requirement is to have 1 list item that is populated based on the value selected for a second list item. in the when-list-changed trigger of the second list item, i make a call to a procedure (code below). This seems to not like any of the clear_list or populate_list. the list item type is poplist. i set the class to list. if i use populate_list in when-new-form-instance, there's no problem. PLEASE HELP. When can't I populate list using a procedure??
    ERROR: frm-40734 internal error pl sql error occurred
    PROCEDURE Refresh_List IS
    v_rg_name VARCHAR2(40) := 'RGTEST';
    v_rg_id RecordGroup;
    v_sql varchar2(2048);
    problem EXCEPTION;
    status number;
    list_id item;
    BEGIN
         list_id := Find_Item('BLK_TEST.LST_TEST');
    v_sql:='select column_name from sys.all_tab_columns where table_name=''testtable''';
                   v_rg_id := Find_Group( v_rg_name );
                   IF Not Id_Null(v_rg_id) THEN
                             DELETE_GROUP( v_rg_id ) ;
                   End if;
                   clear_list(list_id);
                   v_rg_id := Create_Group_From_Query( v_rg_name, v_sql ) ;
                   status := Populate_Group( v_rg_name );
                   POPULATE_LIST(list_id, v_rg_id);
                   POPULATE_LIST('BLK_TEST.LST_TEST', 'RGTEST'); also tried this.
                   if status <> 0 then
                             raise problem;
                   end if;
              EXCEPTION
                   WHEN problem THEN
                             message('problem.');
                   WHEN others THEN
                             message('tooto');
    END;

    Thanks for the response. I've tried this example too and it still doesn't like the things mentioned in previous post. In addition, it doesn't like SET_RECORD_PROPERTY(:system.cursor_record,'EMP',status,new_status); I get the same sort of error. The form compiles fine though.
    Background on form:
    this form was created to allow users to dynamically build an update statement. On this form are a number of list items and text boxes that are not populated from a database. So the datablock doesn't retrieve values from the database and the only updating that will be done is when the user clicks an "update" button to execute the sql statement that is built. Could this issue I'm having be related to the way i designed my datablock and items? When the user selects an item from one of the list items, the record status goes to "Changed". So I assumed my issue was because of this and thought the set_record_property statement would help...but that is generating the same error. what am i missing? if i look at the index value of the record group after create_group_from_query, it is -1. after populate_group, it is still -1. should it still be -1?? any help is greatly appreciated.

  • Help needed to setup template item list to send attachement within email te

    Hi! I read everything there was in the bookshelf on the setting of template on Outbound communication, advanced template and my main concern, template items list and I still can not send a template email with an attachment inside. I managed to send the email with the attachment in the message body but not send mail with an attachment separately.
    Is there a special feature or setting to the template items list or in the Siebel file system that needs to be done ? I've try to put a tag pointing to the template item in the advanced template but got no result. I've tried everything but got no result.
    My main goal is to send a template email containing the attachement of an official letter inside. Ideally, I would like the letter as an attachment to be populated by the data of the BC associated (values substitution). This is already working in the advance template. But that's another story. I would be happy if only I can send the email template to include the letter as attachement.
    Thanks in advance for helping me!

    Yes we do. Even if we go with F9 or by the send email from the file menu, the sending of emails is ok. It's just that it wont send attchment as define in the template item list. All settings are ok and are as specified in related bookshelf. By now, i'm looking if there is any activex control missing for outbond email OR if there is any html tags to put inside the advanced template so that the application could properly attach the file to the email. If you have aswer on you side, it would be appreciated.
    Jean.

  • Help needed in removing duplicate items of list box  in java

    How to remove duplicate items of list box while dynamically inserting (on-click event)
    It is not identifying duplicate data
    Variable name is HP_G1
    HP_dmg1 = (DefaultListModel) HP_G1.getModel();
    int a = HP_G1.getModel().getSize();
    System.out.println("HP list no--------> "+a);
    if(a!=0)
    for (int j=0; j<a; j++)
    String item1 = String.valueOf(HP_List.getModel().getElementAt(j));
    System.out.println("HP list added--------> "+item1);
    if(HP_dmg1.equals(item1)){
    HP_dmg1.remove(j);
    else
    HP_dmg1.addElement(GPL);
    }

    Your code is unreadable, so I'll ignore it. In the future please press the message editor's CODE button to format code.
    As to your problem, to the point you normally use a Set instead of List when you don't want duplicates in a collection.

  • [JS][CC] Help needed with targeting pasted item

    Hi.
    Is it possible to be able to targer a selected chunk of text, copy it, and paste it into the page and then identify the pasted frame?
    I can do everything up to the identification of the item.
    I have used
    myDoc.pages[0].allPageItems[0]
    and this sems to work the first time, but I need to repeat the task multiple times, and all subsequest times, I am not targeting the pasted item, rather another text frame that already existed on the page.
    If the worst comes to the worst, I can get all the text formatting attributes, and re-apply the text in a new frame and apply the formatting attributes, but this is not ideal.
    I am sure I am doing this the wrong way, so any help would be great!
    Cheers
    Roy

    @Roy – Does the following snippet work for you (tested in InDesign CS5.5)?
    Selection must be a text selection:
    app.copy(app.selection[0]);
    app.select(null);
    app.paste();
    var myNewTextFrame = app.documents[0].windows[0].activePage.textFrames[0];
    myNewTextFrame.fillColor = "Yellow";
    Of course, you could run into trouble, if the selection exceeds the current spread…
    Uwe

  • Need to add list items while clicking another list item.

    I want to know the steps to be followed to get the below functionality .
    EntityList EntityList
    dept
    emp
    all
    At run time when user clicks emp or emp ,dept,all these items should be to enitity list.
    Iam open any list other than LOV.
    Could you anyone help me how to work this functionality
    Thanks,

    Block Name:CONTROL
    List 1 List 2
    ENTITY_TYPE ENTITY_LIST
    Emp
    Dept
    All
    I have to add List1 item to List2 when user clciks on List1.
    In when-list-changed-trigger
    Declare
         v_list_id ITEM := find_item('CONTROL.ENTITY_LIST');
         v_list_value1 VARCHAR2(100);
    Begin
    Select :CONTROL.ENTITY_TYPE into v_list_value1 from dual;
    Add_List_Element('CONTROL.ENTITY_LIST',1,v_list_value1,v_list_value1);
    End ;
    Iam getting run time warning no list elemnets in entity_list .
    And the form is not showing any list elements in entity_list when i cick on list1.

  • Help needed! GMail sent items missing from Apple Mail!

    I need your help to solve a problem that I've identified recently in Apple Mail with a GMail account:
    I have a POP-enabled GMail account in Mail, but also with IMAP functionality enabled through GMail's webmail settings (probably because I access it also from my iPad).
    However, I notice that my local "Sent" mailbox in Mail only contains some 140 messages, even if a visit to GMail's webmail page shows me that I have at least 1200 "sent" messages.
    I must note that my advanced mailbox settings in Mail do NOT allow for automatic deletion of sent items.
    So my question is: how to make sure that I do not lose ANY sent items from GMail or any other account for that matter (i.e., that whatever is sent remains in the local "sent" mailbox in Mail)? Am I missing something?
    Thanks a lot in advance for your help.

    Or am I saying something stupid?
    No I don't think so. But from what you're saying, the only copies of sent messages on your computer will be what you are sending from the computer. The messages sent from the iPad or website are not stored on the computer. If it were all set as IMAP, they will be available on all devices.
    Thanks a lot for your attentive reply - my only concern is that, when I activate IMAP, I won't be able anymore to have a steady copy of all items in my sent items folder on Apple Mail, nor to delete what I want at will.
    Changing it to IMAP will make the all sent items available on the server to your computer, website, and other devices. They will always be there as long as you don't delete them from the server. The messages you manually delete will delete them from the server and all devices. If you want a local backup, then copy them to a local folder which will not remove them from the server or move them to a local folder which will delete them from the server.
    Auto syncing does not in any way interfere with local folders on the Mac. The only IMAP folders you can sync are the inbox, sent, drafts, and junk. Inbox is the only mailbox that has to be synced (it's done automatically and you can't change it). I also sync the Sent and Trash. I don't sync (store messages on the server) the drafts or junk mailbox.
    I don't understand what you mean by not being able to delete messages from the Inbox. I do it all the time. What happens when you delete it depends on your settings in gmail. Gmail has some peculiar settings like having a deleted items folder besides the Trash folder.  The default is to delete from inbox, it goes to the deleted items folder. Delete it from there, and it goes to Trash. Delete it from trash to get rid of it. The fact is that the All Mail folder shows the message no matter what folder it in. I have mine set to move it straight to the trash when moved from the last visible IMAP folder. So, when I delete it from Mail's Inbox, it moves it to the trash just as local messages do.
    If you plan to do your email from the computer only, then POP is fine. If you plan to use the website and iPad also, then IMAP is the way to go.
    That way everything in mail is available no matter where you look at it. The only things you won't see is what you move to local folders.
    Seems like you should go to gmail's website and read the help files to become more familiar with it. Also look at all the settings available (expecially the Labels Tab, Accounts tab, and Forwarding Tab. These settings will be what you will use mostly to customize how it works and flows with the Mac. If you're going to use IMAP, you need to understand what they do exactly and what you want them to do for you.
    My sole objective: to keep ALL messages in Apple Mail (except those I expressly delete), as well as ALL messages in Google.
    IMAP does exactly this for you already. By leaving it on the server, they are on the computer. In Mails preference settings in the Accounts / Advanced Tab, for IMAP accounts keep the setting for storing messages for offline viewing. That way Mail actually does store a copy locally until you delete it from the server. And that will be backed up with your computer backup.
    And what you do delete from any device will duplicate it elsewhere.

  • Help needed in Print List Archiving

    Hi Experts,
    I have archiuved the Print or Spool List and I am able to see that in the OADR Transaction.
    While tring to open document from storage I am getting this error : <b>"Error calling application via OLE ALVIEWER.APP"</b>.
    What is the cause of this error. Please help in rectifying it.
    Regards,
    Arul Jothi. A.

    Hi Arul,
    The message shows that the IXOS Viewer was not being installed in your machine.
    You may request the IXOS Viewer installer from OpenText directly. Or another workaround is to change the printlist display using SAPGUI from TA OAA3. But is might not be a good idea as SAPGUI only allowed to display upto certain number of pages only.

  • Help, need to get deleted items back.

    I have items purchased through the iTunes store that were accidentally deleted, how do I get them back? They were fully downloaded so I can't "Check for Purchases", they just got deleted and they shouldn't have. Some of them were deleted by someone who didn't know what they were doing, and some were deleted by children smashing the keyboard and hitting the delete button. They aren't in the trash bin and I can't find any way to get them back! Do I have to buy them again?

    Since you purchased it off iTunes then use the iPod + iTunes "transfer purchases" feature. Plug your iPod in and iTunes (it has to be iTunes 7.0 or higher) and iTunes should ask you immediately. Or you can option click on the iPod in the source list and click on transfer purchases. Of course, I'm assuming that you have an iPod. And for preventing future accidents like this I recommend activating "require password to wake this computer from sleep or screen saver." This option is in System Preferences>Security. Of course you'll also have to activate screen saver or automatic sleep after x amount of minutes.

  • List item in multiblock

    Hi,
    I've a multiblock with 3 columns, office_no, office_name, user_name. I populate office_no and office_name by using refcursor. After populating the first 2 columns i need to populate the 3rd column (user_name) which is the list item and its not database column. In other words the list item needs to display all the "user_name" in each "office_no"
    I tried post-query trigger of the multiblock but no luck. I don't see errors but its not populating the list items
    DECLARE
    l_rgrpid RECORDGROUP;
    l_status NUMBER;
    list_id ITEM;
    BEGIN
    l_rgrpid := find_group('rgrp_m_id');
    IF NOT Id_Null(l_rgrpid) THEN
    delete_group(l_rgrpid);
    END IF;
    l_rgrpid := create_group_from_query('rgrp_m_id','SELECT user_name FROM user_office where office_no = ' ||:block1.office_no);
    list_id := find_item('block1.user_name');
    clear_List(list_id);
    l_status := populate_group(l_rgrpid);
    populate_list(list_id,l_status);
    END;
    please advise or any other way to do this? i'll appreciate your help. Thank you.
    Message was edited by:
    user576352

    It looks like you want one list item to containt different elements for each record of a block. This is not possible in forms. The best you can hope for is to have a single list item on the form, in a control block, and populate it (and set its value) in the when-new-record-instance trigger of the data block, making sure you set the value of the appropriate field in the data block when the list is changed.
    An LOV would be the best solution in a forms environment so if the requirement asks for something different you should find out why. Given a choice between 2 options which are technically possible, the LOV might be the preferred option.

  • Re: Empty record in list item

    I would be very greatful it anybody could help me.
    I have created a recordgroup for list item and populated the same. All values are dispalyed properly but in addion one empty record is appear. how can i remove the empty record ? my syntax are as under:
    declare
    v_rg NUMBER;
    v_GrpID RECORDGROUP;
    begin
    v_GrpID := CREATE_GROUP_FROM_QUERY('DRVCODE', 'SELECT led_name ,led_name FROM master_ledger where cmp_code=:global.cmp_code ORDER BY 1');
    v_rg := POPULATE_GROUP(v_GrpID);
    IF v_rg = 0 THEN
    POPULATE_LIST('master_driver.tdrvname', v_GrpID);
    END IF;

    Just add the last line after your code... that is you set the value after populating the list-item;
    declare
    v_rg NUMBER;
    v_GrpID RECORDGROUP;
    begin
    v_GrpID := CREATE_GROUP_FROM_QUERY('DRVCODE', 'SELECT led_name ,led_name FROM master_ledger where cmp_code=:global.cmp_code ORDER BY 1');
    v_rg := POPULATE_GROUP(v_GrpID);
    IF v_rg = 0 THEN
    POPULATE_LIST('master_driver.tdrvname', v_GrpID);
    END IF;
    :master_driver.tdrvname:= v_value;where v_default_value is a variable containing the default value for your list_item (or the specific value that you want it to be pre-set, that could be a table stored value).

  • Editable list item

    Can a list item be editable...I have populated a list item using a record group.The user should be able to edit the values in the database using this list item.It is a poplist.

    you want to edit the data which is shown in the list item?
    if you select the data from a table to show it in the list-item, then you have to update the data in this table. Create a form, which you use for this lookup-table and update the data through this form...

  • Help needed in list item...need to display employee of a selected dept

    Hi All,
    I am very beginner in D2K technology.I am using 10g Forms.
    Could you please help me...
    I have created a list item which contains dept_id=10,20,30....
    My requirement is when i will change the value of dept_id(select dept_id=20),the employees belong to that dept will display(need to display 5 employees of dept 20).
    I hav created two block--block2 and block3
    In block2,there is a list item
    In block3,there is a display item and i changed the properties number of record displayed to 10 of the block.
    I atteched a trigger when-list-changed and the code is :
    select last_name into :block3.item14 from employees where department_id=:block2.item4;
    But It is not working.....
    Thanks in Advance,
    Tapan.
    Edited by: user630863 on Aug 8, 2010 9:20 PM
    Edited by: user630863 on Aug 8, 2010 9:55 PM

    okk..well still i don't know the purpose of the form on which you are working why not the database block for emp?..but the requirement you are asking can be done through following code...
    Trigger - WHEN-LIST-CHANGED
    DECLARE
      CURSOR F_Cur IS
        SELECT ename
        FROM emp
        WHERE deptno = :list_item_name;
    BEGIN
      GO_BLOCK('BLOCK3');
      FIRST_RECORD;
      CLEAR_BLOCK;
      FOR G_CUR IN F_CUR LOOP
        :block3.item_name:=G_CUR.ename;
        NEXT_RECORD;
      END LOOP;
      FIRST_RECORD;
    END;
    Note: in the BLOCK3 there should be one item navigable by cursor. I mean if block3 is having only one item which is name item and it is display item then GO_BLOCK built-in will not work. So, you will need to create one more in block3 or make that name item as text item and set update_allowed to NO from the items' property.
    -Ammad

Maybe you are looking for

  • How do I delete an associated device in iTunes) namely my iphone 6 (8.1) I am using an imac with Yosemeti

    How do I delete an associated device in iTunes) namely my iphone 6 (8.1) I am using an imac with Yosemeti

  • Apache got AddDefaultCharset enabled by default

    Hello Me and a co-worker has been working on a problem where a service of ours did not show the Swedish characters correctly. It turned out that the AddDefaultCharset were enabled with 'UTF-8' by default in the Oracle-distro (altough the comments for

  • Auto created xorg.conf

    I have noticed that when xorg automatically creates xorg.conf settings It works better than when I use my own xorg.conf.. I also get a lot fewer Warnings in xorg.log. The question is, where is the autoconfigured xorg.conf?? I would really like to tak

  • Stopping EEM/TCL script

    How can I stop a pending EEM/TCL script?  I have a Catalyst 4506 version 12.2(40)SG.  The command 'event manager scheduler clear' isn't available.  The output of 'show event manager policy pending' shows: No.  Time of Event             Event Type    

  • From Draft to Delivery note

    I've a delivery note draft, and i want to: 1) Create the delivery note(based on my draft) 2) Close de draft I've the part's 1 solution, but i don't know how to close the draft,i want to close it because i've processed it when i create  the delivery n