Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Get an information register object

Forum

Search UsersRules
Get an information register object
#1
Active user
Points:: 0
Joined:: Jun 4, 2013

I have a question !

I'm trying to write a script from a catalog and i want to get an information register dimensions and resources .... can someone give me a help please


and thanks in advance :)

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

try using

Code
NameOfRegister = "InformationRegister1";
Message("Dimensions:");
For each Dimension In Metadata.InformationRegisters[NameOfRegister].Dimensions do
   Message(Dimension.name);
EndDo;
Message("Resources:");
For each Resource In Metadata.InformationRegisters[NameOfRegister].Resources do
   Message(Resource.name);
EndDo;


Metadata used to access the configuration metadata structure

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

ohhh I'm sorry ... I explained wrong ... sorry sorry ... what i meant is to get the value of each record not the name of the dimensions and resources for example dimension1="tubes" resource1=100  ... hope you understand me

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

i think its better using query for this

Code
Query = New Query;
Query.Text = "SEL ECT dimension1, resource1 FR OM InformationRegister.InformationRegister1";
Selection = Query.Execute().Choose();
While Selection.Next() Do
   dimension1 = Selection.dimension1;
   resource1  = Selection.resource1;
EndDo;


There is no object for Information Register.
Another collections used for operations with information register:
- InformationRegisterRecordSet
- InformationRegisterRecordManager
Link to information about adding a new record

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.