Neal Matthews
2nd November 2001, 11:43
Hello,

I am attempting to add a couple of fields to the form for session
tdssc0407m000 in order to select the delivery date range.

I am using the free$ variable to acheive this as described in document Baan IV - Reports advanced.

I have added the fields date.f and date.t to the form and then done the necessary work in the report script to ensure that the date is picked up correctly from the free$ variable.

The report works fine but whenever I go into the session I am getting the message "unknown formfield". See bshell message below;

2001-11-01[16:22:52]:E:nmatthew: ******* S T A R T of Error message *******
2001-11-01[16:22:52]:E:nmatthew: Log message called from
/port.6.1c.05.02/vobs/tt/mir/mir/frm_read.c: #532 keyword: tdssc0407m000
2001-11-01[16:22:52]:E:nmatthew: Pid 16867 Uid 1017 Euid 1017 Gid 125 Egid
125
2001-11-01[16:22:52]:E:nmatthew: user_type S language 2 user_name nmatthew
tty ote locale ISO88591/NULL
2001-11-01[16:22:52]:E:nmatthew: Errno 0 bdb_errno 0
2001-11-01[16:22:52]:E:nmatthew: Log_mesg: unknown formfield 'date.f'
2001-11-01[16:22:52]:E:nmatthew: ******* E N D of Error message *******

I have dumped the form but is there a step or procedure I am missing ?

Any assistance would be appreciated.

Cheers
Neal Matthews
MSS Project Leader

mark_h
2nd November 2001, 15:25
Unknow form field usually means that the fields were not declared as extern in the session script.

I am not familiar with the document you referenced or with the free$ variable.


Good Luck!

Han Brinkman
2nd November 2001, 16:13
Since you haven't changed the script you can not use a date.t and date.f in your form. If you use new fields in the form you will have to declare them in your script.

The way would be that you use free$(1;8) and free$(9;16) in your form. Use the contents of them in your report to check the range.

There is no way to check if the free$ strings contain a date since they are string fields.

Rgrds,
Han

~Vamsi
2nd November 2001, 17:51
Neal,

If you have source code just do the declarations as suggested by the previous two authors. If you don't take a look at QKEY (http://www.redklay.com/oursolERP.html). This enables you to extend the standard sessions without Baan source code.

I have never seen or used the product but have heard nothing but good reviews.

Neal Matthews
2nd November 2001, 18:37
Thanks chaps

I got there eventually.

Baan document I was using said that the fields on the form could be defined as the date domain.

As advised I've used the string format and then done the work in the report script to convert the string.

It's not particular user friendly but it's not too bad.

I'll check out QKEY just in case I run into further problems like this.

Cheers

Neal Matthews
MSS Project Leader