Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Import Translated Profile Resources

$
0
0
Did anyone use/test this already? It was first released last september with NAV 2015 CU 11 (and in NAV 2016).

I wasn’t aware of this feature so far and wanted to use it today (on NAV 2016 CU3), but when executing the action “Import Translated Profile Resources From Folder” on PAG9171 (Profile List) or PAG9170 (Profile Card) nothing happened.
Debugging the code I found the reason, which made me thing no one did use/test it at all.

The relevant code is to be found in COPD9170 (Conf./Personalization Mgt.) in the local function ReadResourceFiles:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);

IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
  EXIT(FALSE);

Directories := Directory.GetDirectories(ServerFolder);

Why is it getting the directories as there only .resx files in “ServerFolder”? IMHO this code has to be:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);

IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
  EXIT(FALSE);

//LVV-BEGIN
//Directories := Directory.GetDirectories(ServerFolder);
Directories := Directory.GetFiles(ServerFolder);
//LVV-END

And then it does do the job. So this is, to me, clearly a bug. But maybe I overlook something as I cannot find anyone reporting this.

I have also reported it on msconnect: https://connect.microsoft.com/dynamicssuggestions/feedback/details/2386708/bug-in-import-translated-profile-resources-pag9170-pag9171

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>