Sparx Enterprise Architect EA truncates diagrams in publishing process - report

While I run a report on some elements, BPMN diagrams are part of the report.
However, EA truncated the images on the rights and the lower side; instead of scaling them into the page.
I tried to adjust parameters according to https://sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/scaletopage.html but there was no change in the re-published document.
Any idea what other switches could be used?
Inside my template, it looks like
diagram>
{Diagram.DiagramImage}
<diagram
and for each diagram, the Properties -> Diagram -> Advanced -> Scale to 1 page is selected.

If the problem is that only the border of the image are cut off you might have an issue with incompatible settings.
These settings are relevant:
Start | Desktop | Preferences | Diagram
Document generation options (F8)
If you use multiple displays, with different DPI settings (at least one High DPI) you might also see issues like this.

Related

Scada-LTS Synoptic Panel not showing data values

First, many thanks to the Scada-LTS team for making this excellent tool available.
I have successfully implemented the functionality of a Scada system by testing two virtual data points (a binary data point representing valve status and a numeric data point representing fluid flow) in a Graphical View panel but in a Synoptic panel populated with elements drawn in Inkscape, I am unable to view data values. I carefully adopted the object ID convention described in the Scada-LTS tutorial video and although graphical objects assigned SLTS_valve_1_background_left' and 'SLTS_valve_1_background_right'change color as expected, default text in the text box with ID 'SLTS_valve_1_value' disappears when the Synoptic Panel loads. The contents of a text box with ID 'SLTS_point_1_value' associated with the numeric data point also disappears and is not replaced with live data.
I am running Scada-LTS on a Windows 10 computer in docker containers and have tried Microsoft Edge and Firefox browsers. Has anybody else experienced this problem and come up with a solution, or did I miss something in the tutorial?

Why is there a CLS problem with real user data but not with the lab data?

when I test the page in DevTools, there is no problem with CLS.
But, with pagespeed-insights there appears a difficulty with the mobile page CLS.
Not for the lab data, but only for the real data:
https://federhilfe.de/rotkehlchen-anlocken-im-garten-ansiedeln-fuetterung-nisthilfen/
https://pagespeed.web.dev/report?url=https%3A%2F%2Ffederhilfe.de%2Frotkehlchen-anlocken-im-garten-ansiedeln-fuetterung-nisthilfen%2F&hl=de
Do you have any idea how to solve this problem?
Thank you very much!
Alex
The guide at web.dev/lab-and-field-data-differences mentions a few reasons why CLS may be different across lab and field measurement:
CLS may depend on real-user interaction, while lab tests do not simulate any interactions (by default)
Personalized content from real users may affect CLS, which may not be represented in lab testing
Real users may have warm caches, so content may not need to load, minimizing CLS, whereas lab tests traditionally run with empty caches
To help identify why CLS is happening to real users, the first step I'd recommend is to use the website yourself with something like the Web Vitals extension enabled. Just from scrolling to the bottom of the page with the heads-up display (HUD) turned on, I can see CLS values gradually increasing and exceeding the "good" threshold of 0.1
I'd also recommend measuring Web Vitals in the field to ensure that you have additional debug data about what might be causing CLS to your real users.
Even though this kind of interaction-induced CLS wouldn't be reproduced by lab testing, it could still identify possible causes of real-user CLS. The PageSpeed Insights link you shared, you can click Show audits relevant to: CLS. For the desktop results, there are two audits that need attention:
Image elements do not have explicit width and height
Avoid large layout shifts

DPF portfolio with fillable dependable pdf forms

I have pdf portfolio with some fillable pdf forms in it. This portfolio is generated via LiveCycle services.
All of these pdf forms have equivalent fields. For example: portfolio consists of pdfX, pdfY, pfdZ. And every pdf have fillable field "userName".
And it is not convenient for a user to put the same data to every pdf form.
User wants to put data only to the first one pdf. So, other pdf forms must be filled with data automatically.
And, there is one restriction: user can't send portfilio back to the server, so all automated changes must be done on the client side.
So, is there any way to solve such task?
If there is, please describe some algorithm\strategy of how this can be done.
Thank you.
You seem to be looking for a way to programmatically access or change the content of a portfolio element from another portfolio element. This requires the first element to be aware of the other element.
This is what I found on The PDF Developer Junkie Blog when I investigated in the possibilites of scripting portfolios. Take a look at the last paragraph. Maybe it'll point you in the right direction.
Dennis Smith | April 07, 2010 3:13 PM |
I hope you can help me. I have two pdf files combined into 1 portfolio. File 1 has a field “name” and File 2 has a field “lastname”. When someone enters a value into the field “name” in File 1, I want File 2 to contain the same value in the field “lastname”. This would be for files that are distributed to the public, so I really can’t change the security levels of the user’s computers. Right now I am combining File 1 and File 2 into a larger File 3 and just handling all of this with javascript.
getField(“lastname”).value=getField(“name”).value;
Joel Geraci | April 07, 2010 3:28 PM |
Thanks for the comment: Unfortunately, that’s not possible without adding a folder level JavaScript that can add a menu item to synchronize the fields or by disabling the navigator (Flash UI) of the Portfolio.
If you disabled the navigator, you could add a button to the “Cover Sheet” that synchronized the fields.
The main issue is that items in a Portfolio cannot communicate directly with their peers and don’t know anything about their parent. The root PDF (cover sheet) does know about it’s children which is why a button placed there will be able to synch the fields.

Visio 2013: Limit displayed lines in a shape

Visio 2013: Create scrollbar for hidden overflow
.
I have a list of over 112 items. Which, is extensive for a simple diagram. I would like to have only 4 lines viewable and have a scroll bar to view the overflow.ties.
e.g.
I have a list of sites that are hosted on each server. To have all the sites for all servers displayed will decrease diagram readability. I need to set the max displayed lines to 4. The rest needs to be hidden. You should be able to view these by using a scroll bar.
This is a common practice in HTML. Hoping to find a way to do this with Visio 2013 also.
For example:
domain1.com
domain2.com
domain3.com
domain4.com
--Overflow--
domain5.com
domain6.com
andmanymore.com
Instead of doing the filtering in visio, provide already filtered data. ie: fill the list field already with a string, where the domains are separated by CHR(10).
This operation is easier to realise in excel/access/VBA.
I would send a draft, but I don't see a possibility to add attachments to answers.
HTH, otherwise don't hesitate to ask for details.
I guess that you have the list of domains in a user defined field.
Now add another field with the following formula mid(prop.yourlist,controls.start,prop.numberOfCharactersToDisplay)
where:
controls.start would be a control added to scroll your list and
prop.numberof.. the number of characters to display.
Insert now the new field to be displayed in your shape. Done.
These formulas will of course truncate your domains at any place in the string. If you want it to show always full lines, you should look for the line breaks (find(char(10), yourList)
HTH

How can we generate Reports using flex bulider?

is it possiable we can bulid the reports using flex bulider ? or can we and any
frameworks for build the reports ? .
i don't know what way to bulid the reports
flex bulider have any build reports compoents there?
i want sorting reports order like
By Product Company Name Expected Close Month
Consultant Expected Revenue
this is are fields
Product 1 A May’10 X £1,000.00
B Jun’10 Y £2,000.00 C Jul’10
X £3,000.00 Sub Total
£6,000.00
Product 2 etc
Grand Total £24,000.00
This is are data . How is it possiable ?
Could u give any gudiends me ?
Answer based on first revision.
Typically applications would give this responsibility to the server. Your Flex application passes parameters to the server with a request for a PDF document and the server puts together the appropriate one and seconds it back.
If you're using AIR to run your Flex application you could probably write a library to create a PDF file and then same it to the user's computer but I would stress that the kind of libraries you would need for your server already exist. For example: http://php.net/pdf
Report tends to be a rather generic term and as the other responder indicated that it meant PDF to him/her. The application I am working on is very report heavy. We have a requirement for a client side report ("Think Report in Flex") and PDF version of the same report.
When we originally looked 1yr back, there is no Report library that provides the equivalent of what lifecycle does on the server. Therefore we have had to build our own and it is based on a generic template mechanism.
So can it be done. Yes. But I would recommend developing a generic means to render your reports and it is not a easy task if you want to keep it generic so you can create multiple type of reports.
Also, avoid the trap of nesting your reports through VBOX, HBOX and containers to provide a flexible layout system as it will not perform well.

Resources