Query to bulleted list

I have a query that returns 31 results.  The db is set up with a file name, url, membership, submembership.  I want to create a bulleted list from the 31 records in the following manner
1
item1
item2
2
item1
item2
3
item1
item2
subitem1
subitem2
4
item1
item2
The question is ... the best way to do this.  Is it easier to loop through the query and crete an array for each item?    Thanks.

Just to clarify on something - using the group attribute will loop once for each unique value of that field (assuming your data is ordered by that field).  using a second <cfoutput> block INSIDE of the <cfoutput group=""> tags will cause CF to loop over each record inside of that subgroup:
<cfoutput query="healthyliving" group="membership">
#membership#
<ul>
     <cfoutput>
          <li>#title#</li>
     </cfoutput>
</ul>
</cfoutput>
Should get you where you need to go.  As Dan mentioned you can use nested groupings, but for your example the above syntax should be sufficient.
Hope that helps,
- Michael
*Updated - added your variables to the example

Similar Messages

  • Bulleted List of Hyperlinks

    I can't figure out how to output a bulleted list of hyperlinks based on data returned from a query.
    Here is what I want to do:
    <c:forEach items="${q_subjects.rows}" var="row">
        <li>
            <a href="browse.jsp?sc=<c:out  value="${row.code}"/>">
                <c:out value="${row.short_desc}" />
            </a>
        </li>
    </c:forEach>Any suggestions would be greatly appreciated!

    HI JenRRoland,
    You can output a list of hyperlinks using a h:dataTable.
    Just drag a dataTable to the page from the palette, right click the table and choose Table Layout.
    In the table layout clear out all except one column, and make sure this is of type outputText.
    Then drag a commandLink or outputLink to the page from the palette. Switch to Source view, and replace the h:outputText in the column (NOT the one in the facet name="header") with the commandLink/outputLink. Be sure to remove the style="" tag from the link component.
    Apply whatever value binding expression you want and that's it, it'll display a list of hyperLinks. You can remove the header and footer styles using the column classes attribute. (see http://blogs.sun.com/tor)
    Ultimately you'll get something like this:
    <h:dataTable binding="#{ProjectDetails.dataTable1}" headerClass="list-header" id="dataTable1"                                    rowClasses="list-row-even,list-row-odd" value="#{ProjectDetails.patents}" var="patent" width="864">
    <h:column binding="#{ProjectDetails.column2}" id="column2">
    <h:commandLink action="ClaimListLong" actionListener="#{ProjectDetails.processAction}"                                            binding="#{ProjectDetails.laSelectPatent}" id="laSelectPatent" title="#{patent.index}">
    <h:outputText binding="#{ProjectDetails.latSelectPatent}" id="latSelectPatent" value="#{patent.formattedPatentNumber}"/>
    </h:commandLink>
    <f:facet name="header">
    <h:outputText binding="#{ProjectDetails.outputText3}" id="outputText3" value="Patent#"/>
    </f:facet>
    </h:column>
    <h:column binding="#{ProjectDetails.column5}" id="column5">
    <h:outputLink binding="#{ProjectDetails.hyperlink1}" id="hyperlink1" value="ProjectPatentRankings.jsp?linkID=#{patent.index}">
    <h:outputText binding="#{ProjectDetails.hyperlink1Text}" id="hyperlink1Text" value="View/Change"/>
    </h:outputLink>
    <f:facet name="header">
    <h:outputText binding="#{ProjectDetails.outputText9}" id="outputText9" value="Rankings"/>
    </f:facet>
    </h:column>
    </h:dataTable>There should be a way in Creator to do this automatically.. I hope they add one...

  • OA Region as Bullet list which show messages

    hi gurus,
    i have a requirement where i have to show OA Search Region as Bullet List(shows messages). the RN is based on a parameter(party name) i.e., showing the Bullet List Search RN based on each party name. here each message is a
    options we have to decide
    query based result
    Pl/sql procedure
    creating view
    in future if i want to again add the messages in Region .it should be easy to add .....
    my question is which approach to go in the above 3 options here i have to come up with the design
    requirement can be
    OA region where we can display information pulled from various tables. This region need to take customer as input parameter and gather information based on that customer and display it in the region. I will give more details on where exactly this information is available. But please think about the design and approach on how you would like to address this. This region will be added to create SR page and update SR page regions.
    1. Need ability to let agent know the call count(no of service requests) compared to the call pack max allowed(no of service tickets purchased).
    2. Display “calls expired” status ( used up all the calls purchased in call packs), and ISR count in Agent dashboard.
    3. Sample ISR messages could be ‘Contract Exceeded, no ISR used’ or ‘Contract Exceeded, ISR used on xyz date’
    4. Special instructions regarding the contract (whether to process regardless of whether the site exists, or always enter manually created sites as ISRs, etc.) will be captured for each contract. This will be displayed to the agent/engineer while entering SRs.
    Edited by: Naveenapps on Sep 23, 2009 4:17 AM

    Hi Naveen,
    Always VO should be the first choice. You can also use mix of these approaches also.
    First be clear about how in future further messages can be added, if it is clear we can decide the approach to be followed.
    Regards,
    Reetesh Sharma

  • The bullet list, numbered list and the normal text is not converting when I am converting from RH 9 to MS Word 2010

    Hi all,
    Greetings for the day
    I am created a new CSS in Robohelp 9. I have also created a new template in Word 2010. The style sets for different information elements like (Heading, bullets, body text, ) are more or less same between the CSS and the new templates. I am also able to map the .css styles to Word template when I am converting from RH to Word as I am getting the necessary option in the drop-down list.
    However, when the output is generated, the bullet, the numbered list and the body text is not converting at all. The body text works sometimes. However, the numbered list and bullet list is coming out as images.
    If anybody knows the solution, I can share the .css and Word template.
    Thanks in advance.
    Regards,
    Parag Deb

    Create a new project with two or three topics containing lists of both types. Generate a printed output that shows the problem. Then zip it up and send it to me. See the Contact page on my site for instructions.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Bullets & lists (Korean)

    When I try to add an additional item in Korean in the "Bullets & Lists", the bullet symbol disappears.
    Is there any possible solution for this problem?

    If you put the cursor in a text box, you have those options; they represent a kind of formatting that isn't available in a cell of a table.
    You can type a bullet into a cell manually, of course.

  • Bullets & Lists disabled

    Does anyone know how to enable Bullets & Lists in Numbers 3.1? When I go to the "Inspector", i.e., Format --> Text, all the control components within the Bullets and Lists section are disabled (i.e., grayed-out).  Does anyone know a way to enable them?
    -Thanks

    If you put the cursor in a text box, you have those options; they represent a kind of formatting that isn't available in a cell of a table.
    You can type a bullet into a cell manually, of course.

  • Creating Custom Bullets & Lists in Pages 5.0

    I cannot figure out how to create a custom numbered list in Pages 5.0. I had custom LISTS on my 4.3 Docs that did not migrate to 5.0. How do I create duplicate LIST STYLE in 5.0?
    Thank you for your help.

    On the format menu on the right side, there is the font section, alignment section, spacing section, and bullets & lists section. Next to the bullets & lists section is a drop-down menu of preset lists. At the top-right of this menu is a plus sign. Clicking on this will allow you to create a new list in that menu and title it. From there, you will have to manually create your custom list change the type of bullets (numbers, roman numerals, letters, etc.) -- you might need to click on the disclosure triangle to the left of the bullets & lists title to see this part. When you finish with your custom list, there will be an asterik next to the title of the list, and if you click on that title, the drop-down menu will open up again and you can hit "Update" next to your list name. This should save the style for that custom list. Here is the most important part: When you have finished making this list, make sure you save the document as a template and select that template if you ever want to use that list. I have found that a custom list in a document (saved or deleted) that is not made into a template does not carry over into other documents. Setting up this custom list may take a while, but hopefully it will work and make things easier. I hope this makes sense, and let me know if you cannot understand something. Hopefully this picture will help too.

  • Bulleted Lists in Text Boxes?

    Hi all,
    Apologies if this has been asked before - I've searched but to no avail.
    Can one, in a text document, have a bulleted list in a text box? I've tried, but when the text to be bulleted in the text box is selected, the toolbar and the 'Format' drop-down menu changes and the 'Bullets On/Off' button is not available.
    I've tried customising the toolbars (which I feel I shouldn't have to do anyway), but this doesn't work. I've tried to cut and paste in bulletted points from normal text (which I feel I shouldn't have to do either) but this doesn't work either.
    Any suggestions, or is this a bug/feature?
    With thanks,
    Sean.

    If you mean the text function in the drawing toolbar, it isn't possible.
    You should use frames.

  • How can I create a bulleted list where each line builds in independently?

    I would like to make a bulleted list in my video where each bullet fades in as the person says them in the video (it is not at a constant rate). So far the only way I've accomplished this is to stack 6 or 7 of the 'Fade' title generators on top of eachother and adjust the length of them to match the audio. It seems like there must be a better way to do this as this solution is quite combersum when trying to align all the bullets (wish there was a bullet format in the text formatting box) and it uses a lot of computing power to make adjustments on so many generators. Thanks.

    I am sure there is a way to do this in FCP or Motion. However, what I do is to build my bulleted list in Keynote against a green background. Set up the Keynote presentation as 1920x1080.
    I then use it in FCP or iMovie as a greenscreen effect.
    After creating the bullets in Keynote, I export them as a QuickTIme Movie with a timed advance. I then import the QuickTime movie and edit it as I need it.
    Keynote has dozens of text effects and builds, including the fade that you need.
    Here is a quick and dirty sample.

  • How do I format bullet lists in the Notes tab?

    I have a transcript of the audio narration in the Notes section of my source PowerPoint slides. When I publish with Adobe Presenter, these transcripts appear in the Notes tab in the published course. However, when I publish my course, any bullet lists that I may have formatted in the Notes view in PowerPoint, do not format correctly in the published course. The text of the bullets is there, but the bullet formatting is missing.
    I am using Adobe Presenter 8, PowerPoint 2007, and I'm running on Windows 7 Professional. I have tried saving my PowerPoint file in the PPTX format and in the older PPT format. Neither retains the bullet-list formatting in the published course.
    Is there a trick to getting lists to format correctly in the Notes tab?
        -Ray

    Hello,
    Can you please email us the sample of your presentation (or the entire presentation) which contains those slide notes.
    We will check it on our systems and get back to you with a workaround/solution.
    Please email the presentation at [email protected]
    Regards,
    mukul

  • Impact of selecting "Removing Query from Selection List" in 2 channels.

    HI All ,
    I have customized a query in one channel (My Agreements and Contract Documents query in Master Agreements List channel) and have removed the standard query from the channel by checking the  "Remove Query from Selection List" and introduced my custom query in that query group .
    But  it resulted in break in chain for  "Master Agreements" link in "Contracts To Do List" channel as the link was pointing to standard  "My Agreements and Contract Documents" query and is displaying "The query can not be executed. Contact your system administrator" when ever I click on that.
    Any pointers on how to overcome above scenario wud be gr8!
    Regards,
    Uday

    Hi Uday,
    In order for To Do List channel to work, the query definition should be in the Master Agreement List query group. Do you still want the standard query in the To Do List? If so, you would have to leave it on the Query Group as To Do list is pointing to it. May be change the display name of the query so you can differentiate between the 2 queries. The other option is change the To Do channel to point to the custom query.
    Regards,
    Vikram

  • Problem with a query of a list of values

    Hi,
    In BO XI 3.0, when I edit the query of the list of values of one information object, in the results objects panel, I've 2 objects : the Information object and a warning objects (the symbol is a warning sign with a strange name like PK4041) !
    When I edit the SQL of the list of values, I can see :
    SELECT DISTINCT
      MASS_REFR_HIER_ORGA_ANLS.LIBL_CENT_COUT,
      MASS_REFR_HIER_ORGA_ANLS.COD_CENT_COUT
    FROM
      MASS_REFR_HIER_ORGA_ANLS
    I don't understand why the SQL of the Dimension Object appear in the generated SQL query.
    When I delete the warning objects, the SQL is the same.
    Some information objects are working well as usual, others have the same behavior.
    Any ideas?

    Hi,
    I have heard something similar to your issue in the past. I think it was identified as a bug in BO XIR2 base release.
    Try deleting the object and recreate the object again from scratch.
    Note: Try to give it a different name in your test.
    I know this is not a solution, however, it seems as a buggy behavior for me in XI 3.0 as well.
    Thanks,
    Sheeba

  • Cannot figure out why my bullet lists aren't correctly aligned

    Hello,
    I hope someone can help me on this because I'm totally lost. I've spend hours trying to figure out where the problem comes from, reading posts on-line, searching documentation, etc. and I'm getting nowhere. I'm struggling with bulleted lists which just won't aligned correctly with text paragraphs. I would expect the bullet to be horizontally aligned with previous/next paragraphs and the list text to be indented so that the bullet stands out to the left. Kind of almost the default one gets when creating a simple <ul> list without any formatting.
    This problem can be seen here. The bullets are outside their div. I've tried using "list-type-position: inside" on <ul> and/or <li>—this gets the bullets back inside the div but then the text isn't properly indented with respect to the bullet.
    I assume I've got some CSS precedence problem, but I can't find out where it is. I've validated my code with Dreamweaver CS4 + browser compatibility check. There are some issues left which I'm working on, but as far as I understand they shouldn't be related to this list problem. The only other parts where I'm using unordered lists are the top and side menus, but I've used explicit descendant selectors (I think) to avoid spreading my styling to other elements. Where am I wrong??
    I'm still new to HTML/CSS and learning, so be tolerant with my mistakes! I'm aware that I still have got tons to learn.
    Emilie

    Have you tried giving your ul a left margin with css,
    e.g.
    ul {
    margin-left: 1em;
    You can also use negative values to move it the other way.
    HTH

  • Want to change a bulleted list to a checkbox list -- HELP

    Why is this so hard? I have a list of software product features, I want the list to have checkboxes rather than bullets so readers will feel urge to check off features when comparing software to other solutions. DOESNT HAVE TO BE INTERACTIVE. Just a visual. Just a G&*$^#*!)*%! checkbox. I have spent a half hour trying to find a solution to this SIMPLE F9823769 thing. Why so difficult? Wasting of time ion simple tasks not happy. On CC (online) version 9, not on a Mac so don't assume it. Thanks for help

    Or, Alt click the the Bulleted List icon, List Type/Bullets, Bullet Character/Add and look for the checkbox. Then you'll have it as an option to apply when need it.

  • Why are spaces missing at end of wrapped lines in bulleted lists

    Hi -
    Acrobat 11.0.10, Word 2013, Windows 7 ... Sometimes tagged PDFs don't have spaces at the end of wrapping lines in bulleted lists, throughout the document. In text edit mode the cursor movement indicates no space exists. Selecting with text touch-up shows no space. In accessible text the last word on line runs into first word on next line.  JAWS mis-pronounces those words as if they are one word.  PAC preview also shows the words running together. 
    Adding a space in text edit mode works for a few minutes, but when file is saved & reopened spaces are gone, even if, immediately after adding the spaces, I select the block of LBody text with text touch-up and re-tag it and initially spaces appear to have been added.
    Is starting to happen on a routine basis, different source files, different people/computers generating the PDFs, multiple computer reboots, Acrobat repair run, MS Office repair run. But not consistent ... e.g., if someone generated PDF with no spaces at end, someone else can generate from same source and spaces are present.
    Any ideas?
    Thanks

    Thanks 'C' student, nice to know it's not just us - "misery loves company" and all that.
    So far besides your reply there's deafening silence.
    Come on, folks, don't any of you experts have a solution for this? Or at least an inkling of an idea what may be causing this? It's starting to happen all the time now, becoming a major problem.  We may have to start by getting Acrobat to self-tag rather than starting with the tags generated from the source programs, but that adds time and effort because Acrobat's tags for our often complex documents are laughable and have, ironically, such poor syntax.
    Is there a way to get a discussion seen by more people?

Maybe you are looking for

  • Copy document step doesn't copy a column of a document library

    I have created a site workflow to run when a document is uploaded to a specific document library(A). In the workflow it copies the document which is uploaded to another document library. Destination document library is decided by a column in the "A"

  • Boookmarks folders do not display correctly from toolbar

    The folders in my bookmarks toolbar only display as a small white square when I click on them. Even when I try to display them from the Bookmarks menu. They are present because I can right click and choose "open all in tabs" and they will all open bu

  • Found dead shared server

    every day i found this message in the db log : "Tue Mar 29 22:21:08 2005 found dead shared server 'S000', pid = (10, 5) Wed Mar 30 13:51:58 2005 found dead shared server 'S000', pid = (10, 6)" what do it means ?? it is danger for the databse ???

  • Trouble importing photos to Mac

    When I connected my iPhone to my Mac, I got an error message saying that I could not import some of my photos. It said, "The file is in an unrecognized format."  I looked at the file name... it is IMG_0364.JPG.  I thought that was what all of my othe

  • Couldnt install informatica 8.1.1 powercenter-need help

    hi, i have installed informatica8.1.1 powecenter client and when i tried to install informatica powercenter reports its asking to enter server url.. By default its given as "http://pcname:port/instance_name". i gave my pc name and port as "6001" and