popeye
27th December 2001, 22:04
Hi,
I am using Function Servers for updating records.
The session has Form Type = 3 (View Fields).

What are the possible return values for the functionserver.find() function?

I thought Return Value = 1 >> Record Found
Return Value = 0 >> Record Not Found

In some cases I am getting the return value = 2.
What does Return Value = 2 mean?

Thanks.
Cheers,
Madhu

mark_h
27th December 2001, 22:16
2 means that a different record than the one requested was found. Just like when you do a find on an item that does not exist - it finds the first one after that. This means your find did not find your record, but it did find another record.

Mark

popeye
27th December 2001, 22:25
Mark,
So if Ret Val <> 1 means that the desired record is not found, right?
Are there any other return values?

Thanks.
Cheers,
Madhu

mark_h
27th December 2001, 22:33
Yes - return value <> 1 means record not found.

Nope - just three return values according to my afs document.
0 - No record found
1 - Record found.
2 - Another record found.

I am attaching the last afs document I received from another user. I believe you can download a more current version from Baan support site.

Good luck!!!

Mark