Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Directory Creation

Can you please change the report object to incorporate directory creation?  I'd like to file reports by date/time and dynamic directory creation is needed to do this in Lookout.

 

Another way to print screens to pdf (preferred) or html with date/time directories or filenames would be welcome.  Since the report graphic objects are not nameable (by date/time for example), new directory is needed for each report to properly file/separate them.

 

Related to this is the ability to make a date object (expression, or other) dynamic included in a filename with the correct numeric format.  No luck so far.

 

Ideas/experience welcome!

0 Kudos
Message 1 of 5
(6,551 Views)

We got around this problem by creating a run command:

 

Create a new Run object

For the command: "cmd /c md """&ExportPath&""""

 

Export path is the complete path for the directory. c:\folder1\folder2

 

Run the command, then export the report

 

Good luck

Mike

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 2 of 5
(6,547 Views)
Ahh yes, but I'm unaware of command that wiill dynamically create directories by month-day-hour. It would be slick if Lookout could do this on it's own
0 Kudos
Message 3 of 5
(6,544 Views)

Okay, I've got it.  You will need to disable images for this post page to see as typed (without smiley faces...that are NOT supposed to be in my text below)

 

Key was to use expressions with embedded text functions such as:

 

 "cmd /c mkdir \\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)

 

The above is the value of an expression object that is connected to the run object's "Command line" property which writes the directory yyyy-mm-dd\hh based on a conditional pot value.

 

The report's " Output directory" property uses another expression object that is similar, just without the dos command:

 

"\\Domain\Share\lookout\reports\all_rad\"&left(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),10)&"\"&mid(text(if(Sw_All_Rad_Tnd_Live,now(Tmr_5sec),Pt_All_Ht_Start.value),"yyyy-mm-dd hh:mm"),12,2)

 

Lookout is power, even if it is clumsy sometimes.

 

A separate issue with reports is that the panels I am trying to print are full screen (normally maximized, normal panels).  Unfortunately, when the Panel.graphic is connected to the report.display parameter, it uses the screen property size and does not use the "maximized" equivalent size.

 

The issue is that you cannot make a "non" maximized normal panel as big as it is when displayed maximized, so it is impossible to print the entire panel as it is displayed in Lookout.

It would be great if this could be "fixed" some how.  Ryan....comment?

 

Ed

Message Edited by erblock on 04-28-2009 12:53 AM
0 Kudos
Message 4 of 5
(6,540 Views)

One workaround is to input the maximized size to panel.height and panel.width when the panel is not maximized.

For example, after I maximize a panel, I can get its width and height from its datamember. Then, I normalize it, and create two pots connected to height and width datamembers, and input the maximized size. Then the panel won't be maximized, but will be have the same size.

Hope this works for you.

Ryan Shi
National Instruments
0 Kudos
Message 5 of 5
(6,520 Views)