Restricting User to Enter Only Date Value
Dear Expertsl,
Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
Regards
Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
DECLARE
dt DATE;
BEGIN
dt:=TO_DATE(:THEITEM, 'MMYYYY');
EXCEPTION
WHEN OTHERS THEN
-- Show error message
-- then raise error
RAISE FORM_TRIGGER_FAILURE;
END;
Similar Messages
-
Restricting User to enter only specified value in DB
HI ,
I am using Oracle Database 10g Express Edition. I have created a table named 'employee' which contain the column 'flag'. How i can restrict the values for that column to have either 'yes' or 'no' ?
thanks,
-Siva Balan VHi,
Use a CHECK cponstraint.
You can specify a constraint when creating the table:
CREATE TABLE table_x
( x_id NUMBER (10) PRIMARY KEY
, flag VARCHAR2 (3) CONSTRAINT x_flag_chk
CHECK (flag IN ('yes', 'no'))
;or, after the table is created, by using ALTER TABLE.
The constraint above will allow NULLs. If you don't NULLs, you could include that into the CHECK constraint, but it's better to add a separate NOT NULL constraint. -
How to restrict the user to enter only numeric values in a input field
How to restrict the user to enter only numeric values in a input field.
For example,
i have an input field in that i would like to enter
only numeric values. no special characters,alphabets .
reply ASAPHi Venuthurupalli,
As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
The attribute which you are binding to value property ;make its type as simple type which you made
Hope this helps you
Regards
Rohit -
How to Restrict user to enter the data in CAPS ONLY
Hi,
I have textinput in my page,i have to restrict the user to enter the data caps only.
can any one help me on this.
KarthikHi,
h1.
I have textinput in my page,i have to restrict the user to enter the data caps only.
-------u need to set the CSS class for this item
Regards
Meher Irk
Edited by: Meher Irk on Oct 24, 2010 11:16 AM -
Script to restrict user to enter alphanumeric data
What's the java script code, through which user can be restricted to enter or feed both type of data; i.e. alphabets and numeric. (for postal address fields).
I want to use this code in my JSP page.
UsmanHiii,
Please make use of onKeypress event of javascript.
U can block the required key codes.
Hope that helps. -
I don't want to allow a user to enter a date that is before January 2014
I don't want to allow a user to enter a date that is before January 2014. I want to restrict users from entering a date that is or prior to December 31, 2013 in a date field. Is this possible?
Seems like it is a little more complicated just to create a new Date() object in livecycle...
the way I found to create a new Date() object is using the dateTimeEdit pattern to be 'date{EEEE, MMMM D, YYYY}'
then u can create a new Date
var date1 = new Date(DateTimeField1.editValue);
date1.getTime();
or
you can also click the following link and download the pdf from the blog...
Adobe LiveCycle Designer Cookbooks by BR001: Date handling in Livecycle Designer ES forms
using XFADate object make it easy to manipulate dates with javascript
The XFADate object created by BR001 is very good but to be able to see if a date is prior to another date you can just add this function in the object script..
you can add that function at line 200...
that.isPriorTo = function(date) {
var toDate = newDate(date);
if (isNaN(this) || isNaN(toDate)){
return false;
} else{
var interval = this.getTime() - toDate.getTime();
if (interval > 0){
return false;
} else{
return true;
To use that function above you can just use this code:
if (XFADate.newDate(dateFrom).isPriorTo(DateTo)){
//dateFrom is prior to dateTo
hope this help -
How to enter a date value in a Temporary Table
Hi!
Could anyone explain to me how I can enter a date value (say 26 October 2011) in a Temporary Table?
I tried the simple example below, but it gives the foll. error message:
Conversion failed when converting date and/or time from character string
CREATE TABLE Temp1
Column_A date,
Column_B varchar(max)
Insert into Temp1
values ('26.10.2011', 'bbb')
Thanks
Leon LaiHi,
Try This.....
CREATE TABLE Temp1
Column_A datetime,
Column_B varchar(max)
Insert into Temp1
values ('10/26/2011', 'bbb')
Thanks
Shafi -
Error: please enter the date value in correct format DD-MON-RRRR
Hi all,
First of all I am 100 % learning oracle financial no technical background. I am trying to run a report: -the calendar does not appear in order for me to choose the date -Besides that when I enter the date ie 10-09-2010 or 10/09/2010 the system give me this error "Error: please enter the date value in correct format DD-MON-RRRR "
please help me solve that.
Thanksplease enter date in 12-Oct-2010 format.
regards,
http://www.oraerp.com -
How can i restrict users for entering manual expenditure batch for inventor
Hi,
Can someone explain me how to restrict users to enter manual pre approve batch for inventory expenditure class in projects??
Regards,Forms Personalization.
Regards
Dharam -
BADI for MIGO for restricting User to entered other MVT types?
Hi All,
BADI for MIGO for restricting User to entered other MVT types?
I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
Please let me know any Enhancement to be used to restrict user ?
Thanks and Regards
SteveHi Steave,
You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
Regards
Ahsan -
JAVA CODE Restricting users from entering Fractional numbers in Data forms
Hi,
is there anyone who can help me with the Java Script code of ValidateData.js file?? I am very novice in scripting and find it very difficult to write a proper javascript code to restrict the users from entering fractional numbers to HEADCOUNT cell. I would very much appreciate if i get some help from anyone out there.
Users should be able to only enter whole numbers to the cells for Headcount entry.
Kindly give me the layout of the script to be used. Has anyone out there ever done anything like this??
Looking forward for a help.
Thanks.Hi,
I think customCellEnterPre and customCellValidatePre is the function you'd be using
http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s01.html
http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s03.html
http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apa.html
You can refer to SampleValidateData.js that's within Planning deployment custom js folder for further reference and sample usage.
Cheers,
Alp -
Waht to restrict user to enter decimal value?
Hello Experts,
I want to user to restrict to enter the decimal value in text field on forms.
Please help me out. i do not want the round fucntion but want to indicate the user.
Thanks
YashHello,
Use a format mask that does not allow decimal parts, like 999990
Francois -
How can we restrict users from changing the data in HFM.
Hi All,
We have requirement from users where, They don't want the base data being loaded from SAP to HFM via FDM through ERPi to get changed in HFM at <Entity Currency>. They want data to be read only and no body should be able to change neither Grid nor Forms and neither Smart View. If we restrict by Shared services access then again they can't change ownership management value.
Regards,
SushilHi Thanos, Thanks for your reply.
Yes i am aware of the security class, so your suggestion is to use security classes to restrict users? And how can i use the phased submission for the same? I am new to HFM so please bear with me.
I have one more question that my Application is HFM EPMA application. So is it necessary to have Application Administrator to change hierarchy and Deploy the Application from EPMA?
Thanks,
Sushil -
I am using Oracle 9i.
I want the user to be able to enter a date and the report runs using values that are after this user inputted date, but am unsure how to do this. I have already created a user parameter that created a drop down list for the user to select something and then the report was run based on the selection. But I also want to run a report based on the date they enter.
Sorry this is a bit rambling but is the best I can do! Any help on this would be great.
ThanksHi,
Create a second user input date "p_user_input_date"
make your drop down list optional .
I mean add a NULL for the date parameter list.
static list: blanc, dynamic list: append "union select '' from dual;" .
then change the query where clause....
with NVL(p_parameter_date, p_user_input_date);
regards,
CB -
How do I prompt a user to enter numeric data while a vi is running?
I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.
Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
Add and "Enter" button to the front panel.
Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
Connect your front panel controls to outputs on the connector pane.
This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
Rob
Maybe you are looking for
-
So here is the scenario. I just purchased a new 2T Time Capsule about a month ago. At some point, about a week ago it stopped working correctly. A few things that I've noticed: 1. The wireless router works just fine. 2. Every once in a while (mo
-
OS X 10.5.6 versus Windows Server 2000 SFM
We have recently deployed a number of Macintosh (Mac Pros and iMacs) running OS X 10.5.6. When copying a directory to a Windows Server 2000 running Services for Macintosh, the directory permission are not duplicated and, more problematically, cannot
-
my app store will not open. when i try to open it i get an error that reads "You can't open the application App Store because it may be damaged or incomplete". How can I fix this?
-
Long list of problems I had, culminating in iPhone no longer powering on.
So, let me start off by saying, there is no Apple Store available save by taking a plane to another island. Anyway, awhile back when I updated my phone to a new version (I don't remember which), a bunch of things started happening. 1. No WiFi, it was
-
Hi I am manually changing the product hierarchies in BW as there is not much of change from last year. I am doing it in Test environment first. I have to add one new node and prod hier for it. I have created a new node, but I couldnt create a new pro