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 8th November 2002, 18:21
baan_afbs's Avatar
baan_afbs baan_afbs is offline
Junior Member
 
Join Date: Oct 2002
Posts: 17
baan_afbs is on a distinguished road
refresh screen

I have a custom display session which basically shows item data. This data needs to be in sync with the Maintain Item data. how can i have the screen automatically refresh without having the user choose the 'refresh' option? Can it refresh every 10 seconds automatically? i can use the function werebuild(1) or refresh.curr.occur().....but how can i trigger this function without the user even touching the keyboard or mouse??

thanks!!!
Reply With Quote
  #2  
Old 8th November 2002, 19:26
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
You can refer to the post on the Board and Gordon's solution -

Continuous display of Baan information

Code:
last.time = time.num()
while true
	curr.time = time.num()
	if curr.time >= last.time + 10 then 
		|* Refreshes ever 10 seconds
		execute(first.set)
		last.time = curr.time
	endif
endwhile
__________________
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 8th November 2002, 23:54
baan_afbs's Avatar
baan_afbs baan_afbs is offline
Junior Member
 
Join Date: Oct 2002
Posts: 17
baan_afbs is on a distinguished road
kind of works...help.

Rao,
the soultion refreshes the screen but the program continues on into infinity. it will work if i use the code in the right program section....currently it is in the form.1/before.form section. (i have a single occurance display form. )

help!
Reply With Quote
  #4  
Old 9th November 2002, 00:08
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
The quick idea I can think about it is to use a progress indicator with a stop button. When the user clicks the stop button the process is aborted

create.progress.indicator()

Code:
e =create.progress.indicator("Processing Data ", PROGRESS.BAR + PROGRESS.STOP)
......
if change.progress.indicator(perc,"Data") then
	stop.refresh.process() 	
	|* the function call to get the latest data
break
endif
.....
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
Sponsored Links
  #5  
Old 10th November 2002, 13:27
Ilansu's Avatar
Ilansu Ilansu is offline
Member
 
Join Date: Feb 2002
Posts: 81
Ilansu is on a distinguished road
Baan: Bann IV C4 ,C2 - DB: informix - OS: Unix , NT
Timer

You can use the timer function .

before.program:
ret=set.timer(num.of.seconds *1000)

choice.interrupt:
on.choice:
execute(first.set) or (find.data)

set timer usage

Ilan S
Reply With Quote
  #6  
Old 10th November 2002, 17:29
Grace Li Grace Li is offline
Junior Member
 
Join Date: Jan 2002
Location: Toronto
Posts: 13
Grace Li is on a distinguished road
Did you try the set.timer() function? There is example given in the reference manual. You can put in expire condition.
Reply With Quote
  #7  
Old 18th May 2017, 17:50
albertsmid albertsmid is offline
Junior Member
 
Join Date: Mar 2003
Posts: 19
albertsmid is on a distinguished road
Baan: B40c4 - DB: Oracle 10g - OS: AIX 5.3
Thanks for all the contributions, the set.timer() with the choice.interupt trigger worked great!
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
refresh a screen field pitfloner Tools Development 2 10th June 2003 18:38
refresh screen jpadilla Tools Development 3 30th August 2002 18:42


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


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