UBF print template, custom extension field extension field values are displayed set value is encoded, and in practice the printing process needs to display the extension field name of the specific method is as follows:
1, the system-defined functions using SQL [dbo]. [Fn_GetSegName] implemented
1) Check [fn_GetSegName] function is present (SQL position: ERP Database -> may be a compiled -> Function -> scalar-valued function)
2), the register function U9 [fn_GetSegName];
File Path: D: \ yonyou \ U9V50 \ Portal \ bin \ SCRIPT.XML D: \ yonyou \ U9V50 \ Portal \ ApplicationServer \ bin \ SCRIPT.XML registration documents: script.xml registration function: <SQL name = " fn_GetSegName " Method, = " fn_GetSegName " owner = " the dbo " />
3) After registering a custom function, you need to restart IIS before use in the U9 products;
4), the custom print template field called function [fn_GetSegName] Method;
select fn_GetSegName(UFIDA::U9::MO::Issue::IssueDoc.IssueDocLines.Item.DescFlexField.CombineName ,'#@#',56)
from UFIDA::U9::MO::Issue::IssueDoc
where UFIDA::U9::MO::Issue::IssueDoc.DocNo=Fields!IssueDoc_DocNo.Value and UFIDA::U9::MO::Issue::IssueDoc.IssueDocLines.LineNum=Fields!IssueDoc_IssueDocLines_LineNum.Value
. 5), fn_GetSegName (DescFlexField_CombineName, ' # @ # ', 56 is) Parameters: parameter 1, parameter 2 fixed value, the parameter is the number 3 (1-50 common segment extension field period, private sections from the beginning. 51)