Quantcast
Channel: Reports & Macros
Viewing all 1118 articles
Browse latest View live

Manipulate the output object after writeReport()

$
0
0

Hi,

I am trying to typecast the object to an excel format and add some hyperlinks. I am trying to get the output object after WriteReport(). Below are the code snippet.

var outObj= Context.createOutputObject();

//Creating a table in below method.

file.BeginTable(.......
file.DefineF("He.......
file.DefineF("He.......
file.DefineF("Co.......
file.DefineF("Re.......

file.TableRow();.......
//file.TableCell.......
file.TableCell(p.......
file.TableRow();
//file.TableCell.......
file.TableCell(".......
file.TableRow();

....

outObj.WriteReport();

//Then trying  manipulate the data

var excelSheet = Context.getFile("sample.xls", Constants.LOCATION_OUTPUT);

Here I am getting null value for excelSheet .

Could you please guide me if I am missing anything.

    


ARIS - HelpTab in a custom UserDialog

$
0
0

Hello guys,

I have a problem with the HelpButton in a custom UserDialog Macro.

I want to create a custom UserDialog with a Help Tab such as the Wizard Dialog when you create e.g. a Macro or what else.

To create this Tab, you have to implement the HelpButton: "iDialogTemplate1.HelpButton(sHelp);

and in the var sHelp there is some code like this: "var mHelp="<html><h1> HTMML Header </h1></html>"; "

 

That works without trouble, but i want to create the HelpTab like the ARIS Wizard with some tree´s where i can click a word and then open  a definition or what else. 

My question is, have anyone a idea how i can implement this "tree" in the HelpTab?? Or is it possible to look in the .hlp files of ARIS, so i can copy  some code of it? Because when i use e.g. "HID_2ba30bb0-5922-11df-3577-e3129f43de32.hlp"  instead of sHelp, i get the nice HelpTab with the "tree", but i can´t find this file.

 

Thanks!

 

Bulleted List

$
0
0

Hi everyone,

I'm using the following code to create a list

File.BeginList():

File.Output(outstring.value, ......);

File.EndList();

But I need to create two levels of bulleted list in a report like this:

  • is composed of XXX
    • is composed of XXX.1
    • is composed of XXX.2
  •   is composed of YYY
    • is composed of YYY.1
    • is composed of YYY.2

Thanks for your comments / feedback.

 

How to export Matrix in Excel

$
0
0

I've tried to export a matrix model to Excel. Therefor I used the report 'Export relationship matrix'.

The output shows de row and column of the matrix. However the content in the table is empty.

I expected the relationship values (between row and column) in de cells. However they are not shown.

Anyone with the solution?

 

Kind regards,

Maurice

 

 

Reports not available to select in Connect

$
0
0

We're puzzled by the differences between reports available in ARIS Connect and the ARIS Java clients.  In particular, reports that we designed ourselves do not appear for selection in Connect, but they are available in the client apps and they work. 

These are reports designed to be started against a Group or a Model.  We didn't code any JS ourselves - just used the report designer,

What would cause a report to be available in the client but not in Connect?

Connect Viewer - run reports against a group

$
0
0

Apologies for the double post - I added this as a question to an existing post but it seems that it's in an old forum that's no longer visible.

We have reports that run against a group, and in Connect the only way to run them is via the Repository.  But a Viewer doesn't seem to have access to the Repository.  So a Viewer cannot run reports on a group.

Is that correct?  Or is there a way to allow Viewers to see and use the Repository?

Create a Object on a opened Model via Report

$
0
0

Hello,

I have a problem to create an object on a opened model.

 

I write a macro with a custom UserDialog. The macro should be executed on a model.

This UserDialog transfer the user input to a report and the report create a object to a selected path and additionally it should create an object on the selected Model. 

 

But I get always an error code: 

oModel.createObjOcc(intSymbolNumber, oCreatedObject, resultX, resultY, true, true);  -->

 

 

I don´t get this errorcode, when the model is closed... 

Can someone help me? 

 

Thanks!!

 

Report Error

$
0
0

Hello,

I have a problem with a custom report.

I attach the image of the error.
This problem occurs in the production database and not on the copy used for development.
Do you have any idea what it could be?

Thanks,

Anna.

File attachments: 

outputting groups , subgroups , and model lists

$
0
0

Hi there , 

iam new to ARIS scripting , i was looking for a way to output the selected groups and the models and sub groups under it 

something like this :

Group 0     model1
                  model2

                   subgroup     model1

                                        model2

Group 1    model1
                  model2

                   subgroup     model1

                                        model2

any ideas ?

Million thanks 

Ahmed 

Report execution

$
0
0

Hi to all,

I'm write a custom report and when I start the report from the script the execution time is 3 minutes but when I select directly the model and use the "Start Report" button, the execution doesn't stop and Aris generate the error that is in in the attached image.

Can you hel me, please?

Thanks,

Anna.

File attachments: 

ARIS reports do not work with 64-bit Java

$
0
0

Hallo Community,

We have a central ARIS 9.8 Server and we work with ARIS 9.8 Architect and Designer clients. Some of this client computers are working with Mozilla Firefox 52.6.0 (32-Bit) and therefore with a 32-Bit Java. With this clients we have no problems.

But the other (unfortunately the most) client computers work with Mozilla Firefox 52.6.0 (64-Bit) and therefore with a 64-Bit Java. And these clients are struggling with the reports. They can't read any attributes from the objects. The result is, tre reports are unusable.

My question: How can I make ARIS 9.8 ready to work with an Java 64-Bit version?

Many thanks for any help.

Greetings Holger

Enhance ModelComparisonOption class methods of the Aris API

$
0
0

Hello everyone!

We use API in order to show differences in model properties using script, but the "Last Change" attribute we would like to ignore. At the moment it is only possible to exclude all system attributes from the comparison with the following command: setObjectSystemAttributes(false). The exclusion of single attributes is not supported yet and we would like to ask for this functionality. If you think it will be beneficial for you and your company, please, vote for it. The Brainstorm Feature Request #05845.

Thanks a lot.

Connecting ARIS API with ARIS report script

$
0
0

Hi all,

I want to connect the script in the ARIS report with ARIS API repository. I have tenant, name, password and key for creating a token and to start the connection, but in the following code I will not show them(but the fields aren't empty).

I get error that connection is refused on the line"var responseCode = con.getResponseCode();"

Can please someone help?

I have the following piece of code:

function httpRequestPOST(url){
    var obj = new java.net.URL(url);
    var con = obj.openConnection();
    con.setRequestMethod("POST");
    con.setRequestProperty("User-Agent", java.net.USER_AGENT);
    var tenant = "";
    var name = "";
    var password = "";
    var key = "";
    var authString = tenant + ":" + name + ":" + password + ":" + key;
    var encoder = new Base64.encode(authString);    
    con.setRequestProperty("Authorization", "Basic " + encoding);
    var responseCode = con.getResponseCode();
    var iN = new java.io.BufferedReader(new java.io.InputStreamReader(con.getInputStream()));
    var inputLine = new java.lang.String();
    var response = new java.lang.StringBuffer();
    while((inputLine = iN.readLine()) != null){
        response.append(inputLine);
    }
    iN.close();
    return new java.lang.String(response);
    
   try{
        con.getResponseCode();
    }
    catch(e){
        e.getMessage();
    }
}

First WYSIWIG report - stuck - probably easy - anyone helpful

$
0
0

Hi,

newbie in ARIS WYSIWIG-editor, but get object orientation - appologies for the level of question.

1. Context: ARIS 10, no major deviations from ARIS metamodel.

2. Has created a WYSIWIG report, now over to a Section I want:

For All Selected models, I wish a set of tables that look like this:

 For all: Application System Class --- Name

       Then, per ASC, a table with the connection types, and then the name of the connected object, then the description of the connected object - all at definition level.

So, where am I: I get that I must create a Section that iterates For all: Selected models. I have also been able to create a Data Table (For all: Selected.models.Object Definitions (filterable by symbol type), where I then can list the class names {Selected Models.Object Definitions (filterable by symbol type(flterable by type).Attribute.Attribute Value.

But, How to I create this part: Then, per ASC, a table with the connection names, and then the name of the connected object, then the description of the connected object - all at definition level. I have been trying many variations, but so far, just empty output :-(

Any newbie help appreciated.

UserDefinedAttributeValues

$
0
0

Hi All,

I have a Custom Attribute with Custom Values. Each custom value has an assigned GUID.

Is there a way to show the selected Values GUID?

I can get all the UserDefinedAttributeValueTypeGUID's if I use : ActiveFilter.getAttrAPIName(AttrTypeNum, ValNr); but can't get the one that is selected.

Any help will be appreciated.

Thanks,

Willem


Creation of Reports of Semantic checks to show the error in table format

$
0
0

Hello Experts,

I am new to ARIS scripting work and in the process of writing semantic checks for one of my project.

I have manged to write the codes for semantic checks and facing the problem in getting pdf report for errors in the tabular format.

Can somebody please help with the ARIS scripting codes for getting report in tabular format and it's explanation ?

I am looking for the pdf report output as below :

First Row: ARIS folder name which is checked

Second Row: Semantic Check Description/ Error Description

Table with following columns: 

Checked model from folder  |    Object Name    |   Object Type       |    Recommendation for resolution

Looking for some quick help. Any documents or link will also be helpful !!!

 

 

Used macro to link objects

$
0
0

Hello,

I beginning in Aris Reports and macros and i would like to run a macro from an object.

This macro should make links out of a model between two objects. 

From the object source, i would like to have a dialog list that's give me occurrences to link

Is it possible ? Could you have some examples of programs ?

Thanks 

Semantic check for connection type

$
0
0

Hi,

i am new to ARIS script I have written the below code , i need to check Connection type like Any function or activity connected to org unit and internal person has connection type "is responsible for"

or" is accountable for", this is my code i am stuck can any body suggest 

function Rule_867a0260_5760_11e8_44b4_0050568d644b(selection, ruleID, unused, outputObject)
{
         
     var selModel = selection;
       
  
     for(var i=0;i<selModel.length;i++){
     var config = getConfiguration("2cb291d0-575f-11e8-44b4-0050568d644b");
        
    var objocc = selModel[i].ObjOccList();
  
    for(var j=0;j<objocc.length;j++){ 
        
        var check = objocc[j].ObjDef().CxnList(Constants.EDGES_INOUT)
         
         }  
        for (var k =0;k<check.length;K++){
        var conn = check[k].TypeNum();
        
        
    if(conn =="462" == 0){
        Dialogs.MsgBox("code is working")
      setSemCheckInfoMark(objocc[j],"Connection type error");
    }
}}
}

Connections on Matrix Model

$
0
0

Hi Everyone,

We created a Matrix Model manually in ARIS 10.

On the model we have the Roles and their functions, and in the table  we've got connections. However, when we run the ARIS report named "Export relationship matrix", our connections does not show in the report.

I've opened the script, and the stepped through it, at the "cntntCell.getCxns()", it does not return any connections.

Am I missing something, like only certain connections allowed or is there something else I'm missing?

Thanks,

Willem

Change the selection in a Combobox in a report

$
0
0

Hello dear Community,

in my report I have a combo box where I can select a zoom factor for the graphics. It works well in this direction.
Now I would like to set the combo box to one of the options depending on another input. And that doesn't work.
According to the help in ARIS, the following function should do exactly what I want:

Report class Dialog
void setDlgSelection (String sDlgItem, int nSelectedIndex) - Sets selection for lists, combo boxes and tables.

Alternatively I found the following function:

Report class SingleSelectElement
boolean setSelection (int nSelectedIndex) - sets the selected index (single selection)

 

Unfortunately, however, both functions do not deliver the desired result. Either the report runs without errors, but without the desired result, or I get an error message.

The command lines between the two "///" are the variants I tried and the comment behind them is the result. However, only one variant was activated at a time. The others were commented out.

The error messages are listed under the source code.

 

Can anyone tell me why this doesn't work for me and what mistake I made? How can I set the combo box correctly? I can't imagine that shouldn't work with combo boxes. This works for all other input objects.

 

Many thanks to all of you who take care of this and support me.

---

And here the addressed source code:

var aGrSize = new Array();  // Table of zoom factors

function DIA_configSubDialog()
{
    ...
    aGrSize = ["automatisch", "individuell", "100%", " 70%", " 30%"];
    this.getPages = function()
    {
        ...
        oOptions.CheckBox(30, 90, 280, 15, "Change size", "GrSize");
        oOptions.ComboBox(100, 110, 110, 20*aGrSize.length, aGrSize, "GrSelW");
        ...
        return [oOptions];
    }

    this.OptCod_changed = function(sNewSel)
    {
        var aPages = new Array();

        aPages[0]  = this.dialog.getPage(0);
        ...
        aPages[0].getDialogElement("GrSize").setChecked(lPrGrSiz);
        ...
        aPages[0].getDialogElement("GrSelW").setEnabled(true); // That works

        ///

        aPages[0].getDialogElement("GrSelW").setSelection(nSelection);               // Gives no error, but no reaction at the dialog window
        this.dialog.getPage(0).getDialogElement("GrSelW").setSelection(nSelection);  // Gives also no error, but does not work
        aPages[0].setDlgSelection("GrSelW", nSelection);                             // Gives an error (1)
        this.dialog.setDlgSelection("GrSelW", nSelection);                           // Gives an error (2)
        Dialogs.setDlgSelection("GrSelW", nSelection);                               // Gives an error (3)
        oOptions.setDlgSelection("GrSelW", nSelection);                              // Gives an error (4)

        ///

        ...
    }

}

(1) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object DialogPag.
(2) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object UserDialo.
(3) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object Dialogs.
(4) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object com.aris.modeling.server.bl.logic.webreprot.dialog.AServerDialogBuilde.

 

Viewing all 1118 articles
Browse latest View live