Related row count = 0
I was looking at a number of other posts here and wanted to include a couple of subtotals and last date on a related items.
I've looked through some of Nikita's checks and found that when I run
fd.relatedItems(0).data('ctx').ListData.Row.length
I get a return of 0 - even though there is a row? why would this be?
I've looked through some of Nikita's checks and found that when I run
fd.relatedItems(0).data('ctx').ListData.Row.length
I get a return of 0 - even though there is a row? why would this be?
Hi Again,
I think I found the issue why it is showing 0. I have 2 related items on this master form.
I'm using the ctx (as showing in other threads) but it seems to be showing the unrelated related items.
How can I use the following functionality to target a specific related items? (I put the css class of the one I wanted to "ctx" but it seems to return the others value "Pictures")
var total = 0;
var rows = fd.relatedItems(0).data('ctx').ListData.Row;
rows.forEach(function(item) {
total += parseFloat(item['daystaken'])
});
I think I found the issue why it is showing 0. I have 2 related items on this master form.
I'm using the ctx (as showing in other threads) but it seems to be showing the unrelated related items.
How can I use the following functionality to target a specific related items? (I put the css class of the one I wanted to "ctx" but it seems to return the others value "Pictures")
var total = 0;
var rows = fd.relatedItems(0).data('ctx').ListData.Row;
rows.forEach(function(item) {
total += parseFloat(item['daystaken'])
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 20 guests