The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 2
Joined: Jul 3, 2013
Company: TRIAX

I has a document with 2 Tabular sections: Inventory Items an Products
On Document Form, List of Inventory Items was filter by a product selection on list of Products

On Ordinary application, I code:

Code
Controls.InventoryItems.RowFilter.MasterID.Set(Controls.Products.CurrentData.ID);

It is work Ok.

But, Managed application, I code:
Code
Items.InventoryItems.RowFilter.MasterID.Set(Controls.Products.CurrentData.ID);

I has an error "Giá trị không phải là giá trị có kiểu đối tượng (MasterID)"

Someone can give me some advice
Thanks!

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

Joined:
Company:

Hello, Hoang Minh Tri.

Please, see an example in How display filter item of Dynamic List on List Form by coding.

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

But in my example it is 2 Tabular sections of a Document
If I uses Dynamic List, I cant add item into tabular section
Thanks!

 
#4
People who like this: 0 Yes / 0 No
Just came
Rating: 1
Joined: Feb 29, 2012
Company:

Hi Tri,

You can use value with type FixedStructure for RowFilter
For example:

Code
   FixStructure = New FixedStructure("MasterID",Items.Products.CurrentData.ID);
   Items.InventoryItems.RowFilter = FixStructure;

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 2
Joined: Jul 3, 2013
Company: TRIAX

Quote
Nguyen THundefined   FixStructure = New FixedStructure("MasterID",Items.Products.CurrentData.ID);
  Items.InventoryItems.RowFilter = FixStructure;

That code way is ok
Thanks!

 
Subscribe
Users browsing this topic (guests: 2, registered: 0, hidden: 0)