Disabled input date field
Dear Techies,
i am using BSP with page flow logic.
I have a date field, my requirment is i have to mandate the usage of date field only through the calander help which is provided by the input field, it should be disabled by the keyboard entry only for dat field.
I disabled the input field on page load by using java script, and the input field is working fine, the changed value is appearing but the changed value is not being stored in the value attribute.
When i debug the javascript is overriding the disabled property, please help me how can this be achieved.
Regards
Imran.
hye Bhavana,
Thanks for the patience.
My requirement is:
i should have an input field of type date, which should not be input enabled but it should accept values from the calender help. That means user should select only date from calender, but he should not be in a position change or enter values from keyboard.
For this i have followed this approach.
i have my htmlb tag for input.
<htmlb:inputField id = "tx"
value = "<%= date %>"
showHelp = "X"
type = "date" />
And i have javascript which will disable it at the client side. This will only disable the input from a keyboard, but when i select date from calander it appears in the input field which is as per my requirment.
Now when i am going for any eventing, the value in the input field is initialized. This is my problem. I want the input field to retain its value.
If i dont use the javascript and make it enabled input field, i dont have a problem in rendering the change in date.
So please give me any solution through the approach or i dont mind any new solution.
Hope it is clear and once again appriciate your effort in understanding.
Awaiting your response.
Regards
Imran.
Similar Messages
-
Adf Javascript code to complete an input date field
Hey guys,
I have an adf input date field
<af:inputDate value="#{MyBean.date}">
<af:clientListener method="onEnterDate" type="keyPress"/>
</af:inputDate>
I want to implement a javascript function that completes the date field, means: when the user enters 10 in the field and presses the ENTER key on the keyboard, I want to complete the date with the current system time, like this (10/11/2011), so how can I do this...
Thanks in advance..
AccadSoftYou could write a [url http://myfaces.apache.org/trinidad/devguide/clientValidation.html]client-side converter to do this.
John -
Urgent, Please help !!! Input Date field in Mysql database using JSP
Hi All,
Please help me ! I am trying to store a date field in MySql databaseusing JSP on Tomcat Server.I am gettting the following error.
I am taking the String Input and then trying to convert it into date type
inorder to store it into date field in a database.
I am using the following code :
<%
try{
String dt=request.getParameter("avldt");
SimpleDateFormat adt= new SimpleDateFormat("dd-MM-yyyy");
Date sqlToday = new java.sql.Date(adt.parse(dt).getTime());
catch(ParseException e){
e.printStackTrace();
%>
But I am getting the following error message :
Class jsp.myjsp.SimpleDateFormat not found.
Please help me !!!.It's very urgent.
Thanks,
Savdeepprogramming is more then copy pasting, it actually is usefull to think about what you are doing. First you declare that you date is format dd-MM-yyyy, then you want to parse a date in format dd/MM/yyyy and behold Java warns you it cannot parse the one into the second ! Cant you solve the rest of this puzzle yourself then ?
-
Removing characters from an input data-field
Hi.
Is it possible to "Trim Off" characters from a Text Field data, and automatically input them into another Text field?
Let's say I have the following code :
*<Field name='telephonenumber'>*
*<Display class='Text'>*
*<Property name='title' value='Phone Number in International Format'/>*
*<Display>*
*</Field>*
This code is to input the telephone number in International Format (such as : +1 234 567 8900)
Now, lets say that I want to create a second Data Text field for phone number; but, this time, it is for the phone number in LOCAL format.
In other words, I want to write a code which will AUTOMATICALLY remove the first 3 or 4 characters from the "International Number", and input them into the "Local Number" field.
This would save me the trouble or writing the number a second time. My code should be able to simply Trim Off the initial "+1 234", and automatically input the remaining "*567 8900"* into the Local Number field.
How could I accomplish this?
ThanksBased on your code, it looks like you have fields called global.workgsmad (local style) and global.workgsm (international style)
Assuming your global.workgsm format will always be '+x xxx xxx xxxx' you want to skip the first 6 characters, not 4
The simplest way to do this is like so:
<Field name='global.workgsmad'>
<Expansion>
<substr>
<ref>global.workgsm</ref>
<i>6</i> <!-- Skip the country code and area code '+x xxx ' -->
<i>8</i> <!-- 8 characters were left for the format 'xxx xxxx' -->
</substr>
</Expansion>
</Field>Alternatively, you could change the substr block to read
<substr s='6' l='8'>
<ref>global.workgsm</ref>
</substr>Both formats are valid.
If the phone number is not a fixed format, you'll have to do something more complicated.
Jason -
APEX4: How to create a report whose data is based on user input date fields
Using Apex 4 I've to create a report that allows the user to input two date and shows a report between the date range.
How can I do this?
Thank you.This has nothing to do with apex 4.0. If you create a report using this query:
SELECT *
FROM emp
WHERE hiredate BETWEEN NVL (TO_DATE (:p1_date_from, 'mm/dd/yyyy'), hiredate)
AND NVL (TO_DATE (:p1_date_to, 'mm/dd/yyyy'), hiredate)and create two date picker items with names P1_DATE_FROM and P1_DATE_TO (take care of using the right date format), your report will show all records by default and those that match after you fill in the date items.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Disable a date field in the shopping card in 4.O
this is for a PO creation .
When PO is created then in the item overview i have a field of date type i want to make it uneditable.
But it should work only for limit order.
Edited by: prachidangi on Apr 19, 2010 4:07 PMI am not sure if you have this BADI in SRM 4.0. If you do, you can use BBP_UI_CONTROL_BADI. OSS note 974236.
If not, you may have to alter the HTML templates and put logic in there. -
Digital signature for the input data field
Hello friends,
I want to run a HASH routine (MD5) and then an encryption algorithm (RSA 64 bytes) over a string of characters ( for the some of the input fields NOT all) to generate the output with digital seal. In essence this is the concept of digital signature.
How can i achive this using SAP XI. Can anybody guide me...
Thanks in Advance..
Regards
VenkateshHey,
refer to this link.
How XML Encryption can be done using web services security in SAP NetWeaver XI
Creating certificate in XI
How to use Digital Certificates for Signing & Encrypting Messages in XI
regads,
Milan -
Disable data fields (Updated)
I want to disable all data fields on my view but leaving some fields enabled. If I disable a view on the highest level then I am not sure how will I make some fields enabled.
Any idea, please?
ThanksJust bump it up.
-
Hi,
I am new to this technology . I have two input date fields for Start and End date. I want to do javascript validation to check the Start date should be less than End date. Please help how to do it.this code might help you
<f:view>
<af:document title="DateValidation" id="d1">
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<f:facet name="footer">
<af:commandButton text="Submit" id="cb1" inlineStyle="vertical-align:middle;" immediate="true"
partialSubmit="true" action="#{pageFlowScope.SriSampleBB.dateValidation}"/>
</f:facet>
<af:inputDate label="Start Date" id="id1" columns="18" partialTriggers="id2" autoSubmit="true" binding="#{pageFlowScope.SriSampleBB.startDate}">
<af:convertDateTime pattern="ddMMMyyyy"/>
<af:validateDateTimeRange maximum="#{pageFlowScope.SriSampleBB.endDate.value}" />
</af:inputDate>
<af:inputDate label="End Date" id="id2" partialTriggers="id1" columns="18" autoSubmit="true" binding="#{pageFlowScope.SriSampleBB.endDate}">
<af:convertDateTime pattern="ddMMMyyyy"/>
<af:validateDateTimeRange minimum="#{pageFlowScope.SriSampleBB.startDate.value}" />
</af:inputDate>
</af:panelFormLayout>
</af:form>
</af:document>
</f:view> -
How to get a noneditable date field...
Hi,
The date item in HTMLDB provides a calendar alright, but the actual column is still open to the users to change the date chosen from the calendar, how do u make it a disabled field so that users cannot change the format of date chosen from the calendar just like a popup lov,displays description returns key value type....
or do we have to set some attibute to make this field disabled...
Thanks in advance
Regards
NaveenHi Naveen,
I'm not sure that you can lock or disable the date field, after all you want your user to enter one. But I think that you can use a validation on the item - Item specified is a valid date. Your users will get an error message each time they will try to enter invalid date, including wrong date format.
Hope it helps,
Arie. -
Hi All,
I want to implement the Input Date Field on my WebdynPro Application in the same way as it is availble at "SCN - Contribution Points / filter criteria" .
I want to give the user the option to change the year , past or future easily.
I have tried to call that date UI Element , but unable to do so.
Please help me which UI Element to use as am new in WebDynPro ABAP...
Thanks and Regards
Hemachandranhello,
One way of doing is - declare two attributes(DATE_LOW and DATE HIGH ) in the context node of type DATS.Place two input feilds in the view INPUT1 and INPUT2 , bind the two attributes to the two input feilds.
The other way is use OVS ( object value selector ) Search Help.
Regards,
Naga -
How to prevent user from inputting in a Date field?
Hi, everyone
I have another small problems, for a Date field, user can choose from a date window or input from keyboard, is there any way to forbid user to input?
I want to make the date field behave like a Drop-down list. User can just choose from list, can not input. is it possible?
ThanksWhat is the objective of disabling date entry? Are you concerned about the date format?
Steve -
How Can i send the data entered in Input text fields to e-mail?
Iam Jennifer, Iam having a doubt in Flash, I hope that you
are going to solve my problem, Iam taking 3 Static text fields as
Name, Age and Country and besides each and every static text fields
i have taken 3 input text fields with different instance names,
when i enter my Name, Age and Country details in the input text
fields and after entering those details if user clicks the submit
button the data should be send to some mail address, is it possible
Im not so good at action script, but i hope that any one can
help me...
Iam attaching the action script code also, please find the
attachment below, the actions are given to button.
Attach Code
Btn.onPress = function ()
mail_lv = new LoadVars();
mail_lv.dummy1 = "";
mail_lv.subject = "Details";
mail_lv.message = "hi";
mail_lv.username = "name_txt".text;
mail_lv.age = "age_txt".text;
mail_lv.country = "country_txt".text;
mail_lv.onLoad = function ()
trace("Sent successfully...");
trace("mail_lv.subject = " + mail_lv.subject);
trace("mail_lv.message = " + mail_lv.message);
mail_lv.send("mailto:[email protected]", "_blank");The names of your variables, "name_txt", for instance, should
NOT have quotes around them. Use:
mail_lv.username = name_txt.text;
mail_lv.age = age_txt.text;
mail_lv.country = country_txt.text; -
Disabling the Qty field for Input for Sub items in Sales Order and Delivery
Hi..
I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
Can i Use the same exit ?? what additional conditions i need to take into account.
also we need to disable the delivery quantity field also for the sub items of this sales bom.
I see that this User exit is not available in delivery procesing. How to acheive the required functionality in the delivery processing...
your advice is much appreciated in this matter.
Regards
Srinihi,
Route is determined
1.Country of Departure & Departure Zone taken from Shipping Point
2.Country of Destination & receiving Zone from Ship to party
3.Shipping condition from CMR
4.Transportation Group from MMR
5.Weight Group which is optional.
Check the above.
Route is determined in delivery.
ASHA -
How to insert a date picker input text field in a JSF Jsp page
Hi,
I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
Could you pls shed some light on this issue and help me out.
Thanks
~Siva(ji)<HTML>
<script language="JavaScript" type="text/javascript">
<!--
var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
var scrAvailc = 400; //Change to your available screen width. You see in
//this eBooks' middle frame, the frame width is
//equal to 410 . So whether your using frames or
//or a full 800 pixel screen, you must calculate
//your available screen width.
var PopUpC = document.getElementById("pUpc");
document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
function cstmPup(objC,c){
popUpC = document.getElementById("pUpc");
popUpC.innerHTML = c.innerHTML
popUpC.style.left = getPos(objC,"Left");
var scrNeedc = getPos(objC,"Left") + pUpWidthc;
if (scrNeedc > scrAvailc){
//The number 10 below is an extra offset x value applied when the
//definitional popup box positions beyond your screen width. You
//can change this number to fine tune your "beyond screenwidth" positioning.
var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
popUpC.style.visibility = 'visible';
fill();
function fill()
var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
var d1=FirstDayOfWeek(7,2008);
//40
for(i=1;i<noOfRows;i++)
x=document.getElementById('myTable').insertRow(i);
for(j=0;j<noOfCols;j++)
var y=x.insertCell(j);
if( ( i==1 && j<d1))
y.innerHTML="";
else if(day<=DaysInMonth(7,2008)){
y.innerHTML=day;
day++;
//document.write(FirstDayOfWeek(7,2008));
function FirstDayOfWeek(m,y)
var i;
var dow = 6;
//document.write("Hello");
for (i=1583; i<y; i++)
dow += (LeapYear(i)) ? 2 : 1;
for (i=1; i<m; i++)
dow += DaysInMonth(i,y);
return dow % 7;
function DaysInMonth(m,y)
// m is the month number (1,2,3,...12), y is the year number (four digits)
switch (m)
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12: return 31;
case 2: if (LeapYear(y))
return 29;
else
return 28;
default: return 30;
function LeapYear(y)
return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
function getPos(objC,sPos){
var iPos = 0;
while (objC != null) {
iPos += objC["offset" + sPos];
objC = objC.offsetParent;}
return iPos;
function hPopUpc(){
popUpC = document.getElementById("pUpc");
popUpC.style.visibility = 'hidden';
//-->
</script>
<BODY
<button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
<'div' id="pUpCstm" style="display:none;">
<'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
<hr size="1" style="border:1px solid black;">
<div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
<table border ="1" id="myTable">
<TR>
<TD> SUN </TD>
<TD> MON </TD>
<TD> TUE </TD>
<TD> WED </TD>
<TD> THU </TD>
<TD> FRI </TD>
<TD> SAT </TD>
</TR>
</table>
<br><br>
</div>
<br>
<div>
<button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
</div>
<?BODY
</HTML>
Message was edited by:
mchepuri
Message was edited by:
mchepuri
Message was edited by:
mchepuri
Maybe you are looking for
-
How to make macbook pro run faster
Hi, Saw a post from admins I guess, listed below that post and my Macbook Pro details as required: Do a Apple Menu > About This Mac > More information and copy and paste here what you see there EXCEPT the serial numbers at the bottom. Edit the serial
-
Oracle upgrade 9.2.0.6. to 9.2.0.8
hi experts could anyone explain me the steps involved in upgrading the oracle from 9.2.0.6 to 9.2.0.8.
-
Bridge CS4 downloader won't browse to folder with Windows 7 64 bit
I recently installed PS CS4 on a new PC with Windows 7. I used the Bridge downloader as usual to download my photos to a particular folder. Everything worked as expected as it did when I used Windows XP. When I tried this the second time, the Brid
-
My bluetooth seems to have stopped working in my car. Both phone and car audio says it is connected but nothing comes through car speaker. I no longer have screen on iphone that says to choose audio source. How do I get that screen back?
-
"installer failed to initialize. Please download Adobe Support Adisor" I downloaded Advisor and ran it but it found nothing wrong. Any ideas why it won't install?