Add an element to the list in run time

There is an item in my form which is a list of values.It is getting populated based on a record group query.
I want to let the user enter values at run time and add the values to the exiting list in the form and same
should be added to the record group so that next time i open the form the added value can be seen.
Is this possible?
Regards,

I have written this code on when_button_pressed trigger to populate the record group RGSTD and LOV(Name LOVSTD).
I have added the element in the list using add_list_element built in. But it is not giving me proper results.
Record group has two columns STDID and STDNAME.
DECLARE
ln_num NUMBER := 0;
BEGIN
ln_num := show_alert('ALERT15');
IF ln_num = 88 THEN
add_group_row('RGSTD', 1);
set_group_char_cell('STDID', 1, 'ST00004');
set_group_char_cell('STDNAME', 1, 'Add To List');   
add_list_element('LOVSTD', 1, 'Add To List', 'Add To List');  
ELSE
NULL;
END IF;
END;Edited by: LostWorld on Feb 9, 2009 5:49 AM

Similar Messages

  • How to add more elements in the list box bean

    Hi,
    I have created a list box bean on a seeded page. I have an array of 573 elements.
    When I tried to add all those values in my list box, only 251 of those values got inserted in it.
    Please suggest me how can I insert all the 573 values in that list box.
    Regards,
    Gaurav.

    Thanks Gyan.
    Below is the code for creating list box :
    OAApplicationModule am = pageContext.getRootApplicationModule();
    OAViewObject listVO=(OAViewObject)am.findViewObject("LocationsLOVVO");
    OAWebBeanFactory list1 = pageContext.getWebBeanFactory();
    OADefaultListBean list = (OADefaultListBean)list1.createWebBean(pageContext, OAWebBeanConstants.DEFAULT_LIST_BEAN, null, "LocationsList");
    list.setListViewObjectDefinitionName("oracle.apps.irc.lov.server.LocationsLOVVO");
    list.setListValueAttribute("LocationCode");
    list.setListDisplayAttribute("LocationCode");
    list.setSize(6);
    list.setMultiple(true);
    list.setName("Location");
    OAMessageLayoutBean listboxbean = (OAMessageLayoutBean)webBean.findChildRecursive("AplmessageLayout");
    listboxbean.addIndexedChild(list);
    But it is not inserting all the location values in the list.
    Regards,
    Gaurav.

  • Add R3TR element to the Transport Request

    Hello BW Experts,
    I am transporting a query and get the below error message.
    Element 40WVM5KB0OENRCAWG7PN2GHM3 is missing in version M
    Message no. R9132
    Diagnosis
    Element &1 in version &2 is referenced but is not available.
    System response
    The action had to be terminated.
    Procedure
    Please supply the missing elements to the system by transport.
    if i go to rsa1 > transport connection > query elements > query > select the query (options dataflow before / only necessary objects )
    i do not see the element 40WVM5KB0OENRCAWG7PN2GHM3 in that list given.
    I think there is a alternate way of adding particular elements to the request. Wondering if anyone remembers the transaction code / table for add a element to the request.
    Thanks,
    BWer

    dear BWer,
    use following program (create first) to locate the query element
    transport
    REPORT ZQUERY_DEF_TEST .
    Tables: rszeltdir, "query element table
    rszelttxt, "query element texts
    rszcompdir, "global query elements
    e071. "objects in transport requests
    *parameters
    parameters: Req_id like e071-trkorr.
    selection screen to input long ID 25 char generated name
    select-options: long_ID for rszeltdir-eltuid.
    *itab to hold related info
    data: begin of i_query_desc occurs 0,
    local, "Local to Query
    eltuid like rszeltdir-eltuid, "25 char generated ID
    compid like rszcompdir-compid, "technical name
    deftp like rszeltdir-deftp, "element type
    el_txt(16), "element type text
    txtsh like rszelttxt-txtsh, "short text
    txtlg like rszelttxt-txtlg, "long text
    owner like rszcompdir-owner, "owner
    end of i_query_desc.
    data: xlocal.
    sy-tvar0 = Req_id.
    *find all query objects for transport request entered
    select * from e071 where trkorr = req_id and
    object = 'ELEM'.
    add them to the select-options list
    long_ID-low = e071-obj_name.
    append long_ID.
    clear long_ID.
    endselect.
    *loop through select option table and find details of Query element
    Loop at long_ID.
    clear: i_query_desc,
    rszeltdir,
    rszelttxt,
    rszcompdir,
    xlocal.
    select single * from rszeltdir where eltuid = long_ID-low and
    objvers = 'A'.
    if sy-subrc <> 0.
    write: / long_ID-low, ' Query element not found.'.
    write: / .
    else.
    select single * from rszelttxt where eltuid = long_ID-low and
    objvers = 'A'.
    if sy-subrc <> 0.
    write: / long_ID-low, ' not found in table RSZELTTXT.'.
    endif.
    select single * from rszcompdir where compuid = long_ID-low and
    objvers = 'A'.
    if sy-subrc <> 0.
    write: / long_ID-low, ' not found in table RSZCOMPDIR.'.
    xlocal = 'X'.
    endif.
    fill itab for list
    i_query_desc-local = xlocal.
    i_query_desc-eltuid = rszeltdir-eltuid. "25 char generated ID
    i_query_desc-compid = rszcompdir-compid. "technical name
    i_query_desc-deftp = rszeltdir-deftp. "element type
    case i_query_desc-deftp.
    when 'SEL'.
    if xlocal = 'X'.
    i_query_desc-el_txt = 'Selection'.
    else.
    i_query_desc-el_txt = 'Restricted K/Fig'.
    endif.
    when 'REP'.
    i_query_desc-el_txt = 'Query'.
    when 'VAR'.
    i_query_desc-el_txt = 'Variable'.
    when 'STR'.
    i_query_desc-el_txt = 'Structure'.
    when 'CKF'.
    i_query_desc-el_txt = 'Calculated K/Fig'.
    when 'FML'.
    i_query_desc-el_txt = 'Formula'.
    endcase.
    i_query_desc-txtsh = rszelttxt-txtsh. "short text
    i_query_desc-txtlg = rszelttxt-txtlg. "long text
    i_query_desc-owner = rszcompdir-owner. "owner
    append i_query_desc.
    clear i_query_desc.
    endloop. "@ long_ID
    list results
    sort i_query_desc by local deftp owner.
    loop at i_query_desc.
    write: / sy-vline,
    i_query_desc-eltuid, sy-vline, "25 char generated ID
    i_query_desc-compid , sy-vline, "technical name
    i_query_desc-deftp , sy-vline, "element type
    i_query_desc-el_txt, sy-vline, "element text
    *write: / i_query_desc-txtsh , "short text
    i_query_desc-txtlg(40) , sy-vline, "long text
    i_query_desc-owner , sy-vline.
    write: sy-uline .
    endloop. "@ i_query_desc
    hope this helps.

  • How do I add a link to the list of links under the "My Account Link"

    Q) How do I add a link to the list of links under the "My Account Link"?
    A) Edit any of your portlet web services and go to the "Advanced URL Settings" and then "User Configuration URL". If you type a path in this box, a link displays on the My Account page.
    You need to restart your portal web server to see results immediately because the display page is cached.

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • How do i add an macbook to the list of devices in find my mac

    My main icloud account is inked to my imac. I can't seem to find how to add my macbook to the list of devices in find my iphone.  Can anyone help?
    Thanks.
    Jaimer73

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • I cannot add a site to the list of allow micro sites on Flash Player settings manager

    I cannot add a site to the list of allow micro sites on Flash Player settings manager.
    as Adobe says at his help document (http://help.adobe.com/en_US/FlashPlayer/LSM/WS6aa5ec234ff3f285139dc56112e3786b68c-7ff8.htm l):
    Displays a list of previously visited websites that have asked to use the camera or microphone on your computer. You can allow or block the use of your camera and microphone by sites on the list. You can also ask to be prompted for permission to use them. Finally, you can choose to remove sites from the list. Removing a site deletes all settings and data stored for that site in Flash Player.
    The list initially contains only the sites you have already visited. If you want to specify camera and microphone settings for sites you have not yet visited, you can choose to add sites to the list. Once a site is on the list, you can specify whether to always allow camera and microphone use, ask permission, or never allow camera and microphone use by that site.
    I cannot find any button to add a website. Can you help me please.
    Thanks in advanced
    Pedro

    There's a "live" panel here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.htm l

  • I downloaded the new 6.0 and now my shopping list app closes when i try to add an item to the list

    I downloaded the new update 6.0 to my Iphone4 and one of my favorite apps the ShoppingList wont let me add an item to the list. It closes completely when I select to add button. I have tried turning phone off and on and this hasn't helped any. Got any suggestions?

    Purchases are tied to the Apple ID they were purchased with. If you use a new ID, you have to buy again.

  • How to change the skin at run time

    I am using jDeveloper 11.1.1.3 for ADF.
    My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
    Zee

    As per usecase, looks like you have the LOV containing the different skins.
    You can ensure that the application is skinned according to the selected value in the LOV.
    Ensure that you have a session scope variable that is set, whenever you change the LOV.
    For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
    Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
    In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
    Thanks,
    Navaneeth

  • Display the Columns in the grid at run time

    Hi,
    My Query is returning fix number of columns in the output.I dont want to Explicitly set the columns i want to see in the display template(display columns field) rather i want to show the number of columns in the grid at run time selected by the user.
    Any Suggestion.
    Thankyou in Advance.
    Nikhil

    Here's is what i came up with:
    YOu can run one query to get the list of all columns from a table using the following SQL code:
    SELECT COLUMN_NAME
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'Customers'
    Once you do that you can run the query for your table with the selected columns with the following applet property code:
    function MyFunc(){
                   document.MyApplet.getGridObject().setDisplayColumns('CompanyName,City');
                   document.MyApplet.updateGrid(true);
    User the following to extract all selected rows:
    selRows = parseInt(myGrid.getSelectedRowCount());
    You then itterate through the iGrid to extract the value:
    for (var i=1; i<=selRows; i++) {
         selRowNum = myGrid.getSelectedRowAt(i);
         selDate = myGrid.getCellValue(selRowNum,1);

  • How to send a text message to a group of people and save the list for next time?

    how to send a text message to a group of people and save the list for next time from an iphone 4s?

    Hey there ipremacha,
    It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
    Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Create the pages at run time in smartforms

    How to create the pages at run time in smartforms????

    Hi..
    You cannot create pages at run time, however you can decide based upon conditions and using commands in Smartforms, which page needs to be displayed next.
    Those pages should be created beforehand.
    Regards,
    Karthik

  • When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    Close the pictures before you quit Preview. Cmd-opt-q will close all windows and quit. cmd-opt-w will close all windows and not quit.
    Or, Disable automatically opening files that were left open in General System Preferences

  • Which column gives the complete db run time in RSDDSTAT ?

    Hello community,
    On table RSDDSTAT, which column gives me the complete db run time? 
    Is it QDBSEL + QDBTRANS? Or is it QTIMEOLAPINIT + QTIMEOLAP + QTIMEBD + QTIMEVARDP + QTIMECLIENT? Or perhaps something else?
    Thanks very much !

    hi keith,
    check this field  <b>QRUNTIMECATEGORY</b>
    hope it helps
    bhaskar.

  • Error in SharePoint hosted app: Add permission level to the list programmatically

    I am trying to add permission to the list which I have created in my app. I am trying to give current user some permission to add update delete items from my list. I have used one article from MSDN(http://msdn.microsoft.com/en-us/library/office/jj247079.aspx)
    site. And my code is as bellow:
    function execOperation() {
    debugger;
    context = new SP.ClientContext(appweburl);
    var factory =
    new SP.ProxyWebRequestExecutorFactory(
    appweburl
    context.set_webRequestExecutorFactory(factory);
    appContextSite = new SP.AppContextSite(context, appweburl);
    var appContextSite2 = new SP.AppContextSite(context, hostweburl);
    var siteColl = appContextSite2.get_site();
    hostweb = appContextSite2.get_web();
    context.load(hostweb);
    web = appContextSite.get_web();
    context.load(web);
    user = web.get_currentUser();
    context.load(user);
    que_list = web.get_lists().getByTitle("MyList1");
    context.load(que_list);
    que_list.breakRoleInheritance(true, true);
    var permissions = new SP.BasePermissions();
    permissions.set(SP.PermissionKind.viewListItems);
    permissions.set(SP.PermissionKind.addListItems);
    permissions.set(SP.PermissionKind.editListItems);
    permissions.set(SP.PermissionKind.deleteListItems);
    // Create a new role definition.
    var roleDefinitionCreationInfo = new SP.RoleDefinitionCreationInformation();
    roleDefinitionCreationInfo.set_name('Manage List Items');
    roleDefinitionCreationInfo.set_description('Allows a user to manage list items');
    roleDefinitionCreationInfo.set_basePermissions(permissions);
    var roleDefinition = web.get_roleDefinitions().add(roleDefinitionCreationInfo);
    web.breakRoleInheritance(true, false);
    // Create a new RoleDefinitionBindingCollection.
    var newBindings = SP.RoleDefinitionBindingCollection.newObject(context);
    // Add the role to the collection.
    newBindings.add(roleDefinition);
    // Get the RoleAssignmentCollection for the target list.
    var assignments = que_list.get_roleAssignments();
    que_list.breakRoleInheritance(true, true);
    // Add the user to the target list and assign the use to the new RoleDefinitionBindingCollection.
    var roleAssignment = assignments.add(web.get_currentUser(), newBindings);
    context.executeQueryAsync(onSuccess, onFail);
    I have just copied the code from that article. But when I run my app it give me error :
    You cannot customize permission levels in a web site with inherited permission levels
    Any suggestions, What am I doing wrong?
    Thank you in advance...!

    Problem solved. 
    It turns out there should be NO leading '/' in the relative URL despite the example shown in http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#Folders with "/Shared Folder".
    The correct GetFolderByServerRelativeUrl-parameter in my case is 'Lists/Productdocuments'.
    Unsure whether example is wrong or if it applies to other cases than mine.

  • Ho to remove duplicate element in the List ?

    It seem to be very basic, but it not working, even I try different way.
    This my List [10, 10, 11, 11, 12, 12, 13, 13, 14, 14],
    now to remove duplicate elements to have at the end [10, 11, 12, 13, 14]
    my code seem to be perfect but...
    for(int i = 0; i < listA.size(); i++){
         if(i%2 == 0){
              System.out.println("ce i est un nombre pair "+i);
              listA.remove(i);
    System.out.println(listA);

    senore100 wrote:
    The problem is that every single time an element is removed, the whole ArrayList is re-shuffled, with all the elements to the right moved to the left on spot. That's why.Yes, that's right. However if you had used an Iterator over the list, you could easily have removed every other element. It's only when you use an array index that you run into this (very common) problem.

Maybe you are looking for

  • LOtus Traveler on Nokia Lumia 800

    I'm using Lotus Traveler on my Nokia E75, but can't find anything on support for Lotus Traveler on the Nokia Lumia 800. When can this be expected?

  • Cd/dvd failure?

    ugh. just got this last year, but i think the cd/dvd drive died. if i put an audio cd in, it makes a lot of noise (like it's trying to read it), then i open some media software (i.e. WMP) and it alleges that i don't even have an F drive. then if i go

  • Oracle Licencing in Solaris Zones

    Scenario If we setup a server with 6 processors and we setup 1 resource pool with 4 processors called oracle_pool. We then create 2 Oracle Containers both using the same resource pool, ie "oracle_pool", will I require 4, 6 or 8 Oracle Processor Licen

  • Need help regarding text field

    Hi , I have a text field in my form which will contains a numeric value.Based on this value i have to show those many text fields to enter the name. I have tried this code by keeping the texfield in a sub form and try to display subform  using instan

  • When i execute this code i get an error " SQLException: Driver not capable"

    Hi, I have a piece of code that should update DB2 Database The code is as follows : try { con = DriverManager.getConnection(url,"administrator", "PCTEAM2000"); stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,      ResultSet.CONCUR_UPDATABL