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

Importing of .arx file

$
0
0

Hi All,

I have an arx file that was created in Aris v7, created using the local database. The script was exported, but when I try to import it on the server using ARIS 9.8 I get: "The file version of the script is incorrect". I tried to import the script on another machine with ARIS 7 installed, and it gives the same error.

Any ideas on what could be wrong?

Thanks,

Willem


Database backup inside a report

$
0
0

Hallo folks,

for creating a backup inside a report I have the following function DbBackup:

function DbBackup()
{
    var ADB   = ArisData.getActiveDatabase();
    var oFile;
    var oDbAdmin;
    var lOK;
    var sPath = "C:\\Download";
    var sFile = "WorkDB "+Date();

    Context.setSelectedPath(sPath);
    Context.setSelectedFile(sFile);
    oFile     = new java.io.File(sPath, sFile);
    oDbAdmin  = Context.getComponent("ServerAdmin");
    lOK       = oDbAdmin.backupDatabase(ADB, oFile);

    return;
}

 

This function runs through without creating an error.
But unfortunately it does not create any backup file and the answer of "oDbAdmin.backupDatabase(ADB, oFile)" is "false". (lOK = false)
The path "C:\Download" exists on my computer and I run the report on my local server for development.
When starting a backup of this database manually I have no problems. That works fine.

Now I would be very happy if anybody can help me and show me where my mistake is.
Many thanks in advance,
Holger

Export Spreadsheet content in doc file

$
0
0

Hi to all,

I've created a Spreadsheet to define a table with a static labels (table of abbreviations) and I need to export it in the process documentation.

How do I read cells data and export them in a doc document?

Thanks,

Anna.

Possibilty to get user info of the user who "keeps" a model opened

$
0
0

Hi,

I'm trying to figure out in script how to get user info who opened a model for editing and "forgot about that". Others could do nothing with this model, read ONLY. Is it possible to get that data? My report runs on DB level and I can get all those problematic models by simple hack with try/catch setBgColor but it does not bring much info.

Nothing to do with API:  Context.getComponent("Locking") because models are not really locked.

Some ideas?

Thanks.

How do I exclude "Connected models" of selected model

$
0
0

Hi to all,

I'm using "RA(S)CI - Print Organization Participations to Processes" report.

I need to exclude the sheets related to "connected models", this sheets are called (1), (2),(3),...

Can you help me please?

Regards,

Anna.

Change attribute id in a model

$
0
0

Hi There,

I have a group of models where I have used a fragment to input a header on each model, the resulting header contains 7 different attributes and an image.

Now that I have run through the process of adding them all, I have discovered that one of the attributes is incorrect (the attribute selected, not the value - example: I wanted the attribute shown to be "changed by" instead of "changed on").

Is it possible to change this programmatically all at once? Something like the below:

 

var grpMdls = ArisData.getSelectedGroups()[0].ModelList(true);
var g_nLoc = Context.getSelectedLanguage();

for(var z = 0; z < grpMdls.length; z++){
var MdlAttrs = grpMdls[z].Attribute(1584,g_nLoc)
MdlAttrs.Type()=264917
}

 

Obviously, I can't use Type() as the left hand side, but I'm wondering if there is another way?

Html format text inside table cell

$
0
0

Hi,

How can I set text inside table cell as a html format.

As an example, I can able to set text like,

 p_oOutput.OutputFormattedText(htmltext);

But want to set html text inside table cell.

  p_ oOutput.TableCell(.........);

Let me know if you have any solution on this.

Thanks,

Rupam

objects and variables in local script service for APG

$
0
0

Hi,

Does anyone have an overview of which objects and variables are available when writing a custom local script service for APG?

Looking at the out-of-the-box services I can see that there is an input object, which has all the input variables as properties and there is an output object which has all the output variables as properties. But what else is there? Do we have all the objects from the Reports and Semantick Checks?

In the ARIS User Management services an object called "userManagement" is used to update UMC related data, but where can I find the methods for this object?

 

Hope someone can help me.

 

Best regards,
Simon W. Abildgaard


Data from Macro to Report

$
0
0

Good day,

I have a question regarding the use of macros. I run a macro whenever a user creates a new folder. This macro executes a report that sets the access for the user. However, I'm not sure how to pass the newly created folder to the report, so currently I set the rights for every folder owned by that user. Long, slow process.

Can anyone please suggest a way to pass the newly created folder from the macro to the report please?

Thank you,

Nevar

Macro for connecting all "function" objects instantly

$
0
0

Let me know if there is any Macro/ option set available for connecting all "function" objects instantly in serial order.

Consuming web service by Aris 7.2 report script

$
0
0

Is it possibile to invoke a web service from Aris 7.2 report script?

I built a jar of a soap client, saved it in lib folder, but when I try to instantiate the class

(var proxy = new Packages.myclass.myclass()),

a noClasspathFoundError error occurs.

setting Lane Properties (setLaneAttributeModellingProperties)

$
0
0

Dear Community,
I'm trying to copy LaneAttributeModellingProperties from one lane to another, but after execution of the code listed below, error message appears: "Error during script execution: Lane.setLaneAttributeModellingProperties", with no further explanation.

What is wrong here? Unfortunately there is almost no documentation on setting LaneAttributeModellingProperties and time dependant models. (ARIS 7.2).

<code>

function main(){
    
    var locale = Context.getSelectedLanguage();
    var database = ArisData.getActiveDatabase();
    var template_model_GUID = "9d63eb10-****-11e7-576e-0a0027000000";
    var newModel_group_GUID = "731b9760-****-11e7-576e-0a0027000000";
    var template_model = database.FindGUID(template_model_GUID);
    var template_lane = template_model.GetLanes(Constants.LANE_VERTICAL)[0];
    var template_laneProperties = template_lane.getLaneAttributeModellingProperties();

    //create new model
    var group = database.FindGUID(newModel_group_GUID);
    var newModel = group.CreateModel(Constants.MT_PROJECT_SCHEDULE, "Roadmap", locale);
    
    //delete any horizontal or vertical lanes in the new model (because they are created automatically in previous step)
    var horizontalLanes = newModel.GetLanes(Constants.LANE_HORIZONTAL);
    for (var h in horizontalLanes){
        newModel.deleteLane(horizontalLanes[h]);
    }
    var verticalLanes = newModel.GetLanes(Constants.LANE_VERTICAL);
    for (var v in verticalLanes){
        newModel.deleteLane(verticalLanes[v]);
    }
    
    //create single new lane and setLaneAttributeModellingProperties
    var newLane = newModel.createLane(9999,Constants.LANE_VERTICAL);
    newLane.setLaneAttributeModellingProperties(template_laneProperties,true);
}

main();

</code>

Greetings,
Jacek

Edit Code not showing

$
0
0

Dear all

I am facing a problem with opining my code editor, it was working fine till windows update. I reversed the update, reinstall java and even reinstall ARIS; still not working. Attached screenshot.

Thank you all

ARIS Report: Get character based format of an Excel cell

$
0
0

Hi there,

i have a cell in Excel which contains for example the value „true, false“ and only the „true“-part of the cell is formatted with an underline (that’s how you format default output entries in DMN decision tables, see uploaded screenshot). How can my report detect this special part-formatting of an Excel cell?

I only found this to get the format oft the whole cell, but i need it character based:

 

var oCell = oSheet.getCell(nRow, nColumn);

var nFont = oCell.getCellStyle().getFontIndex();

Dialogs.MsgBox(nFont);

 

nFont is 12 if the whole cell ist formatted underline, else 7. I although want to create this character based formatting with ARIS in one Excel cell.

Any help would be appreciated.

File attachments: 

Aris Report Or Script : Export pdf with external hyperlink active

$
0
0

Hello,

I have found several old posts with this subject but no answer... : ex  http://www.ariscommunity.com/users/dhdillon/2009-11-04-any-ideas-how-export-active-linkfrom-express

I'm using Aris V9, and I need to create pdf documents with active external links.

I use Link's attributes for each object of a model, make attributes visible, but I can only export by standard script a static pdf file.

Is it possible (standard function or by script report) to generate a dynamic pdf file with active external links ?

Thank's for your help

Jean-Philippe


Insert row in Excel worksheet

$
0
0

Hi Aris community,

I need create an excel workbook starting from a template and to modify only few data:

var sfile = Context.getFile(filename, Constants.LOCATION_SCRIPT);
if (sfile != null && sfile != undefined) {

    var p_output = Context.createExcelWorkbook ( Context.getSelectedFile() , sfile);

}

I need also to insert new rows in some position, shifting the next ones, but the method:

p_output.sheets[0].createRow (pos)

doesn't create a new row, it only returns me the existing row at position pos.

Is there any way to insert a new row (whithout using explicity org.apache.poi)?

Maggiù

 

Report error (-32239)

$
0
0

Hi, community,

I've got a problem with my report. ARIS shows me an error window (Error creating report: -32239) when report is started.

It looks like this:

 

I use Merge Fields in my output file template  to fill in with arguments from script.

If i block several strings which contain output text, error code changes. Like this :

I cant determinate the cause of my problem ,because when i start the same report in ARIS debugger (or start in a context of model/object while debugger is open), it works.

Please help to solve this problem.

Thank's for your help

Andrey

ARIS 10 Long script export

$
0
0

Hello!

I have just installed ARIS 10 Architect to my PC and replace ARIS 9.8.

No memory and runnables customizations.

Export of scripts now takes about 2 minutes between window for output file choose and windows with list of common files.

ARIS 9.8 took 10 sec to export whole script in the same environment.

Do I have to adjust memory settings? Or is this a bug in ARIS?

Hope this helps improve quality.

BR, Ilya.

Export SIPOC model - advice please

$
0
0

Hiya

I would like to export the contents (objects and connections) in my SIPOC models pretty much as they are defined

SUPPLIER, supplier-input connection, INPUT, input-process connection, PROCESS, process-output connection, OUTPUT, output-customer connection, CUSTOMER

how would I best achieve this query or report?

I am pretty much a noob at this so any guidance much appreciated or a sample even better :)

thanks

Robbie

 

 

ARIS Script

$
0
0

Hi all ,

please help me , i want to show report contain all user for all databases .

i do it manualy using  ArisData.openDatabase(nameofDataBase) , but i want all database

 

Best Regards ,  

Tags: 
Viewing all 1118 articles
Browse latest View live