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 20th April 2010, 11:35
baansavvy baansavvy is offline
Junior Member
 
Join Date: Apr 2010
Posts: 22
baansavvy is on a distinguished road
Baan: 4 - DB: Oracle - OS: Windows XP
Compilation Error
Baan: Other/Unknown
C/S: None/Unknown

Hi,

I am new in baan programming.
I am trying to compile my form script but i get compilation error saying that No such file/directory, can't open input file

after.field:
select hrper001.f_name
from hrper001
where hrper001.emp_code = :hrper602.emp_code
selectdo
f_name = hrper001.f_name
endselect

What are the events ?
Is there any proper documentation for Baan programming?
Reply With Quote
  #2  
Old 20th April 2010, 13:57
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,639
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
after.field.FIELDNAME !

Quote:
Originally Posted by baansavvy View Post
Hi,

I am new in baan programming.
I am trying to compile my form script but i get compilation error saying that No such file/directory, can't open input file

after.field:
select hrper001.f_name
from hrper001
where hrper001.emp_code = :hrper602.emp_code
selectdo
f_name = hrper001.f_name
endselect

What are the events ?
Is there any proper documentation for Baan programming?
Hello,

for example !
after.field ?

Syntax is .

field.FIELDNAME:
before.display:

before.input:

check.input:

on.input:

after.input:

a.s.o.

Have a look at :

BaanERP Programmers Guide


4GL field sections

--------------------------------------------------------------------------------

You use field sections to program actions that you want to be executed for a variety of field events. Field sections consist of a main section and a subsection. The main section specifies the field(s) for which the actions must be executed. The subsections specify when the actions must be executed.

Main sections
field.<field name>:
The subsections associated with this main section are executed for the specified field. The field name you specify must correspond with the name on the form.

field.all:
The subsections associated with this main section are executed for all fields on the form

field.other:
A subsection associated with this section is executed for all fields for which the particular subsection has not been programmed in a field.<field name> section.

Subsections
init.field:
The actions programmed in this subsection are executed the first time that the form on which the field occurs becomes current. The subsection is executed immediately before the init.form section of the form. You can use this section to change field attributes.

before.field:
The actions programmed in this subsection are executed each time the focus moves to the specified field. The subsection is executed immediately before the before.input or before.display subsections.

before.input:
The actions programmed in this subsection are executed immediately before input to an input field commences. This section is supported for backward compatibility only. In BaanERP programs, use enable.fields()and disable.fields() to enable and disable fields.

before.display:
The actions programmed in this subsection are executed each time that the specified field is displayed. You can use this subsection, for example, to set the value of a display field or to change the output format of currencies and dates (by using attr.oformat$).

selection.filter:
When a zoom process is started or when autocomplete is started on the specified field, the actions programmed in this subsection are executed immediately before. You can use this subsection to set the query.extensions in zoom.

before.zoom:
When a zoom process is started on the specified field, the actions programmed in this subsection are executed immediately before the zoom process is executed. You can use this subsection to change the zoom attributes. For example, in the field definition in the form manager, a default zoom code can be specified. You can then use this subsection to change the zoom code (by setting the predefined variable attr.zoomcode).

before.checks:
The actions programmed in this subsection are executed after input to the field has been completed and the TAB key has been pressed. The subsection is executed immediately before the domain and references are checked. You can use this section, for example, to change the value of the field before the domain and reference checks.

domain.error:
The actions programmed in this subsection are executed if the domain check causes an error after data has been entered in the field. You can use this section to provide your own error message instead of the standard message.

ref.input:
The actions programmed in this subsection are executed if a reference error occurs. If you program this section, the 4GL engine does not display a message.

ref.display:
The actions programmed in this subsection are executed if there is an error in the reference display.

check.input:
The actions programmed in this subsection are executed immediately after the domain and reference checks. You can use this section to test for errors that are not detected automatically. If the 4GL engine detects an error, input is automatically restarted. In a script, you can use set.input.error()to display an error message and start input again.

This section is replaced by DAL functionality (if a DAL exists for the table).

on.input:
The actions programmed in this subsection are executed immediately after the check.input subsection. You can use this section, for example, to perform some appropriate action when the user enters a special character or to display a warning message in certain cases.

when.field.changes:
The actions programmed in this subsection are executed when the new value entered in the specified field differs from the old value.

after.zoom:
The actions programmed in this subsection are executed when the zoom process on a specified field ends. You can use this subsection, for example, to redisplay any field that has changed as a result of the zoom process.

after.input:
The actions programmed in this subsection are executed after all checks have been performed on input to the specified field and after the when.field.changes subsection has been executed. In this subsection, you can use the to.field() function if the sequence deviates from the default.

after.display:
The actions programmed in this subsection are executed just after display of the specified field. You can use this subsection, for example, to read reference tables.

after.field:
This is the last subsection for a field. The actions programmed in this subsection are executed after input to or display of the specified field. This section is always executed, even if the user left the field by pressing ESC, one of the arrow keys, or a mouse button. You can use this subsection to perform special actions before leaving the field.

Example
field.pctst099.item:
check.input:
select pctst001.*
from pctst001
where pctst001.item = ctst099.item
as set with 1 rows
selectdo
....
selectempty
pctst001.dsca = "*****"
set.input.error(".....")
endselect
before.input:
if ..... then
attr.input = false
endif
after.display:
select pctst001.*
from pctst001
where pctst001.item = ctst099.item
as set with 1 rows
selectempty
pctst001.dsca = "*****"
endselect

field.pctst099.date:
before.input:
attr.oformat$ = "%D002,2"



Regards
__________________
//Bernd

Last edited by bdittmar : 20th April 2010 at 14:23. Reason: correct and add
Reply With Quote
  #3  
Old 20th April 2010, 15:32
baansavvy baansavvy is offline
Junior Member
 
Join Date: Apr 2010
Posts: 22
baansavvy is on a distinguished road
Baan: 4 - DB: Oracle - OS: Windows XP
Where is the programming guide?
Reply With Quote
Sponsored Links
  #4  
Old 20th April 2010, 15:51
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 baansavvy View Post
Where is the programming guide?
In Baan IVc, you can use standard session ttadv7450m000 to print the baan online help.
__________________
Thanks & Regards,
Manish
Reply With Quote
  #5  
Old 20th April 2010, 16:25
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,639
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
It's here online !

Quote:
Originally Posted by baansavvy View Post
Where is the programming guide?
Hello,

look at :

http://www.baanboard.com/programmers_manual_baanerp

Regards
__________________
//Bernd
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
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 11:06
[Critical] Tape Backup problem. flysurfing Operating Systems & Databases 14 31st August 2007 07:38
API for the session timps4701m000 lli-baan AFS/DDC/OLE: Function servers 5 30th March 2005 15:50
DDC and Triton3.1 a1 saso.its AFS/DDC/OLE: Function servers 2 7th January 2004 10:39
Running a Baan script from UNIX command line; ba6.1 runtime options chadwickh Tools Development 18 25th September 2002 22:48


All times are GMT +2. The time now is 05:06.


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