cancel
Showing results for 
Search instead for 
Did you mean: 

what is thewrong in this HTMLB

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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>

Former Member
0 Kudos

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

Former Member
0 Kudos

two messages are opend unfortunately so i am closing one