Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - asseco

Pages: [1]
1
Clear and simple. It works. Thx

2
I want to write script like "Searching element by guid" so I need geting guid from user.

Is there any method to geting data from user using scripting (JScript)
or maybe other solutions to search EA repository by guid.


3
Thx for help.

4
EA
I want to create Note element on logical diagram using JScript.

I tried:
Code: [Select]
var note as EA.DiagramObject;
note = dgmObjects.AddNew("l=20;t=20;b=40;r=200;", "Note");
note.Update();
but its not work.

There is no Note element on diagram.

After this I thought that maybe the Note was created but
is not visible in diagram and I tried
Code: [Select]
Repository.Execute("Update t_object SET Object_Type=\'Note\', Note =\'"+cls.ElementGUID+"\' WHERE Object_ID="+note.ElementID

but note.ElelmentID is 0.

Any sugestions.


5
Thx. Its working.

6
Hi.
I tried to update auto name counter for diagram from within JScript script. I have configured EA > Settings > Auto name counter .. > Type: Dgm-Logical. It store data inside t_trxtypes table;  

I get counter data ( number ) from this xml variable:

xml = Repository.SQLQuery('select notes from t_trxtypes where description = \'Autocount\' and trx = \'Dgm-Logical\';');      


Repository.SQLQuery method can only select data. I tried update data like below but it not work.

counter = Repository.SQLQuery('update t_trxtypes set notes =\''+data+'\' where description = \'Autocount\' and trx = \'Dgm-Logical\'; commit;');

Is any other way to get/change or update actual counter value within JScript?

Pages: [1]