on 01-24-2011 4:47 AM
Hi
This is a query regarding ADOBE print form.
How to access a record field (of an data source.... typical multi row records) where the record is bound to a subform.
Data is something like
(I have used abap parlance for understanding)
data : begin of data_tab occurs 0,
field1 type .....,
field2 type .....,
......
....
fieldm type .....,
fieldn type .....,
end of data_tab.
Subform is bound to
$.DATA_TAB.DATA[*]
How to access field1, field2,...... etc without creating subform fields and binding them to field1, field2, .... fieldn.
I know normal approach is to define subform fields and then bind it to $.field1, $.field2 etc
In the calculate event of a field bound to $.fieldm I have tried the following expressions to get the value of column fieldn of the same record but none of them worked.... Note that if I bind the field using $.fieldn data is displayed properly in the print form.
$record.data_tab.fieldn.value
$record.data_tab.data[*].fieldn.value
$record.data_tab.data.fieldn.value
$record.data_tab.fieldn.value
Otherwise I would have to define hidden fields just to use these column values in the event script even though these value are not to be displayed in the ADOBE print form.
Regards
Abapper
I can't remember the exact sentence, but do a little search, as that is a common question in this forum....
How about:
$record.data_tab.data[1].fieldn.value
$record.data_tab.data[2].fieldn.value
$record.data_tab.data[2].fieldn.value
[...]
$record.data_tab.data[N].fieldn.value
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.