Clear values of a text box?
Hello,
Pretty simple one, I think. When I go back to a page I've been to already, a value that I put in the text box is still there. How do I force that to be clear each time?
Thanks very much,
-Adam
How are you navigating away from the page which has the text box? Do you have a "Cancel" button? Or do you click on a link? Either way, you can clear the cache if you don't want to see the old value in your text box. If it's a button, you can clear the cache by specifying the page number or just the item name. You can also clear the cache by indicating the page number or items in your exit point URL link.
Jerry
Similar Messages
-
Problem in Showing multiple values into one text box.
Hi all,
How can show i multiple row values into one text box. here text box is multi line type.
i have one table it has content column, it has number of rows. i need to show those data into one text box in form. how can i solve it?
my sample code here,
egin
--:block3.txt_to := :parameter.p_current_user||''||':'||:block3.txt_From;
-- go_item('txt_from');
insert into chat(fromid,toid,content)values(:block3.fromid,:block3.toid,:block3.txt_From);
:block3.txt_From:= null;
commit;
:block3.txt_to := :parameter.p_current_user||''||':'||:block3.txt_From;
go_item('txt_from');
declare
cursor c4 is select content from chat where toid = :block3.fromid;
rec1 c4%rowtype;
begin
open c4;
loop
fetch c4 into rec1;
exit when c4%notfound;
null;
end loop;
end;
--select content into :block3.txt_to from chat where toid= :block3.fromid;
end;
please give me some tips to solve it.
thanks
gurusHi,
Try giving CHR(10) for line feed.
DECLARE
CURSOR C4 IS SELECT CONTENT FROM CHAT WHERE TOID = :BLOCK3.FROMID;
Str_Temp VARCHAR2(20);
BEGIN
:BLOCK3.TXT_TO := '';
OPEN C4;
LOOP
FETCH C4 INTO Str_Temp;
EXIT WHEN C4%NOTFOUND;
:BLOCK3.TXT_TO := :BLOCK3.TXT_TO || CHR(10) || Str_Temp;
END LOOP;
CLOSE C4;
END;Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
Accessing the value of a text box input
how do i access the value of a text box on a jsp page..
eg:if the page name is Test.jsp and it has a text box named text.....You're mixing JSP and JavaScript. If you're staying within the same page, e.g. no get/post to another JSP, and you need to update values of a text field within a form, use pure JavaScript, such as:
<form name="fred">
<input type="text" name="USERID" size="15" onBlur="document.fred.PASS.value=document.fred.USERID.value;"><br>
<input type="text" name="PASS" size="15"><br>
</form>
This will change the value of the PASS field to the same as the USERID field, which is what I think you were trying to do.
Not to be rude, but in the interest of keeping the Java forum pure, I would look towards a JavaScipt forum if you wish to use pure JavaScript (http://freewarejava.com/cgi-bin/forumdisplay.cgi?action=topics&number=1&SUBMIT=Go)
bRi -
Can we hide the real value of input text box and show other value in ADF?
Hi All,
I have a table in which i have one the column as "Quantity" and text box as "quantity" :-
<af:column sortProperty="quantity" filterable="true"
sortable="true" headerText="Quantity" id="c3"
width="60"
rendered="#{row.bindings.booleanFlag.inputValue != 'E'}"
filterFeatures="caseInsensitive">
<div align="center">
*<af:inputText value="#{row.bindings.quantity.inputValue}"*
label="#{bindings.queryProductResponseType.hints.quantity.label}"
required="#{bindings.queryProductResponseType.hints.quantity.mandatory}"
columns="#{bindings.queryProductResponseType.hints.quantity.displayWidth}"
maximumLength="#{bindings.queryProductResponseType.hints.quantity.precision}"
shortDesc="#{bindings.queryProductResponseType.hints.quantity.tooltip}"
id="it5" partialTriggers="it19"
readOnly="#{row.activeYN == 'N'}">
<f:validator binding="#{row.bindings.quantity.validator}"/>
<af:validateRegExp pattern="^[1-9]+[0-9]*$"
messageDetailNoMatch="Quantity must be in whole number format."/>
</af:inputText>
</div>
</af:column>
Now when the user will enter say 400 in input text box "quantity" , the value should be divided in the same row to other column text box say "conversion" which holds the value as 40 , so if the division doesn't give any remainder(means remainder =0 ) means real value(400/40) = 10 then it should set the value of input text box "quantity" as 10 but the user should be able to see 400 which he/she entered before, as we want to send the 10 as request but we have to show 400 to the user and if remainder goes greater than 1 than it should show an error.
I have to implement this in value change listener of the text box as i need to calculate the real value each time for a row.
How should i implement this ?
Thanks .
Thanks.Thanks timo,
But can you give me full details how should i implement this as i am newbie to ADF. I have found the data control in Data controls tab in left hand side and right click on it -> edit definition -> but it does not give me the option to add attribute , it just give me the option to edit the existing attribute. Can you explain me how to add the transient attribute and how to implement it ? Any sample code snippet ?
Thanks.
Edited by: user13644804 on May 15, 2011 10:09 AM
Edited by: user13644804 on May 15, 2011 10:09 AM -
Get the value of output text box in javascript
Hi all,
I am trying to retreving the value of output text box using getElementById('form1:outputText3') but was not able to get it.
Googled it but didnt find any way to get it on the page itself without going to backing bean
jdeveloper version 10g
Thanks in advanceHi,
I think this is because out put text is not a component but text written to the page. So I thin you would have to parse the generated HTML for it or use a inputText field and set it to read only
Frank -
Map var value in dynamic text box
I written public function in public class ,my problem is that I will like to map the trace value in dynamic text box which is on the stage of fla fil, It shows trace value properly but If I pass the var value like msg1.text = (processCode);
it doesn’t work It shows an error 1046: Type was not found or was not a compile-time constant: text.
public function Code:
public function processResponse(rcvParametersArray:Array):void {
var processCode:int=rcvParametersArray[0];
var homeTypeID:int=rcvParametersArray[1];
var homeTypeID:int=rcvParametersArray[2];
var numhome:int=rcvParametersArray[3];
var homeInfo:Array=new Array(numHomes);
var i:int=4;
for (i = 4; i < (numhomes+4); i++) {
homeInfo.push(rcvParametersArray[i]);
var msg1:text;
var numOnlinePlayers:int=rcvParametersArray[i];
var serverTime:String = rcvParametersArray[(i+1)];
msg1.text = (processCode);
trace("Action Code " + process);
trace("Game Type " + gameTypeID);
trace("Home Type " + tableTypeID);
trace("Number of Homes " + numHomes);
msg1.text=actionCode;Following is not the correct way to create a text box dynamically.
var msg1:text;
You should use the following to create the text box
First drag one text box to stage and delete it. It will add required graphics to your library then import the classes using
import flash.text.TextField
Now create the text box
var msg1:TextField = new TextField(); -
Hi, I am in midst of creating a form in infopath. I have a text box field in which the user will enter the number of issues he has. if the user has entered the number of issues he has, then he will need to select the type of issues from a multi selection
box. Thus i need to know how to set up rules/conditions to ensure that the user has to complete the multi selection box if he enters a value in text box for the number of issues.I assume what you are asking is to make multi selection box as mandatory. If not please explain with a example
Try below:
http://webcache.googleusercontent.com/search?q=cache:ItIYeZ8K2gEJ:sharepointkings.blogspot.com/2013/06/make-multi-select-list-box-required-in.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-beta
If this helped you resolve your issue, please mark it Answered -
How to retreive the value of a text box that is created dynamically
hi this is ravi kiran,
i am working on a project which requires creation of as many text boxes as the number records fetched from the database i.e, if the result set contains 3 records three text boxes must be created.
here is the code for that
if(rs1.next()) { %> //rs1 is the result set object
<tr>
<td width="130" ><%= rs1.getString(1)%></td>
<td width="130" ><%=rs1.getString(3) %></td>
<td width="184" ><%= rs1.getInt(2)%></td>
<td width="149"><input type=text size="20" ></td>
</tr>
%>
here the problem is the text boxes are getting created but what ever the value that is entered in the created text boxes must be added and must be displayed in another text box.
i am having no idea how to do this
can any one help me
thanx in advance.may be this helps u ,
Create a counter and increment it every time when it comes to rs.next
Set ids for the text box with the value of the counter.
eg: textbox1 , textbox2
the 1 and 2 shld be created by the counte just append the count value to the string and set it as id of the new text box dinamically created.
then get the ement by id and get its value and do the process. -
How to sum two values given in text boxes?
Hi People,
Am beginner in forms.using oracle 9i with forms 6i.I want to add two values given in two text boxes and result should be displayed in third text box.
how to write the coding in when button pressed trigger of a push button?.pls suggest me.
Regards
VIDSI dont what is problem
Better you recreate the form again
Block3
1. button
2. item1
3. item2
4. item 3.
all item should be in one canvas
on when button trigger
write and code again test it.
give item 1 no
give item 2 no
press the button now
output should at 3rd item.
check and revert back.
kanish -
How to disable auto clear feature in a text box in IE10
How to disable auto clear button in Text box in IE10
Hi Team,
I saw this question on Microsoft forum but I did not find any reply to this question, therefore, I am re-posting it.
When I run web interface application on IE10, i see there is a new feature which has 'X' at the end of text box and on clicking it it clears the text.
Are there any settings of IE10 that can be changed to disable it or some code snippet?
I find the 'X' sign at the end of text box very annoying and would like to turn it off and make it compatible with older versions of IE and other explorers.
Looking forward to your answer at the earliest.
Regards
SakshiHi,
Please try the steps in the following thread to see whether it could help:
Remove IE10's “clear field” X button on certain inputs?
http://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs
Regards,
Vincent Wang
TechNet Community Support -
How can I compare data to a series of values in a text box?
I want to paste a series of asset numbers into a text area and use it to query the asset numbers column in a report to return only those assets whose asset number is in the text area any on know how to do that?
If your text box contains the values concatenated by a string (: or ; or , or some other) you can use it in a query by replacing ':' with your concatenation string, similar to this example:
SELECT empno, ename, job, mgr, sal
FROM emp
WHERE INSTR (':' || :p138_empno_textbox || ':', ':' || empno || ':') > 0Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Seting blank value in the text box...
Dear all..
plz help me about this problem
i have done some code, the senario is that one form is there when i double click the row i need to transafare that value in the next form text box.
the code is
Dim oSubForm As SAPbouiCOM.Form
Dim oSubMatrix As SAPbouiCOM.Matrix
Dim ors As SAPbobsCOM.Recordset
Dim ors1 As SAPbobsCOM.Recordset
Dim SysDate As String
Dim cmbser As SAPbouiCOM.ComboBox
Dim InspectionPlanRow As String
InspectionPlanRow = "InspectionPlanRows.SRF"
Dim sFormXmlFile As String = InspectionPlanRow
Dim INSPUniqueID As String = "INSP1_" & Format(Now.Millisecond, "000") ' where O99 is your parthner ID
Call ReplaceUIDandLoadToB1(sFormXmlFile, INSPUniqueID)
'LoadFromXML(FormName)
LoadFromXML1(InspectionPlanRow, INSPUniqueID)
oSubForm = SBO_Application.Forms.Item(INSPUniqueID)
oSubForm.Visible = True
oSubForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
oSubMatrix = oSubForm.Items.Item("5").Specific
AddChooseFromListForCharecterStics()
'Dim ors As SAPbobsCOM.Recordset
Dim Strors, SCSTSTR As String
ors = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Strors = "SELECT cast(Isnull(MAX(Cast(T0.[Code] as Float)),0) + 1 as decimal (10,0)) FROM [dbo].[@MINSPL3] T0"
ors.DoQuery(Strors)
oSubForm.Items.Item("8").Enabled = True
SCSTSTR = Convert.ToInt32(ors.Fields.Item(0).Value)
oSubForm.DataSources.DBDataSources.Item("@MINSPL3").SetValue("Code", 0, SCSTSTR)
oSubForm.DataSources.DBDataSources.Item("@MINSPL3").SetValue("U_BaseLine", 0, BaseLine.Value())
oSubForm.DataSources.DBDataSources.Item("@MINSPL3").SetValue("U_BseCode", 0, BaseCOde.Value())
Dim Icode, OPR As SAPbouiCOM.EditText
oSubForm.Items.Item("8").Specific.value = SCSTSTR
Icode = oSubForm.Items.Item("9").Specific
OPR = oSubForm.Items.Item("10").Specific
Icode.Value = ItemCode.Value.Trim()
OPR.Value = Operation.Value.Trim()
AddChooseFromListForCharecterStics()
oForm.Items.Item("3").Click()
oForm.Items.Item("8").Enabled = False
the problem is that when i click on the button the value is ganareted but when i passed in that text box, the text box value is setting blank..
plz help me
thanks in advance
Edited by: kishor karanjkar on Sep 14, 2011 12:13 PMHi Kishor,
Refer This......
[Opening a form with detail information;
Thanks
Shafi -
How to change a value of input text box into uppercase?
Hi all,
In my use case I should have a text box in the jsf page and I should store the value that is entered in the text box in a database.
The requirement is the value which user enters in the text box should get changed to Uppercase
before getting saved in the database. Kindly help me in achieving this.
Thanks,
Phanindra.hi user,
before asking any question.
right place to search anything is google (the ocean).
so the way. chris showed.
if i understood correctly means,
if you want change any input text into uppercase means :
use some skinning : -
<af:inputtext>
contentStyle = "text-transform:uppercase;"
</af:inputtext>
Or
else
are you looking for
while given inputtext saved into db.
Use something like this in as vo for each and ever attribute,
public void Desc(String value) {
setAttributeInternal(DESC, value.toUpperCase());
} -
How to get multiple row values in one text box while clicking one row from grid?
hi friends,
i am working on flex4 web application i am using one datagrid ,it have two records(bills),one button and one text box.
ex:
customername salesrepname receipt no amount
venkat raj 1102 10000
ramu ramesh 1102 20000
here both receipt no is same.now i want to select one of this receipt and click pay button which is place in outside the grid.
now my need is after click the pay button in text box i need 10000+20000=30000,after click that button i want both receipts should be invisible...'
how i will do this,
any suggession,
Thanks
B.venkatesanOne way with 10g:
select mgr,
rtrim(xmlagg(xmlelement(empno,empno||',').extract('//text()')),',') emps
from emp
where mgr is not null
group by mgr;10g:
-- define this function:
create or replace
function concatenate(c Sys_refcursor, sep varchar2 default null) return varchar2
as
val varchar2(100);
return_value varchar2(4000);
begin
-- open c;
loop
fetch c into val;
exit when c%notfound;
if return_value is null then
return_value:=val;
else
return_value:=return_value||sep||val;
end if;
end loop;
return return_value;
end;
select mgr,
concatenate(cursor(select empno from emp e where e.mgr=emp.mgr order by empno),',')
from emp
where mgr is not null
group by mgr;With 11g:
select mgr,
listagg(empno,',') within group (order by empno) emps
from emp
where mgr is not null
group by mgr; -
Using null values to change text boxes
Very simple question I believe.
I have a form with rows of data. All I want to do is say that if a given field in a row "description1" is not Null, then populate another field with a specified value.
jAif (descriptionFieldName.rawValue != null){
otherFieldName.rawValue = "value you want to give it";
If there are multiple rows of this information you will have to add the row subform to the expression as well as an occurance number so it wil know which one you want . I will use i to indicate the occurance:
if (Row(i).descriptionFieldName.rawValue != null){
Row(i).otherFieldName.rawValue = "value you want tto give it";
Paul
Maybe you are looking for
-
How can i change my icloud ID?
My icloud ID is my old apple ID, i had to change my apple ID because that email account i was using got deleted. How can i change my icloud ID email & password?
-
Can I Exchange My MW600 For A Different Colour?
Hi, I bought my MW600 less than 3 weeks ago in Singapore. At the point of sale, I asked the salesperson if a WHITE version is available, and he said that NO it is not. I then bought the Black version as I was eager to try out a Sony Ericsson Bluetoot
-
How to determine deleted objects in a transport
Hi I create a new report Z_TEST_1 and assign this one to a new transport request. Now I rename this report to Z_TEST_1B In my transport are two entries: -Z_TEST_1 -Z_TEST_2 Now I read this objects with function module TR_READ_COMM Afterwards I want t
-
Performance tuning fro a select stmnt consisting of View and DB Table
Hi Gurus , I have a select query which is consuming a lot of time for execution. Well it selects details from a custom view ZV_MKPF_MSEG (join of MKPF and MSEG) and table MARA as following SELECT GI~BUKRS "company co
-
Hi Folks, In JNLP file I see we can give Ariguments in <argument> tag in <application-desc>, but how can i specify argument key and argument value? like if I give <argument>testArg<argument> is testArg is the arg name? then how can I specify the valu