Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > ExchangePlans and SelectionFilter

Forum

Search UsersRules
ExchangePlans and SelectionFilter
#1
Just came
Points:: 0
Joined:: Jan 14, 2013

Hi.
I want to export only Catalogs by using SelectionFilter parameter in ExchangePlans.
Pls help me, thanks you.

Profile
#2
Active user
Points:: 0
Joined:: Jun 25, 2013

You can find examples of using SelectionFilter in 1C:Subsystems Library. See the SelectChanges method in the SuppliedData common module or in the InfoBaseObjectConvertion data processor module.

Profile
#3
Interested
Points:: 0
Joined:: Apr 5, 2012

Quote
I want to export only Catalogs by using SelectionFilter parameter in ExchangePlans.

In syntax there is explanation how to use this parameter:
"<SelectionFilter> (optional)

Type: Undefined; Metadata objects; ObjectRef, RecordsSet, Array.
Undefined - filter is empty, all changes on node are selected;
Metadata objects - changes in the main table, concerned to the given metadata object, are selected;
ObjectRef - in fact, only one record about changes of the given object can be selected, or no records if the object has never changed;
RecordsSet - set of register records, may be not selected, only record set filter is used to filter changes;
Array - all elements in array have one of the types listed above, except Undefined. Filter conditions are joined by OR.
Default value: Undefined."

U may try this versions and see how it works :).

Wish to platform syntax writers, to select knack points in syntax assistant. Because, link is only for users who available to read. Bold may attaract some attention.

Profile
#4
Just came
Points:: 0
Joined:: Jan 14, 2013

Thanks you everybody,
I have read on help and know about Undefined, ObjectRef but I could not create Array parameter for many Object(Example: many document objects).
Could you give me an example about type Metadata objects, Array

Profile
#5
Guest
Points::
Joined::

Hello, Dinh Hung.
To create an array, use the following syntax:

Code
MyArray = New Array;

To get metadata of some catalog, you can use this syntax, for example:
Code
BanksMetadata = Metadata.Catalogs.Banks;

Profile
#6
Just came
Points:: 0
Joined:: Sep 5, 2014

Thanks Timofey Bugaevsky very much!

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.