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!
|
|
Library Path
Posted: 26 Nov 07 9:16 AM
|
Please,
Could anybody tell me, how can I get the SalesLogix library path via Scripting(Active Script)?
Thanks |
|
|
|
Re: Library Path
Posted: 26 Nov 07 2:42 PM
|
Select SalesLibraryPath From BranchOptions |
|
|
|
Re: Library Path
Posted: 27 Nov 07 2:49 PM
|
Hi Lloy
I Do that and It funtions over SalesLogix Network Client, but when I am working with SalesLogix remote Client connecting to a remote Database (created from main Database), I doesn't function in the same way, because the library path is local for remore Client, also the SalesLibraryPath value from BranchOptions is the same on remote database and Main database.
So, when I want to open a Library file on Remote Client that is not connected to network, I get the path \\ServerName\sync logs\library\myfilename and It´s show an error because that path doesn´t exists on Remote Client
I thought that It should have a SLX function to get the Library path over any type of SLX client.
If anybody can Help me, tell me!!!! Please
Thanks,
Patty |
|
|
|
Re: Library Path
Posted: 27 Nov 07 5:24 PM
|
Interesting - I cannot find an easy way of doing this.
You may be able to derive the path from the result of
Application.BasicFunctions.GetAttachmentPath
which I believe returns a local path for remotes.
PP |
|
|
|
Re: Library Path
Posted: 28 Nov 07 3:28 AM
|
The Application.BasicFunctions.GetApplicationPath would be a better option as the Library is a folder directly under here e.g. strLibrary = Application.BasicFunctions.GetApplicationPath & "\Library"
|
|
|
|
Re: Library Path
Posted: 28 Nov 07 9:31 AM
|
Thanks...
It would probably is a good Idea when the library is within ...Program Files\Library
But It doesn´t function because in my remote Pc the library path was installed over C:\Documents and Settings\All Users\Datos de Programa\SalesLogix\Library
What can I do ???
|
|
|
|
Re: Library Path
Posted: 28 Nov 07 9:47 AM
|
You're right - it used to be there but was moved. So, in this case - the installation is fixed to that location, so now you know where it is - based on %ALLUSERSPROFILE% - then navigate down that path. |
|
|
|
Re: Library Path
Posted: 28 Nov 07 4:42 PM
|
This still isn't clear to me.
On my 7.0.1 remote install, the library path is
C:\Documents and Settings\All Users\Application Data\SalesLogix\Library
but now you are saying that it has moved. So from V7.2 (?) a remote install will have the library folder under Application.BasicFunctions.GetApplicationPath?
If so, then Patricia needs to do a SLX version check before deciding which path to look at for the library documents. Or just use an FSO to check for the existence of the new folder first and, if it does not exist, to look for the old one. |
|
|
|
Re: Library Path
Posted: 28 Nov 07 4:50 PM
|
Sorry it's unclear. The folder moved a long time ago (to where it is now as indicated above). It used to reside under PF\SalesLogix - but moved to adhere to the windows standard (of mydocs etc). I was just being archaic !!
Essentially, I'd do it your way and use FSO until I found it !
|
|
|
|