How can i check the duplicate NPD project name?

Dear all,
I would like to know on how i can check the duplicate NPD's project name? I found that some NPD's project is initiate serveral time with the same or semilar name from user name. Supposing the project name was "Smart Pilot". I always found that project may type differently such as "Smart PILOT","smart pilot" or even "Smart Pilots". Supposing i would like to validate all of these name before save by using validation framework, or custom validation. Is it possible?
Supposing it was possible, can you please guiding me on how?
Thank you so much in advance for all of the answer.
Phaithoon W.

So here is some example code for a quick validator. Note that this uses a hard coded English error message, rather than a translation. If you want to use translations instead, look at some of the examples in the ReferenceImplementations\Validation\SourceCode\ReferenceValidation folder in the Extensibility Pack, and review the Validation Training as well (in the ReferenceImplementations\Validation\Documentation folder).
Note that the provided code is for demonstration purposes only and is not supported by Oracle.
The classes:
using System;
using System.Data;
using System.Xml;
using Xeno.Data.NPD;
using Xeno.Prodika.Application;
using Xeno.Prodika.Services;
using Xeno.Prodika.Validation;
using Xeno.Prodika.Validation.Validators;
namespace Oracle.Agile.PlmProcess.Validation
    public class NPDUniqueProjectNameValidatorFactory : XmlConfigValidatorFactoryBase
        protected override IValidator Create_Internal(XmlNode configNode)
            return new NPDUniqueProjectNameValidator();
    public class NPDUniqueProjectNameValidator : BaseValidator
        private const string sql = @"select 1 as dup from NPDPROJECTML where UPPER(title) = UPPER ('{0}') and FKPROJECT <> '{1}' and LANGID = {2}";
        public override bool Validate(IValidationContext ctx)
            var project = ctx.ValidationTarget as INPDProjectDO;
            bool hasDuplicate = false;
            string sqlToExecute = String.Format(sql, project.ProjectML.Title, project.PKID, UserService.UserContext.User.PreferredLanguage);
            using (IDataReader reader = AppPlatformHelper.DataManager.newQuery().execute(sqlToExecute))
                if (reader.Read())
                    hasDuplicate = true;
            if (hasDuplicate)
                ctx.AddError(String.Format("A project already exists with the name '{0}'.", project.ProjectML.Title));
            return hasDuplicate;
        private IUserService UserService
            get { return AppPlatformHelper.ServiceManager.GetServiceByType<IUserService>(); }
Next, add the following to the ValidationSettings.xml file in config\Extensions:
1. add the validator factory, with a reference name in the config:
<ValidatorFactories>
        <!-- Custom  Validator Factory declaration goes here -->       
        <add key="NPD_CheckProjectNameForDuplicate" value="Class:Oracle.Agile.PlmProcess.Validation.NPDUniqueProjectNameValidatorFactory,ReferenceValidation" />
</ValidatorFactories>
2. Add a rule for NPD project Save event:
<rule type="3202">
            <condition event="save">
                <if type="NPD_CheckProjectNameForDuplicate" require="true" report="true" />
            </condition>
</rule>
Compile the reference example into a dll, and add that dll into web\npd\bin
When you try to save a project with a duplicate name, it should now give you the error message.

Similar Messages

  • I have a lot of duplicate photographs in my library. how can i delete the duplicates automatically?

    I have a lot of duplicate photographs in my iPhoto library. It happened while our EIS were saving a computer breakdown, but now i would like to know how to selectively delete the duplicates, without doing it individually. That is, can I set up iPhoto to automatically search for and delete duplicate photographs in the library?

    see Old Toad's post in this thread for his list - How can I check for duplicate photos in my IPhoto library? and tests
    LN

  • IP Job in BW finished, but how can I check the IDoc receive status in BW ?

    Hi,experts
    After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
    And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
    and how can I do now ? or how can I check the IDoc receive status in BW side?

    Hi,
    I too had the same problem, i executed the following to solve the proble, may be this will help you:
    1) Go to T-code SM58 and select TRFC and press F6,
    2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
    Thanks,

  • I have two email accounts. It is only letting me check one. How can I check the other?

    I registered two different email accounts on my iPad mini. It's only letting me check one. How can I check the other one too?

    Congratuations on your new iPad!
    Since your device is so new, I can state categorically that this an issue with configuration. Delete the account that doesn't work, and enter the information anew.
    If you're still having problems, check that your email address and password are correct, and if possible, verify it by checking your ISP's settings.

  • How can i check the office web app server(wac client) is calling custom WOPI host?

    I am getting an error when I testing my wopi host(which is the same as
    example) with Office Web app server "Sorry, there was a problem and we can't open this document.  If this happens again, try opening the document in Microsoft Word."
    1-how can find the log files of this error?
    2-how can i check the office web app server(wac client) is calling my WOPI host?
    I am not sure about cumunication between owa to wopi host. I actually dont know how to implement checkfile and getfile functions to wopi host for waiting for call back from owa client.
    Note:I am sure that office web app server is configured true. Because i test it with sharepoint 2013 and editing and viewing is working well.

    Hi,
    According to your post, my understanding is that
    CheckFileInfo is how the WOPI application gets information about the file and the permissions a user has on the file. It should have a URL that looks like this:
    HTTP://server/<...>/wopi*/files/<id>?access_token=<token>
    While CheckFileInfo provides information about a file, GetFile returns the file itself. It should have a URL that looks like this:
    HTTP://server/<...>/wopi*/files/<id>/contents?access_token=<token>
    There is a great article for your reference.
    http://blogs.msdn.com/b/officedevdocs/archive/2013/03/20/introducing-wopi.aspx
    You can also refer to the following article which is about building an Office Web Apps(OWA) WOPI Host.
    http://blogs.msdn.com/b/scicoria/archive/2013/07/22/building-an-office-web-apps-owa-wopi-host.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can I check the expiration date of a Certificate Keychain from terminal?

    Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.
    Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).
    I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.
    Any recommendations would be appreciated.
    Thank you!

    Anyone?

  • How can I check the specs with a broken LCD?

    A friend just gave me an ibook, but the LCD does not come on. How can I check the specs of the computer?
    I tried hooking it up to an external monitor, but I believe I need to setup the prefs to show on the external (I.E. the external was just black, but the computer was on).
    Any ideas here?
    All I know about the computer is that it's a white ibook with dual USB ports, firewire, and eithernet port on the side.
    Thanks in advance.
    -brown
    Message was edited by: Ryan Brown2

    The specs for the iBook should be on the label with the serial number.
    http://support.apple.com/kb/TA27282?viewlocale=en_US
    What does it say there?

  • How can I check the version of the rdf file?

    Dear all:
    How can I check the version of the rdf file? such like CEXRECRE.rdf .
    my environment is : oracle 11.5.9
    platform : Linux red hat 4.0
    Regards
    Terry

    Terry,
    Use "adident" or "strings -a" commands -- See (Note: 125922.1 - How To Find Oracle Application File Versions) for details.
    Thanks,
    Hussein

  • How can I check the version of Oracle in Linux?

    Dear all :
    How can I check the version of Oracle in Linux ?
    Regards
    Terry

    Hi terry;
    How can I check the version of Oracle in Linux ?You mean your db version or something else? If you mean you want to control your version issue is:
    source env file as oramgr
    sqlplus "/as sysdba"
    when u login sqlplus it will give u something as below:
    SQL*Plus: Release 10.2.0.4.0 - Production on
    Regard
    Helios

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • How can i check the license file installed on the server CCM 6.1.4

    Hi;
    i have installed the CCM 6.1.4; and now i want to upgrade to 8.5, but i don't remenber witch type license i have uploaded ( normal or Hospitality).
    how can i check the license file installed on this server???
    thanks.

    Hi Matthew,
    I think your idea should work just fine, but you will need to work with;
    [email protected]
    To put together the proper license file due to this change called the "License MAC"
    Customer Impact from New Licensing Procedures
    Cisco Unified Communications Manager on VMware on Cisco UCS B-Series Blade Servers uses a different licensing model than Cisco Unified Communications Manager on an MCS server. The MAC address of the NIC card is no longer used to associate the license to the server.
    Instead, the license gets associated to a license MAC, which is a 12 digit HEX value created by hashing the following parameters that you configure on the server:
    •Time zone
    •NTP server 1 (or "none")
    •NIC speed (or "auto")
    •Hostname
    •IP Address (or "dhcp")
    •IP Mask (or "dhcp")
    •Gateway Address (or "dhcp")
    •Primary DNS (or "dhcp")
    •SMTP server (or "none")
    •Certificate Information (Organization, Unit, Location, State, Country)
    This hash of these fields is called the LICENSE MAC
    Note : Once there is a change in any of the parameters that creates the License MAC, it will
    give you 30 day grace period to generate a new license file for the CM based on new license
    MAC.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/install/8_0_2/install/cmins802.html#wp584709
    Cheers!
    Rob

  • How can I check the open-mode of an opened file from the file refNum?

    How can I check the open-mode of an opened file from the file refNum?
    Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
    Thanks for any hints!

    Check this post. Probably you can use a kernel.dll call.
    http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

  • How can i check the procedure execution time..?

    Hi All,
    Can any one of you tell me how can i check the procedure execution time..?
    Thanks in advance.

    if running it from SQL*Plus,
    SQL> set timing on
    Or from PL/SQL, use DBMS_UTILITY.GET_TIME before and after the call and calclate the difference.

  • How can I check the billing address on file for me at iTunes?

    i received an email stating a change in my billing address. I did not make a change. How can I check the address on file? 

    You can viee the billions my address on your account by logging into the accontunt's nt via the Store > View Account menu option on your computer's iTunes, or via the 'manage your apple id' button on http://appleid.apple.com
    But the email may be a phishing email : Identifying fraudulent "phishing" email
    t

  • How can I check the price of upgrading CS5 educational edition to CS6 educational edition?

    How can I check the price of upgrading
    "Adobe Creative Suite 5 Design Premium Student and Teacher Edition" to
    "Adobe Creative Suite 6 Design & Web Premium Student and Teacher Edition"?
    Accroding to http://www.adobe.com/hk_en/products/cs6/faq.html , "owners of a CS5 or CS5.5 suite edition qualify for upgrade pricing to a CS6 suite edition."
    I can only found the price for CS6 full version from the site. But I can't found the upgrade price. Where can I check the upgrade price?
    Thanks.

    There are no upgrades for edu products. You simply buy a complete new license at the discounted price.
    Mylenium

Maybe you are looking for