Focal Point
[SOLVED] Need a way to dynamically add store number to file names burst out by email:

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4707024786

August 03, 2017, 12:54 PM
CoolGuy
[SOLVED] Need a way to dynamically add store number to file names burst out by email:
Hi all,

My scenario is that I have table request in WF that gets its data from an Excel sheet. I need to output the data back into Excel with the changes the request makes to it. The only catch is I need to distribute via a dynamic distribution list wherein each file attachment has the store number in the file name. So, if Billy Bob Joe gets several attachments in one email to in turn disperse to others he's in charge of, he needs to be able to uniquely identify each attachment by store number to do so.

In the table request I have I've tried something like the following with no luck:

TABLE FILE sheetName
PRINT
STORE_NUMBER
...
BY ...
ON TABLE PCHOLD AS "Exp_Drug_Credits for <STORE_NUMBER" FORMAT EXL2K


Does anyone know of a way to grab a value from a request and make it available in the output's desired file name?


Thanks in advance!

This message has been edited. Last edited by: CoolGuy,


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
August 03, 2017, 01:26 PM
MartinY
Using ON TABLE SET COMPOUND BYTOC and the RC bursting feature will have each file name's suffix with the first BY field. In your case it should be the store number.
TABLE FILE CAR
PRINT RETAIL_COST
BY COUNTRY
BY CAR
ON TABLE PCHOLD AS "Exp_Drug_Credits" FORMAT EXL2K
ON TABLE SET COMPOUND BYTOC
END


Hope this help


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
August 03, 2017, 01:37 PM
Hallway
We also just found out that in the schedule, under task, you can use '%BURST' in the Save Report As: filename
 Exp_Drug_Credits for '%BURST' 



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
August 03, 2017, 01:45 PM
CoolGuy
Thanks all! "Learned me" something new today. Wink


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
August 04, 2017, 02:16 AM
Dave
It just dawned on me that this is the solution to countless previous questions about adding a parameter to the output name ( save report as ) issue in the Report Caster...

...just add a dummy BY-field NOPRINT with the desired ( dynamic ) filename to all rows. Check "Burst Report" and you're done. Wink


_____________________
WF: 8.0.0.9 > going 8.2.0.5
December 07, 2017, 12:18 PM
SWES
Is there also a way to not have the file name burst out? It appears to me that there has been a change with WF 8, since previously the file name was not added and it was only the burst value itself?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup