on 07-03-2007 1:47 PM
Hello All,
Could any one tell me what is the wrong in this code.
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" Welcome to our online booking catalog " >
<htmlb:form method="POST" >
last name
<htmlb:textView text = "Hello World!"
design = "EMPHASIZED" />
<htmlb:inputField type = "STRING"
value = "X"
id = "authorlname" />
<htmlb:inputField type = "STRING"
value = "X"
id = "authorfname" />
<htmlb:inputField type = "STRING"
value = "books by the selected author"
id = "onInputProcessing(select)" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
Regards,
Lisa.
Hi Lisa,
In your code, you have wrongly assigned attribute values...
Well, each inputField has a unique id....
and all the inputFields cannot have events....i think it should be button....instead of the last inputField...
so your code can be corrected as follows :
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" Welcome to our online booking catalog " >
<htmlb:form method="POST" >
last name
<htmlb:textView text = "Hello World!"
design = "EMPHASIZED" />
<htmlb:inputField type = "STRING"
value = "X"
id = "authorlname" />
<htmlb:inputField type = "STRING"
value = "X"
id = "authorfname" />
<htmlb:button id = "button1"
text = "books by the selected author"
onClick = "onInputProcessing(select)" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
brackets around select cause the problem
<htmlb:inputField type = "STRING"
value = "books by the selected author"
id = "<b>onInputProcessing(select)"</b> />
Remove the brackets it should be OK. hope this helps.
Cheers
Aamndeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry forgot to hit the code button, this may be more readable.
<htmlb:gridLayout columnSize = "8"
rowSize = "6"
cellSpacing = "1"
cellPadding = "1" >
<htmlb:gridLayoutCell columnIndex = "1"
rowIndex = "1"
width = "90"
backgroundColor = "white" >
<htmlb:textView id = "Whateverlabel"
design = "HEADER2"
text = "<%= application->label1 %>"
textColor = "red"
tooltip = "Whatever tip" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex = "2"
rowIndex = "1"
backgroundColor = "white" >
<htmlb:inputField id = "someid"
type = "STRING"
size = "80"
value = "<%= t_some_comment %>" />
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa, when I created HTMLB tables I always use a gridlayout with cells to organize it. Something like this:
<htmlb:gridLayout columnSize = "8"
rowSize = "6"
cellSpacing = "1"
cellPadding = "1" >
<htmlb:gridLayoutCell columnIndex = "1"
rowIndex = "1"
width = "90"
backgroundColor = "white" >
<htmlb:textView id = "Whateverlabel"
design = "HEADER2"
text = "<%= application->label1 %>"
textColor = "red"
tooltip = "Whatever tip" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex = "2"
rowIndex = "1"
backgroundColor = "white" >
<htmlb:inputField id = "someid"
type = "STRING"
size = "80"
value = "<%= t_some_cool_comment %>" />
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
Hope this helps,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
two messages are opend unfortunately so i am closing one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.