The problem is that the bean class on the table will override your custom relationship. If you remove the bean class, it should use your custom relationship assuming you swap out the default WORKLOG relationship for your own.
Removing the bean class though will come with its own set of potential troubles. I haven't tested it to know exactly what you'll find. I suspect that it will mostly still work for creating new work logs, but there will be a few things that don't. You'll have to test it and weigh the decision based on those results.
Hope this helps,
------------------------------
Alex Walter
A3J Group, LLC
------------------------------
Original Message:
Sent: 03-20-2023 09:32
From: Shannon Stommel
Subject: Display PR Work Log Entries on other Maximo Forms
Thank you for your feedback!
I created the relationship in the PO object to WORKLOG but the PR logs are still not showing in the PO form even though in PLSQL there is data returned confirming the relationship is correct. I used the code from the library.xml file also changing the relationship to be the new one I created in the PO (removed the beanclass) without any luck.
Hoping IBM can add this in the future, as it would be helpful to see the logs from PR-PO-Receiving.
Thank you for your help!!!
------------------------------
Shannon Stommel
Insteel Wire Products
------------------------------
Original Message:
Sent: 03-20-2023 09:16
From: Alex Walter
Subject: Display PR Work Log Entries on other Maximo Forms
Shannon,
Unfortunately there don't seem to be hooks in the psdi.app.ticket.WorkLogSet class that support custom relationships for PO or PR related work logs. Not sure why this is supported from WO/Ticket but not PO/PR.
There aren't many good options for implementing it yourself either, without sacrificing functionality or writing custom Java code. You can create a custom relationship from PO -> WORKLOG and copy the XML from the library.xml... but at that point you'd be digging into quite a bit of existing capability to get this to work.
Sorry I won't have a better answer for you.
------------------------------
Alex Walter
A3J Group, LLC