Mostly wondering if there is a simpler / more direct / elegant way of removing empty records from a lookupRecords list. Here’s what I’m using:
statuses = []
records = Laptops.lookupRecords(refName=$id).status
for record_item in records:
if record_item == '':
pass
else:
statuses.append(record_item)
return statuses
Looking forward to seeing what else I could’ve done.
Nice! I need to learn more about how you structured that. I get that the [ ] puts the results into an array. The status for is what I’m not sure about. Is it the equivalent of status = ?
I think I face a similar issue. I am trying to sum all the items from a financial column “Price” only for the lines which respect “Year=$Year” and “Products=None”. This last item (Products=None) is malfunctioning. Products is a multiple reference column pointing to another table.
I tried to apply the for loop but without success.