Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > TypeDescription Attribute Type

Forum

Search UsersRules
TypeDescription Attribute Type
#1
Active user
Points:: 1
Joined:: Jul 20, 2011

I have an attribute of TypeDescription type. The user chooses there some documents (one or several – it doesn’t matter). I want to provide a list of documents of the selected type, for example Customer Order.
The 1C:Script:

Code
Document = ObjectTypes.Types().Get(0);

It gives the document type. But how can I open the list of documents of this type?

Profile
#2
Active user
Points:: 32
Joined:: Sep 16, 2011

If you need something like that?

Code
DocumentsTableName = Metadata.FindByType(YourType).FullName();
Query = New Query;
Query.Text = "SELECT Ref FROM " + DocumentsTableName;
For Each QueryResultRow In Query.Execute().Unload() Do
  // your code here
EndDo;

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.