User login
|
|
|
Frontpage Sponsor
|
|
|
Poll
|
Would you like to see a separate forum on Baanboard for the ION product? No 14% Yes 86% Total votes: 80 |
Baanboard at LinkedIn
|

|
|
|
 |
|

24th September 2003, 11:22
|
 |
Junior Member
|
|
Join Date: Jun 2002
Location: Netherlands
Posts: 5
|
|
|
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.
|

24th September 2003, 12:11
|
 |
Guru
|
|
Join Date: Jan 2003
Location: Torino, Italy
Posts: 440
|
|
|
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")
|

24th September 2003, 12:26
|
 |
Senior Member
|
|
Join Date: Nov 2002
Location: Hoofddorp / The Netherlands
Posts: 162
|
|
|
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
|

25th September 2003, 14:01
|
 |
Senior Member
|
|
Join Date: Nov 2002
Location: Hoofddorp / The Netherlands
Posts: 162
|
|
|
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
|

27th September 2003, 06:22
|
 |
Junior Member
|
|
Join Date: Sep 2003
Location: India
Posts: 20
|
|
|
Baan: Baan 4c3 -
DB: Oracle -
OS: Sun solaris
|
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.
|

11th November 2003, 17:09
|
|
Member
|
|
Join Date: Jul 2002
Posts: 30
|
|
|
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
|

10th November 2010, 13:18
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 9
|
|
|
Baan: baan iv -
DB: oracle -
OS: xp
|
hi
it has been not working
|

10th November 2010, 14:23
|
 |
Guru
|
|
Join Date: Sep 2001
Location: Louisville, KY, USA
Posts: 5,941
|
|
|
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.
|

11th November 2010, 05:04
|
|
Junior Member
|
|
Join Date: Nov 2010
Posts: 9
|
|
|
Baan: baan iv -
DB: oracle -
OS: xp
|
|
hi
where should i call this function, should i make this a form command function
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|