cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Last few rows of a table show no data but empty rows appear

avillanueva
23-Emerald I

Last few rows of a table show no data but empty rows appear

I have a head scratcher but not 100% sure where the fault lies. I have a custom BOM report that I've used for years. Its built with JSP and makes use of the multilevelbom with replacements except I am feeding it a level limit of 1, so I have a custom BOM Report Tree Handler that is called out. There is also a custom CSS file as well.  The main function is to display the BOM complelely and not have to expand tables so you can print the page.

The issue reported to me is with a very large BOM with 131 elements. Here is how the end of the table is rendered:

avillanueva_0-1755719985791.png

Notice how there are rows containing no text. I can confirm by inspecting elements that there is nothing being shown. However, if I shrink the browser zoom, more rows of text start appearing.

avillanueva_1-1755720104738.png

above is 67% and below is 50% where the rows fully display. The same occurs in reverse if I increase zoom beyond 100%.

avillanueva_2-1755720135745.png

I am not sure where this artificial limit is being maintained but I suspect this is either javascript or css since it dynamically re-renders page as a stretch and zoom page.  Any thoughts to where to start looking?

3 REPLIES 3

Yikes.. that's weird

 

I haven't done any level of customization with most of that, but what jumps out at me is that the middle column for the rows with missing data has much more text than the rows above. Could it be related to number of characters / column width? 

There are much more columns that is shown in the screen shot. What you are seeing is line number, Qty/Usage and cage code but there is number, name, ref des and other fields to the right, all blank. I can actually watch the HTML populate in inspect mode when I adjust zoom. 

HelesicPetr
22-Sapphire II
(To:avillanueva)

Hi @avillanueva 

There is some trouble with a cache memory. I know there is a js script that solve this issue.

Ok it is a table buffer so here is the script:

 

Place this script to the wizard jsp page after taglib definition

<SCRIPT>
    PTC.wizard.getContentAreaPaddingHeight = PTC.wizard.getContentAreaPaddingHeight.wrap(function(orig) {
        return orig.call(this) + 12;
    });
    Ext.ux.grid.BufferView.prototype.getVisibleRowCount = function(){
        return 10000;
    };
    Ext.override(Ext.ux.grid.BufferView,{
        doClean: Ext.emptyFn
    });
</SCRIPT>

HelesicPetr_0-1757421210224.png

 

PS> it could be a bug if the page is zoomed

PetrH

Announcements
Top Tags