Function Get() in ValueStorage

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 14, 2013
Company:

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'

 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

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".

 
#3
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 14, 2013
Company:

Hi ivan avdonin!

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

 
#4
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

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

 
#5
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 14, 2013
Company:

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.

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

Joined:
Company:

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.

 
#7
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jan 14, 2013
Company:

Thanks all.

 
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.