Profile picture for user ajayiyer

Is there any report that will show only selected attributes like i want to show only Identifier & Discription. If not can i edit 'Open excel table in process generator' macro for that ?

The reason of doing this is that i want a report that shows the flow sequentially top to bottom. Pls suggest

by Srinivas CH
Posted on Fri, 05/18/2012 - 13:06

Hi Ajay,

Please check the below script, it will display the attributes of an object, If you want to display the attributes of a model then change oObject to oModel.

 

var nLocale=Context.getSelectedLanguage();
function main(){
// creates an output object
var oOutput=Context.createOutputObject();
//Begining of a table
oOutput.BeginTable(100,Constants.C_DARK_BLUE, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
oOutput.TableRow();
oOutput.TableCell("Object Name",30,"Arial",10,Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Identifier",30,"Arial",10,Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Description",30,"Arial",10,Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);

var models=ArisData.getSelectedModels();
for(var i=0;i<models.length;i++){
    var oModel=models[i];
    var objects=oModel.ObjDefList();
    for(var j=0;j<objects.length;j++){
        var oObject=objects[j];
        var sobjectName = oObject.Name(nLocale);
        var sobjectID = getAttributeValue(oObject,Constants.AT_ID);
        var sobjectDesc = getAttributeValue(oObject,Constants.AT_DESC);
        oOutput.TableRow();
        oOutput.TableCell(sobjectName,30,"Arial",10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0); 
        oOutput.TableCell(sobjectID,30,"Arial",10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);  
        oOutput.TableCell(sobjectDesc,30,"Arial",10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    }
}
oOutput.EndTable("",100,"Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.WriteReport();
function getAttributeValue(oItem,nAttrType){
    var oAttr=oItem.Attribute(nAttrType,nLocale);
    var sAttrValue=oAttr.getValue();
return sAttrValue;
}
}
main();

 

BR/Srinivas.

0
by Sebastian Stein
Posted on Fri, 05/18/2012 - 14:23

Another is the WYSIWYG report editor. It should be easy to iterate a list of models/objects and output just those attributes you need. In the help section of ARIS Community, you find several tutorials on using the WYSIWYG editor.

0
by Ajay Iyer Author
Posted on Fri, 05/18/2012 - 14:28

Thanks Sabastian i will refer that.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock