Thanks Martin, the woclass field is not the problem... it is being defaulted with the value WORKORDER which is correct. The issue is that in the wotrack application for some reason the JPCLASS which is a non-persistent field and is supposed to equal the WOCLASS it blank (null values). In other applications using the workorder object, the JPCLASS is being populated when the WOCLASS contains a value. JPCLASS is handled by a java class and default value cannot be set for a non-persistent attribute. I am just trying to figure out how the field a null value when it should not be.
Original Message:
Sent: 08-07-2024 20:05
From: Martin Fabra
Subject: Scratching my head over this issue.
Hi @Stephen Hume!
In the application editor (WOTRACK), you can edit the WOCLASS field. You can put it read-only, default, required (I've seen it in all 3 ways). You can put a default value or not. So, if you define a default value, every time you create a new WO record, it will appear. If you do not define any default value and the field is released (defined as default), it will not load anything and will leave it released.
So, the difference is in the default value. You can modify this either by editing the wotrack xml or in the application designer on WOTRACK, by pressing "Toggle show conditional UI Control" (it will show you all the conditional controls with a black icon).
Regards!


------------------------------
Martin Fabra
ARSAT S.A. - Actively seeking employment
Original Message:
Sent: 08-07-2024 12:32
From: Stephen Hume
Subject: Scratching my head over this issue.
I am currently working on a project with work orders (wotrack application), in the workorder database object there is a non-persistent attribute called jpclass (WO Class) which is used to look up job plans.
For some reason when I am creating a work order using wotrack, the WOCLASS is being set to WORKORDER which is what I would expect, but the jpclass does not contain the same value in fact it is NULL The problem this causes is that the selection to add a job plan does not work.
The strange thing is this is working for the PLUSWOTR application (Work Order Tracking (Nuclear)).
This is only happening in the client's DEV environment and not in their test environment.
What are the possible causes of a non-persistent attribute not being populated when a new record is being created, and could this be an application specific issue.
This is the screenshot... I added the jpclass attribute to the work order header, and you can see it is blank. Any ideas of where to look next would be helpful
#WorkManagement
------------------------------
Stephen Hume
Sheffield Scientific LLC
------------------------------