VishalMistry
12th February 2016, 15:10
Hi,

In session script i have an array of countries where i want to store 5 countries so i declare it like :
extern domain ccty arr(5)

and in session i am filling this array with countries (max five), now i want to pass this array of country and print them in before layout as :

arr(1) arr(2) etc

can anybody guide how this can be done.

Vishal

Ajesh
12th February 2016, 15:22
Assuming that you have filled that array variable and then you have used rprt_send(),something like


Select Table.name
------
Selectdo
rprt_send()
endselect




You need to declare arr(5) as Input Fields on the Report with the specified depth.Once you specify them as Input fields then that values are now accessible in the report script as well as the layouts

In the report script, in the before.layout section you can access arrr(1) or arr(5) or in the Report Layout you can use them again as you want. Declaring them as Input field is critical according to me.