Sorting Maximo 7.x start center inbox assignments :
I used below logic to set order by to due date (Descending) on start centre inbox assignments.
Create a custom class and extend WFAssignmentSet. Write a code in getInboxAssignment() method.
Sample Code:
package test.workflow;
import java.rmi.RemoteException;
import psdi.mbo.MboServerInterface;
import psdi.util.MXException;
import psdi.workflow.WFAssignmentSet;
import psdi.workflow.WFAssignmentSetRemote;
public class TestWFAssignmentsSet extends WFAssignmentSet implements WFAssignmentSetRemote
{
public TestWFAssignments(MboServerInterface ms) throws RemoteException {
super(ms);
}
public void getInboxAssignments() throws RemoteException, MXException
{
super.getInboxAssignments();
setOrderBy(" DUEDATE desc");
reset();
}
}
I used below logic to set order by to due date (Descending) on start centre inbox assignments.
Create a custom class and extend WFAssignmentSet. Write a code in getInboxAssignment() method.
Sample Code:
package test.workflow;
import java.rmi.RemoteException;
import psdi.mbo.MboServerInterface;
import psdi.util.MXException;
import psdi.workflow.WFAssignmentSet;
import psdi.workflow.WFAssignmentSetRemote;
public class TestWFAssignmentsSet extends WFAssignmentSet implements WFAssignmentSetRemote
{
public TestWFAssignments(MboServerInterface ms) throws RemoteException {
super(ms);
}
public void getInboxAssignments() throws RemoteException, MXException
{
super.getInboxAssignments();
setOrderBy(" DUEDATE desc");
reset();
}
}
7 comments:
Thankyou..!!
where would i give the name of this new custom class?
'CustomWFAssignments'
Is this a constructor?
It has no return type?
but the name is not same as class?
please reply soon..!!
Sorry for late reply and also thanks for correcting me.
I have updated 'CustomWFAssignments' to 'TestWFAssignments'.
New custom class path to be replaced in database configuration --> WFASSIGNMENT table --> Class field.
Hi Thank you for replying...!!!
This code has succesfuly worked for me to sort inbox/assignment in descending order based on start date.
But now i can not sort it in ascending order... as when i click on start date to sort it.it would fire getInboxAssignment() and it will sort it in desc order again..
any solution??
waiting for ur reply?
This worked..!!
but I cant sort start center inbox/assignment date in ascending order anymore.
every time it will reload getInboxassignment() and will set it in desc order.
This worked..!!
but I cant sort start center inbox/assignment date in ascending order anymore.
every time it will reload getInboxassignment() and will set it in desc order.
Sorry I haven't tried in that way.
Post a Comment