11-24-2017 02:32 AM
Hello,
is it somehow possible to have a text element in a report, that can only be changed via a script, so that user can't edit it with a double click.
I want to have a UI, where I can define how my Header of the Report should look like. The values will be calculated by the script.
For example:
AvgWeight: .... AvgHeight: .... AvgForce: ..... and so on.
One thing that I'm doing already is to put in a global variable in the masterlayout and then change the variable via script. The problem is that I want to have the user choose, which parameter should be displayed and therefore it is necessary to build up the Line dynamically. Also it is not possible for us to use more then a few masterlayouts.
I would apprechiate any help. Thanks
Michal
11-28-2017 03:33 PM
Hi Michal,
DIAdem was designed to make interactive editing of reports easy. There's no built-in provision to lock a particular REPORT object so that it can't be edited interactively. One thought is that you could group all the objects together so that double-clicking on anything did not pop up the configuration dialog. Any savvy user could probably figure out to ungroup the objects, though, and then it would be open season again.
Another possibility would be to dynamically load a report layout sheet with references to generate, say, a textbox with the right content, then programmatically save that sheet to a jpg or png image file, then programmatically reference that image in the layout the customer gets to handle after the script finishes. DIAdem 2017 and previous versions just don't have built-in features to lock layout content from prying user fingers.
Brad Turpin
DIAdem Product Support Engineer
National Instruments