Quantcast
Channel: ARIS Report Scripting
Viewing all 257 articles
Browse latest View live

Error in report creatin cell formula on output excel

$
0
0

I have a report that creates an excel sheet with formulas. This report was working fine but the administrator upgraded ARIS from 10.13 to 10.14 and this report not working now!

The error line number is 184 on the attached image.

The error is: Error durante la ejecución de la secuencia de comandos:
Secuencia de comandos: Manual de procesos Pavisa, línea 184
Calling Cell.setCellType(CellType.FORMULA) is illegal. Use setCellFormula(String) directly.

 

Thank you.

File attachments: 
Choose content type: 
Ask a question

Image of model in a new Word/PDF page

How to edit the layout of an Excel file from a report ?

Script running in Test Environement and not in Production Environement

$
0
0

Hi Everyone,

Something really strange is happening.

When I'm scripting and testing my script, I'm working on a test environement. When I'm trying to use the script and test it on a another environement (production environement), the script crashes. So I copied the database from the production environement and copied it in my testing environement (meaning the same objects were copied,  also the filters.. everything), the script worked.

Someone can explain why is that ? It would really help ! 

Thank you

Choose content type: 
Ask a question

Error when trying to create Object Occurences on Model

$
0
0

Hi everyone

I'm trying to create object occurences on a model using the following function : 

function createOcc(model,oObjDef,nType){
    
    var obj = model.createObjOcc(nType,oObjDef,oX,oY,true);
    return obj;
    
}

Before sending the model to this function, I'm storing the model in a variable by using this line of code :

var app2systemCatalog = g_oDatabase.FindGUID("a918c921-1727-11ec-619c-d63b1f542671");

After running my script I get an error on the first line of the "create Occ" function, the error looks like this :

Apparently , my model is "invalid" , I don't understand why.

If someone knows where the problem could be, I'd appreciate some help.

Thank you.

Choose content type: 
Ask a question

How to get all the Users on Aris Architect ?

$
0
0

Hi,

I need to write a report where I get informations about the Users.

The problem is that I don't know how to get them. 

I tried to use the built-in function "getAllUsers" as follows :

var usrList = getAllUsers();

which is meant to return a list of all the Users, but I got the following error : "ReferenceError: "getAllUsers" is not defined."

Does someone knows how to get all the Users ?

Thank you 

Choose content type: 
Ask a question

ARIS Script Report Editor

Get Users/Users Groups from Aris Connect

$
0
0

Hi everyone,

I'm writing a script to get all kind of informations about the Users existing on Aris.

I want to get Users/Users Groups from Aris Connect.

I have a link to the server, but I don't know how to use it in my code to get the Users and all kind of infos related to them.

If someone knows more about that, I'll appreciate some help.

Thank you.

Choose content type: 
Ask a question

Access denied when trying to get an Excel file from the Network folder

$
0
0

Hi Everyone,

I'm writing a Script that takes as input some excel files that are stored in the Network folder.

I'm using the following line of code to get it :

var csvFile = java.io.File("\\\\someadress\\filename.xls");

I get an error saying : line 41 \\someadress\\filename.xls (Access denied).

Why is the access denied ?

I saw here that someone had the same kind of problem but no one really had a solution.

Thank you 

Choose content type: 
Ask a question

Relationships/Connections Occurrences and DB Reorganization

$
0
0

This is a question about Connections/Relationships and Occurrences that will or won’t be Deleted by a DB Reorganization. I want to understand the differences between those Connections CREATED on a Model or on a Matrix as they seem to be treated differently by the Reorg. Also, I would like to find out how I can find this type of situation using a report/script.

Here is what I have observed. (screen shots attached)

I create a Model (Application Communication in this case) and place 2 different Application System Type Objects on the Model and save the model. Currently if I look at the Properties/Relationships on the Objects there are none. Now I create a Connection (transmits data to) from 1 Object to the other and save the model. Now if I look at the Properties/Relationships on the Objects I see the Relationship (connection) that I just created. If I right click on the Relationship and go to Properties/Occurrences I am shown the name of the model I am working on.

If I now Delete the visual line (connection) between the 2 Objects and save the model, when I look at the Properties/Relationships on either Object I still see the relationship between the 2 Objects. However, if I then right click on the Relationship and go to Properties/Occurrences there are NONE. This NO OCCURRENCE Connection/Relationship is/would be DELETED by a DB Reorganization.

Then I create a Matrix Model and place the same 2 Application System Type Objects on opposite Axes of the Matrix. I click “Cancel” when the “Define Visibility of Connections” dialogue opens.

I then click on “Display” for the “transmits data to” connection between 2 application system type objects and the check appears at the intersection of the objects in the Matrix. I save the Matrix.

Now when I look at Properties/Occurrences of the Connection/Relationship in either the Model or the Matrix there are NO OCCURRENCES. However, this NO OCCURRENCE Connection/Relationship will not/would not be DELETED by a DB Reorganization.

This can be confusing for Modelers working on models with objects (not a matrix) when they see multiple possible Relationships/Connections between Objects and yet the DB Reorganization will NOT clean these up and they are very difficult and time consuming to track down and clean up manually. So, any explanation and details that you can provide would be greatly appreciated.

Thank you.

 

Choose content type: 
Ask a question

UserList function not displaying all the users

$
0
0

Hi everyone,

I'm trying to get all the users from a database by using the following code:

var db = ArisData.getSelectedDatabases()[0];
var userList = db.UserList();

I'm getting only one user (mine) among ten other users, despite that the "UserList" function is a function which retrieves ALL the users of the database.

I thought it was a problem of privileges, so I gave the same privileges to another user, but nothing changed.

Either way, no matter which privileges the user has, I need to hold all of them in a list.

If someone knows an alternative way, it will really help.

I need all the user to know if each one has access to the database (yes/no/yes as system user).

Thank you

Choose content type: 
Ask a question

How to get the Last Active session for a user from the UMC ?

$
0
0

Hi ,

I'm trying to get all the database user's last active sessions informations from the Aris Administration.

There is a field called "Active Sessions", but it is only reporting users that are logged into the database if I'm correct.

There is another field called "History", and this one is empty.

Does someone know how I can retrieve, by using report scripting, the last active session (date and time) for all the users assigned to a specific database ?

Choose content type: 
Ask a question

How to get the Last Active session for a UMC user from script ?

$
0
0

Hi,

I'm writing a report that retrieves data about the Users. However, I didn't succeed to get the last active sessions of the users. I know that on Aris Connect, I can export an excel file with this data, but obviously it's not really helping me, because it must be done by running a report.

Is there a function that helps getting the last active session of a user? I searched in the Aris Script documentation, but I didn't find such a function.

Thank you

 

Choose content type: 
Ask a question

How to back up a filter?

How to change the language dependency of an Attribute

$
0
0

Hi,

I need to change the language dependency of both User defined Attribute and Aris default Attribute.

I heard that this is possible by writing a report, but I don't know which functions to use.

Does someone know how to do that ? How can I get the actual Attribute from the Method folder and switch the "Language dependent" of an Attribute to 0 ?

Thank you

 

Choose content type: 
Ask a question

Connect to Aris through Batch file in a specific language

Export attributes for translation

$
0
0

Hi,

I'm using the default Aris Script "Export attribute value for translation”. It works well, however, for some objects, the attributes values are not retrieved. For example, I have a model where 4 type of Objects are displayed: Event, Function Event and System. When I run the script on the model, I get an Excel file (see the attached screenshot), you can see in the column B , only Event, Function and Event Attributes are retrieved and not System. If someone know why, I'd like some help.

Thank you

File attachments: 
Choose content type: 
Ask a question

Bring objects to foreground with script

$
0
0

Hi everyone,

I'm trying to bring objects to the foreground, so I'm using the setZorder() function with 1000000 paramater.

for(var i = 0 ; i < objectList.length ; i++){
      
        objectList[i].setZOrder(1000000);
}

Some objects are brought to the foreground and some aren't.

Does someone have an explanation or a work around ?

cheers

Choose content type: 
Ask a question

Schedule a report and make it available to end users in Aris Document Storage ?

$
0
0

Hi all

is this possible and how ?  

We'd like to give the end users a (possibly) permanent URL where they could retrieve the report output (which could be stored in Aris Connect Document Repository)

 

Thanks

PS : a javascript solution is OK as our report is not a wysiwyg report

Choose content type: 
Ask a question

Matomo feed or Dynamic RSS feed

$
0
0

Hi All,

I am currently working to get Matomo up and going in our instance of ARIS. I am able to get the XML feed from Matomo into a datafeed without an issue but I do need to run a script over a specific field to convert a compressed GUID to match the model GUID in ARIS so then the data we are looking at makes sense.

Do you know if there is a way to import a datafeed from the “Dashboard and Datafeed” into a report so I can then update the required field or do you know if there is an RSS or XML API available to use that does not create a process model on the SoftwareAG cloud instance so then I can just parse the XML into an array and then convert the compressed GUID into one compatible?

I have tried to create a RSS feed reader and parser but a lot of this requires using inbuilt functions like Fetch or DomParser which is useful in a browser but not available in ARIS.

Any advice would be welcome.

Choose content type: 
Ask a question
Viewing all 257 articles
Browse latest View live