Home
>
Archive
>
Diagnostics
>
How to Update Diagnostics Version Data
How to Update Diagnostics Version Data
Database:
Dragon\SSWDiagnostics
Tables:
FileDefinition, Product, ProductVersion
-
Check whether the product is latest. If not, add the lastest and
update old ones.
-
Check whether the file is latest. If not, the lastest and update old
ones.
-
Check if there's a product version with the same file definition
name and product name. If not, add this product version. Then update
the 'versionlatest' of this product version and others.
-
Remember to update 'DateUpdated' and 'UpdatedBy'.
SQL Exmaples
-
Which product group is a product in and whether the product is the
latest
-
select p.productname, p.productname,p.productlatest, pg.groupname
from product as p
inner join productgroup as pg
on p.groupid=pg.groupid
order by p.productname
- Fetch product info with a file name
-
select * from product where
productname like ''
- Fetch product info with a product id
-
select * from product where
productid=88
- Fetch file definition
-
select * from dbo.FileDefinition
where filedefinitionid=75
- Fetch file definition
-
select * from dbo.FileDefinition
where filedefinitionname like ''
- Update product version
-
update productversion
set versionlatest = ',dateupdated=getdate(), updatedby='David
Bian' where filedefinitionid = xx and productid= xx
- Add version
-
insert into productversion (versionnumber, versionlatest,
versionfor,productid,filedefinitionid,
versionxmladd,versionupdateurl,versionname, versiondescription,
datecreated,createdby,dateupdated,updatedby
How to publish a Versions.xml file
- Open SSW Diagnostics solution in VS 2008.
- Select SSW.Diagnostics.WebUI project.
- Debug it.
-
Go to XmlGeneration.aspx page, and click the "Rebuild XML" button
-
When it build successfully, upload the Version.xml file to AU and
US, you need upload the file to:
ftp://us.ssw.com.au/httpdocs/ssw/diagnostics/
and
ftp://us.ssw.com.au/httpdocs/ssw/diagnostics/
FUTURE: User will be able to see how many other people have logged
this version on the record in the Diagnostics UI
FUTURE: User will be able to see how many other people have logged
this version on the record in the Unrecognized.aspx
FUTURE: After 20 submittions it will show as "Auto recognized (20)"
Acknowledgements
Wilson Wu