Images in table rows/columns

Hi I am new to this and seem to struggle on what I think
should be easy!
I have one client with many pictures I want to display 4
pictures in a row, repeating the rows until all the images for that
client are displayed.
Can anyone point me in the right direction with the correct
CF tags to use
Many thanks

You want to use the MOD attribute.
<!-- set how many rows across you want-->
<cfset ColumnCount=4>
<!-- set the physical path to your images-->
<cfset imagefolderpath = "D:\website\folder\images">
<!- query the folder for a list of images that are jpg -
edit for other file types if needed-->
<cfdirectory action="list" name="readfolder"
directory="#imagefolderpath#">
<cfquery dbtype="query" name="listimage">
SELECT Type, Name
FROM readfolder
WHERE Type = <cfqueryparam cfsqltype="cf_sql_varchar"
value="File">
AND
( Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
value="%.jpg">
OR Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
value="%.JPG">)
ORDER BY Name ASC
</cfquery>
<!-- output images -->
<body>
<table>
<tr>
<cfoutput query="listimage">
<cfif (listimage.CurrentRow mod ColumnCount) is 1>
</tr><tr>
</cfif>
<td>
<IMG src="../images/foldername/#name#">
</td>
</cfoutput>
</tr>
</table>
</body>
This is a basic proof of concept. You can style your images,
whatever
HTH

Similar Messages

  • Acrobat - Insert Table (Rows/Columns)

    I need to insert a table over a plan (architectural plan) so that we can indicate start and finish dates for work activities.  Is any one aware of a plug-in facility that will allow you to create a table (Rows/Columns) of varying quantity/size? Similar to draw table in MS Word.
    Thanks

    The only way I know to do this is to create the table in a word processor or such. You could do this for all of the tables you need. Create a new PDF of the tables. Then use the object touchup tool (or object select?) to copy the table from the table PDF to the drawing. You may have to look for where it is copied and move it to where needed. The paste seems to work differently in different versions of Acrobat.

  • Creating Tables (Rows & Columns)

    Hi, I am having trouble designing tables for an article of my
    university magazine publication.. I know freehand doesnt support
    tables so I converted my MSWORD file into PDF and then used the
    snapshot tool to get an image of those tables in freehand--but it
    isnt coming right. The image gets massively distorted.. I have used
    different website (vectormagic.com) to create vector images of the
    tables, but still no success. I surely cannot draw 140 rows and 6
    columns (thats easy) and then put numerical data in those spaces.
    it will take me ages.. is there anyone to ease my pain? plz answer
    [email protected]

    > Hi, I am having trouble designing tables for an article
    of my universi=
    ty
    > magazine publication.. I know freehand doesnt support
    tables so I =
    > converted my
    > MSWORD file into PDF and then used the snapshot tool to
    get an image o=
    f =
    > those
    > tables in freehand--but it isnt coming right. The image
    gets massively=
    > distorted.. I have used different website
    (vectormagic.com) to create =
    =
    > vector
    > images of the tables, but still no success. I surely
    cannot draw 140 =
    > rows and 6
    > columns (thats easy) and then put numerical data in
    those spaces. it =
    > will take
    > me ages.. is there anyone to ease my pain? plz answer =
    > [email protected]
    Is the magazine made with FreeHand too? Layout programs like
    InDesign ca=
    n =
    import pdf files as images of course InDesign also imports
    Word tables.
    Best way I can think of is to make the table layout in Word
    and then =
    export pdf files. Insead of making images pdf files can be
    saved as eps =
    =
    and imported to FreeHand as any other eps image. This
    requires Acrobat =
    Pro, though. FreeHand can import some pdf formats but most
    often not.
    If the tabels have black text ensure that eps file do not
    include rgb =
    colors (Pdf export settings, Press Quality for example).
    Wrong color spa=
    ce =
    will mess up the printing for sure because rgb black is
    usually converte=
    d =
    into cmyk color like C=3D94 M=3D82 Y=3D81 K=3D89.
    Jukka

  • How to put image in table selection column in advanced table

    i need to put some image(not a picture, its just a traingalur shape image with different colour which indicates some messages to the user if suppose user adds a data which is duplicate with other row or he may copy existing row and dont change it.) can any one give me an idea of how to achieve this

    Are you looking for image in selection column or as a separate column?
    --Shiv                                                                                                                                                                               

  • SetActionListener to access table row column

    I am using JDev 11.1.1.6.
    I am using a Panel Header Form. Within the form I have a menu and a read only table.
    The able has several columns and several rows of data. The menu has a command link in which I need to pass some parameters via the request scope to the bounded task flow that I am calling. Within the command link I am currently setting the requestScope parameters with a setActionListener. The from parameters are currently hardcoded and posted to the cooresponding requestScope parameters. Based on the hard coded parameters that I am passing the called task flow and page are rendering correctly.
    I would like to dynamically pass properties from one of the columns for a given selected row in the table. Because the menu with the command link is not embedded within the table, I can't access the "row" variable from the table.
    The question I have is how can I access a column value for a given row in the table when using the setActionListener within my menu. I have also read that I might want to utilize setPropertyListener instead, however I seem to have the same issue accessing the row data.

    This helped quite a bit, but I still have 1 more question.
    Currently my action on my commandMenuItem is the action associated with my Control Flow Case call. The example you provided has the action calling the method within my backing bean. How would I be able to execute both the call to the backing bean which will set my requestScope variable. The current method I have within the backing bean is as follows:
    public void m2_attributeChangeListener(AttributeChangeEvent attributeChangeEvent) {
    // Add event code here...
    // For learning purposes - show Select One button clicked
    System.out.println("Navigate to page link clicked");
    // Get bindings associated with the current scope, then access the one that we have assigned to our table - e.g. OpenSupportItemsIterator
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("OpenSupportItemsIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject voTableData = dcItteratorBindings.getViewObject();
    // Get selected row
    Row rowSelected = voTableData.getCurrentRow();
    //print
    System.out.println("DC Number" + rowSelected.getAttribute("DcNum"));
    ADFUtil.setEL("#{requestScope.DcNumber}", rowSelected.getAttribute("DcNum"));
    }

  • Insert an Image in Table's column

    Hello again Gurus!
    We're trying to insert an image in a table column like in answers analysis. Our issue is that we need to use some images based on conditional formatting, for example, an arrow that describes project trends.
    It can be done in Publisher's reports? Any workaround to that issue?
    Regards,
    Ariel

    With BI Publisher, you create a data model (that includes the source query) for generating the data and you use the xml generated to develop RTF templates and you would include the code (as suggested in my previous thread) in the RTF templates.
    Please use the Report Designer's guide to familiarize yourself with the process of creating the BI Publisher Report: http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/toc.htm
    Hope that helps.
    Thanks,
    Bipuser

  • Dynamically adjust table row height based on data in column

    Hi all,
    I'm using JDeveloper 11.1.1.5.0 and have a requirement for a table to adjust the height of its rows depending on the data in the columns. One of the columns in the table is a rich text description field and I have the 'rows' property set to 13. This field could have twenty lines of text/images or just one. The users would like the page to show all twenty lines of text without having to scroll but the table has the same height for all the rows (that I set to 13) and provides a scroll bar when the data exceeds this size. My users do not like to scroll, and want the height of each row to be determined by the data in it. I looked at a few options and also did a search online, but was unable to find anything to fulfill this requirement. Do you know of how I could change the height of each row in the table so that it fits the data that it holds?
    I have an example of my table at: <b>Table with Set Row Height</b>
    As you see, the picture has to be scrolled so that the whole picture is visible. The user requirement is to adjust the row height to show the full picture. Ideally the next two rows would shrink, but that would be a nice to have.
    Thanks in advance for any pointers or help.

    Hi Frank,
    Thank you for replying to my question, I truly appreciate your help.
    I tried to use the autoHeightRows to adjust the height of my rows but was unsuccessful. If I understand the autoHeightRows property correctly, this is used for setting the height of the whole table. If this is incorrect and it can be used for setting the height of individual rows in the table, please correct me. I have the 'Rows' property of the richTextEditor set to 13 and this is the height that I would like to make dynamic based on the data.
    My users requirement is for the height to be big enough for the data in each row of the table (the table has a description column and the height of each row should be determined by the data contained in it). I updated my <u><b>Screen Shot</b></u> to show the desired layout and what is currently being generated though ADF (http://www.flickr.com/photos/87583386@N05/) .
    I have three rows in the example (in actuality these are around 50) and the text in each row can vary. The users would like to see the full text/image in each row without having to scroll each row. Currently my table is within Panel Box, which is inside a PanelGroupLayout-Scroll which is in a PanelStretchLayout. I tried to put the table by itself with the autoHeightRow modifications you suggested but thsi did not help either. I am using JDeveloper 11.1.1.6.
    Is this possible with an ADF Table? If it is, is the autoHeight property the only one that I am setting incorrectly? If not, is there another component I can use to get the desired functionality? My users are very strict about this requirement and will not accept the application without this.
    Thanks,

  • Set Table Row Background image

    Hi all,
    I'd like to set a Table row background image, but I only find a way to set a background image for each column, is there any way to set an image  as background for a whole row?

    Hi Pakojones,
    Based on my test, it is not support to make the image tile in a row. The BackgroundRepeat values of tablix is Repeat, RepeatX, RepeatY, or Clip. In SSRS, just chart BackgroundRepeat can be set to Fit.
    Reference: http://technet.microsoft.com/en-us/library/dd239334.aspx
    In SSRS, we can put tablix in a rectangle, then add background image for the rectangle. We can tile the image over the whole tablix. If we want to make the image tile in a row, we can put the single row in a rectangle to work around it. In this situation,
    we have to seamless paste the tablix in the end.
    Alternatively, since the issue is by design, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable
    for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang 
    Alisa Tang
    TechNet Community Support

  • How to get the selected rows & columns in the table?

    hi everybody,
                         In my application the table is kept inside the event structure.I select the cells  in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?

    Hello,
    You can fill selected values of the table by writing to it or the corresponding property using a property node - the table is just a 2D array of strings.  I think for your "disable" question you are referring to the shortcut menu (when you right click).  If you are using LabVIEW 8.x, you can edit or disable that shortcut menu - just right click on your table at edit time and choose Advanced >> Run-Time Shortcut Menu.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Button in a table row to get value of a column.

    Hello,
    I am following [this thread|Re: Problem with getting table element's table row] to get the value of a column up on button click (the button is in the same row).
    Here is the code in wdDoModify ()
    if (firstTime)
              IWDButton button = (IWDButton) view.getElement("TableCellEditor");
              button.mappingOfOnAction().addSourceMapping("ScheduledCourses", "row");
    Here is the code in the button action()
    public void onActionRegisterStudent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.gfc.hr.training.wdp.IPrivateCourseRegistrationCompView.IScheduledCoursesElement row )
        //@@begin onActionRegisterStudent(ServerEvent)
         wdContext.nodeScheduledCourses().setLeadSelection(row.index());
        //@@end
    The context node for the table is "ScheduledCourses"
    When I click the button, I get an exception....
    com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter ScheduledCourses not found

    Hi Srinivas,
    Assuming you have a node 'ScheduledCourses' with two attributes 'courseId' and 'courseName' and you want to display the 'courseName' on click of the button placed in a particular row of the table, please try the following (Most of them you have already done, if i am not wrong. I am listing the entire steps so that you can check whether you have missed any thing). 
    1. Place a Table UI element and bind the datatsource property to the node 'ScheduledCourses'
    2. Insert a new column in the table and for the column insert a table cell editor and select 'Button' from the list.
    3. select the button(table cell editor) and create an action for the button. While creating an action create a parameter with name 'courseElement' and type as IPrivate<ViewName>.IScheduledCoursesElement (Interface representing element of ScheduledCourses node)
    3. In wdDoModifyView() write the following code
        if(firstTime){
             IWDButton button=(IWDButton)view.getElement("Button1");
             button.mappingOfOnAction().addSourceMapping("nodeElement","courseElement");
    Here "Button1" is the id of the button inserted in the table column. The string "nodeElement" should be written as such and "courseElement" is the name of the parameter which we have created for the action of the button.
    4. Now in the action created for the button try to print the courseName as shown
    wdComponentAPI.getMessageManager().reportSuccess(courseElement.getCourseName());
    Regards,
    Shabeer

  • How to insert a pdf or jpeg image into a blob column of a table

    How to insert a pdf or jpeg image into a blob column of a table

    Hi,
    Try This
    Loading an image into a BLOB column and displaying it via OAS
    The steps are as follows:
    Step 1.
    Create a table to store the blobs:
    create table blobs
    ( id varchar2(255),
    blob_col blob
    Step 2.
    Create a logical directory in the database to the physical file system:
    create or replace directory MY_FILES as 'c:\images';
    Step 3.
    Create a procedure to load the blobs from the file system using the logical
    directory. The gif "aria.gif" must exist in c:\images.
    create or replace procedure insert_img as
    f_lob bfile;
    b_lob blob;
    begin
    insert into blobs values ( 'MyGif', empty_blob() )
    return blob_col into b_lob;
    f_lob := bfilename( 'MY_FILES', 'aria.gif' );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    Step 4.
    Create a procedure that is called via Oracle Application Server to display the
    image.
    create or replace procedure get_img as
    vblob blob;
    buffer raw(32000);
    buffer_size integer := 32000;
    offset integer := 1;
    length number;
    begin
    owa_util.mime_header('image/gif');
    select blob_col into vblob from blobs where id = 'MyGif';
    length := dbms_lob.getlength(vblob);
    while offset < length loop
    dbms_lob.read(vblob, buffer_size, offset, buffer);
    htp.prn(utl_raw.cast_to_varchar2(buffer));
    offset := offset + buffer_size;
    end loop;
    exception
    when others then
    htp.p(sqlerrm);
    end;
    Step 5.
    Use the PL/SQL cartridge to call the get_img procedure
    OR
    Create that procedure as a function and invoke it within your PL/SQL code to
    place the images appropriately on your HTML page via the PL/SQL toolkit.
    from a html form
    1. Create an HTML form where the image field will be <input type="file">. You also
    need the file MIME type .
    2. Create a procedure receiving the form parameters. The file field will be a Varchar2
    parameter, because you receive the image path not the image itself.
    3. Insert the image file into table using "Create directory NAME as IMAGE_PATH" and
    then use "Insert into TABLE (consecutive, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval,
    EMPTY_BLOB(), 'GIF' or 'JPEG') returning BLOB_OBJECT, consecutive into variable_blob,
    variable_consecutive.
    4. Load the file into table using:
    dbms_lob.loadfromfile(variable_blob, variable_file_name, dbms_lob.getlength(variable_file_name));
    dbms_lob.fileclose(variable_file_name);
    commit.
    Regards,
    Simma........

  • Where can I find the function "mark a line" in a table (not a row but the line in-between the rows/columns)

    In the old version of Numbers (09) as well as in the same Pages version I could choose to allow to mark single lines inbetween rows/columns in order to choose to create different types of lines to mark separations in different sections or just single cells within a table, how do I do that in the recent upgrade?!!! I´m going mad over here!!!!!

    Hi A-S,
    Do you mean Cell Borders in the Format Panel?
    To create this?
    Or if you want borders under only A5 and C5 (but not B5) command click on those cells to select them before applying the borders in Format Panel
    Regards,
    Ian.

  • How can I write into a table cell (row, column are given) in a databae?

    How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion? 
    Solved!
    Go to Solution.

    When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
    I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.

  • Applying table scroll bar for only table rows with table columns fixed.

    hi oa gurus,
    i had implemented table scroll bars using oarawtextbean , there is no problem in vertical and horizontal scroll bar working its working fine. but the requirement is i need to scroll only the table rows with table columns fixed. so , how to achieve the table scroll for only table datas neglecting table headers.
    the code for vertical and horizontal bars scroll is like this,
    OARawTextBean ors = (OARawTextBean)webBean.findChildRecursive("raw1");
    ors.setText(div id=tabledivid style=height:500px;width:100%; overflow:auto>);
    OARawTextBean ore = (OARawTextBean)webBean.findChildRecursive("raw2");
    ore.setText("</div>");
    where raw1 and raw2 are rawtextbean created above and below of the table . but i dont know hoow to apply this only for table rows neglecting table columns , can anybody give any ideas.
    pelase this is very urgent , can u help me in this regards
    thanks
    Edited by: user630121 on Sep 29, 2008 5:17 AM
    Edited by: user630121 on Sep 29, 2008 5:18 AM

    hi,
    I have a similar task to do... Only to apply scrollbar at the table level.
    I tried using the above mentioned but I am facing Null Pointer Exception..
    Please explain about raw1 and raw2
    Rahul

  • Display images in rows & columns using dataTable in JSF 2.0, netbeans 6.9.1

    Hi,
    I have to display only images on a web page in JSF2.0 in Netbeans. I am using datatable and column to do so. But there is one problem.
    All images are display only in single column(i.e. vertically). I want to display in rows and columns not only column.
    e.g. One row will have atleast 3 images and more rows like this.
    Which attribute should i use of datatable? or should i use some other tag?
    My code is:
    <h:dataTable var="images"
    value="#{jsfMBean.allImages}"
    rules="none"
    cellpadding="20"
    border="0" >
    <h:column>
    <h:graphicImage value="faces/WEB-INF/upload/#{images.picid}" width="300px" height="100px" />
    </h:column>
    </h:dataTable>
    Thanks.
    NetBeans 6.9.1
    JSF 2.0 with facelets
    glassfish 3.0
    Enterprise java beans
    PrimeFaces 3.0

    I believe you are looking for the panelgrid, not the datatable.
    Note that there are a few useful websites online that list the available JSF tags plus their properties, such as these:
    http://www.horstmann.com/corejsf/jsf-tags.html
    http://www.exadel.com/web/portal/jsftags-guide

Maybe you are looking for

  • What is the difference between variable and Define

    WHAT IS THE DIFFERENCE BETWEEN these different declarations when it is done using the keyword "variable" and "define" and both of these are done OUTSIDE "DECLARE" VARIABLE g_monthly_sal NUMBER DEFINE p_annual_sal =5000 -- I understand that p_annual_s

  • Stock upload not possible thru MB1C.

    Hi Sap Gurus, Please help me to solve issue in delivery. I can't upload stock through MB1C. It shows the follwing massage......*Account Determination for entry INT GBB_BSA3100 not possible Massage no--M8147 Digonisys-- The system didn't find an accou

  • Size and resolution of pics

    Just set up a new MX892. The photo quality has a hazy pale look to it when printed on reg. 20 lb paper. (the older printer, MX7600, did a better job.) When I print pics through the PhotoPrint EX, the quality is better but the pics are printed in 1/2

  • Quicktime Plugin/Firefox stops playing mp3 after a few seconds

    We've run into a problem with Quicktime Player in Firefox (Win XP) only playing the first few seconds of an mp3. It doesn't happen with all mp3s, but out of the five we've tested four showed this problem... only one of the five played through to the

  • How to install a hp printer to my dell computing with out a disk?

    i want to install my printer hp deskjet 1000 to my dell desk top computerbut i dont have a disk help