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.


Topics - YanDJ

Pages: [1]
1
Hi, I am trying to add a large initialization value to an attribute in c. This attribute is a large structure containing many elements, that's why my initialization value is large.
But when I tried to add the initialization value, EA cut off after 30000 characters.

Is there any way to increase the size limit?

Thank you for your understanding.

2
Hello, I manage to get the version 15 of EA.
I have an old project for which I would like to implement an Add-Ins to generate a specific part of a code :
Solution to my problem: https://sparxsystems.com/forums/smf/index.php/topic,43942.msg259467.html#msg259467

This old project was created with the version 13.
When I try to add the "Model Add-Ins" => Broadcast Types, I dont have access with my v13 project.
I try with a new v15 project I can.
Screen shoot: https://pasteboard.co/EmcppxAgtLi0.png

I think it is caused by the project configuration:
Screen shoot: https://pasteboard.co/HAxunV8lYB0u.png
**edit** I have the administrator right on this project.

But I cannot activate the Model Add Ins for my old project.

Do I need to create a new project or there is an another way to activate the Model Add Ins ?


3
General Board / Parameter customization IN/INOUT/OUT/RETURN
« on: December 12, 2020, 02:23:05 am »
Hello,

To define a Parameters we can associate an paramKind to the parameter with the option 'Direction'.
There many option :
  • In = By Value
  • InOut = By Reference
  • Out = Passed By Reference, but only the return value is significant
  • Return = The parameter is a returned value
But is there a way to customize EA to add an option ? for example : 'In_Ptr'

Thank you


   
   
   

4
Hello,

I generate automaticaly ours design with EA and an SQL Fragment.
I am able to retrieve an list of tag value with the same name and rename as "dependencies" with the following code:
Code: [Select]
GROUP_CONCAT( DISTINCT optag4.value ORDER BY optag4.ElementID DESC SEPARATOR ', ') AS dependencies,
But the query works well but when I have too many characters (> 1024 char) the GROUP_CONCAT stop concat all my tag value with the same name.
I found that in mySQL, I have to write in my query :
Code: [Select]
SET SESSION group_concat_max_len = 1000000;
But when I try to set, the querry do nothing and return nothing.

Has anyone ever had this problem before?

Thank You

Yan

EDIT: The subject have been resolved by changing the configuration of the server :
I've changed the file "my.ini" in the repository C:\ProgramData\MySQL\MySQL Server 8.0

To add the line :
Code: [Select]
group_concat_max_len=25000

5
General Board / [Code generation] List all opTag:"myTag" for an operation
« on: February 12, 2020, 01:45:45 am »
Hello,

I try to configure the Code Template Editor.
We have define a tag value : "Error_Code" to write all the return code that the functions could return.
But the same tag has been created several times because the size of the value is too big (name + description).
When I generate the code, I use $returnCode += %opTag:"Error_Code"% to retrieve the tag.
But I get only the first tag name "Error_code" the generator find.
I try to find a way to do this in https://www.sparxsystems.com/enterprise_architect_user_guide/15.1/model_domains/taggedvaluemacros.html but I didn't found.

Is it possible to retrieve all the tags "Error_code" at once ?
(Maybe with something like %list="myTag" @separator="\n*"%)

6
Hello,

I try to extract some value with a Fragment with a SQL query, but I don't have acces to the Id of the operation I currently processing.
I would like to use #OPERATIONID# like #OBJECTID# but it seems not available :

Here my query tested in "Find in Project" and it works :
SELECT allfunction.* FROM t_operation AS allfunction
INNER JOIN t_operationtag AS function_tag ON allfunction.OperationID = function_tag.ElementID, t_operation AS myFunction
WHERE myFunction.Object_ID = '773'
AND myFunction.OperationID = '2758'
AND function_tag.Property = 'Calls'
AND function_tag.VALUE LIKE CONCAT("%", myFunction.Name, "%")

And here in my SQL Fragment :
SELECT allfunction.Name AS Name FROM t_operation AS allfunction
INNER JOIN t_operationtag AS function_tag ON allfunction.OperationID = function_tag.ElementID, t_operation AS myFunction
WHERE myFunction.Object_ID = '#OBJECTID#'
AND myFunction.OperationID = '#OPERATIONID#'
AND function_tag.Property = 'Calls'
AND function_tag.VALUE LIKE CONCAT("%", myFunction.Name, "%")

This query return all the operation who calls the operation myFunction.OperationID = '#OPERATIONID#'
I can't find a solution to get the OperationID.

Hope someone can help me to figure this out ?

Pages: [1]