This content has been marked as final. Show 4 replies
I must be missing something here, I don't understand the meaning of gNumRows as you might have more than one report region in the same page.
I'd say in such cases is much better to have a item (hidden or not) holding the number of the rows for a specific report and then refer to its value.
But can you explain why you need gNumRows in the first place?
Thanks Roel, I'm not even sure where that was sourced.
This worked in my scenario
It is part of some code to loop through entries in a classic report with an editable qty field.
var gNumRows = $('#my_static_id tbody tr').length;
A total is shown at the bottom. No doubt that could also be spruced up with some better jQuery