Validation Rule - Should contain only alphabets and can be upto 4 characters long
Hi, I am using MDS 2012 and want to create a business rule for data validation which says,
"Should contain only alphabets and can be up to 4 characters long". How can I create such a rule in MDS? Also the Code and Name attributes are 250 characters by default. How to restrict them to 4 characters if business need them to be 4 or
less character?
Any help appreciated.
Thanks, Ashish Singh
When creating a business rule, under Actions there is "Must be maximum length of" and "must contain patern".
See:
http://technet.microsoft.com/en-us/library/ff487015.aspx
Similar Messages
-
Input should accept only alphabets(validation)
Hi
I have a input field with label EMPLOYEE NAME where it should accept only alphabets spacesand dot(.)For example(k.krishna rao).
Thanks
KrishnachkInput-->String
2)then do the binding.
3)create message in message pool
MessageKey-->inputValidation
MessageType-->error
MessageText-->you have entered ,which is in not alphabet.
Please enter valid .
3)create Method and check for the input field
and implement your method.
your code may look like this.you can do your manipulation according to your requirement.
public void chkInputField( java.lang.String chkInp)
//@@begin CheckDate()
IWDMessageManager msgmgr=wdComponentAPI.getMessageManager();
Integer inInt =(Integer)wdContext.currentContextElement().getAttributeValue(chkInput);
IWDAttributeInfo attinfo=wdContext.getNodeInfo().getAttribute(chkInput);
for (i=0; i<chkInp.length; i++) {
if (chkInp.charAt(i) == "." || chkInp.charAt(i) == "/")
//show the error message
msgmgr.reportContextAttributeMessage(wdContext.currentContextElement(),
attinfo,
IMessageMainComp.INPUT_INVALID,
new Object[]{ chkInput},
true);
//@@end -
Can the encrypted string contain only alphabets?
Hi friends,
I have problem with the encryption. I am using Des .
I want to get the encrypted string which contains only alphabets ( no digits or no special characters).
Help appreciated.
Thanks.Within the Java Cryptographic Extension (JCE), encryption works on bytes and generates bytes. You can convert any arbitrary String to bytes using one of the String.getBytes() methods (preferably the one where you define the encoding to use). The way you restrict what the plane text String contains is up to you.
The JCE produces secure encryption based on well tested algorithms.
The tone of your question implies that all you want to do is have a simple substitution cipher. The is very VERY VERY insecure and can be broken by a 2 year old. Use the JCE. -
How to judge whether the chars contain only number and letter
how to judge whether the chars contain only number and letter, for example :
'AEs4386' is valid , but '´¼ew78' is not
thanks for your help !Hi,
try the following:
data: l_test(36) type c.
concatenate sy-abcde '0123456789' into l_test.
l_test contains all letters all numbers now
translate YourVariable to upper case.
YourVariable contains only upper case letters
check YourVariable co l_test. " or use if instead of check
YourVariable contains only letters or numbers
regards
Siggi -
I have the original iPhone and I can't sync the address book from my Mac to the iPhone. What should be the problem and can I sync?
Thanks a lot for the answer. I'm so upset, have no even one contact on my phone. I has to do with the moving to iCloud from MobileMe.
I did exactly what you wrote, and when trying to click the vcf file on the iPhone the screen freezing, and then after few long seconds it goes alon to home.
So I tried less contacts in a Vcard, and i'm dividing my address book, doing little by little and it work.
Thank you so much.
I still dont get why the sync with my computer address book is not working.
And why when I moved to icloud all the photos I had next to the contacts are disappered.
I had my iPad, which it still, I did not move from MobileMe to iCloud and all the photos are there!
Anything I can do to use the iCloud on the iPad as well and update the iCloud with the photos? -
When calling report in forms, only html format can show chinese characters
To all experts,
When I run report by calling run_report_object() in forms, only html format can show chinese characters. If I choose pdf format, garbage characters were shown instead of chinese characters. My settings on server are as follows:
NLS_LANG=TRADITIONAL CHINESE_HONG KONG.UTF8
FORMS60_REPFORMAT=PDF
Do you know why? I hope to print report in PDF format as PDF turned out to be more regular in format. Is there any additional settings required?
May experts here broaden my mind?
RichardAssuming that you are using version 6i, try using Oracle9i Reports it has support for multi-byte in PDF.
By the way, Reports questions will get better response if you send them on the reports forum. -
How to select a field containing only alphabet.
Post Author: tantk
CA Forum: General
I want to select records with only alphabet in a field.
Can't seem to find any finctions to do this in CR XI.
e.g Reference ID
ABCXYS - Select this record
173839S - Don't select
UDHHW12 - Don't select
173746 - Don't select
Thanks for the help in advance.Post Author: SKodidine
CA Forum: General
There might be an easier way but I just cant think of it right now. Here is a way to get you started.
Create a formula with:
numbervar i;numbervar a := 0;//for i := 1 to length({table.refid}) do(if not({table.refid}[i] in chrw(65) to chrw(122)) then a := a + 1;);//if a = 0 then 'true' else 'false';
Place this formula in the report header and suppress it. Then in your record selection criteria place this line:
{@yourformula} = 'true'
This should fetch only those records that either have a space or all alphabets for the refID. -
Validation Rule for the coding mask and project profile
Hi,
I have two project profile and two coding masks. I want one project profile to be only used by defined coding mask for that profile.
So i have maintained a validation rule as follow -
Prerequisite - Project Def. :1-3: = 'A5M'
Check - Project Profile = 'ABC'
And if the above check is failed then give me an error message.
Now i am trying to add the project profile other than 'ABC' for the coding mask starting with 'A5M', but still the system is not giving me an error message configured and allowing me to save the project.
Is there any other thing which is tobe activated other than assigning the validation rule in project profile and clicking the Autom. validation check box in OPSA.
Request to confirm share the views.
ThanksHi,
Try the following, this must work.
Prerequisite
PROJ-PROFL = "ABC"
Check
PROJ-PSPID: 1-3: = "A5M"
Message
Project profile & Coding mask wronly assigned
Repeat the same for other project profiles also.
Enter this validation in your project profile. Check in "Auto Validation"
In transactinal data,
Enter project def and select the wrong profile. when you save the project system will show you the error message.
Hope this will help you.
Regards
Prabu -
Can validations be done inside FOR ALL and can we use conventional insert
Hi All,
I have to move millions of data from one 'table1' to ' table 2'. Table 2 is equal Table 1 columns+ an extra column . data for the extra column is retrieved from table 3 using foreign keys of table 3 and table 1.how shud i do it using bulk collect and for all insert... I have given the sample code for my problem..
TABLES:
table 1 columns: emp_name, emp_id , emp_add, emp_txt
table 2 columns: emp_name, emp_id, emp_add,emp_txt,emp_ref
table 3 column: emp_txt,emp_ref,emp_size
CODE:
create or replace
procedure bulk_proc IS
v_emp_ref varchar2(20);
cursor cur_t1 is
select * from table 1;
TYPE bulk_t1 is table of cur_t1%rowtype;
v_bulk_t1 bulk_t1;
cursor cur_t3 is
select a.emp_txt,b.emp_ref from table 1 a, table 3 b where a.emp_txt = b.emp_txt;
TYPE bulk_t3 is table of cur_t3%rowtype;
v_bulk_t3 bulk_t3;
begin
open cur_t1;
open cur_t3;
loop
fetch cur_t1 bulk collect into v_bulk_t1 ;
exit when v_bulk_t1.count=0;
fetch cur_t3 bulk collect into v_bulk_t3 ;
exit when v_bulk_t3.count=0;
for i in v_bulk_t1.first..v_bulk_t1.last loop
for j in v_bulk_t3.first..v_bulk_t3.last loop
if (v_bulk_t1(i).emp_txt = v_bulk_t3(j).emp_txt) then
v_emp_ref := v_bulk_t1(i).emp_txt ;
else
v_emp_ref := null;
end if;
for all m in 1..v_bulk_t1.count
insert into t2(emp_name, emp_id, emp_add,emp_txt,emp_ref) values
(v_bulk_t1(m).emp_name,
v_bulk_t1(m).emp_id,
v_bulk_t1(m).emp_add,
v_bulk_t1(m).emp_txt,
v_emp_ref);
end loop;
end loop;
end loop;
close cur_t3;
close cur_t1;
end bulk_proc;
can we do validations inside FOR ALL command..i am getting error.is it possible to use conventional insert inside 'for all command' or do we have to use only 'insert ti values v_bulk_t1(i)' like that....Do i have to use only conventional cursor for this problem?...please help me..1.I want to push 18 million records from one table to another table with validations....Can i use ur code for it? You can always test how the example Tubby provided works in your environment.
Usually a single SQL statement is the right way to go.
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:760210800346068768
(memorize the mantra)
Another option you have is to use CTAS (Create Table ... As Select ...) or use the APPEND hint while inserting.
Make sure first that you understand how it works:
You can find many examples including clear explanations by doing a search on http://asktom.oracle.com
2.Can we do normal insert and validations inside FOR ALL insert loop... Afaik, you cannot. ( But it wouldn't surprise me if Michael comes up with an example using dynamic SQL ;) )
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/forall_statement.htm#LNPLS01321
Alternatively you should investigate if it's possible to adjust your query/queries in such a way so that only records that you want to insert are selected.
In other words: use the WHERE-clause from your query to validate rightaway instead of selecting records thatyou don't want/need at all.
3.How variables are stored in BULK COLLECT ..Is it storing pattern differs from cursor.......Sorry, I don't understand what you mean here.
4.In which scenarios we should not use COLLECTIONS ...Please help me...That's totally dependent of the scenario/requirement.
Example:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1058232381458 -
Cross Validation Rule - Should all segments be included in the rule?
I have 6 segments in GL, While i want to restrict Accounts for a given cost center and Company combination, I wanted to know if i have to also put a 00 and 99 to the other segments like Project Future and intercompany. Ex: For CC and Company combination 01 and 2345 the account 654321 must be restricted. I dont have any condition for the other 3 segments, Project, Future or Intercompany. In this case my exclude should be
Exclude:
Segment Low High
CC 01 01
Company 2345 2345
Account 654321 654321
Project
Future
Intercompany
I left Project, Future and Intercompany as blank. Should i enter value even for those? Should it be like this?
Segment Low High
CC 01 01
Company 2345 2345
Account 654321 654321
Project 000000 999999
Future 0000 9999
Intercompany 0000 9999
Please advice.When creating a business rule, under Actions there is "Must be maximum length of" and "must contain patern".
See:
http://technet.microsoft.com/en-us/library/ff487015.aspx -
I am new to Adobe, so
forgive the ignorance! I am waiting for my tutorial cd, but meanwhile am working on a form.
I have completed the fields (best I know how), but want to make sure that if someone has any Adobe program other than just 'Reader' that they cannot change the form, but just fill out and print it or can do a "save as" and rename it.
I know you can 'clear form' if it is saved and save it again blank, but I am wondering what options there might be to safeguard anyone doing this that I may send it to.
Thanks so much for any input!
(hope I can find my way back to see my answers)Bobby,
Thank you! I looked at your link and found some more help there. I am sooooo new to all this that I don't even know what Live cycle is... I see it in my 9 pro menu, but am not sure what to do with it... it only has "refresh security properties' as a selection... all else is greyed out.
for now, I just locked all my cells necessary and made Read only... then put a security with a password only allowing filling and printing ( I selected high resolution printing.. hope that is what the majority can do) and left it at that.
All of these things like "envelopes", "certificate" and so on for security is beyone me.... I am sure I will get there when I can take the course I have signed up for in a month, but for now... it is learn on my own.... It is kind of funny, when you are not even that technology savvy to figure out what some of the explanations are even talking about! I appreciate all the help!
Thanks so much!
Dena -
Application containing only resources and no run target
HI Gentlemen,
I have a set of web applications with XSQL sheets. These reference different subsets of stylesheets, and XML files as lookups from a large pool. Now it happens several times that a stylesheet or XML file is referenced in many different applications and it is physically placed in every corresponding project.
I would like to store them in only one copy at a central place. A possible solution would be XMLDB repository, but JDeveloper does not find them as resources.
Question: Is it possible to gather them in one application (or some kind of custom library or page etc.) together, so that I only have them occurring once? This would be very beneficial for later maintenance as well. The whole will then be deployed first in the integrated Weblogic server for porting some production server later.
Please try to find a way if there exists one.
Thanks, regards
Miklos HERBOLYHI Timo,
Many thanks. The idea of a custom shared library is almost as good as using resources. I have only one problem: The library members are all standalone XML instances, a single tree each. That is, both stylesheet and lookups are at the moment XML/XSLT files. I could store them in an XMLTYPE table but how to get them into a library? And how to access the library members thru href=... from a JDeveloper XSQL page (the stylesheet), and from an XSL stylesheet (the lookups)? Referencing goes as XSQL -> stylesheet -> lookups.
Can you give me a hint?
Thanks, regards
Miklos -
Hi plz tell answer of my question. I m not being able to add my friends due to this problem!
Luxury, Julie! I can't even get past the “Nickname” window. I put in a nickname and press the “Continue” button. Another pool-table-felt-green window appears, empty except for the spinning pinwheel (“doing something…”) in the middle. After a couple of hours mesmerized by this wonderful phenomenon, I figure I didn't want to see what "Game Center" is, anyway.
-
we are creating mandatory advertisements with
1. schedule mandatory assignment As soon as possible with deadline never expire.
2 program rerun behaviour always rerun and sometimes rerun if previous attempt failed
3 we are selecting in interaction tab allow users to run the program independent of assignment
now my question is once the program is installed , it will remain in RAP or after installation it will vanish from RAP.HI Grath thanks for your reply
I have one confusion ,we are creating collection query based on AD security groups ,if machine part of security group and it does't have any entry in add remove programs then machine will come to install collection and if it is not part of security group
and have any entry in add remove programs it will come in uninstall collection.
So once the machine get installed with the application then it will vanish from install collection ,so according to that
its no more targeted with the advertisement ,hence the program should vanish from RAP .
example of install query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select distinct SMS_R_System.ResourceId
from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Adobe-xyz") and SMS_R_System.SystemGroupName = "ENT\\ADB-adobephoto-123456-1.0"
and uninstall query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID
= SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Adobe-xyz" and SMS_R_System.ResourceId not in (select SMS_R_SYSTEM.ResourceID from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId
= SMS_R_System.ResourceId where SMS_R_System.SystemGroupName = "ENT\\ADB-adobephoto-123456-1.0") -
1.- I´m creating a Muse site which contains videos, photos and sound. All videos, sounds and pictures are located in diferent folders in my PC. Since Muse doesn't organize the project and its files like Dremweaver (all files in a single folder). How can I manage my site (containing all the media) in order to upload it to a server?
2.- Is there a Adobe Muse community in spanish language?
Thanks for your help
Mauricio444Kevin is suggesting that you store the projects you create while working through his book in a folder called RoboHelpProjects. It is not where you have to store every project you ever create.That is for the purposes of his book.
RoboHelp initially defaults to My RoboHelp Projects but it's up to you whether you do. Generally on the forums we advise against that as it is part of your profile and can result in excessively long path names in a few cases. Generally where authors create file names that are so long they almost serve as the content.
Projects always have a root folder, call them Project 1 and Project 2 for this purpose. You can have those folders directly off your C drive (or other local partition) or within in a parent folder as above.
Now to what you can and cannot do. You can delete a whole project by selecting Project 1 or Project 2 in Windows Explorer. Obviously if you delete the parent folder you will delete all your projects within.
What you must not do is delete individual files within a project using Windows Explorer, for that you use RoboHelp's Project Manager. The exception is if you go to Tools > Reports there is a report Unused Files. Files listed there will have to be deleted using Windows Explorer for the very good reason they do not appear in Project Manager and, therefore, cannot be deleted that way.
If you think about it, it is similar to Word. There is no option to delete a document there other than using File > Open and right clicking. Not very intuitive.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge
Maybe you are looking for
-
I created an oracle report to generate (Oracle reports 10g) PDF output and called it from APEX through rwservlet and I am getting the output without any issues but if I repeat the same process for CSV output i am getting unwanted output. it not resem
-
ITunes library created on windows can't be read by iTunes on OS X
Hi, I'm running a MBP with OS X 10.5.4 and VIsta Ultimate SP1 32-bit via bootcamp. I have installed software allowing OS X to write as well as read NTFS partitions. I have an external harddrive with my iTunes folder consolidated (using windows iTunes
-
Help required in DMS Installation
Hi, I am planning to install DMS 6.0 system. I didnt find any proper installation/configuration guide in SAP service marketplace. Also, in help.sap.com the documentaion is not at all technical. Also, the guide i find is eDMS which is just the client.
-
Hi; I have the following code in Python to display my movies: <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='%s' height='%s' id='Maya2012Main' name='Maya2012Main'> <param name='movie' value='Maya2012Main.swf'> <param name='allowf
-
How do I get it to ring. The button is turned on correctly and I have re-set the phone