Is it possible to add elements to the lov dynamically?

Hi,
I'm using forms6i.
I've one record group which fetches data from the table, and based on that recordgroup i have one lov.
But based on the values entered by the user at runtime,(which wont be there in table till it is saved),
I want to add those items to the already exisitng lov. Is it possible?
Say i have one column pack_serial, for which i've attached thie above said lov.
And in the table pack_serial have values 1,2
In runtime, user entered one more value say 3 to the pack_serial, which is not saved to the table yet
and the for the next record, user wants to view the elements in the lov. 1,2 is already there since it is saved in the table.
In addition to that i want to show 3 also(just entered value) in the lov.
So i may have to add this value,3, to the list dynamically, may be in when-validate-record trigger or something.
Is the above said possible? if yes please help me do it
Thanks

Hi Francois,
As i explained above, the item should be added to lov for the next record irrespective of whether it is saved to the table or not.
Like the form looks like this
PACKSERIAL SERIAL  PACK TYPE  WEIGHT VOLUME.....
1                1          Type1          4           5
1                2           ......
2                1           ....
3                1           ...Now suppose the first three records are already there in the database, (with packserial 1 and 2)
and when user try to view the lov from the 4th record, the lov will contain 1 and 2 , as per the recordgroup query which fetches from the table
But instead he is entering new packserial 3, so serial becomes 1, and then he fills all the other details.
Now agian user wants to add another record in same packserial 3 with serial 2.
So this time we should show the lov with values 1,2 (which is already available ) + 3.
So everytime user tries key-listval may be i need to retrieve all the additionally entered pack serials in the form and add to the lov, before showing the lov.
Hope it is clear, Please suggest the best way, i'm not v much aware of the multi user environment
I referred the below thread,
Dynamically generting LOV's in Forms 6i based on the values entered
Though the value is getting added to the lov(from the groupcount i understood), it is not displayed!
Please go through my code in W-V-I (when user enters new pack serial)
Declare
     rg_name  VARCHAR2(20) := 'RG_PACK_GROUP_SERIAL';
     rg_id    RecordGroup;
     res boolean;
     num number;
     i number := 2;
     errcode number;
     no_of_rows number;
Begin
rg_id := Find_Group( rg_name );
     IF NOT Id_Null(rg_id) THEN
          errcode := Populate_Group(rg_id);
          no_of_rows := Get_Group_Row_Count(rg_name);
          Add_Group_Row( rg_id, no_of_rows+1 );
          Set_Group_Number_Cell( 'RG_PACK_GROUP_SERIAL.SPM_PACK_GROUP_SERIAL',no_of_rows+1,:SPM_PACK_GROUP_SERIAL);
          no_of_rows:=Get_Group_Row_Count(rg_name);
     message('value added '||no_of_rows||','||Get_Group_Number_Cell('RG_PACK_GROUP_SERIAL.SPM_PACK_GROUP_SERIAL', no_of_rows));
     message(' ');
     END IF;
     errcode := Populate_Group(rg_id);
     End if;
End;Note : I already have the record group,'RG_PACK_GROUP_SERIAL', with select query in it.
Thanks

Similar Messages

  • Is it possible to add reflection to the KVM?

    I was wondering if it was at all possible to add reflection to the kvm, or is it completely prohibited by design?
    Has anybody attempted/been successful in adding reflection?
    Thanks,
    JB

    The MID profiles don't include reflection, nor does it provide access to the class files for you to manually decompile.
    So, I don't think such a thing would be easily done, if at all possable.

  • Is it possible to add pushbuttons to the SAP Easy Access Front Screen ?

    Dear gurus.
    Is it possible to add pushbuttons to the SAP Easy Access Front Screen when a person logs in?
    if so how can we achieve it ?
    Regards
    Saad Nisar.

    SAP Standard Menu
    SAP Standard Menu helps you in including your own menu within the Sap menu bar .It helps us in making own function related to the program, sub routines or any transaction. The main advantage of this standard menu is that u can even modify this menu according to your client or project needs.
    The main advantage of the SAP Menu bar is that it can find specific transaction without knowing the transaction code.           SAP Menu is determined by the task you are doing in the SAP R/3 system.
    Menu are like Drop down list ,as when you click on any particular menu item, further options will be displayed.
    You can have as many as standard menu bar in the SAP Standard menu.
    The SAP Menu Bar contains the menus for the functional and administrative areas of the system.
    Features of the Sap Menu Bar are as Follows
    Menu     Description
    System     It contains all the function that affect the system as a whole such as Create session, User profile and Log off
    Help     This menu provide various types of online help that are available in R/3 system
    Following are the Steps how to modify the SAP Standard Menu Bar
    Transaction code SE41 is used for displaying the Menu Painter Menu. 
    Now in the Program field ,Type the MENUSYST  as the Program Name.
    Now in the Status field choose the option MEN by using the F4 help .
    After choosing the MEN option for the Status field, click on the Change then the Following Screen will be displayed
    Click OK and move Forward , it is just Alerting that Menusyst is a user interface .
    After that the Following screen will appear with Modify Status Men in Program MENUSYST
    Double click on the Menu bar shown in the Left side of the Screen .Such as the Menu bar will open .
    Double click on the System such that list of menu will be displayed .
    Now you can See there  are two columns  present in the system menu ,One is Code column and other is Text column. Right Click on your desired location of these two column such that it will show the option.
    From the option menu choose the option Insert Entry . By choosing this option a new row is inserted in the System menu . when the New row is inserted then type Menu  in the code field and My Option in the Text Field as follows. Both the code field and the Text Field name depends on your requirments.
    Now Double click on the Menu of the Code field such that Function attributes window will open.
    In the fuction type choose the function type as T (Call a transaction).and then Click Ok.
    After Selecting the Function type . Click on the Ok button of the fucntion Attruibute Screen .
    After that activate the Function by selecting the Menu in the code field and click on the Fucntion Code button Present on the top of the Sap Screen .
    Now Save (Ctrl +S ) interface of the program MENUSYST  .
    Now Activate (Ctrl + F3) interface MENUSYST as follows .
    Now Come to the Initial screen of the Menu Painter i.e . SE 41 ,so as to test the modified SAP Statndard Menu ( by Pressing F3 )  and Type the Program As MENUSYST and status as MEN and then Click Test Button .
    After clicking the Test Button the Status Simulation Screen will appear , just click Excute button on that popup screen.
    Now the Menu Painter Intial Screen will appear such that you can test your function code there. Now Click on the System menu in the Menu Bar
    After clicking to the System Menu , the list of the option will open and our Customized /Modified SAP Menu will appear into it as follows .
    Now you can See that the My Option Menu appears on the Standard System Menu. There are various Advantages of the modification of the Standard Menu which are discussed as follows .
         Code Flexibility, As We can choose our own predefined Standard Menu fucntion in the Program as required by the client.
         Independency . Sap program is independent of various other supporting program that are supporting to the defined function.
         Ease of Code . More Uniformity is established between the Standard Menu function.We can include our own predefined fucntion module within this standard function module
    Deactivating of the SAP Standard Menu
    You can just move to the MENUSYST Prgram through SE41 Transaction Code . then Select the MENU option which you had customized and then click the Function Code again in the SAP screen.
    Then Message will be Displayed that Function MENU is Deactivated as follows .
    Now Save and Activate the interface MENUSYST. Test the Program using the Initial Screen SE41
    And check the System menu in the Menu bar ,then the My Option Menu is deactivated .

  • Is it possible to add button in the main tool panel of AI cs6 using javascript?

    Hello freinds,
    Is it possible to add  button in the main tool panel of AI cs6 using javascript?
    or is there any other way of adding the ui component to the tool panel..
    is it feasible??

    you can't add buttons to the tool panel using javascript, your only option is to create a plugin, you'll need C++ for that.
    yes, you'll need the SDK...if you need help with that, there's a dedicated forum for it
    http://forums.adobe.com/community/illustrator/illustrator_sdk?view=discussions

  • Add element in dropdown list dynamically

    Hi All,
    I am facing a problem in adding item in a dropdown list dynamically.
    When i get dropdown list through IgetElementById get null.
    var list = document.getElementById("targetgroupname");
    here list comes as null. Now I've to fill this list. I am using below code -
    for(var j=0;j< com.length;j++){
    iist.options[j]= new Option(com[j],com[j]);
    But it is not working. My list is not getting filled with these values.
    I doubt due to var list -> null it does not allow to add element.
    But I am not getting any clue, how to initialize it.
    Please suggest, I am new to javascript.
    Thanks & Regards,
    Sneha.

    Hi,
    Thanks for the reply, yes the select box has that id - targetgroupname.
    actually there are 2 dropdown lists, Based on the selection of first dropdown list another list shd be filled.
    So I've written a script at "onchange" of first dropdown list. It works fine when a value gets changed at first dropdown list.
    In some cases I've to display a preselected value at first list ( which comes from previous page as parameter), in that cases there will be no onchange on first list, so I've called the script function manually after creating the first list,like below :
    <SCRIPT> checkSource();</SCRIPT>
    and in this case it does not work & I get a null when i try to read the 2nd list.
    But I am not sure why it is happening.. may be it is not loaded /created on page when i am calling it.
    If yes, what shd I do ?
    Thanks for your time.
    Regards,
    Sneha

  • How to add elements to html form dynamically

    Hi,
    the following piece of code tries to add input elements to a form dynamically on button's click event.
    But it doesnot work. Can anyone spot the trouble
    <html>
    <body>
    <input type=file name="fileName" value="browse">
    <input type=button value="Add more file" onclick="add();">
    <input type=hidden name="theValue" value='0'>
    <script type="text/javascript">
    function add()
    var num=parseInt(theValue.value)+1;
    theValue.value=num;
    var name="fileName"+num;
    var element=document.createElement(input);
    element.setAttribute('type','file');
    element.setAttribute('name',name);
    element.setAttribute('value','browse');
    document.appendChild(element);
    </script>
    </body>
    </html>

    Hi,
    Since no one is giving you the hint: I'm afraid you're in the wrong forum. This is not a Javascript forum. I know it sounds confusing but despite the name, Javascript and Java have nothing really in common. Javascript runs on the client side. Java web technologies don't. Although, what you are asking for can be done with JSP's, I'm afraid, I can't help you with Javascripting :(....
    Cheers,
    Joerg

  • How to add new rows to LOV dynamically?

    We have requirement as follows:
    in a multirow region, each row has fields like from_serial and to_serial.
    A serial can have state (defined but not used/In stores) and status (Good/Bad).
    Each field is associated with LOV that lists 'Defined but not used' serials that are in "Good" status.
    User can either select a value from LOV or he can generate the serial on the fly (dynamic text should be allowed).
    Requirement is if user keys in a 'Defined but not used' serial with status as bad, then an error message should be thrown indicating that the serial is invalid. We already have a pl/sql API which does this validation along with several validations that can not be put into single LOV.
    I am not able to achieve this requirement as
    1. if I set DisableValidation property of field to True, then it allows free entry/dynamic entry
    but doesn't call validation API thru PPR...
    2. If I set DisableValidation property of field to false, then it allows to call pl/sql through PPR
    but doesn't allow free text entry.
    Currently, the LOV is not associated with any controller.
    Can someone help me to achieve the requirement?
    I guess if we set DisableValidation property of field to false and then somehow populate the keyed-in value in LOV itself then both requirements, Free text entry and calling validation API, can be soled.
    Question is "is there any way to populate additional row into LOV"?

    Hi,
    You can not add rows to LOV, I also faced similar problem around 2 yrs back where we need to add a new supplier to LOV, there I added one more entry using union in LOV VO with supplier name "New Supplier-Not Defined", when user want to add anew supplier the he will select this value from LOV and in LOV event I will check if value selected is "New Supplier-Not Defined" then I will render one more text box and there user can enter a supplier name which does not exist in the system.
    There could be some other solutions(work arounds) fro this, please clarify your requirements so that we can look for some other options as well.
    If you set the validation property to false then user may save wrong data into system, I think this is not a good option.
    Hope this will give you some clue.
    Regards,
    Reetesh Sharma
    Edited by: Reetesh Sharma on Aug 11, 2010 10:16 PM

  • Is it possible to add characters to the Character Palette?

    Just wondering if this is possible and if so, how? Thanks, Paul

    I just thought
    one could add one's own sybols.
    The Character Palette is just a reflection of your fonts, so what you need is a font with the symbol you want. If you put the Palette into glyph mode, you can check out what is in Dingbats, Webdings, Wingdings, etc. But I don't think there is a paw. So you would need to make a font with a paw in it. Here are a couple links for font making:
    FontLab
    FontForge
    I sent several of them to my yahoo
    mail and they did not come through
    You probably need to set the encoding on your browser or mail program to UTF-8.

  • Is it possible to add content to the dropdown navigation on the ipad viewer?

    Not sure if this is possible, if it is where can I find more information?
    Thanks.

    If you mean the table of contents drop down menu then you can edit the text that goes into that either in Folio Producer or in the sidecar.xml (if you use the sidecar).

  • Is it possible to add music from the music downloader app to the original music app?

    I have a bunch of music downloaded on the music downloader app, and i want to play it on the airmusic app, but the airmusic app only shows music from the original music app, and not the music downloader. Is there any way to move my music from the music downloader app to the original music app so it can be played? Sorry if this is confusing to read

    I understand what you are trying to do. It's a somewhat complicated process, but here's how it goes:
    -Connect your iPod to iTunes and select it in the sidebar. Select "Apps" along the top and scroll down to File Sharing.
    -Click on your music downloading app in the apps column. All the music you've downloaded using your music downloading app is downloaded as documents under the app. Select the music files you want, and use the "Save to..." button to save the files to somewhere on your computer (just temporarily), say, Downloads.
    -Open Downloads and drag all the newly saved music files into iTunes.
    -When the music files finish copying into iTunes, sync your iPod and you should be ready to go.
    Let me know if you have any questions.

  • "cannot bind or add elements because the node has no valid parent"

    Hello All,
      I keep getting the above error message. Can someone help ?
    <u><b>Context Structure</b></u>
    - A (Model Node)
    - B (Sub Model Node of A)
       ++ Country (Model Attribute B)
       ++ Language(Model Attribute B)
    <u><b>Coding</b></u>
    IPrivateMainView.IAElement userInfo = wdContext.createAElement(new A());
    wdContext.nodeB().addElement(userInfo);
    The error stack always report that the above syntax causes the error message.
    Can someone kindly let me know where I may have gone wrong ? Thank you.
    from
    Kwok Wei

    Hi,
    The model node is a reference to the model object so you need to bind the node to a similar structure or table from the model object.
    eg.
    abc(model node)
    |__def(model subnode)
       |___attr_a
       |___attr_b
    Then you need to first bind abc node
    abc ele=new abc();
    wdContext.nodeAbc().bind(ele);
    Then bind the def to the corresponding def node
    def subele=new def();
    ele.setDef(subele); or ele.addDef(subele);
    Regards
    Noufal
    Message was edited by: Noufal Kareem
    Message was edited by: Noufal Kareem

  • Dynamically remove and add element into the JCOmboBox

    Hi all ,
    I have one JComboBox .
    and I have 3 sets of values in vector form -- Vector<String> v1 , Vector<String> v2 , Vector<String> v3 .
    Depending on certain condtion I have set the values in the JComboBox .
    Can any body tell how can I achieve this
    Thanks and regards
    Anshuman Srivastava

    Replace the model.
    [http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html]

  • Is it possible to Add to Multi-Select Lov through Customization?

    Hi All,
    I have a Oracle Seeded page( Oracle Training Administrator).
    Clients wants a new field with Multi-Select LOV on that.
    Is is possible to create Multi-Select LOV through Customization or changing the page in JDeveloper?
    As per OAF Developer guide, Multi-Select Lov on single field in not possible and their is topic on 'Multi-Select on Advance Table'.
    Please guide me, is it possible? If Yes, steps to achieve this will be great help for me.

    That is correct you can only add a normal LOv through personalization and not a multi select LOV.

  • Add filter to the DropbykeyTableColumn UI element

    Hi,
    Is it possible to add filter to the DropbykeyTableColumn UI element.if it is,then please tell me how to add filter to the table structure.
    Regards,
    RAMA

    hi
    Each table column enables you to bind its filterValue property to a context attribute that defines the value to be filtered.
    refer this SAP online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/content.htm
    regards,
    amit

  • Is it possible to add the date to a photo in an iPhoto calendar?

    After a picture is dragged to a day on my calendar the date disappears, is it possible to add or restore the date? I am using the latest update of iPhoto.

    The photo in the calendar replaces the date. You can ctrl-click the photo and add a caption to show the day number.
    Clicking the disclosure triangle to the right of the caption will show a panel where you can edit the font (all this tested in iPhoto 9.5.1), but it does look funny, you'd be better off by not adding the day number:

Maybe you are looking for

  • How to display the current date in Flex app

    I need to display the current date in my Flex application.  Is there a simple way to do this and display it as a label or text field?  Also, can this be formatted to display the date as "Day of Week, Month Day, Year"? Thanks!

  • Viewing a pdf file in Flex 4?

    I've been searching on the Inernet to find out whether or not it is possible to view a PDF file (which will be stored in the server itself) on the client side... In the flex AIR they've a built in support to view a pdf file..but I'm not able to find

  • Having trouble with yahoo and the messenger

    with yahoo i can't open up my mail . and with the messenger it doesn't show my contacts at all . And it won't let me download the newer messenger

  • SAP MMC Console (ABAP Trial) -- what's its purpose

    Hi all I've successfully installed SP12 Abap trial on a Win XP Virtual machine. It starts sucessfully using the  standard Windows Menu ==NSP==> Start Application Server. If I use the MMC it takes much longer and there is a lot more disk activity (I'm

  • Place a text where I want and export in 1920x1080?

    I use iMovie from 2009 (may) when i bought my mac - in the newest version can I place a text wherever i want, and export in full hd?