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 30th August 2005, 08:36
Andreas's Avatar
Andreas Andreas is offline
Senior Member
 
Join Date: Nov 2001
Location: Hannover
Posts: 263
Andreas is on a distinguished road
Baan: ERP LN FP5 - DB: Oracle 10g - OS: AIX, SLES
Replacement of Display Browser when using Webtop

Hi Gurus,
i have a problem in replacement of some functions to make my sessions run in Webtop.
Here's the situation:
I made a session which selects a file on the client and transfers it to the server. There you can browse the folder by means of a gbf function from tgbrg0019 (select.file). Your'e also able to view the content of the file with a function from the library ttdlldisplay (view.file) which uses the Baan display browser to show the content. So far so good. Every thing works fine.
Now i tried to make this session runnable under Webtop.
I get the File Browser to work by changing the used gbf librarys from tggbf to ttgbf. But i have problems to find an alternative to the ttdlldisplay. The view.file function did not work in Webtop because it's a 3gl-function.
I think this function is also the one Baan uses for printing to Display. So the alternative in Webtop is to create a HTML file and send it to the Client. That's the way Baan do it when printing to Display in Webtop. So i searched the Tools-librarys by means of bic_info6.2. In ttstp_stddll i found some functions related to thin client all beginning with 'tc.'. One of them is a function called tc.send.report.html.file which i tried to use.
This function indeed produces a html-file and sends it to the client but with no content in it. The showable file is found by the function because it is removed by it after calling.
So what have to be done to get the content of a file displayed in Webtop?
Maybe the guys from SSA/Baan looking around the board can give a hint how this can be obtained.

Andreas
__________________
Jazz is not dead, it just smells funny!
F.Z.
Reply With Quote
  #2  
Old 6th September 2005, 19:29
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,028
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
Andreas, use this code in a library and it works for both Worktop/BW and WebTop.
Code:
function show.file(const string fname())
{
long	fp
string	buffer(1024)

if spool.open("", "D", 0) then
	fp = seq.open(fname, "r")
	if	fp > 0 then
		while  not seq.gets(buffer, 1024, fp)
			spool.pr.line = buffer
			spool.line()
		endwhile
	endif
	e = seq.close(fp)
	spool.close()
endif
}
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
  #3  
Old 7th September 2005, 16:42
Andreas's Avatar
Andreas Andreas is offline
Senior Member
 
Join Date: Nov 2001
Location: Hannover
Posts: 263
Andreas is on a distinguished road
Baan: ERP LN FP5 - DB: Oracle 10g - OS: AIX, SLES
Perfect

Thank's Rao,
your code works perfect!

Andreas
__________________
Jazz is not dead, it just smells funny!
F.Z.
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
Code : use gbf browser to display bom pconde Code & Utilities 37 6th March 2010 21:00
Disable Read Tail option in Display Browser manojsharma Tools Development 0 16th November 2004 09:27
HP Unix help plse pjohns Operating Systems & Databases 3 16th May 2003 15:10
Continuous display of Baan information Stephen Ruger Tools Development 6 2nd May 2003 23:01
How to print from within BaanERP 5.0c display browser ? dbclark79 Tools Development 0 16th July 2002 15:43


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


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