Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :
CI = (wt.change2.WTChangeIssue) primaryBusinessObject;
try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}
In Reply to Stephen Drzewiczewski:
What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.
Steve D.
I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :
CI = (wt.change2.WTChangeIssue) primaryBusinessObject;
try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}
In Reply to Stephen Drzewiczewski:
What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.
Steve D.
I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :
CI = (wt.change2.WTChangeIssue) primaryBusinessObject;
try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}
In Reply to Stephen Drzewiczewski:
What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.
Steve D.
I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :
CI = (wt.change2.WTChangeIssue) primaryBusinessObject;
try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}
In Reply to Stephen Drzewiczewski:
What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.
Steve D.
Oops, sorry for the multiple posts
Vincent