Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Function Get() in ValueStorage

Forum

Search UsersRules
Function Get() in ValueStorage
#1
Active user
Points:: 0
Joined:: Jan 14, 2013

Hi all!
Can you help me ?
I have got a ploblem about type 'ValueStorage', I save ok but when i reopen thisobiect ít's message error : Stream format error

This code :

Code
Function GetTemplateStructure()   
   StructureTemplate = Undefined;   
   If ValueIsFilled(ThisObject.Ref) Then
      StructureTemplate = ThisObject.Pattern.Get(); // error
   EndIf;   
   Return StructureTemplate;   
EndFunction

/// Pattern type 'ValueStorage'

Profile
#2
Active user
Points:: 0
Joined:: Sep 26, 2012

Its likely you have wrong object type of one of value in value storage

Quote
Object type descriptions than can be placed to the ValueStorage include text "Serialization".

Profile
#3
Active user
Points:: 0
Joined:: Jan 14, 2013

Hi ivan avdonin!

This function use 'Managed application', it's likely other when use 'Ordinary application' ?

Profile
#4
Active user
Points:: 0
Joined:: Sep 26, 2012

I think its not depend of type of application.

You can try put one by one values to ValueStorage and check what value will be cause of error

Profile
#5
Active user
Points:: 0
Joined:: Jan 14, 2013

Hi ivan avdonin!
I tried it, it's error when i put data type 'SpreadsheetDocumentField', this type 'SpreadsheetDocumentField' use in 'Managed application' --> ok but  use 'Ordinary application' --> error.

Profile
#6
Guest
Points::
Joined::

Hello, P& A, you should use ValueStorage to keep data only, this feature does not allow to keep live objects, so please put value of the SpreadsheetDocumentField to the value storage or an MXL file with SpreadsheetDocument.

Profile
#7
Active user
Points:: 0
Joined:: Jan 14, 2013

Thanks all.

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.