Quantcast
Channel: SCN: Message List - Internet Transaction Server (ITS)
Viewing all articles
Browse latest Browse all 818

Re: ITS Application for LM01 screen size is too small on Mobile devices

$
0
0

Hi Torrealba,

 

Instead of using a difference CSS, I suggest other option you can use to enlarge all the screen elements. That is to create a new style which requires a new generating class and 2 new services. Here are the steps:

 

1. Add a new style to table W3GENSTYLES, let's call it 'ZMOBILE' and put generation class ZCL_ITS_GENERATE_HTML_MOBILE.

 

2. Copy class CL_ITS_GENERATE_HTML_MOBILE to ZCL_ITS_GENERATE_HTML_MOBILE.

 

3. Go to method _COMPUTE_WIDTH_STRING in class ZCL_ITS_GENERATE_HTML_MOBILE, modify data type 'emfactor' to a value more than existing '0.86' (This is an important scale factor). Make it like 1.0 or 1.5 to try. I'll use 1.5 as an example.

 

4. Go to method IF_ITS_GENERATE_TEMPLATE~DESCRIPTION_TEXT in same class, Put the new style ZMOBILE under the case and put a new description.

 

5. Go to method CONSTRUCTOR, change template service from ITSGENMOBILE to ZITSGENMOBILE(this is a new service that we will create later).

 

6. Go to internet service and copy ITSMOBILE to ZITSMOBILE.

 

7. Look for 'FUNCTIONS' under HTML Templates of ZITSMOBILE. Edit the parameter value ~itsmobile1UnitWidth to 1.5em

 

8. Stay in internet service, copy service ITSGENMOBILE to ZITGENMOBILE for step 5.

 

9. In new service ZITGENMOBILE, look for GENERATION_INFO under HTML Template. Edit 'include(~service ="itsmobile"' to 'include(~service="zitmobile"'.

 

10. Now create all the screen templates using the new style ZMOBILE. You'll have everything enlarged. To further test with difference sizes, change the scale factor 1.5 to any other values.

 

Hope I don't miss a step and good luck.

 

Regards,

Silver


Viewing all articles
Browse latest Browse all 818

Trending Articles



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