DRM validation to restrict special characters
Hi can you please help.
We are not supposed to use these special characters in DRM node name or description.
dont allow the entry of special character in node names like @,#,$,%,^,&,*,+,-,{}.
and also use of words like ALL,AND,ASSIGN,CALC,AVERAGE,EXCEPT.
How can we restrict this.
Please advise
Hi,
See if you can gather some help from one of my earlier posts- Given Below
Special character Validation: error
Thanks
Denzz
Similar Messages
-
Restrict Special Characters in String Fields
Hello,
My Jdev version is 11.1.1.6 using ADF BC and ADF Faces as technology stack.
I have a requirement to restrict special characters, html tags as input in String/Varchar2 fields.
I have couple of thoughts that can be used in application but not sure which is the best approach:
1. Implement <af:validateRegExp pattern="regular Exp"> inside <af:inputText> component
2. Implement Entity based validator using Regular Expression
Apart from picking the best out of above two, I would like to know if there is a better way to implement this validation.
My application has custom framework extn classes and all Entities/View Objects extend those. Is there a possibility to implement this type of validation at some central place.
I would highly appreciate expert inputs here.
Thanks,
JaiHi,
the answer to your question is *"use both"*. The entity level would be enough but then would make people subniitting a request afte which they see an error The RegEx validator in ADF Faces handles problems on the client side and thus before a submit is sent to the server (where it then would be also checked using server side validation in ADF Faces). Why not using RegEx validation in ADF faces alone? Because there are potentially many views accessing your entity through view objects and if only one developer forgets the RegEx validator you would be screwed.
Frank -
Restricted Special characters in KM Resource name
Hi,
While creating resources in KM, it is not allowing some special characters (ex: '?' , ':') in name.
How do we know what are all the restricted special characters in KM?
Please let me know.
ThanksI think the file name restrictions which apply to naming of files on the PC apply to KM Resources as well since the file will have to be created on some file system itself.
Do refer to [this|http://kb.wisc.edu/page.php?id=2533] link to peek at the list of restricted characters.
Thanks,
GLM -
Restricting special characters
Hi All
I am currently doing the payment extract interface program for the bank. The point here is that the bank doesn't allow some characters which are considered as special characters like (#,$,%,^,*,&) etc..In most of the information like vendor name and invoice numbers they are using these characters.
In my interface program, i am removing this special characters and replacing it with space or '+' symbol as prescribed by bank through translate command.
translate(VENDOR_NAME,'/!;<>"{}[]|=_*&^%$@~#',' ')
But my question is how could i restrict them at the entry level itself?
In case of invoice creation form, when they enter #INV123 then i should intimate them that they have used special characters. Is that possible to do it in Forms personalisation?
Regards
SanthoshDuplicate post see:
Restricting special characters
Gareth -
How to restrict special characters for a specific column
Dear gurus,
i have a table emp with a field field_1
in this particular field_1 is an address column where data can be like '12 st first floor' but suppose mistakenly user has entered the data as '12 st first floor & ' it should be restricted (not using trigger but can this be possible by using constraints )so for this how can we restrict the special characters not to get entered into the column.
regards,
friendAnother way of doing it.
drop table test_table;
create table test_table (col varchar2(50));
alter table test_table add constraint chk_address check (NOT regexp_like(col, '[[:punct:]]+'));
insert into test_table
(select 'some text' col from dual);
1 rows inserted.
insert into test_table
(select 'some text!' col from dual);
Error starting at line 20 in command:
insert into test_table
(select 'some text!' col from dual)
Error report:
SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
02290. 00000 - "check constraint (%s.%s) violated"
*Cause: The values being inserted do not satisfy the named check
*Action: do not insert values that violate the constraint.
insert into test_table
(select 'some text House#32' col from dual);
Error starting at line 23 in command:
insert into test_table
(select 'some text House#32' col from dual)
Error report:
SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
02290. 00000 - "check constraint (%s.%s) violated"
*Cause: The values being inserted do not satisfy the named check
*Action: do not insert values that violate the constraint.
insert into test_table
(select 'some text
(with new line)' col from dual);
Error starting at line 26 in command:
insert into test_table
(select 'some text
(with new line)' col from dual)
Error report:
SQL Error: ORA-02290: check constraint (FDL_DEV.CHK_ADDRESS) violated
02290. 00000 - "check constraint (%s.%s) violated"
*Cause: The values being inserted do not satisfy the named check -
Mac file name restrictions/special characters
What are the Mac OS file name restrictions? What are the special characters to avoid?
Is this a legitimate file name? Are the colons allowed?
/Users/Joe/Desktop/MyDocument 3:2:06.xls
Windows XP ProThanks, Sagesse. I'm new to the Mac OS. Is it tied to Unix in such a way that the colons are allowed?
A user tried to provide a file with a name similar to that in my original post (e.g. "name 3:4:07.rtf") using a web form, and I'm at a loss as to how they could have saved it with the colons. Thank you for your assistance. -
OID/Portal - Restrict Special Characters to be used in Password
Hi,
Does anyone know how I can restrict the use of special characters ($, &, £...etc) in the OID password? I cannot see an attribute to achive this? orclpwdIllegalValues will stop certain words, but I just want to restrict the use of any of the special characters in any password. All suggestions or information would be much appreciated.
ThanksRequires custom plugin (using PL/SQL) to add password value checking to OID password policy management capabilities. A description and example code for this is available in chapter 27 of the Oracle® Internet Directory Administrator's Guide, 10g Release 2 (10.1.2) entitled "Oracle Internet Directory Plug-In for Password Policies" available at http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b14082/plugin_pwdpolicies.htm#i122359
-
How to remove special characters in xml
Dear friends,
How to remove the special character from the xml. I am placing the xml file and fetching through file adapter.
The problem is when there is any special character in xml. i am not able to pass to target system smoothly.
Customer asking schedule the file adapter in order to do that the source xml should not have any special charatcters
How to acheive this friends,
Thanx in advance.
Take careHi Karthik,
Go throgh the following links how to handle special character
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
Restricting special characters in XML within XI..
Regards
Goli Sridhar -
CONSTRAINT rule of no special characters allowed? Help
ALTER TABLE dbo.tblasset ADD CONSTRAINT
CK_tblasset_HardwareNumber CHECK ([HardwareNumber]<>'' and [HardwareNumber] is not null)
GO
Is there away I can implement special characters being inputted on a NVARCHAR datatype using this?special characters like (* , . ,")Many thanksALTER TABLE dbo.tblasset ADD CONSTRAINT
CK_tblasset_HardwareNumber CHECK ([HardwareNumber]<>'' and [HardwareNumber] is not null)
GO
Is there away I can implement special characters being inputted on a NVARCHAR datatype using this?special characters like (* , . ,")Many thanks
Your can create a Check
Constraint on this column and only allow Numbersand Alphabets to
be inserted in this column, see below:
Check Constraint to only Allow Numbers & Alphabets
ALTER TABLE Table_Name
ADD CONSTRAINT ck_No_Special_Characters
CHECK (Column_Name NOT LIKE '%[^A-Z0-9]%')
Check Constraint to only Allow Numbers
ALTER TABLE Table_Name
ADD CONSTRAINT ck_Only_Numbers
CHECK (Column_Name NOT LIKE '%[^0-9]%')
Check Constraint to only Allow Alphabets
ALTER TABLE Table_Name
ADD CONSTRAINT ck_Only_Alphabets
CHECK (Column_Name NOT LIKE '%[^A-Z]%')
Source: http://stackoverflow.com/questions/25408483/create-rule-to-restrict-special-characters-in-table-in-sql-server
web: www.ronnierahman.com -
Restrict use of special characters in AD usernames
I am planning to restrict use of any special characters including - "dash" when creating AD users in ADUC console.
All are windows server 2008 R2 Domain Controllers
Any suggestions.
MCSE CertifiedYou should change the thread to a question rather than discussion.
My recommendation would be to use PowerShell to do this.
You could edit this script
http://gallery.technet.microsoft.com/New-User-Creation-tool-14fa73cd
It will give you a GUI interface and you could edit this to prevent the characters you want from being used in usernames.
Regards,
Denis Cooper
MCITP EA - MCT
Help keep the forums tidy, if this has helped please mark it as an answer
Blog: http://www.windows-support.co.uk
Twitter: LinkedIn: -
Spry Validation - Special Characters
Hi Chaps,
I'm looking for two validation scritps:
1. Text field must have a '/' (forward-slash) at end of string
2. No special characters allowed (forward, backward slashes, question marks, etc..)
Any hints or answers would be most appreciated.
Cheerslittlemookie wrote:
Hi Chaps,
I'm looking for two validation scritps:
1. Text field must have a '/' (forward-slash) at end of string
2. No special characters allowed (forward, backward slashes, question marks, etc..)
Any hints or answers would be most appreciated.
Cheers
Hi,
The validation script could be similar to:
<script>
function myValidation(value) {
return /^[a-zA-Z0-9\s.\-]+$/.test(value); // ANY alphanumeric string with spaces, commas, dashes from http://regexlib.com/
</script>
The constructor will look like
<script>
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "custom", {validation: myValidation, validateOn:["blur", "change"]});
</script>
The only thing missing here is the compulsory forward-slash at the end of the string, but if that is important then you could alway script that into the value of the text field. For further info regarding regular expressions goto http://regexlib.com.
I hope this helps.
Ben -
Validating text field based on the combination of alphabets and special characters
Hi Everyone,
I am Using Oracle Apex 4.2 Version . I want to do validation for a textbox where it should accept all alphabets,numbers and special characters (abc12#$ , zbc, 123, nd12, 23_6!, @%77).
But it should NOT accept all special characters only.(@#$#!)
Pelase do help if any knows this.
Thanks in advance,
Nikhil.Hi Nikhil,
Here is one way that could work.
CREATE TABLE t (x VARCHAR2 (30));
INSERT ALL
INTO t
VALUES ('XYZ123')
INTO t
VALUES ('XYZ 123')
INTO t
VALUES ('xyz 123')
INTO t
VALUES ('X1Y2Z3')
INTO t
VALUES ('123123')
INTO t
VALUES ('abc12#$')
INTO t
VALUES ('@%77')
INTO t
VALUES ('!@#$')
INTO t
VALUES ('~%^&*()_+')
INTO t
VALUES ('23_6!')
INTO t
VALUES ('zbc')
INTO t
VALUES ('123*456')
SELECT * FROM DUAL;
SELECT x
FROM t
WHERE ( Regexp_like (x, '[[:alpha:]]') -- include alpha characters
OR Regexp_like (x, '[[:digit:]]') -- include numbers
OR Regexp_like (x, '[[:punct:]]') ) -- include special character
AND ( Regexp_like (x, '^[^%]*$');
AND Regexp_like (x, '^[^*]*$') ) -- exlude special characters % and *
Jeff -
Special Characters Validations
Hi, I need to write a validation that will give an error when user enters any funny characters e.g @, $ and about 300 more since we have multiple langueu2019s.
Currently I have the following working validation;
HAS_ANY_CHAR(Field Name,"@","$")=False
What I want to know is if there are an easier way to achieve my goal of blacking the non valid characters we identified?
Any help will be appreciated.Hi Chris,
In data manager in match mode
In Trasformation tab we remove special characters using TOKENS
right click transfermation pane create name like "remove -"
ex: AB-PQR-D, we don't want to "-" replace to ABPQRD
Under TOKENS:
FROM TO
"-" keep emty place
In RULE tab give for FIELD: whatever name given in transformation: "remove -"
In strategies pane will give rule name.
select the duplicate records in record pane, right click press match tab, select the check box
go to merge tab merge the records.
OUTPUT: ABPQRD and merge the others into one record.
Regards
Bhupal. -
Time-dependent Vendor Master & Handling Special Characters
Hi,
I need to extract time-dependent Vendor Master.
1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
2. Does the Master data in R/3 for Vendors will hold the valid date range?
3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
Handling Special Characters:
We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
Please help me getting the 2 issues resolved.
Thanks in advance.
Regards,
Sudhakar.Hi Everyone,
Thanks for inputs on Special characters issue...
Finally resolved with below piece of code in the start routine:
DATA: FLAG,
OFF TYPE I,
LEN TYPE I VALUE 1,
ALLOWED_CHAR(95) VALUE
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
CONSTANTS: C_CHAR VALUE '-'.
LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
DO.
IF DATA_PACKAGE-/BIC/ZI_DESC CN ALLOWED_CHAR.
REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
FLAG = SPACE.
ELSE.
FLAG = 'X'.
ENDIF.
IF FLAG = 'X'.
EXIT.
ENDIF.
ENDDO.
MODIFY DATA_PACKAGE.
ENDLOOP.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
Regards,
Sudhakar. -
Unable to call report from jsp - password contains special characters
Hi
I used the following url to call my oracle report from my JSP webpage but got the error mentioned below. It seems that this error occurs when i use the login id with password that contains special characters only. How can I overcome this problem?
Any help appreciated. Thx.
Regards,
Siti
URL used: -
"http://pc-325:8889/reports/rwservlet?server=pc-325&report=prodeff80120i&P_JDBCPDS="+vlogin1+"&destype=cache&desformat=pdf¶mform=no&p_type="+p_type;
Error encountered: -
REP-163: Invalid value for keyword DESTYPE.
Valid options are FILE, PRINTER, MAIL, INTEROFFICE, or CACHE.Hi Stefan,
Many of the customers are located in hungary and they have created the userid using their keyboard. Hence for now I already have a userid with that hungarian characters, in the SAP system.
Only I would request for the help on how to interface these characters in SAP Business connector to call RFC.
Thanks,
Maybe you are looking for
-
my ipod is stuck on a screen that has a picture of the ipod plug and itunes, wen i plug it in 2 itunes it wont do anything as i have a password on my ipod and i need 2 put in password 4 itunes 2 work, please sum1 help me......................
-
New construction home trying to get DSL
My husband and I are building a new house and moving in the next few weeks. We were trounced by Time Warner as we are at the end of the line and are 100 feet too far away from the last pole for service. We do use Directv for our TV. We need intern
-
Oracle Forms/Reports compatible version for Oracle 9.2.0.1 database
Hello, I installed Oracle 9.2.0.1 as database and trying to intstall developer suite. Can someone in this group tell me what is the correct version of developer suite that i need to download. Thanks a lot.
-
Why integrate Tomcat with Apache?
What's the reason to integrate Tomcat with Apache? What are the benefits?
-
How changing the criterion for an access query in java?
Hi @ all I would like to change a criterion for an access-query in java. I know how to run a access-query in java. How can I change the criterion in my access query in java without running the query it selfs? Can anybody help me? Thx Dario