Daniel
24th July 2002, 13:15
mail (d_semushin@bz.ru)
Hello!

The trouble is "stdapi.get.field" function returns a string value with 6 digits after decimal, not more! May be realization of this dll use "str$" function (round double to float). That error I've seen in "fXXXXm000" dll's (auto generation).

Thank you, colleges.

mark_h
24th July 2002, 18:13
Hi Daniel!

I am not sure I understand. Are you saying that the stpapi.get field will not return more than 6 decimal places? Which session are you using? That may help someone answer your question.

Good Luck!

Mark

Daniel
25th July 2002, 08:15
Hi Mark, glad to meet you!

I use session tiitm0120m000 (Conversion factors). I'm trying to get through the BOI values from fields tiitm004.conv and reverse.conv after updating. And so on...

Thanx.

mark_h
25th July 2002, 17:31
Daniel,

It is a limitation of the stpapi.get.field function. I wrote this little blurb of code


stpapi.put.field("tiitm0120m000","tiitm004.basu","IN")
rc = stpapi.change.view("tiitm0120m000",msg)
if(rc<>1)then
message("Error")
endif
stpapi.browse.set("tiitm0120m000","first.set")
stpapi.get.field("tiitm0120m000","tiitm004.conv",msg)
message(msg)
stpapi.get.field("tiitm0120m000","reverse.conv",msg)
message(msg)
stpapi.end.session("tiitm0120m000")


In each case the function stpapi.get.field rounded to 6 places. The only work around I can think of is to go directly against the table, not sure if that is possible in your case. I do not like giving this answer but I would report it to Baan and see what they said.

Mark

Daniel
26th July 2002, 08:17
Thanks a lot, Mark.

Ok, let's see what the baan specialists say about it.
But I think it a big lack of this tool.

See you...

mark_h
26th July 2002, 14:38
Daniel,

If Baan support does give you a answer would you please post it here for the rest of us.

Thanks

Mark

Daniel
26th July 2002, 15:04
Ok, Mark.

If they send me a replay I'll put it here.

Good luck to you,
Daniel