cancel
Showing results for 
Search instead for 
Did you mean: 

declare statement in HTML Template ?

Former Member
0 Kudos

Hi ,

       I need your help.!! I'm analyzing the html business codes in the generated html template. i want to know,

                 why this " declare class(el), w(i, a) in "some.html"; " statement, used in the html template. ?

What does w(i,a) meant for?

What is "i" & what is 'a'

Expecting your reply.

Thanks and regards,

Avinash.

Message was edited by: Oisin ONidh No need to ref Forum Moderator in the opening SCN thread

Accepted Solutions (1)

Accepted Solutions (1)

former_member194364
Active Contributor
0 Kudos

Hello Avinash,

The following SAP Library is a good starting point

SAP Library - HTMLBusiness Language Reference

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin,

          Thank you very much! i saw this post some time ago. It was very helpful

Regards,

Avinash.

Former Member
0 Kudos

Hi Oisin,

      The declare statement mentioned in the html reference online document ,

These keywords do not example definitions, so that i can relate it to my code.

BR,

Avinash.

former_member194364
Active Contributor
0 Kudos

Hello Avinash,

Have you seen the following page? (related to the previous link)

It explains how the "declare" statement is defined in HTML business.

HTMLBusiness Grammar Summary - HTMLBusiness Language Reference - SAP Library

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin,

             I saw this page, n went through it completely , no where its mentioned about "w(i,a)" function.

Regards,

Avinash.

Former Member
0 Kudos

Hi Oisin,

             Can you suggest any good documents, where i can master ITS Mobile ?

Best regards,

Avinash.

former_member194364
Active Contributor
0 Kudos

Hello Avinash,

help.sap.com and the ITSMobile WIKI are two good resources.

Also SAP Notes can have useful correction information.

Creating Mobile
Applications with ITSmobile - SAP ITS in SAP NetWeaver Application Server - SAP
Library at: http://help.sap.com/saphelp_scm700_ehp03/helpdata/en/4c/3936d8661e5792e10000000a15822b/content.htm?f...

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin,

              Thank you, I have read these documents thoroughly & yes I understand the landscape to a certain extent, but my problems are certain keywords in 'HTMLB' i don't find them in HTMLB Reference too in SAP HELP portal

`repeat with j from ***.firstvisible to ****.lastvisible`

What is this firstvisible & lastvisible? is it pointing to the elements on the screen/ or backend ABAP objects??

Reards,

Avinash.

former_member194364
Active Contributor
0 Kudos

Hello Avinash,

These(firstvisible & lastvisible) are HTML Business "field attributes" I believe. But without knowing the context I cannot be sure.

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin,

             These aren't field attributes. it looks like properties of a table/view.

below you can find the code snippet containing these.

(note: 1. ITSGenmobile ie with table generator is used)

*******************************************************************************************************************

<tbody>

      `repeat with j from TBC_####.firstvisible to TBC_####.lastvisible`

      <tr>

        <td><input type=radio name="TBC_####" value="TBC_####-rowselect[`j`]" `if(TBC_####-rowselect[j].selected)` checked `end`></td>

        <td>`WA_LAGP1-LGTYP[j].value`</td>

        <td>`WA_LAGP1-LGPLA[j].value`</td>

        <td>`WA_LAGP1-SEQ_NUM[j].value`</td>

      </tr>

      `end`

    </tbody>

****************************************************

I need some inference on 3 Keywords:

firstvisible,lastvisible & rowselect.

I checked in javascript! it does not have any properties on these keywords.


Thanks & Regards,

Avinash

Answers (1)

Answers (1)

former_member194364
Active Contributor
0 Kudos

Hello Avinash,

Yes it could indeed be a table control with radio buttons as input element for selection of a row?

'firstvisible' and  'lastvisible' are properties of the visible elements in the table

The code here scans from the the firstvisible to the lastvisible and if a radio button is selected then the rowselect value is returned.

Regards,

Oisin

Former Member
0 Kudos

Hi Oisin,

               Thank you Oisin   i dont want the firstvisible & lastvisible variables to be used, can i define a new variable to keep count of the number of entries made in abap function module table.? (like a counter).

Thanks & Regards,

Avinash.