gget79
7th September 2009, 23:05
Hello experts,

I am working with LN 6.1

Before, until BaaN V, I have developed to make Purchase Orders by AFS functionality, but, now I am working with LN, then I am developing with DAL2 function's, my question is:

How to can save text's in tdpur400 and tdpur401 using DAL2 functions?

Thank you...

ARijke
8th September 2009, 08:54
Hi just create a text with TEXT.WRITE(...) and assign it to the text field:
tdpur400.txta = TEXT.WRITE(...)
dal.set.field("tdpur400.txta", tdpur400.txta)

Regards, Adriaan

gget79
8th September 2009, 15:10
Hi Friend,

Thank you very much..

Now I looked for this function on the help, but I have doubt taking about of the parameters....

The function sintax say me:

function long text.write (string text_field, string lang, string kw1, string kw2, string kw3, string kw4, string tgroup, string edit_opt, string tmp_file [, long bidi] [, string rtf_file])

I don't understand that having each argument.

Can you explain me with one example?

I have looked for in this forum, but I don't found nothing...

ARijke
8th September 2009, 15:39
I found the next example:
ret_long = TEXT.WRITE("line.text",language$,"","",
tdpur201.rqno, "tdpur201.pono", "", "", temp.file)

HtHs
Adriaan

gget79
8th September 2009, 16:39
Hi,

When you said me in the last argument tmp.file, do you want to say me that it has to be always from file; that is, I cannot save the texts from any variable

Thank you...

ARijke
9th September 2009, 08:28
Reading the manual (http://www.baanboard.com/programmers_manual_baanerp_help_functions_text_fields_text_write): yes i think it can only be done via a file.

Adriaan