Subsystems Library 2.2.4.8 is released

How to enrich your business applications with extra functionality offered by 1C:Standard Subsystems Library

#1
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

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

Click for details and download links

1C Company support team
 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Jul 15, 2016
Company:

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

 
#3
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Dear Anonymous,

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

 
#4
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

The fix is included in SL 2.2.4.9

1C Company support team
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.