Populating Menu Dynamically

Hi Friends I am Working with JSP
Some problems in working with that I wanna populate my drop down menu with values from access db ie let supplier be one column i wanna get all values of that column into my menu
Can we do that
pls help with code

<ur dropdown come here>
<%
Vector Test = new Vector();
Test = call function contains databasevalues();
for(int i=0;i<Test.size();i++)
%>
<option><%=Test.get(i)%></option>
<%}%>
%>

Similar Messages

  • Populating Menu Dynamically    (full coding)

    Hi Friends I am Working with JSP
    Some problems in working with that I wanna populate my drop down menu with values from access db ie let supplier be one column i wanna get all values of that column into my menu
    Can we do that
    pls help with code

    hi
    thanks for showing interest
    I am not an expert what do u mean by db operation code
    ou pls give me a full exple code
    thanks

  • Menu dynamique sous Indesign.

    Bonjour,
    Je suis actuellement en création d'une maquette de magazine qui sera en format final PDF.
    Je souhaiterais savoir s'il est possible de créer un menu dynamique. En gros j'ai mes boutons qui me permettent de naviguer de chapitre en chapitre et je voudrais qu'en survolant ces derniers un menu se deroule et laisse apparaitre les differents titres sur lesquelles ont pourrait cliquer pour y acceder.
    Malgré mes différentes recherches je ne trouve pas la solution.
    Est ce que quelqu'un aurait la réponse à mon énigme?
    PS: j'utilise indesign CS5

    Bonjour.
    Je réponds sans doute un peu tard, mais la création de menus dynamiques est possible, même si plutôt complexe. Il vous faudra en effet créer des boutons, qui réagiront au survol et dont l'action consistera à afficher d'autres boutons. Pour l'instant, j'arrive à le faire fonctionner sur un swf, le résultat sur pdf est plus mitigé.
    Et le lien des divers essais : https://www.dropbox.com/sh/eyj1mwvqojr46d7/16uCFjjqQQ

  • XmlForms Menu Dynamic

    Hello.
    I'm new developer to sapportal. And now i should develop a xml forms, but i have a problem.
    I need to implement a combo box (Menu dynamic) for the choice of a field on the language in which is writed the form.
    Can someone help me?
    thanks in advance!

    ds_RowCount only displays the total rows if filters have not been applied to the data.  Seeing as how this RowCount is inside a loop, it could just be returning 1 which is the amount of records displayed in that loop.  In this case, I would recommend trying ds_UnfilteredRowCount.
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/data_references.html

  • Populating two dynamic internal tables and displaying the O/p as ALV

    I want to develop a abap prototype program report for the SD document flow analysis...
    There is a Fm : RV_ORDER_FLOW_INFORMATION in which if we pass the Sales order number it returns the flows as VBFA_TAB.
    I need to populate two dynamic ITAB1 and ITAB2
    the structure of ITAB1 should be like ColNm1....ColNmn
    The values for ColNm1 will be Sales Order ColNm2 as Delivery or smthng else depending on  field vbtyp_n.
    ITAB 2 should have the corresponding values accly to ITAB1.
    Then we need to display in ALV o/p.
    The tables should be populated dynamically.
    Can anybody throw some light on it and plz do write back with sample code to do the logic of it.

    Search in SDN with Dynamic internal tables.
    you get lot of code samples and Discussions related to Dynamic internal tables.
    you can also check with this class CL_ALV_TABLE_CREATE

  • Populating a dynamic array with objects and managing it in runtime.

    So I'm another stuck firstyear. I'll try and make my question compact. I'm using Flash CS6 and have drawn an animated character on the stage that consists of separate parts that are animated and its head is a separate class/symbol entirely because it has not only animation, but a state switch timeline as well. This said Head extends the Main that is the character MovieClip.
    I am using a dynamic array to store and .push and .splice objects of another class that would collide with this said Head.
    I also discovered the super() function that is implicitly called as the constructor of the parent in any child class that extends the parent, in this case Head extends Main. The issue is that my collidable object array is populated within the main, within the function that spawns every next collidable object with a TimerEvent. This said function then gets called twice due to the super() call.
    I have tried putting this super() call into an impossible statement in my child class, but it doesn't change a thing, and it was said that this method is unsafe so I don't even know if it should be working.
    However what confuses me the most is when I trace() the .length of my collidable object array at the end of that function. As I said earlier, the original function both spawns an object after a period of Timer(1000) and adds it to the stage as well as adds the object onto the object array, but the super() constructor only duplicates the length call and a creates a copy of the object on the stage, but it does not add the second copy of the object onto the array. The trace() output goes on like so:
    1
    1
    2
    2
    3
    3
    4
    4
    etc.
    I wonder why and I'm really stumped by this.
    Here is the code in question:
    public class Main extends MovieClip {
                        public var nicesnowflake: fallingsnow;
                        var nicesnowflakespawntimer: Timer = new Timer(1000);
                        public var nicesnowflakearray: Array = new Array();
                        public function Main() {
                                  nicesnowflakespawntimer.addEventListener(TimerEvent.TIMER, nicesnowflakespawn);
                                  nicesnowflakespawntimer.start();
                        public function nicesnowflakespawn(event:TimerEvent) : void {
                                  nicesnowflake = new fallingsnow;
                                  nicesnowflake.x = Math.random()* stage.stageWidth;
                                  nicesnowflake.y = - stage.stageHeight + 100;
                                  nicesnowflakearray.push(nicesnowflake);
                                  stage.addChild(nicesnowflake);
                                  trace(nicesnowflakearray.length);
                                  for (var i:Number = 0; i < nicesnowflakearray.length; i++){
                                            nicesnowflakearray[i].addEventListener(Event.ENTER_FRAME, snowhit);
                        public function snowhit(event:Event) : void {
                                  if (nicesnowflakearray[0].y >= 460){
                                            if (nicesnowflakearray[0].y == stage.stageHeight) {
                                            nicesnowflakearray.splice(nicesnowflakearray.indexOf(nicesnowflake), 1);
                                  //if (this.hitTestObject(nicesnowflake)){
                                            //trace("hit");
    I am also fiddling with the collision, but I believe that it would sort itself out when I deal with the array pop and depop properly. However I'm pasting it anyway in case the issue is subtly hidden somewhere I'm not looking for it. And here is the child class:
    public class Head extends Main {
                        public function Head(){
                                  if (false){
                                            super();
                                  this.stop();
    So like what happens at the moment is that the array gets populated by the first object that spawns, but there is two objects on the stage, then when the objects reach stage.460y mark the array splices() the one object away and displays an error:
    "#1010: A term is undefined and has no properties.
              at Main/snowhit()"
    then when the next object spawns, it repeats the process. Why does it trace the array.length as "1, 1, 2, 2, 3, 3, 4, 4, 5, 5, etc" until the despawn point and then goes on to display an error and then starts from 1 again, because if the array length is more than one object at the time when the first object of the array gets spliced away, shouldn't it go on as usual, since there are other objects in the array?
    Thank you very much to whomever will read this through.

    There are multiple problems:
    1. You should add eventlisteners for your objects only once, but you add eventlisteners every time your timer runs to all of your snowflakes, again and again:
                                  for (var i:Number = 0; i < nicesnowflakearray.length; i++){
                                            nicesnowflakearray[i].addEventListener(Event.ENTER_FRAME, snowhit);
    change it to
    nicesnowflake.addEventListener(Event.ENTER_FRAME, snowhit);
    I don`t see why its even necessary to employ this snowflakearray, it would be much straight forward if you simply let the snowflakes take care of themselves.
    2. Then you have to change your enterframe function accordingly
    public function snowhit(event:Event) : void {
                                  if (e.currentTarget.y >= 460){
                                            if (e.currentTarget.y == stage.stageHeight) {
                                            e.currentTarget.removeEventlistener(Event.ENTER_FRAME, snowhit);
                                            removeChild(e.currentTarget);
    3.
                                  //if (this.hitTestObject(nicesnowflake)){
                                            //trace("hit");
    since "this" is a reference to the Main class (root) it surely won`t function as you intend it to.
                                  if (false){
                                            super();
    makes no sense to use a condition that can never be true

  • Oracle Forms List Items :not populating list Dynamically using select Query

    Hi ,
    I need to create a list item. And the values to be populated in the list are from Database but I'm unable to populate from database.
    Please help me out how to populate the values from database.
    In Property Pallete we have Elements in List under Functional section , In this we have to manually enter the List values but we can't use any Query to Dynamically populate.
    Thanks,
    Kiran Sanga

    When you need to fill a list with the result of a query, you'll have to do it at runtime.
    Andreas has a good blogpost about this.

  • Problem while populating table dynamically

    Hi,
    I am facing a strange problem when I execute a search component (custom developed component).
    <b>Problem summary:</b>
    I am getting first 5 empty rows (default visible row count, when I set the table's visible row count to "n" then the data in the first "n" rows are not visible) from the SAP R/3 when we fetch the data using this component. The data is available for the next consecutive rows starting 6th  {(n+1)th} row. Here I am facing another strange behavior, I moved the table row position using the table paginator and viewing the data in the next consecutive rows and reset the view (invalidating the context and setting the visibility of the table to NONE), when I invoke the search again the data is missing in the 6-10 rows(the table data is paginated to the 6-10 records automatically), now the data is visible in the first 5 rows.
    <b>The details of softwares:</b>
    SAP WebAS 6.40 SP9
    SAP NetWeaver Developer Studio Version: 2.0.9
    JDK version - j2sdk1.4.2_06
    <i>Note:</i>
    1. The table creation and data population are done dynamically.
    2. The same code works fine for SAP WebAS 6.40 SP8
    3. When I tried fetching some data from SAP R/3 and displaying it in a table (table is created during design time and data population is achieved through standard context binding), it works fine.
    If any of you get any clue in solving this issue, please do let me know.
    Thanks in advance.
    Thanks & Regards,
    Santhosh.C

    Hi Thomas,
    I am running the application from the NDS and the URL look like the below URL
    http://<<machine_name>>:50000/webdynpro/dispatcher/sap.com/parentgenericsearchhelpcomponent/PerentSearchDemo?SAPtestId=1
    I am using IE6.0 SP2
    Yes the application is working fine in SP8 and giving problem in SP9.
    I have a parent component which calls another component(childcomponent), which has this dynamically populated table. I am using window.open() to open the window in the child component.
    To answer your last question,
    I don't see full of empty rows, I see empty rows for the first visble row counts(5 or 10, if the total fetched row count might atleast 1 more than the visble row count). The data is available from the first visible row count+1. If I come back and see the first vible row count, still the rows are blank.
    Thanks & Regards,
    Santhosh.C

  • Populating menu items from the database...is it possible?

    hi
    using :forms 10g
    we have a requirement in forms where we need to populate the menu items from the database.first we used hiearchial tree where it was possible.but since the requirement changed i am not sure that whether the menu items can be populated by data from the database...will be glad if someone could throw some light on this issue...
    thanks

    You could always do it but would need to put a fix limit on the number of menu items.
    For example you could create a set of menu items at design time with the visible property set to False.
    While reading the database, you then set them to True while setting the label to whatever you require.
    But it all depends also on what you want your menu items to do when selected.

  • Read only item populated by dynamic LOV

    Since I'm using artificial keys in most of my table FKs, I need to use a lot of LOVs to provide the user with discernible data.
    Many of the columns I use an LOV for I need to be read only items. However, whenever I use a dynamic LOV, I do not see how to make it read only. It sets the value of the item to [].
    I know this can be accomplished in some cases with a join in the underlying query. However, many of the pages where I need to make this change are not based on a query.
    Is there a way to make an item populated by an LOV read only while still retaining the value?
    Thanks for your help!
    -Reid

    I'm using apex 3.2.1. Your testing and replies have helped me realize that the problem is that the column indeed did not have a value. When I had the item "display as" set to "select list" the LOV was also setup for allow NULL=NO. Thus, it was showing some value in the LOV in that item. But, when I switched to the "display as text" and set the always read only, then it gave the double brackets []. When I changed the allow NULL=YES, it worked fine and gave me a blank value.
    Thanks again!
    -Reid

  • Issue in populating the dynamic internal table  in SMARTFORMS

    Hi Experts,
    My requirement is I have a table in the below format.
    Measuring Point
    Description of Measuring Point
    UOM
    Date
    Time
    Reading
    96
    POWER GENERATED
    kwh
    20140501
    101837
    1.00E+04
    96
    POWER GENERATED
    kwh
    20140502
    102220
    1.00E+04
    96
    POWER GENERATED
    kwh
    20140503
    104623
    1.25E+01
    96
    POWER GENERATED
    kwh
    20140504
    101111
    2.00E+03
    98
    AUX POWER CONSUME
    kwh
    20140501
    101837
    1.00E+05
    98
    AUX POWER CONSUME
    kwh
    20140502
    102220
    1.00E+05
    99
    NET POWER EXPORTED
    kwh
    20140501
    101837
    1.00E+07
    99
    NET POWER EXPORTED
    kwh
    20140502
    102220
    1.00E+07
    100
    AVG POWER GENERATED
    MW
    20140501
    101837
    1.00E+02
    100
    AVG POWER GENERATED
    MW
    20140502
    102220
    1.00E+02
    101
    AUX POWER CONSUMED(%)
    20140501
    101837
    1.00E+02
    101
    AUX POWER CONSUMED(%)
    20140502
    102220
    1.01E+01
    102
    PLANT AVAILABLE HRS
    hrs
    20140501
    101837
    1.01E+01
    102
    PLANT AVAILABLE HRS
    hrs
    20140502
    102220
    1.01E+01
    103
    PLANT RUN HOURS
    hrs
    20140501
    101837
    1.01E+01
    103
    PLANT RUN HOURS
    hrs
    20140502
    102220
    1.01E+01
    104
    PLANT AVAILABLITY FACTOR
    20140501
    101837
    1.00E+02
    104
    PLANT AVAILABLITY FACTOR
    20140502
    102220
    1.00E+02
    which i need to display like below based on the user Requirement for print out.
    DATE
    POWER GENERATED(96)
    AUX POWER CONSUME(98)
    NET POWER EXPORTED(99)
    AVG POWER GENERATED(100)
    AUX POWER CONSUMED(%)(101)
    PLANT AVAILABLE HRS(102)
    PLANT RUN HOURS(103)
    PLANT AVAILABLITY FACTOR(104)
    kwh
    kwh
    kwh
    MW
    hrs
    hrs
    01.05.2014
    1.00E+04
    1.00E+05
    1.00E+07
    1.00E+02
    1.00E+02
    1.01E+01
    1.01E+01
    1.00E+02
    02.05.2014
    1.00E+04
    1.00E+05
    1.00E+07
    1.00E+02
    1.01E+01
    1.01E+01
    1.01E+01
    1.00E+02
    03.05.2014
    1.25E+01
    04.05.2014
    2.00E+03
    Now the issue is how to assign the values of stops from the internal table to dynamically  for a specific date in SMARTFORMS?
    Please help me in resolving this issue.

    Hi,
    See if this articale is good for you:
    The case of "dynamic columns in smartform"
    Regards.

  • How to assign the downloaded file path in dropdown menu dynamically?

    I have one jsp page. In that jsp page one dropdown menu is there. Dropdown menu contains "save" and "saved content". I download the file using "save" option in menu. That downloaded file path is assigned to the below of the "saved content" option. Then i clicked that downloaded file path, that file will be open.
    My problem is how to assign the downloaded file path in dropdown menu. plz help me.

    dittu wrote:
    My problem is how to assign the downloaded file path in dropdown menu. plz help me.I don't understand your problem.

  • Populating values dynamically......

    Hi all...
    I have a scenario where i have....States and Selected States..[both are <html:select>].Districts and selectedDistricts[both are <html:select>]
    If at all i select a state say Andhrapradesh....then Selected States should be populate AndhraPradesh as option value...In turn districts should populate districts of
    AndhraPradesh...so that i can select as many districts from districts and the selected districts should be populate in selectedDistricts.
    AND...
    If i select more than one state(say 4 states) , all the states should be populated in Selected States.....If at all i select 1st state in Selected States...corresponding districts should be populated in Districts [ if i select AndhraPradesh in Selected States, Districts should populate all the districts of AndhraPradesh ,if i select Karnataka,..  Districts should populate all the districts of Karnataka].
    and all these states and districts should be generated form DB....
    Any Ideas....help required....

    Use Ajax.
    There's a basic Ajax tutorial at w3schools.com. It is basically simple:
    1) Use Javascript to fire a XML HTTP request.
    2) Let Servlet handle this request and return XML or JSON or plain String response.
    3) Use Javascript to apply the response on the HTML DOM tree.
    There are frameworks which simplifies doing all the stuff, like jQuery. You could use $.ajax or $.getJSON for this.

  • Build screen menu dynamically during program flow

    Hi there.
    I've got such situation that I have to determine menu bar apperance according user priveleges.
    So for example one user will see on the menu bar:
    ITEM1
    |____subitem1
    |____subitem2
    |____subitem3
    Whilst other user would see :
    ITEM1
    |____subitem1
    |____subitem3
    Do You know some way to determine menu structure in ABAP code? Greetings. P.

    hi,
    while setting the menu use
    excl_tab is an internal table should contain the function codes of the buttons which you want to disable for that particular user.
    set pf-status 'MENU' excluding excl_tab.
    see example below.
    DATA fcode TYPE TABLE OF sy-ucomm.
    MODULE status_0100 OUTPUT.
      APPEND 'CHANGE'  TO fcode.
      APPEND 'SAVE' TO fcode.
      SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
    ENDMODULE.
    rgds,
    bharat.

  • Populating Menu Items From the DataBase

    Using 10g
    hi
    is it possible to populate the menu items from the database using procedure?since our project is multilingual we have such a requirement..could someone throw some light on this?

    Hi ,
    Here is what you asked for.....
    PROCEDURE PRC_SET_MENUITEMS_ENABLED
    IS
       USERNAME_VAR PROSOPIKO.DBUSERNAME%TYPE;
          MENU_NAME_VAR MENUS_MODULES.MENU_NAME%TYPE;
          MENU_ID MENUITEM;
    BEGIN
          :SYSTEM.MESSAGE_LEVEL:='25';
       USERNAME_VAR:=FNC_GET_USERNAME;
       FOR z in (SELECT /*+LEADING(D C B A) index (A menu_modules_ind) index (D PROSOPIKO_AM_PRIMARY)*/
         DISTINCT MENU_NAME
            FROM MENUS_MODULES A, TASKS_MODULES B , TASKS_ROLE C ,PROSOPIKO D
            WHERE A.CODE_MODULE=B.CODE_MODULE AND B.CODE_TASK=C.CODE_TASK
             AND  C.CODE_ROLE=D.CODE_ROLE AND D.DBUSERNAME=USERNAME_VAR
             AND CODE_ORG_MONADA=:GLOBAL.CODE_TMHMA_VAR)
            LOOP
                  MENU_ID:=FIND_MENU_ITEM(Z.MENU_NAME);
               SET_MENU_ITEM_PROPERTY(MENU_ID,ENABLED,PROPERTY_TRUE);
               NEXT_RECORD;
            END LOOP;     
    END;     Regards ,
    Simon

Maybe you are looking for

  • Internal Hard Disk spin down - Mac locks up

    Hi. Recently my iMac has started to occasionally lock up. The other evening it was quiet and I heard the hard drive spin down. Following this any action results in the beach ball, and eventually everything locks up, because it cannot read from or wri

  • How to block sales employee without enter in sales order.

    Dear Guru's, I have created sales employee code 1234 and using same in sales order with using partner function due to the some reason now I donu2019t want to book sales for same employee code 1234. Can anyone help me how to block employee code. Regad

  • IMac and 24' LEd Display

    Hi, I'm sure this is really obvious but I have ordered a new iMac + LED display; will I get the cables I need to connect or will that be an additional purchase? The only cables for the Mini DisplayPort seem to be adapters and I can't see the likely c

  • Purchase order no field in purchasing datasrcs

    In which of the purchasing datasrc can I get Purchase order no field

  • I need help in Custom Reporting

    Hi, i need help in auditing, SCOM 2012 R2 is deployed in 2 servers with ACS, i have 2 file server that has some shared folder in which users work on some certain document i need to have a report that i can run on certain file that will show me who ac