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
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #16  
Old 24th September 2003, 12:22
techfan's Avatar
techfan techfan is offline
Junior Member
 
Join Date: Jun 2002
Location: Netherlands
Posts: 5
techfan is on a distinguished road
Baan: BaaN IV c4 SP15 - DB: tbase / Oracle 9i - OS: Sun Solaris 9 / HP-UX 11i
Quote:
Originally posted by robertvg
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
Try using the following code:
Code:
#pragma	used	dll	ottdllinstall
function main()
{
init.gui()
create.progress.indicator("Testing",<b>3</b> )
<b>for i = 10 to 100 step 10</b>
update.progress.indicator(<b>i</b>, "In process...")
suspend(500)
<b>endfor</b>
destroy.progress.indicator( )
<b>destroy.objects()</b>
}


You should see a moving indicator now.
Reply With Quote
  #17  
Old 24th September 2003, 13:11
zardoz's Avatar
zardoz zardoz is offline
Guru
 
Join Date: Jan 2003
Location: Torino, Italy
Posts: 445
zardoz is on a distinguished road
Baan: Triton 2, Triton 3, Baan IV, Baan ERP, Baan LN - DB: Oracle, Tbase, MS Sql - OS: Unix, Windows
Seems ok, but if I try to incorporate the code in my script (a simple printout) - if I call the destroy.objects() functions I receive a BW error (maybe because tries to kill the main window also?) - if I don't put this instruction the progress bar window last till exiting the session.
But, anyway, it works!

PS.:
I've used also a parameter in init.gui() to change the title from the "import data dictionary" used as default...

init.gui("Work in progress")
__________________
My company
Reply With Quote
  #18  
Old 24th September 2003, 13:26
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 have the same errors with 'destroy.objects' : object xxx in process yyy not found. I also noticed that the message parameter in the update.progress.indicator(percentage, message) does not show anywhere on the form.

Are there anymore parameters for the init.gui() call ?
Maybe to resize the window a bit smaller ?

regards,
Robert
Reply With Quote
  #19  
Old 25th September 2003, 15:01
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
you can program an exit() instead of destroy.objects to neatly close the progress bar window and the main window

rgrds,
Robert
Reply With Quote
  #20  
Old 27th September 2003, 07:22
niteshsharma's Avatar
niteshsharma niteshsharma is offline
Junior Member
 
Join Date: Sep 2003
Location: India
Posts: 20
niteshsharma is on a distinguished road
Baan: Baan 4c3 - DB: Oracle - OS: Sun solaris
Question further assistance require

Hi all,

i am very happy to know this tool in Baan 4c3 as tht can be very useful for baan Customizations.

Well i am developing two sessions which are following
1. A print session
2. A maintain session

-----------------------------------------------------
In case 1.
----------------------------------------------------
i want to show my progress bar on the base of my records processes to the report and when process gets completed i want to end up my progress bar so that user should be able to know how long will report take time to print

say i have a table of customer from where i am fatching record to print it on report. in tht case i want to link my customer id with progress bar as soon as my customer id processes progress bar should get updated.

------------------------------------------------------
In case 2
------------------------------------------------------
In maintain session when i update record i want to incorporate this same feature at the time of updateing table
say when i insert some new data into table and press continue button to update my progress bar should display the status of updation and as i want tht two button should also display on progress bar window 1.stop 2.cancel
when i press cancel button Transaction should be rollback
and logically then database table should not be updated
and if database gets updated then my progress bar should end up


well for second case i will have to use
#include <bic_dam>
but i don't find it anyware in my $bse/include6.1/
plz. help me about this also



plz. help me about this matter
its very intresting and urgent 4 me

thanx
plz help.

n.s.
Reply With Quote
  #21  
Old 11th November 2003, 18:09
triton45 triton45 is offline
Member
 
Join Date: Jul 2002
Posts: 30
triton45 is on a distinguished road
Baan: IVc4 - DB: Informix 9.4 - OS: HP-UX 11.11
To get the progress indicator window to exit, I modified the posted code below

Code:
#pragma	used	dll	ottdllinstall
function main()
{
id.orig = current.mwindow()  |get current window id
init.gui("Title of window")
create.progress.indicator("Testing",3 )
for i = 10 to 100 step 10
update.progress.indicator(i, "In process...")
suspend(500)
endfor
id.new = current.mwindow()   |get progess indicator window id
change.mwindow(id.orig)        |set current window to orig window
destroy.mwindow(id.new)       |remove progress indicator window
}


works in IVc4

Andy
Reply With Quote
  #22  
Old 10th November 2010, 14:18
vinay sharma vinay sharma is offline
Junior Member
 
Join Date: Nov 2010
Posts: 13
vinay sharma is on a distinguished road
Baan: LN - DB: oracle - OS: 7
Post

hi

it has been not working
Reply With Quote
  #23  
Old 10th November 2010, 15:23
mark_h's Avatar
mark_h mark_h is online now
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,934
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
The code above posted by andy works for me in 4c4.
__________________
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
  #24  
Old 11th November 2010, 06:04
vinay sharma vinay sharma is offline
Junior Member
 
Join Date: Nov 2010
Posts: 13
vinay sharma is on a distinguished road
Baan: LN - DB: oracle - OS: 7
hi
where should i call this function, should i make this a form command function
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 12:05
Progress Bar in Baan IVc4 Ruskin Code & Utilities 1 9th September 2003 02:42
Triton -printing bar codes 9844don Miscellaneous 1 7th February 2002 01:44


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


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