Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

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 4th September 2003, 20:26
brian_baan brian_baan is offline
Junior Member
 
Join Date: Jul 2003
Location: Atlanta, GA
Posts: 8
brian_baan is on a distinguished road
Baan: BaanIII, IV, V - DB: Oracle - OS: Unixware
Progress Bar for BaanIV

To whom this may concern,
I know that there are a number of posts concerning a progress bar for BaanIV. I found some interesting code that I have modified slightly give the impression that a progress bar fills the lower task bar on session forms when doing some sort of task or calculation.
And in all honesty it give the end user something to keep him busy while waiting for a report to print or information to load.
Many Thanks
Brian.
Attached Files
File Type: txt progress bar.txt (3.6 KB, 722 views)
Reply With Quote
  #2  
Old 4th September 2003, 23:31
NvanBeest's Avatar
NvanBeest NvanBeest is offline
Guru
 
Join Date: May 2003
Location: South Africa
Posts: 521
NvanBeest is on a distinguished road
Baan: BaanIVc4 - DB: Oracle, TBase, SQL Server - OS: AIX, Linux, Window$
Looks good! Thanks for sharing...
__________________
Regards,
Nico
Reply With Quote
  #3  
Old 5th September 2003, 14:03
Guillaume.G's Avatar
Guillaume.G Guillaume.G is offline
Member
 
Join Date: Aug 2002
Location: Lyon - France
Posts: 69
Guillaume.G is on a distinguished road
Baan: Triton3.1, BaanIV,baan ERP and ERP Ln - Workflow - DB: Oracle(7 to 10i), SQLserver(6.5 to 2005), Bisam - OS: NT,2000, 2003, Unix(Solaris,AIX,HPUX)- Linux
Thumbs up Yes, it's Beautyfull

Hi,

it's a very good solution.

Thank You


Guillaume G.
Reply With Quote
  #4  
Old 6th September 2003, 09:37
jmathew jmathew is offline
Senior Member
 
Join Date: Aug 2003
Location: Middle East
Posts: 183
jmathew is on a distinguished road
Baan: Baan IV C4 - DB: Oracle 8i - OS: Windows 2000
progress bar in Baan IVc4

Hi Brian,

I tried to incorporate your coding in one of my customized reports. But I still do not get a progress bar. I have attached a copy of my session script for the report that i have been testing.

I am also not clear about the following in the coding, hence i have commented this line in the code:

import.file.data() |* Do some function with the
imported record

Please help me out with this functionality in Baan IV c4.

Thanks.....

John.
Attached Files
File Type: txt progress bar john.txt (5.8 KB, 164 views)
Reply With Quote
  #5  
Old 8th September 2003, 15:07
brian_baan brian_baan is offline
Junior Member
 
Join Date: Jul 2003
Location: Atlanta, GA
Posts: 8
brian_baan is on a distinguished road
Baan: BaanIII, IV, V - DB: Oracle - OS: Unixware
Progress Bar not working in BaanIV

Hey John,
In my example I am importing records from an ASCII file. You are not simply able to cut and paste for use in a report. The function that actually creates the impression of the Progress Bar moving across the lower task bar is update.prog.ind().

The only way that I can see you using this in a report is as the following and if anyone know differently, please post you own recommendations as well. Important to remember there are some performance issues on how often you update the progress bar.

To solve your problem, you have to do two runs through the select statement. However I would suggest trying an index in your first run.

1. First run get record count
2. Second run, calculate percentage (perc = (record no. / record count) * 100)
3. Update progress bar.

The percentage calculation and update of the progress bar must be within the report select statement. The progress bar increments are based on some rudimentry calculations that are done in the before.choice section. If you require further explanation, please feel free to email me directly.

Many Thanks
Brian
Reply With Quote
  #6  
Old 8th September 2003, 15:33
NvanBeest's Avatar
NvanBeest NvanBeest is offline
Guru
 
Join Date: May 2003
Location: South Africa
Posts: 521
NvanBeest is on a distinguished road
Baan: BaanIVc4 - DB: Oracle, TBase, SQL Server - OS: AIX, Linux, Window$
Brian

While browsing around in the Tools directory of BaanIVc4, I found the following functions in ottdllinstall:
Code:
function extern create.progress.indicator( const string title(), long mode )
function extern destroy.progress.indicator()
function extern update.progress.indicator( long perc.complete, ... )
Ever tried to use these?
__________________
Regards,
Nico
Reply With Quote
  #7  
Old 8th September 2003, 17:56
robertvg's Avatar
robertvg robertvg is offline
Senior Member
 
Join Date: Nov 2002
Location: Hoofddorp / The Netherlands
Posts: 164
robertvg is on a distinguished road
Baan: BaaN IVc4, 5.0c - DB: Oracle 8.1.7 - OS: HP-UX 11.11
helaas

yes, just did: I get all sorts of Fatal errors: "object 0 in process xx not found"


Robert
Reply With Quote
  #8  
Old 9th September 2003, 15:03
brian_baan brian_baan is offline
Junior Member
 
Join Date: Jul 2003
Location: Atlanta, GA
Posts: 8
brian_baan is on a distinguished road
Baan: BaanIII, IV, V - DB: Oracle - OS: Unixware
Nico,
Yes I did, but got the same errors as Robert, I have created a DLL with exactly the same function calls that anyone can use in their script. Makes it a little easier for everybody. I have tried to mimic BaanV progress bar, which pops up a separate window while the session is processing information.
Hope to post a little later today,
Many Thanks
Brian
Reply With Quote
  #9  
Old 9th September 2003, 19:55
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
Nico:

If you use the init.gui() function call before you use the progress indicators you wont get the errors.
Code:
init.gui
void init.gui( ... )
Expl:	- Determine title from calling program
	- Call functions to setup the window and form layout
Pre:	-
Post:	-
Input:	- title (optional)
Output:	-
here is an example code-
Code:
#pragma	used	dll	ottdllinstall
function main()
{
init.gui()
create.progress.indicator("Testing", 1)
update.progress.indicator(25, "In process...")
suspend(1000)
destroy.progress.indicator( )
}
__________________
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
  #10  
Old 9th September 2003, 22:05
nick_rogers nick_rogers is offline
Senior Member
 
Join Date: Feb 2002
Location: Toronto, Canada
Posts: 249
nick_rogers is on a distinguished road
Baan: BaanIVb2 - DB: Oracle 7.3 - OS: Unix 11
I take it that these functions you call are just for Baan V ?
__________________
NR
Reply With Quote
  #11  
Old 9th September 2003, 23:54
NvanBeest's Avatar
NvanBeest NvanBeest is offline
Guru
 
Join Date: May 2003
Location: South Africa
Posts: 521
NvanBeest is on a distinguished road
Baan: BaanIVc4 - DB: Oracle, TBase, SQL Server - OS: AIX, Linux, Window$
Thanks NP.

Nick, they exist in BaanIV as well.
__________________
Regards,
Nico
Reply With Quote
  #12  
Old 24th September 2003, 09:29
robertvg's Avatar
robertvg robertvg is offline
Senior Member
 
Join Date: Nov 2002
Location: Hoofddorp / The Netherlands
Posts: 164
robertvg is on a distinguished road
Baan: BaaN IVc4, 5.0c - DB: Oracle 8.1.7 - OS: HP-UX 11.11
I used init.gui() as NPrao suggested, the errors (on B4c4) are now gone, a separate window opens, but no progress indicator appears. Hourglass shows forever.

Robert
Reply With Quote
  #13  
Old 24th September 2003, 10:18
hklett's Avatar
hklett hklett is offline
Member
 
Join Date: May 2002
Posts: 45
hklett is on a distinguished road
Try this

Code:
#pragma	used	dll	ottdllinstall
function main()
{
init.gui()
create.progress.indicator("Testing", 4)
suspend(500)
update.progress.indicator(10, "In process...")
suspend(500)
update.progress.indicator(25, "In process...")
suspend(500)
update.progress.indicator(50, "In process...")
suspend(500)
update.progress.indicator(75, "In process...")
suspend(500)
update.progress.indicator(100, "In process...")
suspend(5000)

destroy.progress.indicator( )
}
Reply With Quote
  #14  
Old 24th September 2003, 10:34
robertvg's Avatar
robertvg robertvg is offline
Senior Member
 
Join Date: Nov 2002
Location: Hoofddorp / The Netherlands
Posts: 164
robertvg is on a distinguished road
Baan: BaaN IVc4, 5.0c - DB: Oracle 8.1.7 - OS: HP-UX 11.11
Fantastic !!! It works !

Strangely enough it was the 'mode' parameter that did the trick: previously we used create.progress.indicator("testing", 1); it shows nothing, but with mode 4 it works.
The only problem I now have is that the window (created by the init.gui() command) remains open. Any idea on how to destroy that window ?

kind regards,
Robert
Reply With Quote
Sponsored Links
  #15  
Old 24th September 2003, 11:10
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 570
günther is on a distinguished road
Baan: IVc4 - DB: Informix - OS: HP-UX
Wow!

The first time that I've seen a progress indicator - my first tests with these functions started in July 2000! Congratulation!

I have the same problem as Robert, ie. the window does not appear. Baan IVc4.

Günther
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
progress bar indicator in Baan IV ?? Guillaume.G Tools Development 9 13th November 2010 11:05
Progress Bar in Baan IVc4 Ruskin Code & Utilities 1 9th September 2003 01:42
Triton -printing bar codes 9844don Miscellaneous 1 7th February 2002 00:44


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


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