HTMLB InputField Control
Hi,
I am using HTMLB inputField Control,its type is DATE.
I am using JSP tagLibs.
If the date entered by user is wrong it autimatically validates and makes the text of the inputfield red.
When user enters correct date the text does not become red.
I am using InputField Control for date and I have set the property of InputField showHelp="TRUE" so it is automatically showing Calendar Control next to the InputField.I can't make InputField disabled because the Calendar control also gets disabled when I disable the InputField.
Now my problem is
When I am using isValid() method for InputField class during programming it always returns true inspite of entering correct input.
Can sombody help me on this?
Parag.
Hi Parag,
Just try creating a string before the inputField declaration and then using that (htmlb doesnt like the mix and match in the id like you're trying to do).
<%
String tempId;
for(int x=0;x<5;x++)
{ tempId = "a"+x;
%>
<tr>
<td><hbj:inputfield id ="<%=tempId%>"/></td>
<%}%>
Hope this helps,
Marty
Similar Messages
-
Urgent: Problem wiht InputField control of HTMLB
Hi all,
I want to display inputfield control of htmlb.
I am writing one for loop and I am changing the id of the control at every iteration
<%
for(int x=0;x<5;x++)
%>
<tr>
<td><hbj:inputfield id ="a<%=x%>"/></td>
<%}%>
It gives the error "form controls must have unique ids.
SAme thing works well with other controls like textview,label etc.
"<hbj:" is tablib.
Please help
Thanks
ParagHi Parag,
Just try creating a string before the inputField declaration and then using that (htmlb doesnt like the mix and match in the id like you're trying to do).
<%
String tempId;
for(int x=0;x<5;x++)
{ tempId = "a"+x;
%>
<tr>
<td><hbj:inputfield id ="<%=tempId%>"/></td>
<%}%>
Hope this helps,
Marty -
Tableview tag in htmlb visible controls
hi gurus,
i am trying to create a table view using the "tableView" tag presents in the htmlb visible controls.
i am using the"help.sap.com" as reference website.i understood the details given there partially.so i couldnt complete my task.
if anybody completed these type of task please send me ur sample code for reference with the codes for jsp file,model (bean) and controller (.java file).....
regards,
tamilHi,
In JavaDeveloper role you have working examples of TableView.
I am pasting the code, incase you dont have JavaDeveloper on your server.
TableViewExample.java
import bean.TableViewBean;
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.event.TableNavigationEvent;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.htmlb.table.TableView;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentContext;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
public class TableViewExample extends PageProcessorComponent {
public DynPage getPage() {
return new MyDynPage();
// JSPDynPage
public class MyDynPage extends JSPDynPage {
public TableView table;
TableViewBean myBean;
Used for user initialization. called when the application is started
public void doInitialization() {
// Get the request, context and profile from portal platform
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
// Initialization of bean
TableViewBean myBean = new TableViewBean();
setBeanFromProfile(myProfile, myBean);
// Put the bean into the application context
myContext.putValue("myBeanName", myBean);
Used for handling the input. Generally called each time
after doInitialization
public void doProcessAfterInput() throws PageException {
// Get the request, context and profile from portal platform
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
// Get the bean from application context
table = (TableView) this.getComponentByName("myTableView");
myBean = (TableViewBean) myContext.getValue("myBeanName");
setBeanFromProfile(myProfile, myBean);
myBean.setOldTableView(table);
Used for handling the output. This method is always called.
public void doProcessBeforeOutput() throws PageException {
// set the name of your JSP page
setJspName("tableview.jsp");
public void onMyOnNavigate(Event event) throws PageException {
// NAVIGATION - get the event to recover the actual position
TableNavigationEvent tne = (TableNavigationEvent) event;
// With the event we can use method getFirstVisibleRowAfter(); which gives
// us the actual position (after the event)
if (myBean != null) { // just for the first time, when there is no bean
// set the new visibleRow
myBean.setVisibleFirstRow(new Integer(tne.getFirstVisibleRowAfter()).toString());
public void onMyOnHeaderClick(Event event) throws PageException {
public void onMyOnCellClick(Event event) throws PageException {
public void onMyOnRowSelection(Event event) throws PageException {
private void setBeanFromProfile(IPortalComponentProfile myProfile, TableViewBean myBean) {
myBean.setDesign(myProfile.getProperty("design"));
myBean.setHeaderVisible(myProfile.getProperty("headerVisible"));
myBean.setFooterVisible(myProfile.getProperty("footerVisible"));
myBean.setFillUpEmptyRows(myProfile.getProperty("fillUpEmptyRows"));
myBean.setNavigationMode(myProfile.getProperty("navigationMode"));
myBean.setSelectionMode(myProfile.getProperty("selectionMode"));
myBean.setHeaderText(myProfile.getProperty("headerText"));
myBean.setVisibleFirstRow(myProfile.getProperty("visibleFirstRow"));
myBean.setVisibleRowCount(myProfile.getProperty("visibleRowCount"));
myBean.setRowCount(myProfile.getProperty("rowCount"));
myBean.setTableWidth(myProfile.getProperty("width"));
D:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.pdk.htmlbcontrols\pagelet\tableview.jsp
<%--- TableView.jsp --%>
<%@ taglib uri= "tagLib" prefix="hbj" %>
<%--- Get the Bean named myBeanName from the application context --%>
<jsp:useBean id="myBeanName" scope="application" class="bean.TableViewBean" />
<hbj:content id="myContext" >
<hbj:page title="Template for a portal component">
<hbj:form id="myFormId">
<hbj:tableView
id="myTableView"
model="myBeanName.model"
design="<%=myBeanName.getDesign() %>"
headerVisible="<%=myBeanName.isHeaderVisible() %>"
footerVisible="<%=myBeanName.isFooterVisible() %>"
fillUpEmptyRows="<%=myBeanName.isFillUpEmptyRows() %>"
navigationMode="<%=myBeanName.getNavigationMode() %>"
selectionMode="<%=myBeanName.getSelectionMode() %>"
headerText="<%=myBeanName.getHeaderText() %>"
visibleFirstRow="<%=myBeanName.getVisibleFirstRow() %>"
visibleRowCount="<%=myBeanName.getVisibleRowCount() %>"
rowCount="<%=myBeanName.getRowCount() %>"
width="<%=myBeanName.getTableWidth() %>"
onNavigate="myOnNavigate">
<% myTableView.setOnHeaderClick("myOnHeaderClick");
myTableView.setOnCellClick(1,"myOnCellClick");
myTableView.useRowSelection(myBeanName.getOldTableView());
myTableView.setOnRowSelection("myOnRowSelection"); %>
</hbj:tableView>
</hbj:form>
</hbj:page>
</hbj:content>
TableViewBean.java
package bean;
import com.sapportals.htmlb.table.DefaultTableViewModel;
import com.sapportals.htmlb.table.TableColumn;
import com.sapportals.htmlb.table.TableView;
// Bean for dataexchange between DynPage and JSP
public class TableViewBean {
public String design;
public String headerVisible;
public String footerVisible;
public String fillUpEmptyRows;
public String navigationMode;
public String selectionMode;
public String headerText;
public String visibleFirstRow;
public String visibleRowCount;
public String rowCount;
public String tableWidth;
public DefaultTableViewModel model;
private TableView oldtableview;
public TableView getOldTableView() {
return this.oldtableview;
public void setOldTableView(TableView table) {
this.oldtableview = table;
public DefaultTableViewModel getModel() {
return model;
public void setModel(DefaultTableViewModel model) {
this.model = model;
public String getDesign() {
return design;
public void setDesign(String design) {
this.design = design;
public String isHeaderVisible() {
return headerVisible;
public void setHeaderVisible(String headerVisible) {
this.headerVisible = headerVisible;
public String isFooterVisible() {
return footerVisible;
public void setFooterVisible(String footerVisible) {
this.footerVisible = footerVisible;
public String isFillUpEmptyRows() {
return fillUpEmptyRows;
public void setFillUpEmptyRows(String fillUpEmptyRows) {
this.fillUpEmptyRows = fillUpEmptyRows;
public String getNavigationMode() {
return navigationMode;
public void setNavigationMode(String navigationMode) {
this.navigationMode = navigationMode;
public String getSelectionMode() {
return selectionMode;
public void setSelectionMode(String selectionMode) {
this.selectionMode = selectionMode;
public String getHeaderText() {
return headerText;
public void setHeaderText(String headerText) {
this.headerText = headerText;
public String getVisibleFirstRow() {
return visibleFirstRow;
public void setVisibleFirstRow(String visibleFirstRow) {
this.visibleFirstRow = visibleFirstRow;
public String getVisibleRowCount() {
return visibleRowCount;
public void setVisibleRowCount(String visibleRowCount) {
this.visibleRowCount = visibleRowCount;
public String getRowCount() {
return rowCount;
public void setRowCount(String rowCount) {
this.rowCount = rowCount;
public String getTableWidth() {
return tableWidth;
public void setTableWidth(String tableWidth) {
this.tableWidth = tableWidth;
public TableViewBean() {
String[][] data = createData();
// get a new array for the titles
String[] colNames = {"LASTNAME", "FIRSTNAME", "STREET", "ZIP", "CITY"};
// set titles
/// By default the title also defines the column name - we use both methods to create a
/// proper title and a column name that is better to work with. You should omit
/// blanks or other special characters in the column name.
/// The column name is important later (Part 2) to retrieve data from the tableView
model = new DefaultTableViewModel(data, colNames);
model.setKeyColumn(1);
// To set the cell event we have to get the column and set the setOnCellClick
// for every column.
// Get the column with the specified column name.
TableColumn column = model.getColumn("LASTNAME");
// Set the event.
column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
column.setTitle("Last Name");
// Repeat that with the other column. Every cell can have its own onCellClick
// method names of course. We use the same event method for all cells.
column = model.getColumn("FIRSTNAME");
column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
column.setTitle("First Name");
column = model.getColumn("STREET");
column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
column.setTitle("Street");
column = model.getColumn("ZIP");
column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
column.setTitle("ZIP - Code");
column = model.getColumn("CITY");
column.setOnCellClick("onMyOnCellClick"); // set the TableCellClickEvent
column.setTitle("City");
private String[][] createData() {
// just a simple way to produce data, not real life indeed
String[][] retVal = {
{"Backer", "Melissa", "528 34th Ave", "94121", "San Francisco"},
{"Hamilton", "Ann", "4752 17th St", "94117", "San Francisco"},
{"Hudson", "Bree", "16 Hudson Ct", "94124", "San Francisco"},
{"Watson", "David", "168 Cervantes Blvd", "94123", "San Francisco"},
{"Eastwood", "Kenneth", "3367 Troy Dr", "90068", "Los Angeles"},
{"Peter", "Smith", "524 Arvin St", "93308", "Bakersfield"},
{"Antony", "Miller", "10430 Wilshire Blvd", "90024", "Los Angeles"},
{"Moore", "Roger", "1815 W 82d", "90001", "Los Angeles"},
{"Jackson", "Michael", "3450 Sawtelle Blvd", "90066", "Los Angeles"}
return retVal;
Greetings,
Praveen Gudapati
[Points are always welcome for helpful answers] -
HTMLb InputField ValueHelpContext
Hi,
Does anybody know how to use the ValueHelpContext (com.sapportals.htmlb.valuehelp.ValueHelpContext) related to an HTMLb InputField? I cannot find any documentation.
I like to develop an InputField for a material number with some kind of popup value help where a user can search a material by name.
Thanks in advance!
Best regards,
EricHi, have you done it?
-
Htmlb chart control is not working
Hi All
I created chart using htmlb chart control as per documents given in pdk. but it is not displaying any thing on the browser,I am attaching code ,Please tell me where will the wrong
Thanks in advance
Gopal
Java:
create a new JCO table
JCO.Table table = new JCO.Table("DAX");
// add the info/header to the table. The header is defined by the column name,
// data type and length (see JCO table API for details).
table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
table.addInfo("X", JCO.TYPE_CHAR, 50);
table.addInfo("Y", JCO.TYPE_CHAR, 50);
table.addInfo("Z", JCO.TYPE_CHAR, 50);
table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
// append a record to the table. setValue sets the value as string. The second
// parameter is the column. The numbers are according to the sequence of the
// definition of the header (see above).
table.appendRow();
table.setValue("07.2001",0);
table.setValue("SAP",1);
table.setValue("158",2);
table.setValue("20",3);
table.setValue("10",4);
table.setValue("href=\"http://www.sap-ag.de/\"",5);
// create a JCOChartModel and set the JCO table
IChartModel model = new JCOChartModel();
((JCOChartModel) model).setDataSrc(table);
myBean.setModel(model1);
JSP:
<jsp:useBean id="myBean" scope="session" class="com.sap.barchart.ModelBean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:chart
id="myChart1"
model="myBean.model"
visible="true"
displayObjectValues="true"
titleCategories="Company"
titleValues="Turnover"
title="Washers by Companies!"
chartType="BARS_3D"
colorOrder="DEFAULT"
height="200"
/>
</hbj:form>
</hbj:page>
</hbj:content>HI,
Check if the bean is null.
Try displaying it using classlib in the dynpage itself .
Regards
Bharathwaj -
Hello All,
I am using a HTMLB Link Control,
Here my requirement i am generating the Link ID Dynamically and also it is in loop.How can i call onClientClick and jsObjectNeeded
<hbj:link
id="<%=ID+i%>"
text="link"
reference=""
target=""
tooltip=""
>
<% *?*.setOnClientClick("myFunction()");%>
</hbj:link>
How can i call the ID for Link?
Regards,
AksitiHi,
I get your question. Can think of one solution. You can create JSP2 with new portal component. Create a dumy JSP. Now When else statement is called, call dummy JSP with javascript to open JSP2 in new window like this.
window.open(Project.portalcomponentname,title);
Let me know if it works.
Regards,
Harini S -
Accessing HTMLB Visible controls in Jspdynpage
Hi
I am new to portals, presently i am doing portal application with jspdynpage.Can anyone provide me sample application
using HTMLB Visible controls(checkbox,radiobutton etc) and to access that controls in jspdynpage.Hi lalithavani,
You can find the tutorials for PDK on help.sap.com On the left side navigation, under SAP Netweaver -> SAP netweaver 2004 -> english -> People Integration-> Portal-> Portal Developer Guide. In that you have sections Go and Create and Core Development Tasks* In that you have all the information given about PDK.
you can access the same using the following link
http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
For information about the UI elements and the usage you can access the following link
http://help.sap.com/saphelp_nw04/helpdata/en/fd/01f34026d70b06e10000000a155106/frameset.htm
For JSP Dyn pages:https://www.avispublics.com/irj/portalapps/com.sap.portal.pdk.htmlb.htmlbmanuals/docs/dynpage-01.html
In that you have sections which explains about the layouts, layout controls, visible controls(the UI elements which will be visible) and nonvisible controls(like bookmarks and timers). this sections provides both with the tablib usage and class lib usage and the code snippets are also given.
If you have java developer role in your portal then under PDK starter & Viewer you can find all the examples given for the UI elements.
there you can find codes also.
provide your mailid so that i can send you some sample applications
Hope this helps.
regards,
mrudula
reward points if helpful
Edited by: Mrudula Jarugula on Feb 21, 2008 3:36 PM
Edited by: Mrudula Jarugula on Feb 21, 2008 3:37 PM -
Style in HTMLB:INPUTFIELD
Hello All,
We are using HTMLB:INPUTFIELD to display dates in our BSP. In some cases it is required to display the date n display mode, for that we have set the attribute Disabled.
However in this case we get a background couloyr as blue as well as a box (which is in change mode as well). We do not want the box as well as the color to be displayed in case th field is in display mode.
We observed that there is an attribute called as style available, however even this didnt work.
Request for your help.
Thanks,
DevendraDear Davendra,
You can achieve this requirement. You can set a flag or you can use the disabled flag itself.
If the flag is set as disabled u can color the inputfield. Or else no need to call the coloring option.
Have a look on the following code snippet,
if val EQ '1'.
lv_disable = 'TRUE'.
else.
lv_disable = 'FALSE'.
endif.
<htmlb:label id = "l1"
text = "Label Text"
for = "inp1" />
<htmlb:inputField id = "inp1"
value = "Test"
width = "280"
maxlength = "50"
type = "STRING"
disabled = "<%= lv_disable%>"/>
<%IF lv_disable EQ 'TRUE'. %>
<s cript language="JavaScript">
set_textcolor("inp1","yellow");
</s cript>
<%ENDIF.%>
Here for eg i check with val is 1. you check your criteria.
Hope this will Helpful.
Regards,
AnitaVihi Arasi B -
How to fire an onblur event for htmlb:inputfield ?
Hi All,
I have a problem in creating in ONBLUR..for input field.
What i want is when i give input to the input it goes to DB and retriving some data and visible to next Dropdown.
For this if i give input to input field and press any key then it will goes to db and getting data.
I am stricking over here .
Please guide me for this.
Thanks
Nageswara.so what you need is a javscript function to get triggered onblur event and it should generate server event.
check out the following code sample.
<htmlb:inputField id = "test"
alignment = "LEFT"
size = "10"
type = "STRING" />
<bsp:htmlbEvent id = "myid"
onClick = "myonclick"
name = "ValueChanged" />
<script for="test" event=onblur type="text/javascript">
ValueChanged();
</SCRIPT>
Regards
Raja -
How to handle htmlb:inputField submitOnEnter
Hi Friends,
Iam using submitOnEnter = "true" in <htmlb:inputField> so that when I press enter in that input field some action should take place.
But Iam not sure how to handle that event.
When I use this it is giving page error.
Can anyone help me out how to handle this...
Regards,
Raju...if you set submitOnEnter = "true" for an inputfield, pressing enter key when the cursor is in that inputfield would trigger server event.
in the oninputprocessing you can capture the event.
also please be aware that submitonenter doesnt work in some SPs as per this thread
htmlb:submitOnEnter at inputField
to capture the value of the inputfield in oninputprocessing you can write the following code
ATA: data TYPE REF TO cl_htmlb_inputfield.
data ?= cl_htmlb_manager=>get_data( request = runtime->server->request
name = 'inputField'
id = 'IP1'
IF data IS NOT INITIAL.
<variable> = data->value .
endif .
Regards
Raja -
Htmlb InputField+showHelp
Hi Friends,
I am using htmlb InputField with type"DATE" in a JSP DynPage.The code is
<hbj:inputField
id="input_verificationDate"
type="DATE"
showHelp="TRUE" />
With this code,I am getting the date picker button after the inputfield.But the problem is,when I click that button It is not opening the date pop up window.It is displaying a message saying that "Error on Page".
Can plz tell me the problem,Urgent.
Thanks
Sampath .gHi,
u shud use the model also.
here in my jsp file,i ve given model="myBean.model"
in bean u get & set the datenavigator model ,using getter & setter methods
for more help ,refer this help file.
http://help.sap.com/saphelp_nw04/helpdata/en/aa/9b0e41a346ef6fe10000000a1550b0/frameset.htm
Regards
Bhargava
try to award points if it is helpful -
About HTMLB inputField value check....
I have one htmlb inputField in a bsp page.
this inputfield refer to numc(3) data element with fiexed value.
I wanna check input value automatically using fiexed value as domain....
How can I set this option?
How can I implement this function?
Regards etnaya.I would recommend you check into the doValidate feature of the inputField and check the examples under SBSPEXT_HTMLB in transaction SE80
-
Javascript in the htmlb:inputField
Here is the brief description of the problem:
I have a table view in which i display the htmlb:inputField which are created in the iterator. I need to capture the ENTER Key event and set the focus to the next field in the next row.
I have seen examples of the normal input field but couldnn't somehow figure out a way to do it in the htmlb:inputField. Here is the sample code which i tried to play around with (for normal input fields.)..
<i>function enter(nextfield) {
if(window.event && window.event.keyCode == 13) {
nextfield.focus();
return false; }
else
return true; }
</script>
Field 1: <input type="text" name="field1"
onkeypress="return enter(document.demo.field2)"><br>
Field 2: <input type="text" name="field2" onkeypress="return enter(document.demo.field1)"><br></i>
<b>How do i use this code in the iterator for my htmlb:inputField ? i did try the following attributes
1) submitOnEnter
2) onValueHelp
3) doValidate
but none on them could help me..
</b>..
Any help would be appriciated.
Amandeep.Hi Alwyn,
<b>
Works fine when i place it indivisually on the BSP.
I have not been able to figure out a way to do it in the iterator..</b>
<i><%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<script language = "javascript">
function func(nextfield)
if(window.event && window.event.keyCode == 13) {
nextfield.focus();
return false; }
else
return true;
</script>
<htmlb:content design="design2003" >
<htmlb:page title="detail " >
<htmlb:form>
<bsp:findAndReplace find = "<input"
replace = "<input onKeyPress=func(authorfname2);" >
<htmlb:inputField id = "authorfname1"
tooltip = "tooltip1"
value = "<%= authorfname %>" />
</bsp:findAndReplace>
<br>
<bsp:findAndReplace find = "<input"
replace = "<input onKeyPress=func(authorfname3);" >
<htmlb:inputField id = "authorfname2"
tooltip = "tooltip1"
value = "<%= authorfname %>" />
</bsp:findAndReplace>
<br>
<bsp:findAndReplace find = "<input"
replace = "<input onKeyPress=func(authorfname1);" >
<htmlb:inputField id = "authorfname3"
tooltip = "tooltip1"
value = "<%= authorfname %>" />
</bsp:findAndReplace>
</htmlb:form>
</htmlb:page>
</htmlb:content></i>
<b>in the iterator i am trying to do like this</b>
<i> MOVE: p_row_index TO l_rindx,
p_column_index TO l_cindx.
CONCATENATE 'INPUT_' l_cindx '_' l_rindx
INTO l_id.
CONDENSE l_id NO-GAPS.
IF gv_mode = 'P'.
CREATE OBJECT l_input.
l_input->width = '100%'.
l_input->style = 'celldesign:GROUP_LEVEL3'.
l_input->id = l_id.
l_input->cellvalue = 'X'.
l_input->maxlength = 11.
l_input->value = l_string.
p_isreadonly = 'X'.
p_style = 'celldesign:GROUP_LEVEL3'.
start test for the enter key
DATA: l_script TYPE string.
CONCATENATE ' "<input onKeyPress=func(' l_id ')"' INTO l_script.
CREATE OBJECT l_find_repl.
l_find_repl->find = '<input'.
l_find_repl->replace = l_script.
p_replacement_bee = l_find_repl.
end test for the enter key
p_replacement_bee = l_input.</i>
<b>and on the main page i have my same function but doesn't do anything..</b>
<i><script language = "javascript">
function func(nextfield)
if(window.event && window.event.keyCode == 13) {
nextfield.focus();
alert ('hello');
return false; }
else;
return true;
</script></i>
Any suggestions will be appriciated.
Thanks in advance
Amandeep. -
Htmlb:inputField always uses encode="TRUE"
Hi,
I have a inputField using data binding. The model field contains "Česká republika", and this code
<htmlb:inputField id="InpSupl" value="//model/edit_wa.supplier" encode="FALSE"/>
Renders to
<input class="sapEdfTxtEnbl" size="60" maxlength="60" name="cont_INVEST_invest_edit_wa.supplier" id="cont_INVEST_InpSupl" value="&#268;eská republika">
How can I prevent this HTML-encoding?
Version 6.40 SP 12.
Thanks,
ThiloHmm, I don't understand all this.
Look here, this is my complete output (sorry about that) of your example.
And you can see, the ampersand is encoded, but I want the letter È (a upper sized C with a ^ on top).
Why does it work at your place?
<html><head><title> </title><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" ><meta http-equiv="imagetoolbar" content="no"><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/events.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/event_dictionary.js"></script><link id="urstyle" rel="stylesheet" type="text/css" href="/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/ur_ie6.css"><link rel="stylesheet" type="text/css" href="/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/ur_pop_ie6.css"><script type="text/javascript" language="JavaScript">var popup_emptydoc="/sap/public/bsp/sap/htmlb/domainRelaxOff.htm";var HTMLB_SECTION508 = false;</script><script type="text/javascript" language="JavaScript">var sapUrDomainRelaxing = {NONE:"NONE",MINIMAL:"MINIMAL",MAXIMAL:"MAXIMAL"};ur_system={doc:window.document ,mimepath:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/common/",stylepath:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/",emptyhoverurl:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/common/emptyhover.html",is508:false,direction:"ltr",domainrelaxing:sapUrDomainRelaxing.NONE,browser_abbrev:"ie6",dateformat:1,firstdayofweek:0}</script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/sapUrMapi_ie6.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/popup_ie6.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/languages/urMessageBundle_de.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/misc.js"></script></head><body class="urBdyStd" scroll="AUTO" style="margin-left:2;margin-right:2;margin-top:2;margin-bottom:2">
<input disabled type="hidden" id="htmlb_first_form_id" name="htmlb_first_form_id" value="htmlb_form_1"><form id="htmlb_form_1" name="htmlb_form_1" method="POST" autocomplete="off"><input type="hidden" name="htmlbScrollX"><input type="hidden" name="htmlbScrollY"><input type="hidden" name="htmlbevt_ty"><input type="hidden" name="htmlbdoc_id" value=""><input type="hidden" name="htmlbevt_frm" id="htmlbevt_frm" value="htmlb_form_1"><input type="hidden" name="htmlbevt_oid"><input type="hidden" name="htmlbevt_id"><input type="hidden" name="htmlbevt_cnt"><input type="hidden" name="htmlbevt_par1"><input type="hidden" name="htmlbevt_par2"><input type="hidden" name="htmlbevt_par3"><input type="hidden" name="htmlbevt_par4"><input type="hidden" name="htmlbevt_par5"><input type="hidden" name="htmlbevt_par6"><input type="hidden" name="htmlbevt_par7"><input type="hidden" name="htmlbevt_par8"><input type="hidden" name="htmlbevt_par9"><input type="hidden" name="onInputProcessing" value="htmlb"><input type="hidden" name="htmlb_form_1_complete" id="htmlb_form_1_complete" code="OK"><input type="hidden" name="sap-htmlb-design" id="sap-htmlb-design" value="">
<span id="InpSupl-r" class="urEdf2Whl"><input type="Text" class="urEdf2TxtEnbl" autocomplete="off" id="InpSupl" ct="InputField" name="InpSupl" st="" value="&#268;eská republika" onblur="sapUrMapi_InputField_Blur('InpSupl',event)" onkeydown="sapUrMapi_InputField_keydown('InpSupl',event)" onkeyup="sapUrMapi_InputField_KeyUp('InpSupl',event)" onfocus="sapUrMapi_InputField_focus('InpSupl',event)"></span>
</form>
<script language="JavaScript">
function sapArrErase(){if(typeof(sapUrMapi_PcTabSeq_Registry)=='undefined') return;sapUrMapi_PcTabSeq_Registry1=sapUrMapi_PcTabSeq_Registry;sapUrMapi_PcTabSeq_Registry=new Array();for(var p in sapUrMapi_PcTabSeq_Registry1){if(document.getElementById(p)!=null)sapUrMapi_PcTabSeq_Registry[p]=true;}}function sapOnResize(){sapArrErase();;}window.onresize=sapOnResize;window.attachEvent ('onload', sapOnResize);
</script><script language="JavaScript">sapUrMapi_initLinkStatus();</script><noscript><iframe style="position:absolute;top:0;left:0;width:100%;height:150%" src="?sap-bsp-exception=NO_JS"></iframe></noscript><script language="JavaScript">if(document.cookie==null||document.cookie.indexOf("sap-contextid")<0){location.assign("?sap-bsp-exception=NO_CK");}</script></body></html>
In my opinion the inputField always does a encode="TRUE" and I don't have a chance to set it to FALSE. -
htmlb:inputField id = "fecha_desde" type = "date"
GOOD, I HAVE THE FOLLOWING PROBLEM, AS I PLACE <HTMLB: inputField you go = fecha_desde type = dates " > SO THAT IT APPEARS IN SPANISH AND NOT IN ENGLISH
I believe you want to use OTR to define multiple languages. You can also search this forum for other OTR examples.
See /people/sap.user72/blog/2004/09/15/bsp-howto-exploring-bsp-development-and-the-miniwas-620-part-4b
Maybe you are looking for
-
Cannot login to secure banking website - Chase - Security Certificates?
I cannot find another post by anyone who is having this problem. At the login web page for Chase, here: https://chaseonline.chase.com I do not have autocaps or caps lock on. I have been very meticulous when entering my password, many times, with no l
-
How to connect my Satellite P300D to the TV?
My computer is Toshiba Satellite P300D, and I want to connect my TV via HDMI, because there are 2 HDMI input port. So what kinds of cable do I have to buy to connect HDMI? Do I have to download some software? How about the audio? Cheers
-
How to change complete filename PSE6
I would like to change both the path (folder) and filename of the images that have been indexed by the Organizer. One method is to remove the image from the organizer, move it, and bring it back in, but I believe that I will loose all the meta data.
-
Saving a theme but it won't save the new colours I've created
Hi I've created a template/theme in Keynote and created a colour palette, but when I save the theme and open it on another machine all the colours in the colourpalette is gone and I need to create them again. There must be possible to import the colo
-
The writing on juno is not lined up with the signs. eg. for delete, the writing is below the sign, not next to it. The writing is below the available space and flows into the next space and sometimes is not visible at all. I know the website, so I kn