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?
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;
Pages:1
Users browsing this topic (guests: 1, registered: 0, hidden: 0)