cancel
Showing results for 
Search instead for 
Did you mean: 

SAP_TemplateTableBegin

Former Member
0 Kudos

Hi,

I use the Business HTML library function, SAP_TemplateTableBegin as follows :

`SAP_TemplateTableBegin(id="Test", title="Test")` `SAP_TemplateTableRowBegin()`

`SAP_TemplateTableCellBegin(subtype="TEXT")` Column 1 `SAP_TemplateTableCellEnd()`

`SAP_TemplateTableCellBegin(subtype="TEXT")` Column 2 `SAP_TemplateTableCellEnd()`

`SAP_TemplateTableRowEnd()`

`SAP_TemplateTableRowBegin()`

`SAP_TemplateTableCellBegin(subtype="INPUT")` `SAP_InputField("f1a")`

`SAP_TemplateTableCellEnd()`

`SAP_TemplateTableCellBegin(subtype="INPUT")` `SAP_InputField("f2a")`

`SAP_TemplateTableCellEnd()`

`SAP_TemplateTableRowEnd()`

`SAP_TemplateTableRowBegin()`

`SAP_TemplateTableCellBegin(subtype="INPUT")` `SAP_InputField("f1b")`

`SAP_TemplateTableCellEnd()`

`SAP_TemplateTableCellBegin(subtype="INPUT")` `SAP_InputField("f2b")`

`SAP_TemplateTableCellEnd()`

`SAP_TemplateTableRowEnd()`

`SAP_TemplateTableEnd()`

I noticed that one has to enter the tab key twice in order to move from one input cell to another within each row ? Is it a norm or a possible bug ? Is there a solution such that only 1 tab is required to move from one cell to another within a row ? Thanks.

Regards

Kir Chern

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Kir Chern Loh,

as far as I can see the problem exists due to tabindex is set within the table to the cells (<td>) and to the input fields. For two tabindex you have to hit tab twice to leave the cell.

Try the following: add parameter 'skipTabindex="1"' to the SAP_TemplateTableCellBegin call. This should suppress rendering the tabindex to the cell.

Furthermore you could write your application as easy web transaction (EWT); Therewith you can use SAP_TableControl which renders a complete tablecontrol with input fields and labels with one single function call.

Regards,

Simon

Answers (0)