Select Tag

Hi ,
I am using select tag in my form and assigning the values to
it from cfquery tag. And i wan the dropdown list box to be appeared
in ten rows of the table so i am using the cfloop tag. but i am
getting a error for cfoutput tag
Code written is:
<cfloop index="i" from="1" to="5">
<cfoutput>
<tr>
<td>
<select name="prod#i#">
<option value="selec" selected="selected">Select
One</option>
<cfoutput query="sel">
<option value="#Product_id#">#Product_name#
#i#</option>
</cfoutput>
</select>
</td>
</cfoutput>
<td> <input type="text" name="price#i#"
readonly="readonly" /></td>
<td><input type="text" name="prod_qty#i#"
/></td>
<td><input type="text" name="tot#i#" readonly="yes"
onfocus="calculate();" /></td>
</tr>
</cfoutput>
</cfloop>
Error is:
i.e
Invalid tag nesting configuration.
A query driven CFOUTPUT tag is nested inside a CFOUTPUT tag
that also has a QUERY= attribute. This is not allowed. Nesting
these tags implies that you want to use grouped processing.
However, only the top-level tag can specify the query that drives
the processing.
Can anybody help me out on this ..
Thanks & Regards,
Ravi

I need 10 rows in my table to differentiate each select tag
or dropdownlist i am using cfoutput twice....
example: <cfloop index=i from="1" to="10">
<cfoutput> // used differentiate index " i " for
Prod#i# used in next statement.
<select name=prod#i#>
<cfoutput query="sel"> // To fill the Dropdown list
<option=#val#>#name#</option>

Similar Messages

  • How can I display selected tags across multiple e-mail addresses?

    I receive email on a specific topic but via several e-mail addresses. How can I view selected tags where the resulting e-mails span several (7) email addresses. They are all active on my Thunderbird, but as far as I know, I can only display the selected tag on one of them at a time.
    Any assistance greatly appreciated as this is a very big problem for me.
    thanks, Ron75

    This solution does not appear to work across multiple e-mail addresses.
    Perhaps I should have said "work across multiple e-mail address at the same time. I get e-mail on specific topics via several email addresses and wish to view all the tagged emails regardless of which email account in which they reside.
    I could not get this solution to select more than one email account at a time.

  • Printing web page with select tags in IE9 and a .cfm file-only the original selected option prints

    My web page has a select tag and cfselect tags and when I print the page with a different option other than the originally selected option the print for both types of select tags reverts back to the original selection and ignores the new selection.  This happens in IE9 and .cfm files but not when the page is printed in IE8 or IE7 modes (tried in the F12 Developer Tools.)  It also needs to be a .cfm file.  FireFox printed the pages correctly for any combination.
    This was done on a Dell and ThinkCentre computers under Windows 7.  Also, I was able to reproduce the same problem on an different university web site where a selection box would revert back to the original selection for printing on a .cfm page and would print properly on a .PHP page at the same site.
    For my site, I used a print button which calls print() and right clicked and chose print and got the same results no matter which method was used.  I only had the right click method on the third party web site.
    I know this is probably a bit narrow an issue but, any help would be appreciated.

    It appears that it is probably an IE9 bug.
    I simplified the problem by turning the page source taken from the brouser of the original .cfm into an html file and found that it would still print improperly.
    When I eliminated the various parts of the file I found that it would print correctly only when I removed the first line, the "DOC type" line.
    The page will print the newly selected option but then I lose the style sheet.
    If it does not work in an HTML file it must be IE.  It is not the .cfm.  The reason that it did not work for .cfm files, is that they always have a "DOC type" statement.
    I have put the issue into an MSDN forum in addition to the one mentioned previously.

  • Use of titleKey attribute in html:select tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

  • How can I see the selected tags in the tag bar clearly

    How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)

    The History menu lets you revisit the page where you can drag any page element from it.
    How would you sort through thousands (tens of thousands) of files found in a cache?

  • Html select tag issue.

    Hi All,
    I created a new project using EB3 to develop a photoshop extension. In that panel, I added the drop down box as follows,
    <body onLoad="onLoaded()">
         <select>
                <option value="">1</option>
                <option value="">2</option>
                <option value="">3</option>
                <option value="">4</option>
         </select>
    </body>
    I am seeing an issue, following are the steps to reproduce it,
    - Open the panel.
    - Click on the drop down. (Drop down opens)
    - Now loose the focus from the panel by clicking outside the panel.
    - Now click on the drop down. (Here comes the issue)
    Drop down doesn't open but it comes into the focus and when I clicked second time it will open.
    So every time when focus loosed the panel and I clicked on the drop down nothing happens on first time.
    And the strange thing is that I am seeing this issue on windows only.
    Anyone have any idea why it behave like this or is it a select tag bug in html panel?
    Thanks for any help..

    Yep, I second that. Combos take two clicks to be activated. Seems like yet another bug from a long, long list of issues with this CEP.

  • Problems with BC4J input select tag when its bounded to a primary key field

    HI..
    I have an jsp BC4J edit form. This form uses a BC4J input select tag. This component is mapping one of the primary key Entity fields.
    When im working with this component and it doesnt map a primary key field it shows the default "none" value when im inserting a record(thats Ok). but when it maps a primary key field the default value is a database value so it is not advisable.. How can i do in order to fix that?
    Thank you

    The none value is only shown when the field accepts null values.

  • Focus() call on a select tag seems to be causing problems

    I have a reasonably complicated web site with dynamically created, absolutely positioned, overlapping divs with form elements contained within them.
    Starting with Firefox 4 and in Firefox 5, clicking on a dropdown list (<select>) tag can cause fragments of text from some of the "bottom" (i.e. not visible) divs to appear within the "top" (i.e. visible) div.
    I can make this problem go away by setting the onmousedown handler (not previously set) for the select tag to a dummy event handler which terminates the event. I can force it to happen again either by allowing the event to bubble up or by explicitly calling .focus(). Also, causing any part of the screen to refresh (such as writing to the DOM) will cause the fragments of text to disappear and the problem does not then reoccur with the given <select> tag.
    This issue does not arise in IE 8 / 9, Opera 10 / 11 or Chrome.
    Is this a known issue? If it is the .focus() call which is causing the problem and given that that is native code, is there a workaround other than what I have done?

    Took a look at the SQL Navigator. The "DB Navigator" (the navigation tree on the left with all the DB objects in it) shows the right precision and scale of every column, whereas the "columns" tab that appears when you >double click the view in the DB navigator always shows "number(0,0)". So I consider this a bug of SQL Navigator, but don´t believe it has anything to do with your problem.Yup, you're absolitely right. Not impreseed with SQL navigator!!!
    Just a thought: Could it be that some restrictions concerning the db user (dunno, perhaps even FGAC?) prevents that specific data to be shown? Do you connect in SQL Navigator as the same user as with the other >applications?Nice idea but I'm using the same user account.
    My background is in SQL Server (don't hold it against me :) ) and that has a tool called Profiler than enables one to capture the query being executed against the database engine. Does Oracle have anything similar? It might be useful to test whether the driver does something funky to the query that might manifest itself in what I'm seeing!
    -Jamie

  • Set selected in netui:select tag

    Hi, all
    I wonder how to set the selected item after come back from server. I have
    --- jsp
    <netui:select dataSource="{actionForm.personStr}" optionsDataSource="{actionForm.personOptionsHashMap}" defaultValue="-- select one --">
    --- server (.jpf)
    form.setPersonStr(form.getPersonStr());
    form.setPersonOptionsHashMap(hashMap);
    So when screen come back, it has selected duplicated at bottom of the selection. Is there a way like normal html select behavior ?
    Thanks inadvance for any inputs.

    Murthy,
    Unfortunately, though a very reasonable requirement, there is no option for
    placing the default item.
    - john
    "Murthy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any"optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown usingthe optionsDataSource.
    As I am using the defaultValue, it is being added to the end of thedropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top ofthe
    list instead at the bottom of thge dropdown values. i.e., In the abovelist, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

  • HTML select tag on irpt page - update database from options

    Hi all,
    I have an irpt page with two selects.  It is the traditional move stuff from one select to the other, then set the order of the options in the configured select.  (Admin page to specify an ordered list of items)
    After the user gets the list how they want it, I would like to send the options to an MII transaction (iCommand?) to update the database table that backs this admin data.
    I can do a comma delimited string to hold the select tag's option values, but would like to know if there is a more elegant way!
    Ideas?
    Thanks,
    --Amy Smith
    --Haworth

    It sounds elegant already - a pretty simple javascript loop to build your csv and Param.1 to your iCommand applet query should work like a charm.
    If you need to run it to a TRX, then the StringListToXML action makes turning your csv into linkable properties a simple effort.

  • Html:select tag

    Hi all,
    In my jsp page i am using struts html:select tag,some contents are not fitting in the alloted size so i want to give horizontal scrolling for this select box,pls any body can tell me which property of select tag can be used,or any html tricks by which i can achive horizontal scrolling.examples will be help full.
    thanks,

    There aren't any tricks. This has nothing to do with Struts or JSP. It only has to to with HTML. The width is controlled by the size of the options or the size of the HTML area it has to display in. The latter if it's restricted otherwise by some table cell's width. I don't believe that I've ever seen a select box which has horizontol scrolling in any browser ever.

  • Dynamic changes of option tags in a Select tag using JavaScript

    I got this problem during my project.
    I used Select tag in HTML code.
    I have to change options related to Select tag, based on events.
    How can we change options dynamically using JavaScript?
    Please post solution to this problem..

    You know Sun Java Studio Enterprise forum isn�t a right place for JavaScript & HTML questions.
    BTW here is you can find a lot of js stuff: docs, samples, tutorials, etc:
    http://www.w3schools.com/js/default.asp

  • Problem in SELECT TAG using variables

    Hi all,
    I have a JSP page which updates the record for a user.Now there is a HTML select tag and when the user queries its data this SELECT tag will automaticaly select the user stored item in database automatically. It means the select tag will have a variable to select the options. Now how can i use variables in SELECT TAG. Please help needed.

    I'm not exactly sure what you are asking, but here goes.
    First, are you able to populate the select box with all the names... this is what it sounds like to me.
    Or are you not able to populate it nor select it.
    I use JSTL for all my jsps... so for me I would store a collection on the form and then iterate through it. (arrayList being my preference)
    look into using <c:forEach> or you could try <logic:iterate> which I've used before but it has been several years.
    here is an example block of code.
    Sorry this is going to be a bit convoluted because of what I'm doing with it..
    but I have an ArrayList that contains string arrays... position 0 being the value I want returned (like 1 through 10) and position 1 being the text representation..
    so it comes out like
    1 - Option 1
    2 - Option 2
    You will notice the if statement where I check to see if the localList[0] is equal to the view field. view would be your selected value.
    <SELECT name="view" size="7"
         multiple="multiple" class='OmniDlgLabel'>     
                   <c:if test="${sessionScope.PHI2Form.localList!=null}">
                        <c:forEach var="localList"
                             items="${sessionScope.PHI2Form.localList}" varStatus="status">
                             <OPTION value='<c:out value="${localList[0]}"/>'
                                       <c:if test="${sessionScope.PHI2Form.view==localList[0]}">SELECTED</c:if>>
                             <c:out value="${localList[0]}"/>-<c:out value="${localList[1]}" /></OPTION>
                        </c:forEach>
                   </c:if>          
    </SELECT></TD>There is an extra > that I cannot get rid of.. should be there after the
    <OPTION value='<c:out value="${localList[0]}"/>'

  • Problem with Select tag in iPad Safari

    The <select> tag which provides a drop-down list is giving me problems.
    I when I change the value, sometimes I get all sorts of spurious characters after the field and sometimes I get a truncated value.
    I need to put a span tag in front of it to get a marker for a required field as shown below. When that tag is not there, the problem does not occur. But I can't take it out as I this is a multiple platform app I have to get rendering properly on several platforms.
    Any ideas?
    <style type="text/css">
    .requiredBlock
    background-color:#CCCC00;
    bottom:1px;
    left:-4px;
    position:absolute;
    top:1px;
    width:3px;
    </style>
    <select id="myList" name="My List" size="1"
    ...

    I think this forum software is editing out some of the code I entered.
    There is supposed to be a span tag before the select list. Pretend that "spam" below is really "span".
    <style type="text/css">
    .requiredBlock
    background-color:#CCCC00;
    bottom:1px;
    left:-4px;
    position:absolute;
    top:1px;
    width:3px;
    </style>
    <spam class="requiredBlock" ></spam >
    <select id="myList" name="My List" size="1"
    ...

  • How to assign special characters to select tags

    Hi All,
    Just wondering if anyone knows the correct html to assign a
    special character like an ampersand or greater than/less than sign
    to a select tag?
    <select>
    <option value ="volvo & bmw">Misc Prestige
    Cars</option>
    <option value ="saab">Saab</option>
    <option value ="opel">Opel</option>
    <option value ="audi">Audi</option>
    </select>

    put & as &amp; > as &gt; and < as &lt;
    So it will be...
    <option value ="volvo &amp; bmw">Misc Prestige
    Cars</option>

Maybe you are looking for

  • External 3rd party USB DVD drive will not show up on my 2008 Macbook pro

    I have a the new Macbook pro, when I connect my Liteon USB DVD drive it does not show up my Macbook pro. The only DVD drive showing up is the one on my Macbook pro. How do I make the 2nd DVD drive show up. I just need to 2nd drive to tranfers data fr

  • Error While Runnig Calender Build and Run Automated Benefit cobol Process

    While Running Pay Calender Build and Automated Benefit cobol process i m getting a error Maximum number of set Run Cntl Record Loaded into Array. Array Limit Exceeded at pos 00028 Please any one can help me to get rid of this problem. Thanks, Amit As

  • Photo gallery is disjointed on initial view

    I'm working on a site where I added a img gallery. But when you first go to the page, it's disjointed. Once you use the gallery, it's fine. Why is the initial view disjointed? (published page here) Any help would be greatly appreciated. -Sophia

  • Poor image quality for uncompressed .jpg files

    Hello, I am importing in uncompressed .jpg files that I have made smaller in Photoshop, but didn't modify compression. This is the original format at they are stock photos. My project preferences for jpg files are set to 100. When I import them and p

  • 10.1.3.1 issue: not possible to use default revision endpoint

    My use case is the following. Messages are sent from back-end systems to the BPEL engine, which start processes in BPEL. Because I don't want the back-end systems to be aware of the version of the processes, I want to submit the request from the back