Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th October 2016, 19:19
iscons iscons is offline
Junior Member
 
Join Date: Jul 2012
Posts: 24
iscons is on a distinguished road
Baan: Baan IVc4 - DB: Oracle - OS: Unix
issue with seq.open.local()
Baan: Other/Unknown
C/S: None/Unknown

Baan is on Unix
Baan client is on windows 7 (BW)

The session has a field called path to enter the file path - C:\Test\file.txt
When in debug mode, the path has extra \ added to it for some reason - C:\\Test\\file.txt
so the file can not be opened.

any idea?
Reply With Quote
  #2  
Old 24th October 2016, 20:43
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Hi,

No problem with that. The debugger will show you "\\" for a single "\"

Check if the folder and file have full permissions for "Everyone" and also check if the file and path exists. Post your code if possible.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #3  
Old 25th October 2016, 08:46
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 444
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
seq.open.local is deprecated.

Code:
seq.open.local()
Syntax:
#include <bic_desktop>

function long seq.open.local  (string filename, string mode(2) [, long remove.after.use])

Description

Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use functions: server2client() or client2server(). 

This opens a specified file on the client system. It returns a file pointer, which you can use to identify the file in subsequent operations.
Reply With Quote
  #4  
Old 25th October 2016, 18:39
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,903
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Quote:
Originally Posted by Ajesh View Post
seq.open.local is deprecated.

Code:
seq.open.local()
Syntax:
#include <bic_desktop>

function long seq.open.local  (string filename, string mode(2) [, long remove.after.use])

Description

Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use functions: server2client() or client2server(). 

This opens a specified file on the client system. It returns a file pointer, which you can use to identify the file in subsequent operations.
I think it depends on the version. This still works for us, but we do not use it.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #5  
Old 26th October 2016, 11:33
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Rightly said Mark. It depends on the version. I have used it before but always thought its better to do a client2server() first and then use seq.* functions to manipulate client files.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #6  
Old 26th October 2016, 14:01
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,903
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Actually we do use it - but only to open the file to make sure it exists. Then we use the client2server command to transfer it up to the server. Not really sure why we do that, but we do.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #7  
Old 27th October 2016, 23:02
iscons iscons is offline
Junior Member
 
Join Date: Jul 2012
Posts: 24
iscons is on a distinguished road
Baan: Baan IVc4 - DB: Oracle - OS: Unix
Quote:
Originally Posted by mark_h View Post
Actually we do use it - but only to open the file to make sure it exists. Then we use the client2server command to transfer it up to the server. Not really sure why we do that, but we do.
Hi, yes I used it to verify the file exists locally. It was an issue that windows put the txt extension on the file I had named already with .txt
Reply With Quote
  #8  
Old 28th October 2016, 10:43
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
To avoid confusions in future you can modify your computer properties by going to -
Quote:
Tools(In My Computer) -> Folder Options -> View Tab -> Uncheck option "Hide extensions for known file types"
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Operation issue in 'Webtop' satishnara Tools Development 2 19th April 2010 07:47
Item Issue by Day Jason Patte Distribution, Transportation & Warehousing 0 24th August 2009 18:17
Subcontracting Material Issue DineshSharma Manufacturing & Supply Chain 2 14th June 2007 17:02
seq.open.local() file "lock" ? Jaroslaw Tools Development 7 23rd October 2006 21:18
Issue stock in service orders gokove Project & Services 4 14th April 2004 15:53


All times are GMT +2. The time now is 08:14.


©2001-2017 - Baanboard.com - Baanforums.com