Skip to main content
13-Aquamarine
August 12, 2024
Question

Programmatically find latest votes for user on change task

  • August 12, 2024
  • 1 reply
  • 1214 views

Hi avillanueva,

Hi took Affected Objects from getChangeablesBefore(); but now I am facing an issue to get On Order, Disposition comment Work in progress and Finished.

To take get these values I am using AffectedActivityData affectedActivityData = (AffectedActivityData) Object;

but its not working.

Please help .

_1647_0-1723477069894.png

 

1 reply

avillanueva
23-Emerald I
23-Emerald I
August 12, 2024

You asked about votes. This looks like a different question. Might want to start a new thread.

@_164713-AquamarineAuthor
13-Aquamarine
August 12, 2024

Could you please help me to get values for this

   On Order, Disposition comment,  Work in progress and Finished  programmatically.

avillanueva
23-Emerald I
23-Emerald I
August 12, 2024
QueryResult aResult=ChangeHelper2.service.getChangeablesBefore(ca,false);
Enumeration enumeration2=aResult.reset();
WTObject object=(WTObject)enumeration2.nextElement();
if (object instanceof AffectedActivityData)
{
AffectedActivityData aad=(AffectedActivityData)object;

from there you can get what you need:

onOrder=aad.getOnOrderDisposition().getDisplay();
wip=aad.getInventoryDisposition().getDisplay();
finished=aad.getFinishedDisposition().getDisplay();
dispositionComments=aad.getDispositionComments();