I am trying to call the JobOper table in MES. I was trying to add a new extern alias at the top so it can call the JobOper table but it won’t save the reference.
extern alias Erp_Contracts_BO_JobOperSearch is this not correct?
I am trying to call the JobOper table in MES. I was trying to add a new extern alias at the top so it can call the JobOper table but it won’t save the reference.
extern alias Erp_Contracts_BO_JobOperSearch is this not correct?
What are you trying to do?
In MES I’m trying to capture the qty they put in when they end the job and compare it to the joboper runqty. It is giving me an object reference error on the edvlabordtl and edvjoboper. Kind of like it is missing a using statement.
If you are adding a reference I would use the Assembly reference manager so it can add any other dependencies. But that does look like the statement I have in End Activity.
I do this check in a bpm and because we can have multiple operators on an operation or the same operator multiple times I also have to look for other LaborDtl records that have claimed quantities.
I looked at the assembly reference manager but was unsure of which assembly to add.
If you’re only referencing EpiDataViews that already exist in the screen to set values, then you shouldn’t need to add any references in.
I would start by checking your references:
(EpiDataView)oTrans.EpiDataViews["labordtl"]; // Should this be LaborDtl ?
(decimal)edvlabordtl.dataView[0]["laborqty"]; // Should this be LaborQty ?
(decimal)edvJobOper.dataView[0]["runqty"]; // Should this be RunQty ?
The common theme to my observations is capitalisation. Needs to match exactly. Use either the Object Explorer or BL Tester to verify.
I made sure that it was the same casing, but I still get the object error.
@gpayne I can do a BPM on the erp.BO.Labor.Update pre-processing where end activity = true.
But I’m not sure how to do the check against the joboperation.
I have dsLaborDtlRow.LaborQty > 0
But what condition would go after this? Can i call the joboper somehow?