From: Vishal on
hi,
i'm new to C/AL code and report writing.

i want to select line on form and click button to print report base on
selected line. i created report but don't how to get current selected line
and data on report.


From: Subrata Bauri on


"Subrata Bauri" wrote:

> There is a very good example in the Base product (Navision).
>
Financial Managment >> General Ledger >> Analysis & Reporting >> Analysis
> by Dimensions.
>
> In this Form you have to GO >> Filters (Tab) >> G/L Account Filter.
>
> The G/L Account Filter field filteration is the same which you want...
> You can get concept from here.
>
> Thank you !!
>
>
>
>
> "Vishal" wrote:
>
> > hi,
> > i'm new to C/AL code and report writing.
> >
> > i want to select line on form and click button to print report base on
> > selected line. i created report but don't how to get current selected line
> > and data on report.
> >
> >
From: Subrata Bauri on
Sorry for the wrong reply & multiple false post ( Unfortunately ).

You have to create a function with parameter (data).
And Call Report function before RUN the report.

CurrForm.SETSELECTIONFILTER(Record);
Report.Function(Record);
Report.Run;



From: Subrata Bauri on


"Subrata Bauri" wrote:

> There is a very good example in the Base product (Navision).
>
> Financial Managment >> General Ledger >> Analysis & Reporting >> Analysis
> by Dimensions.
>
> In this Form you have to GO >> Filters (Tab) >> G/L Account Filter.
>
> The G/L Account Filter field filteration is the same which you want...
> You can get concept from here.
>
> Thank you !!
>
>
>
>
> "Vishal" wrote:
>
> > hi,
> > i'm new to C/AL code and report writing.
> >
> > i want to select line on form and click button to print report base on
> > selected line. i created report but don't how to get current selected line
> > and data on report.
> >
> >