I’m having a bit of difficulty in a layer that I’ve created for the Erp.UI.SerialNumberMaint application. I’ve added a Data View for JobHead (using JobEntry as the Dataset ID), then created an event to call the data view, using the rest-erp event action. I created this using the GetByID method, which I think is maybe where this issue is occurring. I’m trying to retrieve the Service Call, which is linked to the JobHead.
Sorry if I’m missing any information - I’m a bit new to the whole process. I do not get this error if there is a ‘Service Call’ to call - but not every SN has one, so I’d like to have it just display… nothing, if there’s nothing to call. That makes me think that maybe I should be using a different method (as opposed to GetByID), but I’m just not sure what method that would be, or how it would be set up.
Hi all - sorry for the delay in response. I ended up getting it working, mostly. I ended up swapping out GetByID with GetRows, with the method parameter of ‘whereClauseJobHead’ field set to JobNum=‘{SerialNo.JobNum}’
annnd… it works! Though, now it will load the CallNum for the first Serial Number I select, and to load another one I need to close my layer preview and re-open it. Not sure if that’s just a bug with the Preview Mode, I have the event calling after AfterGetByID (as I’ve previously been instructed to do by a consultant) which hasn’t failed me prior. But the main problem has been solved!