RE: The Length of the string is 1188 but it must be less than or equal to 1024
Thanks for the all the replies Now, iam trying to make my field into a blob data type and iam using standard method like how work description works ,by creating two procedures
in the table,
procedure SetWorkDescription(newfield: Text)
var
OutStream: OutStream;
begin
Clear("myfield");
"INTRA_NAME".CreateOutStream(OutStream, TEXTENCODING::UTF8);
OutStream.WriteText(newfield);
Modify();
end;
procedure GetWorkDescription() mynewfield: Text
var
TypeHelper: Codeunit "Type Helper";
InStream: InStream;
begin
CalcFields("myfield");
"INTRA_NAME".CreateInStream(InStream, TEXTENCODING::UTF8);
exit(TypeHelper.TryReadAsTextWithSepAndFieldErrMsg(InStream, TypeHelper.LFSeparator(), FieldName("myfield")));
end;
here what happens is iam trying add the code into the xmlport and on
trigger OnAfterGetRecord()
var
begin
myfield := GetWorkDescription()
end;
but it shows error you cannot use your The name 'GetWorkDescription' does not exist in the current context, so iam really stuck now...