pralash
7th December 2018, 09:52
Hi,

Actually I have imported the data from warehouse receipt into my own customization form... All items are imported successfully... But a single field (whinh312.txtn) is imported to my form as a number instead of actual string content...

When I refer the text editor the particular number has text content as shown in the attachment... Since how can I get the actual string instead of number...

My script as follows...

before.program:

import("prog.name$", parent.session)
if parent.session = "whinh3512m100" then
import("whinh312.item", whinh312.item)
import("whinh312.clot", whinh312.clot)
| import("whinh312.sfbp", whinh312.sfbp) | Ship from BP
import("whinh312.ltbp", whinh312.ltbp) | BP Lot
| import("whinh312.cwar", whinh312.cwar) | Receiving warehouse
| import("whinh312.qrcr", whinh312.qrcr) | Received quantity
import("whinh312.txtn", text) | needed to update here
Here the last one is defined as form filed "text" which caused problem that is it got a number instead of string...

Please see the attachment and can anybody please help to fix this issue...
Regards,
Senthil

giggty
7th December 2018, 13:10
Well, you need to fetch the actual text by calling text.to.buf() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_text_fields_text_to_buf), for example.

bhushanchanda
8th December 2018, 11:07
And for an actual example of the function, you can refer this thread.


text.to.buf() usage (http://www.baanboard.com/baanboard/showthread.php?t=68632)