Hi Commiunty ;
i want to add to my report process diagram please any body can help me !!!
regards
Hi Commiunty ;
i want to add to my report process diagram please any body can help me !!!
regards
hi all i want to add the diagram to this script in any way please
var oOutput = Context.createOutputObject(); // Output object
var nLocale = Context.getSelectedLanguage(); // Selected database language
//===============logo======
//=========================
//=======Information Table===================================================================
oOutput.OutputLn("Report Test", "Arial", 40, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
oOutput.OutputLn("Jordan Islamic Bank", "Arial", 20, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
//===============================================================================
//===============Table======
//=========================
//Build Table
//ROW +++++ Header Of Table
oOutput.BeginTable(100, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
oOutput.TableRow();
oOutput.TableCell("Model name", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Object name", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Id", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Description", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
// oOutput.TableCell(sModelType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
//=================================================
oOutput.TableCell("New", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("Object Type", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
var aModels = ArisData.getSelectedModels(); // Array of selected models
for (var i = 0; i < aModels.length; i++) {
var oModel = aModels[i]; // Current model
var sModelName = oModel.Name(nLocale); // Name of current model
var sModelID = getAttributeValue(oModel, Constants.AT_ID); // ID of current model
var sModelDesc = getAttributeValue(oModel, Constants.AT_DESC); // Description of current model
var sModelType = oModel.Type();
oOutput.TableRow();
oOutput.TableCell(sModelName, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell("", 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sModelID, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sModelDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
//======================
oOutput.TableCell(sModelType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sModelDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
//=========================
var aObjDefs = oModel.ObjDefList(); // All object definitions that have occurrences in the model
for (var j = 0; j < aObjDefs.length; j++) {
var oObjDef = aObjDefs[j]; // Current object definition
var sObjName = oObjDef.Name(nLocale); // Name of current object
var sObjID = getAttributeValue(oObjDef, Constants.AT_ID); // ID of current object
var sObjDesc = getAttributeValue(oObjDef, Constants.AT_DESC); // Description of current object
var sObjType = oObjDef.Type();
// var sObjtype = getAttributeValue(oObjDef, Constants.AT_DESC);
oOutput.TableRow();
oOutput.TableCell("", 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sObjName, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sObjID, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sObjDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
//====================
oOutput.TableCell(sObjType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
oOutput.TableCell(sObjDesc, 15, "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); // Attribute with the specified type number in the specified language
var sAttrValue = oAttr.getValue(); // Content of the attribute
return sAttrValue;
}Inside your iteration for model just add these lines: (anywhere between line#47 - 84 depending upon where you want to appear the model graphics in your report.
writeModelGraphics(oOutput, oModel[i].Graphic(false, false, nLocale))
where writeModelGraphics is the helper function given below:
function writeModelGraphics(p_output, p_IModelPicture) {
p_output.OutGraphic(p_IModelPicture, -1, p_output.getCurrentMaxWidth(), p_output.GetPageHeight() - p_output.GetTopMargin() - p_output.GetBottomMargin() -10)
}
Hi Ahmed,
maybe the follwoing article will provide the answer to your question. If not, please explain in more detail what exactly you are planning to do so I can help you...
Regards,
Eva
adnan shahab on
Use Report Wizard that is shipped with ARIS BA.
Report Wizard is good for simple reports.