Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
Does BaanBoard need a new forum entry for Questions related to Extensions / ION Interfacing: BOD and BDE?
Why Bother, nobody reads here ...
0%
Just drop all the questions in the http://www.baanboard.com/baanboard/forumdisplay.php?f=8 Tools Development forum
27%
Extensions are a different ball-game: they need a new forum entry
27%
ION Interfacing - BOD and BDE is a different ball-game: they need a new forum entry
27%
Just create two different forums and see what will happen...
13%
What are you talking about? Something new? Leave things as they are!
7%
Total votes: 15

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 4th October 2021, 16:05
LordMrT LordMrT is offline
Member
 
Join Date: Nov 2020
Posts: 30
LordMrT is on a distinguished road
Baan: 10.7 - DB: Oracle - OS: InforLN 10.7
Old session "select.file" error
Baan: Infor ERP 10.7
C/S: Client

Hello all,

I found an old session for file handling in Infor LN 10.7. Now I wanted to check this and copy it to the current VRC. During compilation the following error occurs:
Quote:
pneadm99900( 440): Error: Unresolved reference to function 'select.file'.
Code:
function domain tcmcs.str256m get.server.file()
{
	domain tgfile my.path
		long i, j
		string selected(256,2)
		long no.of.selected
		long max.selected

	my.path = getcwd()
| my.path = "" |* for default of $HOME path take this
	no.of.selected = 1

	select.file( my.path,
			0,
			selected,
			no.of.selected,
			1)
	return(selected(1,1))
}
Was there a change in the function here? I had not found anything on the first try.

Thanks a lot :-)
Reply With Quote
  #2  
Old 4th October 2021, 17:11
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,639
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
If it was 4c4 I would be checking to make sure any includes or libraries attached to the script also copied into the new VRC first. I am not sure if that is an LN library or not.
__________________
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
Sponsored Links
  #3  
Old 5th October 2021, 10:08
andreas.toepper andreas.toepper is offline
Senior Member
 
Join Date: Jun 2004
Posts: 240
andreas.toepper is on a distinguished road
Baan: Baan4, LN6.1 - DB: MSSQL - OS: Linux&Windows
I think it may be explained here:
http://www.baanboard.com/baanboard/s...71&postcount=6

But I think I would check the available FileManager functions in LN instead and change the code.

Quote:
Syntax:
function long FileManager.selectFile ( [string i.root.path], string i.start.path, string i.mime.filter, ref string o.file)

Description

This shows the File Manager workbench running in file selection mode to allow a user to select a file on the server.


Arguments
[string i.root.path] when specified, the root directory for the File Manager workbench. A user can navigate to child directories but not to the parent of the root directory. Also, the start directory, i.start.path, must be located within the root directory otherwise the error message "Directory X is not a directory within Y" where X is the i.start.path and Y is the i.root.path.

string i.start.path The startup directory for the File Manager workbench. If i.start.path specifies a file instead of a directory, the directory part of i.start.path is used as startup directory. Note that if i.root.path is not specified or is empty, this startup directory becomes the root directory of the File Manager workbench. In case of an empty string the startup directory will be the directory where the Baan Software Environment is installed (see bse.dir$).

string i.mime.filter The list of mime types, separated by commas, of the files shown by the File Manager. If the list is an empty string all files are shown.

ref string o.file Output argument which will contain the full path of the file selected by the user.


Return values
1 The user has selected a file.
0 The user has cancelled.
-1 Error occurred

Context
This function is implemented in the 4GL Tools and can be used in all script types. This function is available from TIV level 2200.
Reply With Quote
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
fatal error 512 in insert on session personalizations gruvi_navy Blogs and Web links 1 16th March 2017 12:34
Process Error in Maintain session. vktonk Tools Development 2 1st July 2008 12:07
error message with session tipcs5250m000 das_k_tushar Manufacturing & Supply Chain 1 3rd January 2005 22:11
OW: Error while first logging into OpenWorld just after installation Alaadin Bayar Open World, Portal & Decision Manager 0 19th December 2004 23:40
session script compile error ?!? dogueke Tools Development 4 7th July 2003 20:26


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


©2001-2021 - Baanboard.com - Baanforums.com