01-29-2008 10:25 AM
01-30-2008 01:49 AM
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
01-30-2008 06:09 PM
Hi SethRow187,
Let's take this one step at a time, starting with the one REPORT sheet per Data Portal Group request. This is something that I do all the time, and I have developed lots of standard functions that I can re-use quickly and easily. DIAdem has the basic functions which enable this, but it takes quite a few commands to get this to work the way you and I want with absolute control.
In the "Group Sheets General" example I'm attaching below, the same REPORT layout TDR file is loaded once for each Data Portal Group, and then subsequently altered programmatically so that all the Group references in the REPORT objects (graphs, tables, text boxes) are replaced with references to the current Group. This results in N REPORT sheets where each sheet has explicit references to a particular Group.
In the "Group Sheets Simple" example I'm attaching below, again the same REPORT layout TDR file is loaded once for each Data Portal Group, but in this case no further change is made to each REPORT sheet after it is loaded. This results in N REPORT sheets which are absolutely identical in content to each other and which all reference the default Group. They appear different when refreshed because in each sheet, under its "Settings>>Layout Setup>>Worksheet Parameters" dialog there is a command configured to run each time the sheet is refreshed-- this command uses the current REPORT sheet index to set the corresponding Group to be the default Group.
In both cases the name of the Group is used for the REPORT sheet, which is convenient in that both Group names and REPORT sheet names are required to be unique, but you could use the Group description or any other property instead as long as you ensure that it has not already been used to name a previous REPORT sheet.
I also have scripts to concatenate the contents of N Groups into a new Group, located at the top of the Data Portal, and this combined with the below attached applications would give you the lead off overview REPORT sheet you mentioned.
Brad Turpin
DIAdem Product Support Engineer
National Instruments