This content has been marked as final. Show 4 replies
That's the punishment for using unsupported constructs ;-)
Probably something like below might be a valid replacement:
var gNumRows = $('table#report_' + <report ID> + <other selector to get to the right detail table> + ' tr').length
Scott,1 person found this helpful
May be it was deprecated OR re-written who knows because its internal.
$('#YOUR_REGION_STATIC_ID .report-standard>tbody>tr').length //you may need to replace report-standard with appropriate class used by your report template
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