Hi
I tried to customize a page by adding a new field with a default value.
How can I do this?
Hi
I tried to customize a page by adding a new field with a default value.
How can I do this?
YUN ZHU
very good
Good Job Man
Perfect, Thanks a lot.
Hi, very interesting question. Try the code below.
tableextension 50111 MyExtension extends "Sales Header" { trigger OnInsert() var TypeHelper: Codeunit "Type Helper"; Crlf: Text[2]; String: Text[2048]; OutS: OutStream; begin Crlf := TypeHelper.CRLFSeparator(); String := 'This is line 1' Crlf 'This is line 2' Crlf 'This is line 3'; Clear("Work Description"); "Work Description".CreateOutStream(OutS, TextEncoding::UTF8); //OutS.WriteText(textstring); OutS.Write(String); end; }
How I can write more than one line in the Work Description text box by this trigger code?
I have used this character to make a new line '/ ' but it's not useful.
Thanks so much for the best useful answer.
For example,
Thanks
How I can use this method?
Hi, the initial value of the BLOB field can only be done using code. As for the method, you can refer to procedure SetWorkDescription in Sales Header.
Hope this helps.
Thanks.
ZHU
Hello Mr.ZHU
Thanks for all your effort when you help us, always you write the best result.
I have really used the InitValue property but it's not used with the BLOB datatype field.
It's correct with the Text datatype field but the problem with the Text field is the size of the box to write on it is very small, I need a more large box to write as Blob field " like work description ".
How I can set default data on the BLOB field? or another way to make the box to write on the Text field larger?
I wish you can help me!
Hi, hope the following helps.
How to set the initial value (Automatically set default value for field)
Thanks.
ZHU
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156