Utilizing Custom Tags to create a dynamic drop-down menu

Hi to all,
I am looking to create a dynamic .jsp to display to the user a drop-down list. This list is based upon data in database. The data will be passed as an application bean. This list will vary depending on application criteria.
I would like to use a custom tag to create the drop-down menu. I am attempting to keep the .jsp page strictly .jsp, no Java. (I have been successful in creating & using an iterator tag.)
Can someone point me in the right direction, or give me an example?
thanks!
Susie in Virginia Beach

What exactly is it you don't know how to do? Write a custom tag or write database access code?

Similar Messages

  • --urgent Can I use table data to create a dynamic drop down menu?

    Hi,
    I am asked to investigate the possibility of using APEX to create a table driven dynamic drop down menu? The deadline is tomorrow but I have spent quite a bit of time but still have not any clue. Can any one have such experience to point me a way to focus on?
    Many thanks.
    Jennifer

    Thanks you very much for the help Kevin.
    Currently my company is using htp.p style to create web app and using the dynamic menu in a similar way as you explained. Now they want to move to Apex and still keep dynamic menu functionality. After reading your response and research I have done I think I can embed it into Apex application by creating the similar table and PL/SQL package and let Apex to call the PL/SQL package when the application is first called. However may I ask you a question about how to call such pl/sql procedure in Apex? .
    The current application has the following URL, from which the procedure pkg_main.print_menu is called and html home page with dynamic menu is displayed.
    Http://app server:1234/pls/applicationname/pkg_main.print_menu?p_new_window=N
    BUT what about the Apex? The Apex URL format is like the following, where 11563 and 1 is application id and page number. Assume that 1 is home page, but HOW the procedure is called, from WHERE?
    http://apex.oracle.com/pls/apex/f?p=11563:1:3397731373043366363
    Jennifer

  • Dynamic Drop-Down Menu Solution

    Hi All,
    After spending a lot of time trying to find a good solution for a dynamic drop-down menu, I end up writing my own.
    The solution is for a list of items, having ITEM as the primary key of the table and ITEMDESCRIPTION as the list of options for the user to select.
    The steps are:
    1) JavaBean to return a ResultSet;
    2) A custom tag to build a HTML SELECT;
    3) A .tld file to declare the custom tag;
    4) web.xml where the custom tag mapping resides;
    4) A JSP to illustrate how to call the custom tag;
    Hoping this will save lots of time to others
    Cheers
    Trajano Roberto
    1) Custom tag
    package com.amstras.maintenance.customtags;
    * Title: erp
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: amstras
    * @author Trajano Roberto
    * @version 1.0
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    import java.sql.*;
    import com.amstras.maintenance.javabeans.*;
    public class listitemmaster extends TagSupport {
    private itemmaster itemmaster = new itemmaster();
    private ResultSet rs = null;
    private String parametername = null;
    public int doStartTag() throws JspException {
    try {
    itemmaster.connect();
    rs = itemmaster.listitemmaster();
    pageContext.getOut().print( "<select name = \"" + parametername + "\">" );
    catch ( Exception e ) {
    throw new JspTagException( e.getMessage() );
    finally {
    return EVAL_BODY_INCLUDE;
    public int doAfterBody() throws JspException {
    try {
    if( rs.next() ) {
    pageContext.getOut().print( "<option value = \"" + rs.getString( "ITEM" ) + "\">" + rs.getString( "ITEM" ) + "&nbsp&nbsp&nbsp" + rs.getString( "ITEMDESCRIPTION" ) + "</option>" );
    return EVAL_BODY_AGAIN;
    else {
    pageContext.getOut().print( "</select>");
    itemmaster.disconnect();
    return SKIP_BODY;
    catch ( Exception e ) {
    throw new JspTagException( e.getMessage() );
    public void setParametername( String sPARAMETERNAME ) {
    parametername = sPARAMETERNAME;
    2) JavaBeam where the method to return the ResultSet resides
    public ResultSet listitemmaster() throws SQLException, Exception {
    if( con != null ) {
    try {
    String sSQL = null;
    sSQL = " SELECT ITEM, ITEMDESCRIPTION FROM ITEMMASTER ORDER BY ITEM ";
    ps = con.prepareStatement( sSQL );
    rs = ps.executeQuery();
    catch( SQLException sqle ) {
    error = "SQLException: list item master failed possible record does not exist. ";
    error += sqle.toString();
    throw new SQLException( error );
    catch( Exception e ) {
    error = "An exception occured while listing item master record. ";
    error += e.toString();
    throw new Exception( error );
    finally {
    return rs;
    else {
    error = "Exception: Connection to database was lost.";
    throw new Exception( error );
    3) extract from the .tld file where the custom tag is declared
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>itemmaster</short-name>
    <description>item master</description>
    <tag>
    <name>viewitemmaster</name>
    <tag-class>com.amstras.maintenance.customtags.viewitemmaster</tag-class>
    <attribute>
    <name>item</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <description>item</description>
    </attribute>
    </tag>
    <tag>
    <name>listitemmaster</name>
    <tag-class>com.amstras.maintenance.customtags.listitemmaster</tag-class>
    <attribute>
    <name>parametername</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <description>parameter name</description>
    </attribute>
    </tag>
    </taglib>
    4) web.xml mapping for the custom tag
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>debugjsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>jspCompilerPlugin</param-name>
    <param-value>com.borland.jbuilder.webserverglue.tomcat.jsp.JasperSunJavaCompiler</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>debugjsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <taglib>
    <taglib-uri>erp/maintenance/itemmaster</taglib-uri>
    <taglib-location>/WEB-INF/itemmaster.tld</taglib-location>
    </taglib>
    </web-app>
    5) JSP call to the custom tag
    <%@ page errorPage="billofmaterialErrorPage.jsp" %>
    <%@ taglib prefix = "im" uri = "erp/maintenance/itemmaster" %>
    <html>
    <head>
    <title>CSI - ERP - add bill of material</title>
    <link rel = "stylesheet" href = "/erp/erpstyle.css">
    </head>
    <body>
    <h1>Add Bill of Material</h1>
    <form action = "billofmaterialcontroller.jsp" method="post">
    <table>
    <tr>
    <td align = "LEFT"><font color = blue>Parent Item:</font></td>
    <td><im:listitemmaster parametername = "parameter1" /></td>
    </tr>
    <tr>
    <td align = "LEFT"><font color = blue>Child Item:</font></td>
    <td><im:listitemmaster parametername = "parameter2" /></td>
    </tr>
    <tr>
    <td align = "LEFT"><font color = green>Qty Per:</font></td>
    <td><input type = "text" name = "parameter3" size = "5" maxlength = "5" /></td>
    </tr>
    </table>
    <p>
    <input type="submit" name="submit" value="Add">
    <input type="reset" value="Reset">
    </p>
    <input type = "hidden" name = "Action" value = "Add">
    </form>
    Click <a href = "billofmaterial.jsp">here</a> to go back.
    </body>
    </html>

    This is a very helpful execellent sample code.
    However, If I'm using Model-View-Control approach, then what's the way of applying these codes
    to each indivisual file? Say, I have 20 files and only 4 of the 20 need to be treated as they like
    to have drop down menu in particular column(s)??? How could the custom tag be applied as the
    controller tells the view to present these special treat? or it is not possible (I have to treat each
    file, filtered by controller -- one by one as it encounters the special need)?
    Thx, Tzae

  • Setting default value in dynamic drop-down menu

    Hi,
    I created a simple drop-down menu that can be used to edit an
    existing record or to create a new record.
    When creating a new record, I'd like the drop-down menu to
    display "Not specified" by default. Could anyone help me with this?
    The "Not specified" option in the drop-down menu should refer
    to record ID 11 in my database table entitled "names".
    Here's what my code looks like so far.
    The db queries:
    <CFQUERY DATASOURCE="DATA" NAME="get">
    SELECT *
    FROM names
    order by name
    </CFQUERY>
    <CFQUERY DATASOURCE="DATA" NAME="quo">
    SELECT *
    FROM quotes
    WHERE quoteID = #quoteID#
    </CFQUERY>
    This part is for the existing database record:
    <select name="frn_ID">
    <cfoutput query="get">
    <option value="#id#"<cfif id is quo.frn_ID>
    selected</cfif>>#name#</option>
    </cfoutput>
    </select>
    Here is where I'd like the ID with a default value of 11 to
    be displayed:
    <cfelse>
    <select name="frn_ID">
    <cfoutput query="get">
    <option value="#id#">#name#</option>
    </cfoutput>
    </select>
    </cfif>
    Thank you for any help with this!
    Luke

    Thank you.
    I added this line:
    <CFSET ThisOne = 11>
    and then edited the drop-down menu to appear like this:
    <select name="frn_ID">
    <cfoutput query="get">
    <option value="#id#" <cfif ThisOne is ID>
    selected</cfif>>#name#</option>
    </cfoutput>
    </select>

  • Oracle apex creating mouse over drop down menu

    Hi ,
    I want to create a drop down menu for main tabs. Can any one explain or tell how to create this drop down and to use that in oracle apex 4.2 version.

    A much better option than using in-built tabs.
    1)
    You need to define a List, either static or dynamic, which will be your menu options - and it needs to be hierchical.
    Then you create a list region on the global page, using a stock template such as DHTML Tree
    2)
    Or you can use a CSS only menu, similar to the first option
    http://www.grassroots-oracle.com/2013/05/css-pull-down-menu-using-apex-list.html
    3)
    Or you can use a plug-in
    http://apex-plugin.com/oracle-apex-plugins/region-plugin/enkitec-navbar_317.html
    Scott
    ps - my, what a crazy username you have! is this the new forum default?

  • How can I create a rollover drop down menu from a link in Dreamweaver CS5?

    Hello all,  I am working on a portfolio website and I was just wanting to know if there is any way that I can create a drop down menu from a text link that cascades once the cursor has made contact with the link. I would like to have it in my navigation bar where the Portfolio link is. Basically, my navigation bar looks like this : Home | Resume | Portfolio | Contact. I only want three items on the drop down menu beneath the portfolio link: Traditional Art, Photography, Graphic Design. I would really appreciate any help I can get! Thanks!

    Have a look at what Nancy does http://alt-web.com/DEMOS/CSS-Horiz-menu-2.shtml

  • Creating a new drop down menu when an option in an existing one is chosen

    I’m using Coldfusion 9,0,0,251028 on Windows 7 64-bit, with a Microsoft Access 97 database. 
    I’m having a problem with using a drop-down menu to create another one below it once a certain option is selected
    (in this case, the option named “Breaking News”, which has an id of 31).
    What event trigger should I use to create a drop-down menu underneath the first one when “Breaking News” is selected? 
    Should I be using Javascript for something like this, or can Coldfusion handle it?
    Here’s the code:
    <cfquery name="get_info" datasource="#db#">
    select * from lists
    order by department asc, list asc
    </cfquery>
    <div align="left">
              <select name="list">
                     <option value="-1" selected> --------------------------------------  
                     <cfoutput query="get_info" group="department">
                            <cfoutput group="list">
                 <cfif list neq "Breaking News Cell Phone">
                         <option value="#id#">#list#
                 </cfif>
                            </cfoutput>
                  <option value="-1"> --------------------------------------
                     </cfoutput>
              </select>
    </div>

    Depending on the details, I might use ColdFusion to create the content of the second drop down.
    The second drop-down is supposed to be an expiration date that gets attached to the message so it can be self-removing.
    The first drop-down is to specify a category for a message to be sent out on.
    In this case, the only one that needs the secondary expiration drop-down is a single category (Breaking News),
    so all other options on the drop-down would have to not trigger the expiration date drop-down showing.
    In that situation, would you use ColdFusion to create the second drop down?

  • 'Weird' Terminology: rigs, snapshots and checkboxes/My odyssey, to create a simple drop-down menu ;)

    The Preface
    I'm a hobbyist! "Daddy does movies", enthusiastic about the -zillions of features, tools like FCPX and Motion5 offer! I'm no designer, no engineer, no 'pro'. My goals are sky-high, results more down-to-earth
    This is no request for help, just to share my … quest for a 'simple' effect. Or feature… Or box.-
    In hope, it helps YOU to solve your problems…
    The Issue
    Simple: I wanted to create my very own 'title' template for FCPX. Concept: a lil' animation, the two teams logos reveal a lower third, showing the actual score. Plus, an insert showing the scorer (=my kids love to see themselve in such 'sports graphics' )
    Usually, I 'manufacture' such graphics as single Motion-Projects. This time, my goal was a template, my kids slaughtered in the first season's game the other team by 11:1 (which is in soccer…  a goal-fest) To 'built' each Title manually as individual Projects would spend too much time. I needed a template! … so, step #1: using a Dropzone for opponents logo - easy. Animating - been there, done that, easy.-
    But that 'show players face&name' … 18 team-members… wouldn't it be nice to have some 'drop down menu'?
    How to accomplish that?
    The Manual, with all respect, is written for experts. Describing ALL options in one sentence. I need a cookbook, step-by-step-instruction … My preferred source of imagination, MacBreakStudio/rippletraining/Mark Spencer, hasn't done a tutorial for 'drop downs' yet.-
    My guts told me, it has something to do with 'rigs' …
    The Rig
    I dragged my folder with player-pics into my Motion5 project; there, I could check/uncheck each player. But I wanted these 'boxes' avail in FCPX, I wanted to 'publish' this check-list. Trying 'tis&'tat, I noticed, I can apply to the opacity of each player-pic a Rig. And a Checkbox-rig - hey, that close!!
    … soooo?
    No 'checkbox' in FCPX after publishing my title. No list after publishing to FCPX! What have I done wrong?
    The Snapshots
    I was confused by the meaning of  'snapshot'! … and since it made "ping!" in my head, it's so simple:
    As I would done it in a 'manufactured', single Motion project, I have to select each team-member, create a New Snapshot, set opacity to show only this player; create another New Snapshot, showing a diff. player. … and so on, and so on.
    … for sure, for convenience I renamed each Snapshot to each Player's name…
    In my amateurish mind, I had the imagination, Motion5 would offer me a 'behavior' (or 'filter' or whatever) to create checkboxes; or drop-downs; … uhm, well it does, but for me the work-flow is back-to-front: first creating a status-quo, then tell 'this is option#1/#2/#3' … I had the idea, you can select first an 'empty box', then drag its content into it. I've learned: professional don't tic this way.
    Eighteen Snapshots later …
    The Result
    After publishing my hand-crafted Title, it appears like that in FCPX:
    The Dropzone is to apply the actual contestants team-logo; the 'Title' is the score, just type the number; and - finally! - I had my drop-down-menu, listing all players,  for simple selection.- Me happy … !
    In movin' images:
    http://youtu.be/wIeu1cVMu94
    As mentioned before: the design isn't meant to win a price; and most probably, there are 'shorter ways to Rome' … so, if any of you 'pros' like to comment or recomment a 'better', in terms of 'easier' way, don't hesitate to teach me!
    K.

    Motion-guru Marc Spencer from rippletraining.com has an episode upon Rigging at MacBreak Studio
    MacBreak Studio - Episode 151: Setting up a Rig in Motion 5 for Final Cut Pro X    
    … I'm no expert (as you notice in my first post ), but I'm really overwhelmed by the endless options, esp. in correlation with FCPX… on first sight, 'rigging' looked like 'bundled color sliders' to me, but by creating your very own drop-down menus you can create extremely powerful tools, handcrafted for your very own needs.
    For sport-reports, with its tons of statistics and inserts, you can create a box of 'title genrators' - once done, multiple times used, and extreeeemly fast then.
    … And when a 'nnob' like me manages it, it is really no rocket-science…
    Kudos to the DevTeam at Cupertino!!!

  • Dynamic Drop Down Menu from an Access Database

    Hello Everyone,
    I am user Adobe Designer 7 to create a fillable PDF, and I would like to get the options for a drop down menu from my MS Access database. Basically I would like to populate the drop down menu with the names in the Access database. There i Have a table called PhoneNumbers and it contains the names of all the people I want to appear in the drop down menu that I just created.
    This is what I did:
    I created a drop down menu and then I clicked on Object > Binding > under "Default Binding (Open, Save, Submit)" choose "New Data Connection"
    then connect to the database using a fileDSN. I opened the table where with the "names" column (PhoneNumbers)
    and under the "Query," option, I wrote:
    select * from PhoneNumbers
    Then it gave me all the fields from the table and I dragged the "Last name" field over the drop down menu. I will need to find a way to get the "First Name" field to join the Last Name field to create one name that looks like this: Hill, Angie
    The problem is that even though it shows the name from the Access database, it does not give me a list of all the names when I open the form in Reader 7...
    No matter how much I click that drop down arrow, the name does not change...
    It's almost as if it gets to the databse and gets the data from the database, but it cannot loop through it...
    It's almost as if it's missing the code to loop through it...
    Why is this? Any ideas how to fix it so it gives me a list of ALL the names, when I click on the drop down button?
    After that, how can I add the first name to it?
    The form would look like this:
    Angie H. 202 641 2055
    Right now it does look like that, but I cannot change to another name when I click the drop down menu. For the code to be working when I change to another name, the phone number also changes to the phone number of that person:
    Barry S. 703 555 1258
    The name is in a drop down menu, the phone number is in a textbox.
    Can you help me with this?

    ANGELA,<br /><br />Well, the good new is that you are not far off...What you need is to insert the following code using Java Script under the Initialize function.  Just replace the Connection name,  The Hidden Value, and the Display Text with your information.  This is a function is 8.0 but will work with 7.0<br /><br />/*     This dropdown list object will populate two columns with data from a data connection.<br /><br />     sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />     sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />     sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br /><br />     These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />*/     <br /><br />var sDataConnectionName = "DataConnection";     //     example - var sDataConnectionName = "MyDataConnection";<br />var sColHiddenValue = "CAT_Corp_SeqNo";               //     example - var sColHiddenValue = "MyIndexValue";<br />var sColDisplayText = "CAT_Corporate";               //     example - var sColDisplayText = "MyDescription"<br /><br />//     Search for sourceSet node which matchs the DataConnection name<br />var nIndex = 0;<br />while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br /><br />var oDB = xfa.sourceSet.nodes.item(nIndex);<br />oDB.open();<br />oDB.first();<br /><br />//     Search node with the class name "command"<br />var nDBIndex = 0;<br />while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br /><br />//     Backup the original settings before assigning BOF and EOF to stay<br />var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br /><br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br /><br />//     Clear the list<br />this.clearItems();<br /><br />//     Search for the record node with the matching Data Connection name<br />nIndex = 0;<br />while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />var oRecord = xfa.record.nodes.item(nIndex);<br /><br />//     Find the value node<br />var oValueNode = null;<br />var oTextNode = null;<br />for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br />     {<br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br />          {<br />               oValueNode = oRecord.nodes.item(nColIndex);<br />          }<br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br />     {<br />          oTextNode = oRecord.nodes.item(nColIndex);<br />     }<br />}<br /><br />while(!oDB.isEOF())<br />{<br />      this.addItem(oTextNode.value, oValueNode.value);<br />       oDB.next();<br />}<br /><br />//     Restore the original settings<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br /><br />//     Close connection<br />oDB.close();

  • How to make dynamical drop down menu?

    I am trying to make a drop down menu which is dynamical in dreamweaver? is there a way to do that? i am not good at programming.

    Here are links to a couple of tutorials for this:
    http://www.roscripts.com/Building_a_dynamic_drop_down_menu-216.html
    http://www.finalwebsites.com/tutorials/dynamic-navigation-list.php

  • How to create Dynamic Drop down list ?

    Hi experts
    I want to create a Dynamic Drop down list that should be an Editable,after editing that i need to save.
    thanks,
    vikram.c.

    Hello,
    Please go through this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/linking%2bdrop-down%2blists
    If useful reward.
    Vasanth

  • Cteate 2 Dynamic drop down list

    Hi all
    i want to create 2 dynamic drop down list using struts and hibernate
    i want the first one to display countries name then if i select a country name the second drop down list will automatic display the country cities .
    i'm using database here and my tables like that :-
    country table
    country_id number(3) pk
    country_name varchar(50)
    city table
    city_id number(5) pk
    country_id(3) fk references country(country_id)
    city_name varchar(50)
    thank you in advance

    Hi Omar,
    I have solution for you
    To populating or refreshing the lists you can use
    two procedures:
    One of them - generic, which can be used for all types of list
    Another is specific which contain a SQL statement to retrieve the data for
    particular list.
    1. Specific procedure:
    PROCEDURE GET_DEPARTMENT_LIST
    IS
    sql_stat VARCHAR2(32767);
    ret_code NUMBER;
    BEGIN
    -- SQL Statement for Drop-down List
    -- (must have two columns for label and value - both VARCHAR2)
    sql_stat := ' SELECT DEPARTMENT_NAME,TO_CHAR(DEPT_ID)'
    ||' FROM SCHEMA.DEPARTMENT';
    POPULATE_MY_LIST('BLOCK.DEPARTMENT_LIST',sql_stat,ret_code);
    END;
    2. Generic procedure:
    PROCEDURE POPULATE_MY_LIST
    (item_name VARCHAR2,
    sql_stat VARCHAR2,
    out_code OUT NUMBER)
    IS
    rg_id RECORDGROUP;
    rg_name VARCHAR2(100);
    ret_code NUMBER;
    item_id ITEM;
    BEGIN
         item_id := FIND_ITEM(item_name);
         IF ID_NULL(item_id) THEN
              out_code := -1;
              RETURN;
         END IF;
         --Creating Record Group with Unique Name
         rg_name := 'RG_'||SUBSTR(item_name,INSTR(item_name,'.',1)+1,LENGTH(item_name));
         --Checking Record Group Name for existance
         rg_id := FIND_GROUP(rg_name);
         --If Group does exist - delete it
         IF NOT ID_NULL(rg_id) THEN
              DELETE_GROUP(rg_id);
         END IF;
         --Creating Record Group
         rg_id := CREATE_GROUP_FROM_QUERY(rg_name,sql_stat);
    ret_code := POPULATE_GROUP(rg_id);
    IF (ret_code <> 0) THEN
         out_code := ret_code;
         RETURN;
    END IF;
    POPULATE_LIST(item_name,rg_id);
    IF NOT FORM_SUCCESS THEN
         out_code := -2;
         RETURN;
    ELSE
    out_code := 0;     
    END IF;
    DELETE_GROUP(rg_id);
    END;
    Hope it help.
    Dmitry

  • How do I create a drop down menu with Code Snippets and Flash CS5?

    Hi
    I am wondering how to create a drop down menu using the Code Snippets and CS5?
    There are some older tutorials out there and it would be nice if someone could create an updated drop down menu tutorial, and it might be me doing this after I have figured out the best and easiest way to create one, but before that I need some pointers.
    Thanks!
    Have a great day!
    Paal Joachim

    You can use panel widget to create manual menu where set to show target on rollover.
    Something like this :
    http://muse.adobe.com/exchange-library/menu-vertical-accordion-widget-1
    http://muse.adobe.com/exchange-library/tiptop-navigation-menu
    Thanks,
    Sanjit

  • Drop Down Menu selection query for recordset.

    I am looking to utilize a dynamic drop down menu to query a recordset...I am using Colfusion to import an MS Access database that contains the following fields: "Model Date", "Name", "Points" and "Target".  Each time the database updates, the "Model Date" field contains the date and time the model was run.  I have figured out how to create a dynamic drop down using SELECT DISTINCT "model date" and have also figured out how to create the dynamic recordset to be displayed showing the "Name", "Points" and "Target" data. 
    I want the user to select the "Model Date" from the drop down, hit a submit button and then have the appropriate "Name", "Points" and "Target" data queried and shown below.
    The query should take the selection from the "model date" dropdown and then query the "name", "points" and "target" fields for that particular "model date"
    I admit my knowledge of SQL and Coldfusion is not the best, but it seems like this is a somewhat simple task and I am just missing one or two pieces of the cog to put it all together.
    The database basically looks like this:
    Model Date...........Name..........Points........Target
    8/1/2010 08:00......John Doe.....1,250.........5.55%
    8/1/2010 08:00......Jane Doe.....850............2.35%
    8/1/2010 08:00......Bill Smith....11,832........-123.23%
    8/2/2010 09:02......John Doe.....1,323.........6.67%
    8/2/2010 09:02......Jane Doe.....1,001.........3.21%
    8/2/2010 09:02......Bill Smith....10,235........-110.26%
    The dropdown will only show the "model dates"
    8/1/2010 08:00
    8/2/2010 09:02
    For example, if 8/1/2010 08:00 was selected from the dropdown, I want the following displayed:
    Name..................Points...................Target
    John Doe.............1,250....................5.55%
    Jane Doe.............850.......................2.35%
    Bill Smith............11,832...................-123.23%
    Any help or suggestions would be greatly appreciated!!!
    Thanks,
    Mike

    My second paragraph talks about just displaying the filtered data, so I'm assuming that's what you're looking for, but still not quite sure based on what the other responses are. 
    But I head on anyway -
    On your first page, make note of the instance name of your drop down menu, such as "ModelDate".  Make sure it's in a Form and set the form action to the page where you want to display your data, set the form action to POST.
    On the results page, create a table with cells for each of the data elements you want to display. Create a recordset which you can do in Simple mode. Leave it at select all, and set the filter drop down to the database field which contains your Model Date. In the box to the right, select "=". the next dropdown selct "Form Variable" and the variable name type in the instance name of the drop down on the first page. 
    I may not have the terminology right, doing it from memory.
    From the data bindings tab, expand your recordset and locate each of the database fields you want to display.  Drag each one to the table cell on the page where you want it displayed.  The table cells have to be in a linear row.
    Now, select the table row buy selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select repeat region and "All Records"
    Publish your pages and test!

  • Spry Drop Down Menu not appearing in I.E.8

    I have created a spry drop down menu in Dreamweaver CS5, brought it to my webpage in Macromedia Dreamweaver, uploaded it and when I view the website in I.E. 8 only the top tabs of the menu appear.  When I scroll over it, no drop down menu shows.  Please help.

    Below is the coding i have for my menu...and the site address is www.setonyouthshelters.org
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="/public_html/javascript/tableHeight.js"></script>
    <script src="file:///C|/Documents%20and%20Settings/Mother%20Seton%20House/My%20Documents/Seton_Youth_Sh elters/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Seton Youth Shelters</title>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    <link href="/css/seaton.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #MenuBar1 li strong {
    font-family: Georgia, "Times New Roman", Times, serif;
    text-align: right;
    #MenuBar1 li strong {
    font-size: 10px;
    #MenuBar1 li strong {
    font-size: 18px;
    .email {
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    </style>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <link href="file:///C|/Documents%20and%20Settings/Mother%20Seton%20House/My%20Documents/Seton_Youth_Sh elters/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body onload="MM_preloadImages('/images/home_button1.gif','/images/about_usbutton1.gif','/image s/programs_button1.gif','/images/events_button1.gif','/images/contribute_button1.gif','/im ages/contact_usbutton1.gif','/images/bigchillbutton1.gif','/images/derbybutton1.gif','/ima ges/sponsorshipinfobutton1.gif','/images/fashionbutton1.gif','/images/footballbutton1.gif' ,'/images/golfoutingbutton1.gif','/images/kingswalkbutton1.gif','/images/monsterbutton1.gi f','/images/supperbutton1.gif','/images/summerbutton1.gif','/images/winebutton1.gif','/ima ges/boardofdirectors1.gif','/images/funding1.gif','/images/missionprograms1.gif','/images/ newsletter1.gif','/images/support1.gif','/images/counseling1.gif','/images/inschool1.gif', '/images/mentoring1.gif','/images/parentservices1.gif','/images/safeplace.gif','/images/sh elter.gif','/images/streetoutreach1.gif','/images/volunteer1.gif','/images/youthambassador s.gif','/images/donationsbutton1.gif','/images/thriftstorebutton1.gif')">
    <!-- DO NOT MOVE! The following AllWebMenus code must always be placed right AFTER the BODY tag-->
    <!-- ******** BEGIN ALLWEBMENUS CODE FOR setonhouseRevII ******** -->
    <span id='xawmMenuPathImg-setonhouseRevII' style='position:absolute;top:-50px'><img name='awmMenuPathImg-setonhouseRevII' id='awmMenuPathImg-setonhouseRevII' src='/public_html/awmmenupath.gif' alt='' /></span>
    <script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='DW'; awmAltUrl='';</script>
    <script src='/public_html/setonhouseRevII.js' language='JavaScript1.2' type='text/javascript'></script>
    <script type='text/javascript'>awmBuildMenu();</script>
    <!-- ******** END ALLWEBMENUS CODE FOR setonhouseRevII ******** -->
    <!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag-->
    <style type="text/css">
                .awmAnchor {position:relative;z-index:0}
                </style>
    <table width="790" border="0" align="center" cellpadding="1" cellspacing="0">
      <tr>
        <td bgcolor="#C81F36"><table width="790" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
          <tr>
            <td align="right" bgcolor="#1C1D4D"><p><img src="/images/headerimg.gif" alt="header" width="800" height="150" hspace="5" align="middle" /></p>
              <ul id="MenuBar1" class="MenuBarHorizontal">
                <li><a href="/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','/images/home_button1.gif',1)"><img src="/images/home_button.gif" alt="HOME" name="home" width="110" height="35" border="0" id="home" /></a></li>
                <li><a href="/about/aboutus.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('aboutus','','/images/about_usbutton1.gif',1)"><img src="/images/about_usbutton.gif" alt="ABOUT US" name="aboutus" width="110" height="35" border="0" id="aboutus" /></a>
                  <ul>
      <li><a href="/about/board_of_directors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('boardofdirectors','','/images/boardofdirectors1.gif',1)"><img src="/images/boardofdirectors.gif" alt="BOARD OF DIRECTORS" name="boardofdirectors" width="110" height="18" border="0" id="boardofdirectors" /></a></li>
      <li><a href="/about/funding.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('funding','','/images/funding1.gif',1)"><img src="/images/funding.gif" alt="FUNDING" name="funding" width="110" height="18" border="0" id="funding" /></a></li>
      <li><a href="/about/mission_programs.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('missionprograms','','/images/missionprograms1.gif',1)"><img src="/images/missionprograms.gif" alt="MISSION PROGRAMS" name="missionprograms" width="110" height="18" border="0" id="missionprograms" /></a></li>
      <li><a href="/about/newsletter_archives.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('newsletter','','/images/newsletter1.gif',1)"><img src="/images/newsletter.gif" alt="NEWSLETTER" name="newsletter" width="110" height="18" border="0" id="newsletter" /></a></li>
      <li><a href="/about/support.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('support','','/images/support1.gif',1)"><img src="/images/support.gif" alt="SUPPORT" name="support" width="110" height="18" border="0" id="support" /></a></li>
                  </ul>
                </li>
                <li><a href="/programs/board_of_directors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('programs','','/images/programs_button1.gif',1)"><img src="/images/programs_button.gif" alt="PROGRAMS" name="programs" width="110" height="35" border="0" id="programs" /></a>
                  <ul>
                    <li><a href="/programs/counseling.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('counseling','','/images/counseling1.gif',1)"><img src="/images/counseling.gif" alt="COUNSELING" name="counseling" width="110" height="18" border="0" id="counseling" /></a></li>
                    <li><a href="/programs/in_school.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('inschool','','/images/inschool1.gif',1)"><img src="/images/inschool.gif" alt="IN SCHOOL" name="inschool" width="110" height="18" border="0" id="inschool" /></a></li>
                    <li><a href="/programs/mentoring.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mentoring','','/images/mentoring1.gif',1)"><img src="/images/mentoring.gif" alt="MENTORING" name="mentoring" width="110" height="18" border="0" id="mentoring" /></a></li>
                    <li><a href="/programs/parent_services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('parentservices','','/images/parentservices1.gif',1)"><img src="/images/parent_services.gif" alt="PARENT SERVICES" name="parentservices" width="110" height="18" border="0" id="parentservices" /></a></li>
                    <li><a href="/programs/safe_place.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('safeplace','','/images/safeplace.gif',1)"><img src="/images/safeplace1.gif" alt="SAFE PLACE" name="safeplace" width="110" height="18" border="0" id="safeplace" /></a></li>
                    <li><a href="/programs/shelter.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('shelter','','/images/shelter.gif',1)"><img src="/images/shelter1.gif" alt="SHELTER" name="shelter" width="110" height="18" border="0" id="shelter" /></a></li>
                    <li><a href="/programs/street_outreach.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('streetoutreach','','/images/streetoutreach1.gif',1)"><img src="/images/streetoutreach.gif" alt="STREET OUTREACH" name="streetoutreach" width="110" height="18" border="0" id="streetoutreach" /></a></li>
                    <li><a href="/programs/volunteer.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('volunteer','','/images/volunteer1.gif',1)"><img src="/images/volunteer.gif" alt="VOLUNTEER" name="volunteer" width="110" height="18" border="0" id="volunteer" /></a></li>
                    <li><a href="/programs/youth_ambassadors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('youthambassadors','','/images/youthambassadors.gif',1)"><img src="/images/youthambassadors1.gif" alt="YOUTH AMBASSADORS" name="youthambassadors" width="110" height="18" border="0" id="youthambassadors" /></a></li>
                  </ul>
                </li>
                <li><a href="/events/annualfundcampaign/annual_fund.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','/images/events_button1.gif',1)"><img src="/images/events_button.gif" alt="EVENTS" name="events" width="110" height="35" border="0" id="events" /></a>
                  <ul>
                    <li><a href="/events/big_chill/big_chill.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('bigchill','','/images/bigchillbutton1.gif',1)"><img src="/images/bigchillbutton.gif" alt="BIG CHILL" name="bigchill" width="115" height="36" border="0" id="bigchill" /></a></li>
                    <li><a href="/events/derby/derby_party.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('kentuckyderby','','/images/derbybutton1.gif',1)"><img src="/images/derbybutton.gif" alt="KENTUCKY DERBY" name="kentuckyderby" width="115" height="36" border="0" id="kentuckyderby" /></a></li>
                    <li><a href="/events/fashion/fashion_show.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('fashionshow','','/images/fashionbutton1.gif',1)"><img src="/images/fashionbutton.gif" alt="FASHION SHOW" name="fashionshow" width="115" height="36" border="0" id="fashionshow" /></a></li>
                    <li><a href="/events/golf/golf_outing.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('golfouting','','/images/golfoutingbutton1.gif',1)"><img src="/images/golfoutingbutton.gif" alt="GOLF OUTING" name="golfouting" width="115" height="36" border="0" id="golfouting" /></a></li>
                    <li><a href="/events/seton_supper_club/seton_supper_club.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('setonsupperclub','','/images/supperbutton1.gif',1)"><img src="/images/supperbutton.gif" alt="SETON SUPPER CLUB" name="setonsupperclub" width="115" height="36" border="0" id="setonsupperclub" /></a></li>
                    <li><a href="/events/summercel.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('summercelebration','','/images/summerbutton1.gif',1)"><img src="/images/summerbutton.gif" alt="SUMMER CELEBRATION" name="summercelebration" width="115" height="36" border="0" id="summercelebration" /></a></li>
                    <li><a href="/events/wine_tasting/wine_tasting.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('winetasting','','/images/winebutton1.gif',1)"><img src="/images/winebutton.gif" alt="WINE TASTING" name="winetasting" width="115" height="36" border="0" id="winetasting" /></a></li>
                  </ul>
                </li>
                <li><a href="/contribute/contribute_first_page.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contribute','','/images/contribute_button1.gif',1)"><img src="/images/contribute_button.gif" alt="CONTRIBUTE" name="contribute" width="110" height="35" border="0" id="contribute" /></a>
                  <ul>
                    <li><a href="/contribute/donations.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('donations','','/images/donationsbutton1.gif',1)"><img src="/images/donationsbutton.gif" alt="DONATIONS" name="donations" width="110" height="35" border="0" id="donations" /></a></li>
                    <li><a href="/contribute/sponsors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('sponsors','','/images/sponsorbutton1.gif',1)"><img src="/images/sponsorbutton.gif" alt="SPONSORS" name="sponsors" width="110" height="15" border="0" id="sponsors" /></a></li>
        <li><a href="/contribute/thrift_store_USA.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('thriftstore','','/images/thriftstorebutton1.gif',1)"><img src="/images/thriftstorebutton.gif" alt="THRIFT STORE" name="thriftstore" width="110" height="35" border="0" id="thriftstore" /></a></li>
         </ul>
                </li>
                <li><a href="/contact/contactus.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contactus','','/images/contact_usbutton1.gif',1)"><img src="/images/contact_usbutton.gif" alt="CONTACT US" name="contactus" width="110" height="35" border="0" id="contactus" /></a></li>
              </ul></td>

Maybe you are looking for

  • Dont read this if you dont want to make money

    MAKE LOTS OF MONEY QUICKLY, GUARANTEED 100%, NO SCAM! Turn 6.00 into 42,000! This is true!!.... Read this carefully to find out how!!.... READING THIS WILL CHANGE YOUR LIFE! I found this on a bulletin board and decided to try it. A little while back,

  • HP Color LaserJet CP1518ni - Colour Alignment Issue

    I'm having an issue with the alignment of the different colours with my HP CP1518ni printer. Basically the colours don't really print in the same spot, like the Red(Magenta) printing is never aligned with the Black / Yellow / Blue(Cyan) (so I can hav

  • How to define logic to BO for display of more meaningful messages in Webi?

    Hi All. Greetings for the Festive Season. We would like to know as to how to define the logic to our BO application while displaying messages to end users of Web Intelligence. We have defined restrictions for various users and restrictions are applic

  • Embedding html tags within a report

    I have an interactive report in which I'd like to indicate new table entries. I have a case statement on a column that checks the date that the entry was added and if it was added recently I concatenate a gif to the column value which indicates "New"

  • BOM Sortstring field

    Hi All PP Gurus, Can you please help me in the following issue. Its very urgent please help me in this case. On the BOM master, we put the sorting string on the sortstring field. assume we put all the bom components into the same phase,but the proces