Desktop version

Main > Forum > Applications > 1C:Standard Subsystems Library (SSL) > Subsystems Library 2.2.4.8 is released

Forum

Search UsersRules
Subsystems Library 2.2.4.8 is released
#1
Active user
Points:: 0
Joined:: Jun 25, 2013

We have renamed "Additional data and attributes" to "Custom fields and data" and fixed a few bugs.

Click for details and download links

Profile
#2
Just came
Points:: 0
Joined:: Jul 15, 2016

Hi guys!

Looks like the common module ImportExportUserSettings still doesn't work.
Following procedures have errors: ImportUserSettings() and ImportSettingsFromTable().

I fixed this issue by myself and now it works.
The right script is below (my changes are in red 6 times):


Procedure ImportUserSettings(Val Context, Val PathToFile, Val URLMap)

ReaderStream = New XMLReader();
ReaderStream.OpenFile(PathToFile);
ReaderStream.MoveToContent();

While ReaderStream.NodeType = XMLNodeType.StartElement Do

SavedSettings = DataExportImportInternal.ReadObjectFromStream(ReaderStream);
StorageManager = Eval(SavedSettings.Storage);
SettingsTable = SavedSettings.Table;

ImportSettingsFromTable(StorageManager, SettingsTable, URLMap);

EndDo;

EndProcedure

Procedure ImportSettingsFromTable(Val StorageManager, Val SettingsTable, Val URLMap)

For Each Settings In SettingsTable Do

If TypeOf(Settings.Settings) = Type("ValueStorage") Then
SettingsValue = Settings.Settings.Get();
Else
SettingsValue = Settings.Settings;
EndIf;

SettingsDescription = New SettingsDescription;
SettingsDescription.Presentation = Settings.Presentation;

If TypeOf(SettingsValue) = Type("UserWorkFavorites") Then

SubstituteURLs(Settings.User, SettingsValue, URLMap);

EndIf;

StorageManager.Save(Settings.ObjectKey, Settings.SettingsKey, SettingsValue, SettingsDescription, Settings.User);

EndDo;

EndProcedure



Sincerely,
Anonymous

Profile
#3
Guest
Points::
Joined::

Dear Anonymous,

Thank you for the information and for the fixes. We will include it in the next version of 1C:Subsystems Library.

Profile
#4
Active user
Points:: 0
Joined:: Jun 25, 2013

The fix is included in SL 2.2.4.9

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.