on 05-15-2007 2:16 PM
In my ITS page I have the following code:
`if (area == 3)`
<input type="image" name="~OkCode=GETPRODUCTS_RES" src="`mimeURL()`/tab_residential_on.gif" width="131" height="36" border=0 />
`else`
<input type="image" name="~OkCode=GETPRODUCTS_RES" src="`mimeURL()`/tab_residential_off.gif" width="131" height="36" border=0 />
`end`
This works fine but I want to remove the literal "3" and replace it with a variable g_res. So I change the code to read:
`if (area == g_res)`
This doesn't work as I think it's still checking the literal value of "g_res" not the value in the variable. I've checked several HTML code forums but this seems too simple a problem for them to solve. I'm a HTML novice so any pointers would be great.
Regards,
Gill
Hi,
Of course this is possible. The line
if (area == g_res)
should work as expected.
Maybe you have noticed that you are not writing plain HTML but mixing HTML and a scripting language. The scripting language you are using here is called HTMLBusiness. It's a language only available on SAP ITS, so you won't find anything about it in ordinary HTML forums. Check the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/5f/1fb05e4aee11d189740000e8322d00/frameset.htm">HTML Business reference</a> for further information.
Best regards
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, that link to SAP help was very interesting. But I still don't know why my code doesn't work.
- I've checked both variables (area and g_res) in my SAP program and they are defined the same.
- I've debugged through the code using ITS debugger and the variables have the same value but still the correct graphic isn't displayed.
Is there anything else I need to check?
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.