cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dtsteinb
Engaged Sweeper II
I plan on using Lansweeper for inventory of new monitors/pc/s/switches etc. I will enter them in manually. When I do New Asset for State I have each location with -Stock (ex. NY -Stock, NJ -Stock). I want to have a report showing me what I have in stock. I put my laptop in NY -Stock but the report I tried to create show nothing.
Any help is appreciated. In the report I would like it to show
AssetName Type Manufacturer Model State Purchased
NY-laptop1 PC HP Probook 4430 NY -STOCK 5/19/2016
1 ACCEPTED SOLUTION
Nick_VDB
Champion Sweeper III
The report will search for assets with a state that has -stock in it. Instructions for adding the report below to your Lansweeper installation can be found here.

If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblState.Statename,
tblAssetCustom.PurchaseDate
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblState.Statename Like '%-stock%'

View solution in original post

2 REPLIES 2
dtsteinb
Engaged Sweeper II
Great, works. Thanks for the help.
Nick_VDB
Champion Sweeper III
The report will search for assets with a state that has -stock in it. Instructions for adding the report below to your Lansweeper installation can be found here.

If you are interested in building or modifying reports, we do recommend:
  • Reviewing some SQL tutorials, as the Lansweeper report builder is a standard SQL editor. If you know SQL, you know how to build Lansweeper reports as well. This seems like a good tutorial.
  • Making use of our database dictionary, which explains in great detail what each database table and field stores. More information on the dictionary can be found here.

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblState.Statename,
tblAssetCustom.PurchaseDate
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblState.Statename Like '%-stock%'