Hello Experts,
In IC WEBCLIENT, there is a view.In the view.htm i want to fetch the screen resolution and as per the resolution i want set the width of that view.
1, I wrote the below javascript to fetch the screen resolution.
Can i use a notmal ABAP variable inside the javascript? and If i use can i access that variable after the javascript.?
Can i assign a javascript variable to a nrmal abap variable??
The code sample is like :
- - - - - - - - - -
*
Start of javascript
if (screen,width == 1024 )
lv_width = 500 "lv_width is an ABAP variable.
else
lv_width = 700
**END OF JAVASCRIPT
**Now i want to use lv_width to assign to a table view attribute(Width)
<crmc: tableview..
width = <%= lv_width >
-
- - - -
*
*
the code is not giving any error. But the problem is that lv_width is not giving the correct value, its getting initialized to initial value...
Requesting the experts to please provide some suggestions/solution for the above issue.
Thanks and Regards
Sudhansu