Display 4 items in a row using cfloop and divs

Hi
I have done this quite successfully using tables.
What i have is a catalogue.
It has 12 items in it.
I want to display 4 on a row.
I am using divs
Here is what 1 row looks like in HTML:
<div class="span-18 last">
    <hr /> 
    <div class="span-1"> </div> 
    <div class="span-4">
          A
    </div>   
    <div class="span-4">
         B
    </div>   
    <div class="span-4">
         C
    </div>
    <div class="span-4">
         D
    </div>
       <div class="span-1 last"> </div>
</div>
How do u use CFLOOP and DIVS to show 4 items on a row, then break to the next 4.
Assistance would fantastic.
Regards
Flash

Use something like this:
<cfif index mod 4 eq 0></cfif>
To know when you need to create the next row.

Similar Messages

  • What does "item XUL is in use" mean and how do I turn it off?

    It trying to install upgrade, I am asked to replace older item with newer one and I click Replace. Then I get a message "The operations can't be completed because the item "XUL" is in use.
    What does that mean and how do I proceed?

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Displaying content item -(IContentItem) in portlet using Content Server API

    Hi,
    I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
    So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
    Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

    Hi Anand,
    I am facing the same problem on IBM WebSphere Portal 5.1.
    Did you find a solution to your problem ?
    Thanks
    Ganesh

  • FF 3.6 not displaying all items in a table but IE and Chrome work fine.

    One of the pages on a web site I created uses a large table to display a list of manufacturers. When you view the page in Firefox some of the table items do not appear. However, in Internet Explorer and Chrome the table displays all of the items as it should.
    This is a link to the page: http://simcona.com/commodities.html

    I have this same problem. I can't remember if it started with when I upgraded to Snow Leopard, or when I chose to upgrade to a different version other than 3.6 (although I think it happened with 3.6 as well). I doubt it's any addons, because most of them were disabled when I upgraded to 6, 7, 8. One of them crashed multiple times a day, so I went back to a earlier release. I'm currently using 8.0.1, and Firefox was consistently using 1.3 GB of real memory even after quitting (I usually had to force quit because it would literally minutes for it to quit, maybe never quitting- I left it for 15 minutes once... still hadn't quit). The Flash plug-in alone would sometimes use 500 MB of real memory. After almost 2 years of this I can't deal with it anymore. I love FF and have used it from the beginning...
    But when I turned off every addon I have (except for Tree Style Tabs, which is possibly the only thing keeping me from fully switching), and restart FF, FF is using 730 MB of RAM (well it's still climbing 740, now) and 10-20% of CPU, while the Flash plugin is using 15% of CPU. I also noticed that once I closed Gmail, my RAM usage dropped from 1.3 GB to 850 MB. It could've been something else, but that's the main thing I can think of that I did different.
    When Chrome is using only 120 GB, 0.5-2% CPU usage, has been open for days, with 3 windows and multiple tabs in each... (Chrome's Flash plugin is only using 4% CPU by the way)... something is wrong with FF. I love FF, but I've grown to hate it. And this is coming from a guy who really, really, REALLY doesn't want to switch. In fact I still use FF, but am slowly weening myself off it it. It's just not worth the slow down from RAM usage and heat from my CPU (FF often spikes to near 100% usage) anymore...

  • How to use cfloop and a table together

    let us say that I had a query that would return the first
    name of an ever changing number of people. I would then like to
    display each name in its own <td> at five <td> per row,
    then start the next row. keeping in mind that sometimes I might
    have less than 5 names and most of the time more than 5 with no
    maximum. Can you give me some ideas on how to handle my cfloop
    creating the needed <td>#name#</td>.

    This finishes Ian's code
    <tr>
    <cfloop query="nameQry">
    <td>#firstName#</td>
    <cfif currentrow is recordcount>
    </tr>
    <cfesleif nameQry.currentRow MOD 5 EQ 0>
    </tr><tr>
    </cfif>
    </cfloop>
    </tr>
    I believe all that will do is add an extra </tr> tag to
    the last row.
    The last closing </tr> is handled with the one that
    comes after the loop
    block.
    The issue I was pointing out was that, if you have 12
    records, my code
    will create three rows but the last row will only have two
    cells in it.
    Not five like the others. This may not generate a desirable
    display.
    If one wanted 5 cells in the list row, three of them empty,
    further
    logic will be required.

  • Okay to use tables and DIVs?

    I am new to web design and although I have spent countless
    hours trying to grasp CSS I am still beginning. Can I use some
    tables to layout my page and some DIVs? For instance, I have a
    #wrapper to center the site on the screen, I have a DIV that
    contains my header and footer. I also used table cells to add my
    nav bar, text and a few others things. Is this okay while I'm still
    learning?

    > I tried setting it in a table, the appearance varied
    greatly in different
    > browsers so I gave up.
    This is only a reflection of your skill, not the ability of
    tables to
    contain a stable layout.
    > I have tried setting the page using apdivs
    Yes - that's definitely a mistake.
    > Should I be laying out the page differently? Using a
    combination of divs /
    > apdivs / tables?
    http://apptools.com/examples/pagelayout101.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "NickJ_London" <[email protected]> wrote in
    message
    news:g9dfpt$ku8$[email protected]..
    > I'm also having issues deciding if I should use divs /
    apdivs / tables to
    > lay
    > out my page.
    >
    > I tried setting it in a table, the appearance varied
    greatly in different
    > browsers so I gave up.
    > I have tried setting the page using apdivs - one
    container with the rest
    > nesting, this gives a great layout but is anchored to
    the left. What is
    > the
    > #wrapper command you used to centre the page on screen?
    >
    > Should I be laying out the page differently? Using a
    combination of divs /
    > apdivs / tables?
    >

  • Using cfloop to update and/or add data?

    I am using this code from a tutorial on the web to add multiple records to a database. These records are linked to another table by ProductID, in other words there could be many records generated by this form but they will all have the same ProductID number coinciding with the one ProductID in the other table. Here is my issue, I need an update page for these records that will allow me to update existing records or add additional ones. I am new to using cfloop and was able to get the original code to function correctly but can't figure out how to code this for update. Any help would be appreciated.
    Here is the code:
    <cfif isdefined ("form.number")>
        <cfset getnumber = form.number + 1>
    <cfelse>
        <cfset getnumber = 1>
    </cfif>
    <cfif getnumber GT 1>
        <cfset focusonme = " document.all.osform.CFSNumber" & getnumber & ".focus();">
    <cfelse>
        <cfset focusonme = "document.all.osform.CFSNumber.focus();">
    </cfif>
    <cfoutput>
    <script type="text/javascript">
            function dofocusthing(){
                            #focusonme#      
            function submitform(){
                            document.all.osform.action = 'act_add.cfm';
                            document.all.osform.submit();
            function getnewline(){
                            document.all.osform.action = 'add_products.cfm';
                            document.all.osform.submit();
        </script>
    </cfoutput>
    <body onLoad="javascript:dofocusthing();">
    <table width="80%" rules="none" align="center">
        <tr>
            <td>CFSNumber</td>
            <td>MfgPart</td>
            <td>Pack</td>
            <td>Pallet-Case</td>
            <td>Size</td>
        </tr>
        <cfoutput>
            <input type="hidden" name="number" value="#getnumber#">
            <cfloop from="1" to="#getnumber#" index="idx">
                <tr>
                    <cfif isdefined ("form.CFSNumber#idx#")>
                        <td><input type="text" name="CFSNumber#idx#" value="#evaluate("form.CFSNumber#idx#")#"></td>
                    <cfelse>
                        <td><cfinput type="text" name="CFSNumber#idx#"></td>
                    </cfif>
                    <cfif isdefined ("form.MfgPart#idx#")>
                        <td><cfinput type="text" name="MfgPart#idx#" value="#evaluate("form.MfgPart#idx#")#"></td>
                    <cfelse>
                        <td><cfinput type="text" name="MfgPart#idx#"></TD>
                    </cfif>
                    <cfif isdefined ("form.Pack#idx#")>
                        <td><cfinput type="text" name="Pack#idx#" value="#evaluate("form.Pack#idx#")#"></td>
                    <cfelse>
                        <td><cfinput type="text" name="Pack#idx#"></td>
                    </cfif>
                    <cfif isdefined ("form.PalletCase#idx#")>
                        <td><cfinput type="text" name="PalletCase#idx#" value="#evaluate("form.PalletCase#idx#")#"></td>
                    <cfelse>
                        <td><cfinput type="text" name="PalletCase#idx#"></td>
                    </cfif>
                    <cfif isdefined ("form.Size#idx#")>
                        <td><cfinput type="text" name="Size#idx#" value="#evaluate("form.Size#idx#")#"></td>
                    <cfelse>
                        <td><cfinput type="text" name="Size#idx#"></td>
                    </cfif>
                </tr>
            </cfloop>
        </cfoutput>
        <tr>
            <td colspan="8"><input type="button" name="add" value="Add Line onClick="javascript:getnewline();"></td>
        </tr>
    </table>
    <table width="90%" align="center">
        <tr>
            <td> </td>
        </tr>
    </table>
    And the action page:
    <cfloop from="1" to="#form.number#" index="idx">
        <cfset getCFSNumber = evaluate("form.CFSNumber" & idx)>
        <cfset getMfgPart = evaluate("form.MfgPart" & idx)>
        <cfset getPack = evaluate("form.Pack" & idx)>
        <cfset getPalletCase = evaluate("form.PalletCase" & idx)>
        <cfset getSize = evaluate("form.Size" & idx)>
        <cfquery name="addSubProducts" datasource="farmky">
            insert into SubProduct (CFSNumber,MfgPart,Pack,PalletCase,Size)
            values (#getCFSNumber#,'#getMfgPart#','#getPack#','#getPalletCase#','#getSize#')
        </cfquery>
    </cfloop>

    emartek1 wrote:
    How do I 'pass' the primary key? When I updated the code like shown below I am still getting the error message. My cfdump clause shows the ProductID field as 30,30,30. When I execute the template I still get the error message listed above but if I refresh it it will run through the whole gambit of all the fields ending in _#. How can I make this work?
    <cfset ProductID = FORM["ProductID">
    <cfparam name="form.numberOfFields" default="0">
    <cfloop from="1" to="#form.numberOfFields#" index="counter">
    <cfset CFSNumber = FORM["CFSNumber_"& counter]>
    <cfset MfgPart = FORM["MfgPart_"& counter]>
    <cfset Pack = FORM["Pack_"& counter]>
    <cfset PalletCase = FORM["PalletCase_"& counter]>
    <cfset Size = FORM["Size_"& counter]>
    <cfquery name="updSubProducts" datasource="farmky">
            update SubProduct (ProductID,CFSNumber,MfgPart,Pack,PalletCase,Size)
            set ('#ProductID#','#CFSNumber#','#MfgPart#','#Pack#','#PalletCase#','#Si ze#')
        </cfquery>
    </cfloop>
    In a previous post, you called the database table Products. Now, you call it SubProduct. This is confusing.
    I will assume the table is SubProduct, and that its primary key is ProductID. The primary key comes in via the URL (see your second post). You could then forward it to the action page by means of a hidden form field. Hence add the following tag to the form page:
    <input type="hidden" name="ProductID" value="#URL.ProductID#">
    Now to the action page. You have used single quotes for all the update values, which leads me to a question. Are all the datatypes varchars? If not, remove the quotes for columns that are of numeric type.
    <cfloop from="1" to="#form['numberOfFields']#" index="counter">
    <cfset CFSNumber = FORM["CFSNumber_"& counter]>
    <cfset MfgPart = FORM["MfgPart_"& counter]>
    <cfset Pack = FORM["Pack_"& counter]>
    <cfset PalletCase = FORM["PalletCase_"& counter]>
    <cfset Size = FORM["Size_"& counter]>
    <cfquery name="updSubProducts" datasource="farmky">
        UPDATE SubProduct (CFSNumber,MfgPart,Pack,PalletCase,Size)
        SET ('#CFSNumber#','#MfgPart#','#Pack#','#PalletCase#','#Size#')
        WHERE productID = <cfqueryparam  value="#FORM['ProductID']#" cfsqltype="CF_SQL_VARCHAR">
    </cfquery>
    </cfloop>

  • Wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

    Following code :
    <!DOCTYPE html>
    <style type="text/css">
    div {
    display: block;
    margin-left: 2em;
    span {
    display: list-item;
    list-style-type: decimal;
    </style>
    &lt;div>
    &lt;span>first&lt;/span>
    &lt;span>second&lt;/span>
    &lt;span>third&lt;/span>
    &lt;/div>
    Displays as :
    0. first
    0. second
    0. third
    while looking fine in other browsers (checked IE7, chrome, opera, safari...)

    updated code snap...

  • Displaying diff dates using PL/SQL expression for 'display only' item ?

    Hi ,
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
    Can someone help ?
    Thanks & Regards
    Umer

    Nice1 wrote:
    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
    :P2_FROM_DATE := to_char(sysdate-1);
    end if;
    end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
    When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
    SQL> var P2_FROM_DATE varchar2(30)
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> select sysdate from dual
    SYSDATE
    Mon 25-JUN-2012
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    Sun 24-JUN-2012
    SQL> alter session set nls_territory='UNITED KINGDOM';
    Session altered.
    SQL> exec :p2_from_date := null
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    SQL>Hence the questions about language above.
    >
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    >
    The coming Monday is 25-JUN-2012.
    Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
    trunc(sysdate, 'iw')For example:
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level <= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level &lt;= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state.

  • CIN: Items are not displayed while updating the RG1 Register using T Code:

    Hi Experts,
    Items are not displayed while updating the RG1 Register using T Code: J1I5.
    System is not showing any error message.
    Can any one explain to update the RG1 Register?
    Thanks
    Chandra

    Hi,
    dont go the table again and again . the table is updated at intial stage only for stock update but not when SAP is running.
    In day to day bussiness the flow is as follows:
    Production - MB31 - to Unres stock
    Sales - VL02n - PGI - to customer - i.e out of unres stock
    Every day u can run TC J1i5 once in a day as decided and update the register so all transactions which have happend in that day gets updated i.e both input and output.
    and this will happen every day.
    hence dont use table as it is only for intial data upload i.e just before golive.
    Hope i am clear.
    krishna

  • Set value of a display only item using javascript

    I was trying to find an answer in the forum but my searches gave me no results. How do
    I set a value of a display only item using javascript (ajax)?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Vikas,
    Thanks for a fast responding. The type is Saves State. However, I tried to set the value
    of a display only item using:
    <script>
      function f_setDisplayOnly ()
        {$x('P80_X').parentNode.childNodes[4].nodeValue = 1;
    </script>without a result (or error). What am I doing wrong?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Why cannot I use hidden or display only item to store value for insert?

    hi, Gurus:
    I have a question:
    I implemented a form with report region in a page, the update works OK, but the add function has a problem:
    There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)
    Many Thanks in advance.
    Sam

    Hi,
    There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)I think both hidden and display items have attributes that can cause problems because of different ways these items function than non-hidden and non-display-only items function. Display Only items have a "Setting" of "Save Session State" Yes/No? That can be a problem.
    Would you do this? Make these items regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.
    Howard
    Congratulations. Glad you found the solution.
    Edited by: Howard (... in Training) on Apr 11, 2013 10:26 AM

  • Displaying  list of  items , in  a jsp , using STRUTS--Correct approach

    I have a requiremnet tht on click of a button , a list of items should be displayed on a jsp page , so tht a user can select items from tht list.
    But the problem is tht , the list is very large(Conatins 1500 record).
    So wht approach should i adopt.
    One approach is tht , i have a link on my main.jsp , where user has a link (addItems) , and on clicking this link , another page(Items.jsp), opens up , where i dispaly the list of users , and user here can select multiple items , and then those items will be shown in Main.jsp.
    Is this appraoch correct,
    also plz tell me how can i incorporate previous and next functionality , so tht 20 records per page are shown
    Can anyone tell me how 2 go abt it.
    I m using STRUTS , and weblogic.

    Hiiii
    When u want2 add textboxes dynamically,
    then declare ur proprerty in action form as of type String[]
    <form-bean
    name="userForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="name" type="java.lang.String[]"/>
    <form-bean>
    When u add textboxes dynamically , and if the textboxes name is same as that in form bean,
    then automatically this form bean property gets populated.
    If u require further assistance do tell me

  • How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID

    Hy experts
    How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID?? lets say 500 ?? because my display table it may contain in some cases 10.000 and evidently I can t see all of them..
    I have a button in my toolbar witch triggers this event
    (display 500 records ) but I don t have the logic to do this only with methods of CL_GUI_ALV_GRID.
    can you tell me a standard method of CL_GUI_ALV_GRID witch can help me do this?? any hint will be good..
    Till now I was used to add a column to my structure witch represents a flag that is a number corresponding to every 500 records (a batch containing 500 records )
    first       500 - flag -> 1
    second  500 - flag -> 2
    etc..but I m convinced that exists a way of doing this more easy..without damaging my structure..
    thanx in advance..don t be shy..reply if you have any hints..

    Hi,
    if method SET_FILTER_CRITERIA doesn´t help, I think that you must work with 2 internal tables, a counter and a loop for filtering the records to be displayed:
    case counter.
      when 1.
         loop at int_table1 from 1 to 500.      "<-- your table with all records
           move int_table1 to int_table2
        endloop.
      when 2.
         loop at int_table1 from 501 to 1000.     
           move int_table1 to int_table2
        endloop.
    etc, etc.
    Call grid-->SET_TABLE_FOR_FIRST_DISPLAY
       exporting
         IT_OUTTAB = int_table2                "<-- instead of your currently table int_table1

  • How to color a row using REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi,
    I'm able to color a row using REUSE_ALV_GRID_DISPLAY, I tried the same way to color a row at the item level using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' but I'm not able to get the row color, please let me know how to acheive this.
    Thanks in Advnce
    Narayan

    you need to do 4 things.
    1. Add a field in your final internal table which ur going to display.
    2.Name the field as----
    > color_line(4)   TYPE  c,
                begin of itab,
                              matnr            type  mara-matnr,
                              ernam          type  mara-ernam,
                           color_line(4)   TYPE  c,
               end of itab.
    3.declare layout ....................> data :  it_layout   TYPE lvc_s_layo.
    4. After filled your fieldcat and before display your ALV
            loop at itab assigning to <itab>.
                          if <itab>-ernam eq 'XYZ'.
                          <itab>-color_line = 'C600'.
           end loop.
    it_layout-info_fname = 'COLOR_LINE'.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    exporting
        IS_LAYOUT                      = it_layout
        IT_FIELDCAT                    = your_fieldcat
      and pass ur  ITAB.

Maybe you are looking for

  • Facetime Missing Security Update

    So me and most of my friends have iPhone 4's. we have been placing facetime calls all the time. i got curious about facetime for mac and decided to try it out. Everytime I try to install it, it says missing Security Update 2010-005. I've downloaded t

  • ENHANCEMENT:  "Reply to this Topic"

    As suggested by Host Kady, we are now extracting Bugs and Enhancements from our consolidation threads, and re-posting them individually. Reported by Da Gopha: The option to "Reply to this Topic" is at the top of the webpage. This makes things irritat

  • Form 16A changed from 6 columns to 11 columns

    Hi all i was using program J_1IEWT_CERT for form 16A it was having 6 columns in it now there are changes in the form 16 A there are 11 columns, is there any program for it or suggest me what r the required changes to be done in previous program. Than

  • Too cold? Too hot? Recommended enviroment temperature for iBook/Mac?

    I have an iBook that is going to reside in a garage and while the climate is somewhat controlled, it gets pretty cold in the winter and will get fairly hot in the summer. Is this hard on the computer (I'm assuming heat will be worse than cold)? What

  • Canon 5D3 + Canon 15mm f/2.8 Fisheye in AI-Servo restricted to 3fps

    Hi everyone,  when using the Canon 15mm f/2.8 Fisheye on the Canon 5D Mark III in Autofocus and AI-Servo, the camera seems to deliberately slow down its maximum frame rate to 3fps instead of its potential 6fps. I have tested numerous lenses incl. the