Recently I had to make sure that captions for both ENU and NLD were present throughout our solution. A job I have being doing many times over the past years and wrote some post about (you will find some here).
One of the last tasks in this process deals with resetting object properties after importing the UI translation back into our objects. To help you with this task the ObjectTime tool, a simple dataport, has been there for ages. But to my dismay MS has not made available a successor to that for NAV 2013. (Note that the MSDN article How to: Add Translated Strings By Importing and Exporting Multilanguage Files as such is incomplete as it does not tackle the issue of resetting object properties!)
So now we all are going to have to built this tool ourselves which isn’t much of a deal, but it would have saved us all some time if would have been there where it used to be: in the UpgradeToolkit directory on the product DVD. As I have built it I just might share it with you. You can download it from here. O no, sorry, I cannot upload it to my blog site (some technical reasons I guess). I’ll give you the text export here. Copy it and paste it into a .txt file and import that into NAV:
{
OBJECT-PROPERTIES
{
Date=18-01-13;
Time=12:00:00;
Version List=FLUX7.00.00;
}
PROPERTIES
{
}
ELEMENTS
{
{ [{2492F691-EBD4-4458-85FA-1BC05190649C}]; ;Root ;Element ;Text }
SourceTable=Table2000000001;
SourceTableView=WHERE(Field1=FILTER(<>0));
AutoSave=No;
MinOccurs=Zero;
Import::OnBeforeInsertRecord=VAR
Object2@1000 : Record 2000000001;
BEGIN
Object2 := Object;
IF Object2.FIND THEN BEGIN
Object2.Modified := Object.Modified;
Object2.Date := Object.Date;
Object2.Time := Object.Time;
Object2.MODIFY;
END;
END;
}
DataType=Option;
SourceField=Object::Type }
DataType=Integer;
SourceField=Object::ID }
DataType=Boolean;
SourceField=Object::Modified }
DataType=Date;
SourceField=Object::Date }
DataType=Time;
SourceField=Object::Time }
EVENTS
{
}
REQUESTPAGE
{
PROPERTIES
{
}
CONTROLS
{
}
}
CODE
{
{
+—————————————————————————————————————————+
|Copyright (C) by fluxxus.nl. All rights reserved. |
+—————————————————————————————————————————+
|Change | Date |Developer |Bug Rep No. |Description |Version |
|——-+——–+———-+—————–+——————————————————————–+——–|
|FLX0001|18-01-13|lvanvugt | |Created object based on former MS dataport 104010 |07.00.00|
| | | | |(Import/Export Object Time) | |
| | | | |Thanx to Marco de Vries (Imtech) and Gert Robyns (MSFT) | |
+—————————————————————————————————————————+
}
END.
}
}
Thanx to …
… Marco de Vries (Imtech) & Gert Robyns (MSFT) as I bumped into (and let me not be stopped by) some stupidities. [B]
Hi Thomas,
Thanx for your comment. But are you sure?
In my knowledge this was also there in NAV 2009. Maybe you recall the discussion I had with Mark Brummel, where he posted a comment on a similar blog post I wrote 2 years ago (and to which I implicitely refer above). It appeared that he was talking about the import of a Language Module, where I was talking about the Translate > Import. These are two different things.
Now again I am talking about the Translate > Import. Are you too?
b rg
Luc