Hi,
I have a report that shows Items and Item Variants First data item is Item table and the second indented is Item Variant table. The Item Variant data item is not visible when I run the report as I have set a DataItemTableView set.
The filters on the Item data item include the Item Variant so how do I (in code) apply that filter to the second data item?
Thanks for your help.
0
Comments
Item.COPYFILTER("item Variant","Item Variant".COde):
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
GD
I am using Copyfilter. I have set a report to pull from dataitems:
In the Sales Invoice line I have this code:
Everything works great until the filters are choosen from the Sales Line and there are no existing records in the Sales Line. Then the filters are not carried to the Sales Invoice Line. They do not get picked up in the Sales Invoice Line until a record is found in the Sales Lines with those filters. So the first part of the report is wrong and then it suddenly looks perfect.
Does anyone have a suggestion to how I can fix this?
Dneal
:-k
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com
I was hoping I wouldn't have to redo the dataitem or sections of he report.
In order to suggest you an easy way to change these dataitems, I'd like to know what is the purpose of this report so that we can think of an ideal organization of the DItems.
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com
What I meant by how does this change things, was I don't understand how changing the dataitems will change the copyfilter function in an empty record. I just wanted an explanation on how changing the dataitems will affect the copyfilters function.
Sorry for the confusion.
Dneal
But after writing the post, I was wondering what you were really trying to do with these two tables.
I'm not so sure if my advice will work for you, depending on what you want to do.
:-k
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com
The report is for a customer who would like to see item statistics based on a customer. They would like to see the orders(sales header and sales line) and also historical data(sales invoice header and sales invoice line). Since the filters they are using exist in both sets of dataitems I am using a copyfilter in the sales invoice header and sales invoice line. The customer does not want to have 4 tabs in the request form and have to repeat the filters. This is why it is being done this way. I have the following data items:
Unfortunatley, changing the order of the dataitems wouldn't give me the data I require.
I'm still trying to find a way to make it copy the filters even if it doesn't find a record. It seems rather silly that this is how a Navision function works. ](*,)
Not sure what you mean.
What are you talking about?
http://www.mibuso.com/forum/viewtopic.php?p=70019#70019
Thanks for all the input.
Dneal