Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3570

Re: Export "Groups" attribute as html class name on ITS?

$
0
0

Hi Oisin ONidh and Cristiano Hansen,

 

Firstly, thanks for your valuable answers. I checked your your links for the solution. But actually They are not the solutions which i need. (I needed more flexible and dynamic solution, in fact  i need some flags (id, parameter) to find them at javascript/css.

 

I solved the problem as the following way;

 

 

STEP 1

Update _CONTENT_ELEMENT method.

CLASS: ZCL_ITS_GENERATE_HTML_MOBILE4  > _CONTENT_ELEMENT


I declared this to compiler: Please add the replacement keywords to replacment keys table. For example: Sap ITS compiler ll replace "ZGRP1" keyword  with GROUP1 value of the current control in html template.

sapo1.jpg






STEP 2

Update a html element template.

ITS Services  > ZRFGEN4 (Html Template)

 

Sap compiler will replace "ZGRP1" with GROUP1 value.

sapo2.jpg




STEP 3

  Create ITS page and test.

sapo3.jpg




RESULT:

For example: i can show date picker  popup for all elements which containd "ZDT" class in its web site. (via jquery > $(".ZDT").doDatePickerInput();  )


or modify specific control on css file side:


.MobileInput.ZDT{

     color:red;

     font-size:20px;

}


sapo5.jpg


sapo6.jpg



Viewing all articles
Browse latest Browse all 3570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>