HTMLB:FORM und HTMLB:Button

BusinessServerPages; Erstellung von Webapplikationen.

HTMLB:FORM und HTMLB:Button

Postby Ilse5165 » Thu Aug 21, 2003 5:30 pm

Hey,

hat jemand mal ein einfaches Beispiel. wie ich in einer HTMLB:Form
auf einer BSP Werte submitten kann. Wenn ich den HTMLB:Button
einfüge, gibt es immer einen Java-Script fehler und ich gelange
nicht einmal in das ONINPUT Processing....

Was mache ich falsch?!

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. <htmlb:content>
  2. <htmlb:page>
  3. <htmlb:form
  4.           method="post">
  5. <htmlb:gridLayout id="myGridLayout1" columnSize="4" rowSize="1" debugMode="FALSE" width="40%" cellSpacing="5">
  6.       <htmlb:gridLayoutCell
  7.                  rowIndex="1"
  8.                  columnIndex="1">
  9. <htmlb:inputField id             = "from"
  10.                  width          = "100"
  11.                  decimals       = "2"
  12.                  visible        = "TRUE"
  13.                  value          = "<%=sy-datum%>"
  14.                  type           = "DATE"
  15.                  size           = "20"
  16.                  showHelp       = "TRUE"
  17.                  required       = "FALSE"
  18.                  password       = "FALSE"
  19.                  maxlength      = "22"
  20.                  invalid        = "FALSE"
  21.                  firstDayOfWeek = "0"
  22.                  disabled       = "FALSE"
  23.                  design         = "STANDARD"/>
  24. </htmlb:gridLayoutCell>                
  25.      <htmlb:gridLayoutCell
  26.                  rowIndex="1"
  27.                  columnIndex="3">
  28. <htmlb:inputField id             = "to"
  29.                  width          = "100"
  30.                  decimals       = "2"
  31.                  visible        = "TRUE"
  32.                  value          = "<%=sy-datum%>"
  33.                  type           = "DATE"
  34.                  size           = "20"
  35.                  showHelp       = "TRUE"
  36.                  required       = "FALSE"
  37.                  password       = "FALSE"
  38.                  maxlength      = "22"
  39.                  invalid        = "FALSE"
  40.                  firstDayOfWeek = "0"
  41.                  disabled       = "FALSE"
  42.                  design         = "STANDARD"/>
  43.     </htmlb:gridLayoutCell>
  44.          <htmlb:gridLayoutCell
  45.                  rowIndex="1"
  46.                  columnIndex="4">
  47.          
  48.          <htmlb:button id="addCond"
  49.                text="OK"
  50. onClick="addPeriod"
  51.                design="EMPHASIZED"
  52.                width="40"
  53.                />
  54.           </htmlb:gridLayoutCell>
  55. </htmlb:gridLayout>                
  56. </htmlb:form>
  57. </htmlb:page>
  58. </htmlb:content>
  59.  
GeSHi ©
Ilse5165
.
.
 
Posts: 1
Joined: Thu Aug 21, 2003 5:30 pm

Postby Philippa2744 » Thu Aug 21, 2003 6:03 pm

Eigentlich nicht ;-)

Hab Dein Coding so übernommen und bei mir getestet. Funzt prima, mit einer klitzekleinen Änderung:

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. <%@page language="abap"%>
  2. <%@extension name="htmlb" prefix="htmlb"%>
  3. <htmlb:content>
  4. <htmlb:page>
  5. <htmlb:form method="post">
  6. <htmlb:gridLayout id="myGridLayout1" columnSize="4" rowSize="1" width="40%" cellSpacing="5">
  7.       <htmlb:gridLayoutCell
  8.                  rowIndex="1"
  9.                  columnIndex="1">
  10. <htmlb:inputField id             = "from"
  11.                  width          = "100"
  12.                  decimals       = "2"
  13.                  visible        = "TRUE"
  14.                  value          = "<%=sy-datum%>"
  15.                  type           = "DATE"
  16.                  size           = "20"
  17.                  showHelp       = "TRUE"
  18.                  required       = "FALSE"
  19.                  password       = "FALSE"
  20.                  maxlength      = "22"
  21.                  invalid        = "FALSE"
  22.                  firstDayOfWeek = "0"
  23.                  disabled       = "FALSE"
  24.                  design         = "STANDARD"/>
  25. </htmlb:gridLayoutCell>                  
  26.      <htmlb:gridLayoutCell
  27.                  rowIndex="1"
  28.                  columnIndex="3">
  29. <htmlb:inputField id             = "to"
  30.                  width          = "100"
  31.                  decimals       = "2"
  32.                  visible        = "TRUE"
  33.                  value          = "<%=sy-datum%>"
  34.                  type           = "DATE"
  35.                  size           = "20"
  36.                  showHelp       = "TRUE"
  37.                  required       = "FALSE"
  38.                  password       = "FALSE"
  39.                  maxlength      = "22"
  40.                  invalid        = "FALSE"
  41.                  firstDayOfWeek = "0"
  42.                  disabled       = "FALSE"
  43.                  design         = "STANDARD"/>
  44.     </htmlb:gridLayoutCell>
  45.          <htmlb:gridLayoutCell
  46.                  rowIndex="1"
  47.                  columnIndex="4">
  48.          
  49.          <htmlb:button id="addCond"
  50.                text="OK"
  51. onClick="addPeriod"
  52.                design="EMPHASIZED"
  53.                width="40"
  54.                />
  55.           </htmlb:gridLayoutCell>
  56. </htmlb:gridLayout>                  
  57. </htmlb:form>
  58. </htmlb:page>
  59. </htmlb:content>
  60.  
GeSHi ©


Änderungen:
1. Am Anfang die page-Direktiven (weiss nicht ob Du's hier nur nicht reingepostet hast oder tatsächlich vergessen hast)
2. Bei dieser Zeile: <htmlb:gridLayout id="myGridLayout1" columnSize="4" rowSize="1" width="40%" cellSpacing="5"> das Attribut debugMode entfernen!

LoLo :)
Philippa2744
...
...
 
Posts: 303
Joined: Fri Mar 07, 2003 5:17 pm


Return to BSP + BHTML

Who is online

Users browsing this forum: No registered users and 14 guests