#35607 - 02/18/13 11:17 AM
 
GridView can do this, but how?
 | 
 
 
 
Adagio God
 
 
 
Registered:  03/10/02
 
Posts: 4544
 
Loc:  Wynnewood, PA
 
(96.245.81.238)
 | 
A client wants 10 salespeople to be able to view one-day-old receivables information, each salesperson looking at their specific customers only. The report could be a PDF or an Excel spreadsheet. They have created a folder for each salesperson on their server, and that's were they would like each report sent.
  They want the reports updated "automatically" every evening. They are comfortable using Task Scheduler.
  I know I can use GridView to generate the report, and build 10 filters, one for each salesperson. But how can I have it "automatically" create 10 Excel spreadsheets, each in a different folder depending on the filter.
  I might add that it takes a few minutes to recalculate the GridView, so the fewer recalcs needed, the better.
  Not as critical, but they have two sister companies, with shared salespeople. It would be ideal if each salesperson's report contained two customer lists - one for each company. In Excel this would mean two separate sheets. If this is not feasible, they are OK with getting two separate reports.
  Thanks for any suggestions you might have, especially if they involve GridView functions I am not familiar with.
  Steve 
 
 |  
| 
Top
 | 
 | 
 
 
 | 
 
 
 | 
 
 
#35618 - 02/18/13 12:53 PM
 
Re: GridView can do this, but how?
[Re: Steve Schwartz]
 | 
 
 
 
Adagio Master
 
 
 
Registered:  03/16/99
 
Posts: 10504
 
Loc:  Canada
 
(184.70.7.174)
 | 
Who said anything about logging in 10 times?
  This is going to run overnight as a scheduled task. The batch file will contain 10 separate invocations of GridView.EXE with different filters specified on each invocation. The resulting spreadsheet will be placed in a known Folder. The next line in the batch file copies the workbook to its final resting place for the salespeople. Then the workbook is deleted and the next GridView.EXE with a /XDW parameter is invoked. 
_________________________ 
Andrew Bates
 
 
 |  
| 
Top
 | 
 | 
 
 
 | 
 
 
 | 
 
 
#35619 - 02/18/13 12:54 PM
 
Re: GridView can do this, but how?
[Re: Steve Schwartz]
 | 
 
 
 
Adagio Virtuoso
 
 
Registered:  02/07/02
 
Posts: 839
 
Loc:  Vancouver, BC
 
(184.70.7.174)
 | 
Think about creating a multi line "batch file" with all the correct /XD parameters on the individual lines and then scheduling the running of that file.
  G:\Softrak\GGVWin\GVWin.exe /.......... G:\Softrak\GGVWin\GVWin.exe /.......... .... .... G:\Softrak\GGVWin\GVWin.exe /..........
  It will be able to get you exactly what you want. 
 
 |  
| 
Top
 | 
 | 
 
 
 | 
 
 
 | 
 
 
#35624 - 02/18/13 02:08 PM
 
Re: GridView can do this, but how?
[Re: Retired_Guy]
 | 
 
 
 
Adagio Virtuoso
 
 
Registered:  02/07/02
 
Posts: 839
 
Loc:  Vancouver, BC
 
(184.70.7.174)
 | 
D:\RD\Softrak\GVWin\GVWin.exe /c /usys /psys  /d:D:\RD\Softrak\APWIN\SAMDATA  /e:SAM  /xdw:"D:\RD\Softrak\APWIN\SAMDATA\Views\VendorBalances.gvs"  /XDF:"GVVendorBalance:NotZero" /F:"D:\RD\Softrak\APWIN\SAMDATA\Views\User"
  The above will automatically load the WorkSpace   D:\RD\Softrak\APWIN\SAMDATA\Views\VendorBalances.gvs
  Apply the filter "NotZero" to the View "GVVendorBalance"
  Send the result to Excel
  Save the XLS(X) in
  D:\RD\Softrak\APWIN\SAMDATA\Views\User\XDViews
  Create a log file called GVLog.log
  Time to start experimenting....
 
  
 
 |  
| 
Top
 | 
 | 
 
 
 | 
 
 
 | 
 
 
#35633 - 02/18/13 07:23 PM
 
Re: GridView can do this, but how?
[Re: Steve Schwartz]
 | 
 
 
 
Adagio Virtuoso
 
 
Registered:  02/07/02
 
Posts: 839
 
Loc:  Vancouver, BC
 
(184.70.7.174)
 | 
Workspace with a single view may not apply the filter, the work around is to Add a 2nd View to the Workspace and and set the recalc Order..
  File | Set Workspace Recalc Order
  Any View you want to go out to Excel must have Allow Export
  If you don't want the 2nd View to be exported untick Allow Export
  If you must send your work use 
  File | Gather files for support 
  and zip collection and upload to data repair attention Michael 
 
 |  
| 
Top
 | 
 | 
 
 
 | 
 
 
 | 
 
 
 
 
	
 | 
	
 
| 
0 registered (), 
63 
Guests and
4 
Spiders online. | 
 
| 
 
	Key:
	Admin,
	Global Mod,
	Mod
 
 | 
 
 
 | 
 
 
 
1874 Members 
5 Forums 
14562 Topics 
71059 Posts 
 
Max Online: 484 @ 10/22/25 07:22 PM
 
 | 
 
 
 | 
 
 
 
 
|  
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
		1
	 | 
 
|  
		2
	 | 
 
		3
	 | 
 
		4
	 | 
 
		5
	 | 
 
		6
	 | 
 
		7
	 | 
 
		8
	 | 
 
|  
		9
	 | 
 
		10
	 | 
 
		11
	 | 
 
		12
	 | 
 
		13
	 | 
 
		14
	 | 
 
		15
	 | 
 
|  
		16
	 | 
 
		17
	 | 
 
		18
	 | 
 
		19
	 | 
 
		20
	 | 
 
		21
	 | 
 
		22
	 | 
 
|  
		23
	 | 
 
		24
	 | 
 
		25
	 | 
 
		26
	 | 
 
		27
	 | 
 
		28
	 | 
 
		29
	 | 
 
|  
		30
	 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 
 | 
 
 
 
 
 |