Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Storing Approved documents readonly
Leon Gort
Posts: 127
 
Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 10 4:32 PM
I have a requirement to "electronically" approve documents in SLX and then once approved they become read-only. Just wondering what would be the best way to accomplish this. Do I convert to a PDF and save to an attachment folder and password protect these when saving? Or can I stream the document into a blob field which I don't allow updating. Or are there other options you can suggest?

Thanks in advance
Leon
SLX V7.2 LAN
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 10 3:12 AM
Leon, the quickest way is to stream/de-stream into a blob - you can guarantee r/o in this way.
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 10 3:41 PM
Thanks Mike - much appreciated!

Cheers,
Leon
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jun 10 1:58 AM
Any recommendations on compressing the data when streaming the files in? I believe SQL 2008 does this at the database level so should i even worry if we will eventually migrate to 2008. Or is there a standard way to compress/decompress?

Thx
Leon
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jun 10 2:11 AM
Have you sized your DB growth with this approach?
How big is your typical document once Converted to PDF and Compressed? How many documents do you expect to store yearly?
Do you have enough space to hold such table in your DB Server?

Now, regarding Compressions, I have used the ICSharpZipLib in the past to Compress/Decompress documents using Standard Zip compression (although it supports additional Compression schemes).
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jun 10 8:03 PM
Thanks Raul - I'm expecting most docs should be less than half a MB however it is possible there will be some quite large PDF's (not supposed to be a lot of them) Estimated up to 1000 docs /year. Just thinking worst case scenario and impact on performance (if any) and anything I should be aware of or plan for in the event size and amount of documents are underestimated. Hardware is not an issue for us at this stage.

[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Storing Approved documents readonlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jun 10 8:36 PM
Am I able to open a file from a stream without saving it to a physical location first? I'm using the below code.

Thx - Leon

If rs.RecordCount > 0 Then
Set stream = CreateObject("ADODB.Stream")
With stream
.Type = adTypeBinary
.Mode = adModeReadWrite
.Open


'write field value to stream
.Write rs.Fields("APPROVEDVERSION").Value
'*****save stream to a file*****
.SaveToFile strfilename , adSaveCreateOverWrite
.Close
End With
Set stream = Nothing
OpenStreamECM = strfilename
End If
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/7/2025 4:21:36 PM