hello,
In the weblog by Thomas 'BSP Programming: HTMLB TableView Iterator': i try to test it but i've got a message: 'Field "M_CURRENCIES_REF" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
I've decalared it like that:
DATA: M_ROW_REF TYPE REF TO SFLIGHT.
DATA: M_CURRENCIES_REF TYPE REF TO DATA,
table1 TYPE TIHTTPNVP.
GET REFERENCE OF table1 INTO M_CURRENCIES_REF.
and the code of te exemple:
WHEN 'CURRENCY'.
IF P_EDIT_MODE IS NOT INITIAL.
P_REPLACEMENT_BEE = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
ID = P_CELL_ID
SELECTION= M_ROW_REF->CURRENCY
TABLE = ME->M_CURRENCIES_REF
NAMEOFKEYCOLUMN = 'NAME'
NAMEOFVALUECOLUMN = 'VALUE' ).
I've not a long experience in coding and if someone can help me. How to declare M_CURRENCIES_REF and M_ROW_REF.
Thanks by advance.
Farid BERRA
Is your data declaration for M_CURRENCIES_REF defined like you have it in code or as an attribute of your iterator class? Later in your code you refer to ME->M_CURRENCIES_REF. This would tell me that is is meant to be an attribute of the class. From the partial code snippet you have it is difficult to determine much else.
I believe that the weblog you are refering to was actually written by Brian McKellar. There are other weblogs on TableView Iterator on SDN as well. Perhaps looking at more than one example will help you get started.
Hello,
In the attribute of the class ZCL_BCM_SDN_ITERATOR, I put:
Attribut ... Type réf
M_ROW_REF ... SFLIGHT
I ‘ve a problem with this declaration of m_row_ref (also with M_CURRENCIES_REF).
However, i respected the model of the weblog of Brian McKellar and also that of Craig Cmehil. IÂ’ve always have this message!!!
‘Classe ZCL_BCM_SDN_ITERATOR, Méthode IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START "M_ROW_REF" is not a reference variable. ‘
In the code of RENDER_CELL_START , i have:
...
WHEN 'FLDATE'.
IF P_EDIT_MODE IS NOT INITIAL.
DATA: DATE TYPE STRING.
DATE = M_ROW_REF->FLDATE.
P_REPLACEMENT_BEE = CL_HTMLB_INPUTFIELD=>FACTORY(
ID = P_CELL_ID
VALUE = DATE
TYPE = 'DATE'
SHOWHELP = 'TRUE'
CELLVALUE = 'TRUE' ).
ENDIF.
...
I'm blocked... So, thanks for your help.
Farid BERRA
Add a comment