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 25th April 2003, 21:39
baanlegend's Avatar
baanlegend baanlegend is offline
Member
 
Join Date: Mar 2003
Location: Ohio, USA
Posts: 45
baanlegend is on a distinguished road
Baan: Baan 5c3 - DB: SQL Server 8.0 - OS: Windows 2000
Return Field for Calendar

I am trying to zoom to the calendar(ttstpcalendar) for date fields, but I am not sure what should be return field for passing the value selected from calendar to the Form field.

Could you please let me know if you come across this ?


Thanks
Reply With Quote
  #2  
Old 25th April 2003, 22:16
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Not sure I understand

I am using Baan 4c3 and in all of my date fields I can zoom to the calendar using f2. Pick a date, click ok, and that date is automatically populated in the form field. I do not doing anything special, other than declaring the field as date. Is this different in Baan5?

Mark
Reply With Quote
  #3  
Old 26th April 2003, 06:48
mohan05's Avatar
mohan05 mohan05 is offline
Member
 
Join Date: Jan 2003
Location: India
Posts: 76
mohan05 is on a distinguished road
Baan: Baan IV c4 - DB: Oracle 8 - OS: Win NT
I think Mark is right. You don't need to do any additional thing. Just press F2 on this field provided that field should be of date type.

-Mohan
Reply With Quote
  #4  
Old 4th May 2004, 11:54
ReinhardH ReinhardH is offline
Junior Member
 
Join Date: Mar 2003
Location: Steinfeld, Germany
Posts: 5
ReinhardH is on a distinguished road
Baan: Baan IVc4, Corelli - DB: Oracle - OS: Sun OS
You find the return value in g.value.

I give you a small program code:

long year, month, day

if type.of.field() = DB.ENUM then
activate(ottstpcalendar)
repeat
until g.value > 0

num.to.date(g.value, year, month, day)
endif

I hope i can help you
Reply With Quote
Sponsored Links
  #5  
Old 5th May 2004, 09:17
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
avoid active polling!

Reinhard, you are using active polling which might be very time consuming for your cpu; and I guess your activate part is not working. Here is a slightly modified version:

Code:
#include <bic_process>

long year, month, day

if type.of.field() = DB.ENUM then
  long child
  child = activate("ttstpcalendar")
  
  wait(child, WTHANG) | instead of "repeat until g.value > 0"

  num.to.date(g.value, year, month, day)
endif
Reply With Quote
  #6  
Old 6th May 2004, 16:51
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,855
Hitesh Shah is on a distinguished road
Baan: triton,Baan IVc4 , ERP Ln - DB: Oracle/Bisam/SQL 2000/SQL 2005 - OS: Sun Solaris/Windows 2003
why db.enum for date field

ReinhardH, U use db.enum for date field .I think u should use instead db.date for zoom .

Gunther, what does function 'wait' does. I don't have that function here. I use pstat function to check the existence of ttstpcalender object with while - endwhile loop. I think that too should be cpu intensive.
Reply With Quote
  #7  
Old 6th May 2004, 19:33
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
Hitesh,

There is more info in the tools manual -

wait()

Multitasking and the GUI

Synchronizing processes with the wait() function
__________________
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
  #8  
Old 7th May 2004, 15:04
Hitesh Shah's Avatar
Hitesh Shah Hitesh Shah is offline
Guru
 
Join Date: Nov 2001
Location: Mumbai,India
Posts: 1,855
Hitesh Shah is on a distinguished road
Baan: triton,Baan IVc4 , ERP Ln - DB: Oracle/Bisam/SQL 2000/SQL 2005 - OS: Sun Solaris/Windows 2003
wait

There is no help on this in our SP12 installation . However the code does compile . Thanks guys for the help.
Reply With Quote
  #9  
Old 7th August 2004, 10:35
juvenile juvenile is offline
Member
 
Join Date: Jul 2004
Posts: 38
juvenile is on a distinguished road
Baan: Baan IVc - DB: SqlServer - OS: Windows
In myprint session I have 2 fileds called fromdate and todate.If I zoom to calendar using f2 some default dates it is returing .I want the dates what ever the user selected what should I do?

The code snippet which is present in this thread where exactly we need to write.

rgds,
juvenile
Reply With Quote
  #10  
Old 11th August 2004, 22:40
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Just checked some of my sessions. I have a from date and a to date. When I use f2 on the from date it brings up the calendar session. After selecting the date, I click ok. This date then appears on the from date field. The same holds true for the to date. I have no code in my program and this works. Not sure I understand what you mean be "default dates" being returned.

Mark
Reply With Quote
  #11  
Old 21st October 2016, 12:33
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 567
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Thanks Mark,

Altough I could not do it through code as puting gunther's code, session seems to go into infinite loop. but your trick pressing F2 really helps as it does not require a single line of code. But, is there any way to put some help in the status bar when focus comes iin the field. (like Press F2 to select date).

Thanks again,
Vishal
Reply With Quote
  #12  
Old 24th October 2016, 09:46
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 183
manish_patel is on a distinguished road
Baan: Baan IVc4, Baan 5.0 b - DB: Oracle 11g R2 - OS: HP-UX 11.31
Quote:
Originally Posted by VishalMistry View Post
Thanks Mark,

Altough I could not do it through code as puting gunther's code, session seems to go into infinite loop. but your trick pressing F2 really helps as it does not require a single line of code. But, is there any way to put some help in the status bar when focus comes iin the field. (like Press F2 to select date).

Thanks again,
Vishal
Use mess() function with separate_window argument 0 in before.input field section and clean.mess() function in after.input field section.
__________________
Thanks & Regards,
Manish
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
Zoom to Menu and return fields mark_h Tools Development 12 2nd May 2012 19:44
Return Control to a specific field. cherokee Tools Development 2 1st June 2004 18:53
zoom return field from tt session spartacus Tools Development 2 17th July 2003 09:14


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


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