Hello,
I've created a XMLPort in combination with a Codeunit and Web Service to export data from NAV.
How do I set the custom fields that don't match a value in a table?
This is my XMLport:
Node Name Node Type Source Type Data Source
BosaTech Element Text <BosaTech>
Tech Element Table <Employee>(Employee)
id Attribute Field Employee::No.
street Element Field Employee::Address
firstname Element Field Employee::First Name
fullname Element Text <fullname>
My first custom field is fullname and I want it to be Employee::First Name + Employee::Last Name.
I've tried to set it in the trigger fullname - Export::OnBeforePassVariable()
fullname := 'export' + 'foo'; // works fine but how do I access the first and last name of the current employee?
fullname := MyTech."First Name" + MyTech."Last Name" // Compiles but where do I initialize the global variable MyTech of type Record Employee???
Thanks for any hint!
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
fullname := Employee."First Name" + ' ' + Employee."Last Name"
Cheers.