Project Name Convention

Hi all
I created a Project named Student Database(with space in between it)
and in a jsp file i m giving the location for an image as
C:/Student Database/image1.gif
Does this cause problem?
space in the project name

It is not recommended because it CAN lead to an error depending on your operating system. At any rate it's a bad idea.
Also, static path references to anything in a web app are a bad idea.
My recommendation would be to move the graphic to
/web root/graphics/your graphicand then change the reference in the jsp to something like
<img src="<%=request.getContextPath()%>/graphics/your graphicPS
Message was edited by:
puckstopper31

Similar Messages

  • Name convention, Capture vs Projects

    Hi,
    I am to start capture about 60  tapes (SVHS-C) from my VHS player thru Canopus ADVC-55 in DV format using Premiere Pro (PP). Doing so I create a "Capture" project in PP, only to get the DV file to a scratch disk mostly named/structed accerdence to the tape content. When doing the real job, creating the Movie, I have to creat "Movie" project named after the content of the Movie. So now I will have about 60 project named after Tape Captured and lot of Project named after what I have created as my "movies". Some of the PP "Capture" project will ofcause be the foundation for  creating the "Movie", sometimes starting point for a partly a new subject. Mostly I have to creat new Movie projects were I bring in captured files from diffrent places on the scratch disk.
    Are there anyone that can advice me how to set the name convenstion so it is easy to see what is only "Capture" project and what is real Projects or in a other way distinguage between those to types of projects to make it easier to find the real Projects in PP when you work  in the future (names could be very similar) or any structure that helps. Anyone who having any experience in this area to solve this simple question?
    BR
    Lennart

    Hi,
    Seems to be a dead end. If I understand you rigth, when capture you name the file Miscellaneous project and that will be the name on the scratch disk aswell but Capturing 60 tapes with the same project name will be hard to handle later on. Are there not any better strategy?

  • Get the project name to use in a procedure?

    How to get the project name to use in a procedure?
    example <% = odiRef.getOption ("COMPATIBLE")%> - but the project name or your id?
    in ODI 11.
    thanks
    Edited by: user ODI Dev on 01/12/2010 16:42

    I also need solution for this issue.
    I want to set ODI variable value in Jython script, this method described there: How to assign value for a ODI variable from Jython Script
    I need to update snp_var_data table. For more flexible solution i need to know project name where variable declared, because variable name in snm_var_data consist of two part <PROJECT_NAME>.<VAR_NAME>. Also this name convention don't changed after import scenarios from dev to execution repository
    Edited by: 822130 on 19.12.2010 4:31

  • Project Naming Conventions?

    Would anyone care to share the naming conventions they use for projects? I have a manageable number now so naming doesn't matter so much, but I can see having a large number of projects soon. Thanks!

    Kenneth Kirksey wrote:
    Would anyone care to share the naming conventions they use for projects? I have a manageable number now so naming doesn't matter so much, but I can see having a large number of projects soon.
    hi, ken
    do you have clients?
    my folder/project naming conventions...
    main subject with projects below
    for example,
    Beach (main subject)
    Jetty (sub subject)
    Nature (main subject)
    Birds (sub)
    Birds of Prey (sub sub)
    Fashion (main sub)
    Model Name (sub)
    Calvin Klein (sub sub)
    (MGM Grand) (sub sub)
    Music (main)
    Artist Name (sub)
    name of Project currently working on (sub for artist)
    I hide photos in yellow folders to keep other clients from viewing photos from others
    sometimes 2008 Beach to keep the year separated
    victor

  • How to add folder/project name to a File Naming preset

    Here's a tip to automatically add the name of the Project or its parent Folder to the filename during Import or Batch Change.
    I always used a custom field for adding my client's name to the filename upon Import or Batch Changing versions or masters. But often I would forget to change the custom name, and since it's auto-populated with the previous entry, I'd end up with a bunch of files with the wrong client's name on them. That looks kind of bad. So once I saw with Aperture 3 you can add the Project name or Folder name when relocating referenced files to the new folder structure, I was excited to be able to do the same for the filenames at import. Well, no such luck. They're not an option when you create a custom File Naming preset.
    However, I recently decided to poke around inside some plist files, and found a workaround. I discovered the format string for Folder Name is %F and Project Name is %P. The trick is getting the code into the Format Field where you create the preset.
    Create a new File Naming preset by choosing "edit" from the Version Name menu during Import or Batch Change. Drag everything you want in the name into the Format field, and enter %F or %P where you want the Folder or Project name. The tricky part is that you can't insert it between two existing criteria. It only works at the very end. After you have it in place, you can drag the criteria around to get it in the order you want.
    The alternative method is to insert the code directly into the plist. PLEASE, always make sure you're working with a copy and have a good backup when you're poking around in such things. If you have trouble getting the code to take from within Aperture, you can try this. Same as above, create a new preset, but this time, enter an F or P where you want the Folder or Project name. Give it a unique preset name and save it. Then Quit Aperture. Navigate to ~/Library/Application Support/Aperture/FileNamingPresets.plist, and make a copy of the file, then open with Property List Editor. Dropdown the plist and then dropdown the item you want to edit. You should recognize it by the preset name. Now the easy part. Click in the FormatString field and insert the % character before the F or P you entered in the Format field. Save and you're done.
    I discovered later that while the Folder and Project name works just fine during import, for some reason only the Project name works during Batch Change. The Folder name simply creates a "-" in the filename.
    In case this is seen as a hack and gets deleted, I'm also submitting it to http://www.macosxhints.com/ and I suspect if anyone from MacCreate sees it, they'll steal it too, as they're known to do.

    I do not think there is an out of the box way to do this.
    The immediate solution that comes to mind is using a workflow, that runs everytime  a document is uploaded/item created, which may be too much for your scenario.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • PWA 2010 error when i try to open the project name in Project Center

    Hi, this is my first post.
    Im having a trouble with our Project Server, when i try to open the project name in Project Center it gives me an error like this:
    ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructore to access all error information 
    Stack Trace: 
    [SoapException: ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructore to access all error information]
       Microsoft.Office.Project.Server.WebServiceProxy.PWA.WorkflowGetProjectDrilldownInformation(Guid projectUid, String userPropToClear, Boolean bCheckOutProject) +401
       Microsoft.Office.Project.PWA.ApplicationPages.ProjectDrillDownPage.OnLoad(EventArgs e) +822
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
     And also when i try to open the document that associated with the project in project center it gives me an error like this :
    Exception Details: System.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructore
    to access all error information
    Source Error:
    Line 12: bool LoadLinkItemsPage = (Request.QueryString["Task"] != null);
    Line 13:
    Line 14: ProjectWSSInfoDataSet ds = PJContext.Current.PSI.WssInteropWebService.ReadWssData(ProjectGuid);
    Line 15: if (ds != null && ds.ProjWssInfo.Rows.Count > 0)
    Line 16: {
    Source File: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\PWA\COMMON\wssnav.aspx    Line: 14 
    Stack Trace:
    [SoapException: ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructore to access all error information]
    Microsoft.Office.Project.Server.WebServiceProxy.WssInterop.ReadWssData(Guid projectUID) +377
    ASP._layouts_pwa_common_wssnav_aspx.PJWebPage_OnLoad(EventArgs e) in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\PWA\COMMON\wssnav.aspx:14
    Microsoft.Office.Project.PWA.PJWebPage.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +66
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    has anyone experienced this
    before and might be able to help? Thank you!

    For what it's worth, given the age of this question, I've found that stopping and starting the Project Application Service on each server via Central Admin is less disruptive to the rest of your farm when using Project Server in a larger SharePoint
    farm.
    IISRESET will cause active user sessions to be disconnected and could result in lost data.
    I also found that recycling the app pool associated with my Project Server web application in IIS and restarting the web site did not resolve this situation so the IISRESET is not a guaranteed fix.
    Targeting only the Project Application Service from Central Admin removes this minor risk and actually restored access to our Project Sites.
    N03L.

  • Adding Project Name in OTL Time Card

    Hello All,
    I have done the following Changes to display Project Name in OTL time Card in R12.1.3 with no luck, please let me know.
    1. Added Attribute28 as PROJECTNAME for Context - PROJECTS in OTL INformation Types - DFF
    2. Using AK Html Forms, Added HXC_CUI_PROJECT_NAME to HXC_CUI_TIMECARD
    3. Added Mapping PROJECTNAME
    4. Ran the Generate Flexfield and Mapping Information
    5. Modified and uploaded the ldt
    6. Made Changes to Preferences using OTL Application Developer to look at latest layout
    7. Bounced Apache Server
    BEGIN HXC_LAYOUTS "ZEN_PROJECTS-TIMECARD" "HXC"
    OWNER = "RSREENIV"
    DISPLAY_LAYOUT_NAME = "Z Projects Timecard Layout"
    LAYOUT_TYPE = "TIMECARD"
    TOP_LEVEL_REGION_CODE = "HXCCONFIGTESTCUI"
    LAST_UPDATE_DATE = "2012/01/06"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Timecard Layout - Project"
    OWNER = "ORACLE"
    QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
    QUALIFIER_ATTRIBUTE1 = "ProjectLOVVO"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "HXC_CUI_PROJECT_LOV"
    QUALIFIER_ATTRIBUTE4 = "809"
    QUALIFIER_ATTRIBUTE5 = "12"
    #QUALIFIER_ATTRIBUTE6 ="HxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECT|RESULT|N|HxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N"
    QUALIFIER_ATTRIBUTE6 ="HxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECT|RESULT|N|HxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N|HxcCuiProjectName|PROJECTNAME|RESULT|N"
    QUALIFIER_ATTRIBUTE8 = "ProjectNumber"
    QUALIFIER_ATTRIBUTE9 = "ProjectId#NUMBER"
    QUALIFIER_ATTRIBUTE10 = "oracle.apps.hxc.selfservice.timecard.server.ProjectLOVVO"
    QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    QUALIFIER_ATTRIBUTE27 = "Attribute1"
    QUALIFIER_ATTRIBUTE28 = "PROJECT"
    LAST_UPDATE_DATE = "2004/05/24"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    ### Project Name Component start ###
    BEGIN HXC_LAYOUT_COMPONENTS "Projects Timecard Layout - Project Name"
    OWNER = "ORACLE"
    COMPONENT_VALUE = "PROJECTNAME"
    REGION_CODE = "HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "HXC_CUI_PROJECT_NAME"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "215"
    COMPONENT_DEFINITION = "TEXT_FIELD"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT = "Projects Timecard Layout - Day Scope Building blocks for worker timecard matrix"
    LAST_UPDATE_DATE = "2004/05/24"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Timecard Layout - Project Name"
    OWNER = "ORACLE"
    QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
    # Show Label (Component)
    QUALIFIER_ATTRIBUTE1 = "N"
    # Show Label (Parent Component)
    QUALIFIER_ATTRIBUTE2 = "N"
    # Field Width
    QUALIFIER_ATTRIBUTE3 = "20"
    # Field Height
    QUALIFIER_ATTRIBUTE4 = "1"
    # Style Class
    QUALIFIER_ATTRIBUTE17 = "OraInlineInfoText"
    # Display On New Line
    QUALIFIER_ATTRIBUTE20 = "N"
    # Show Outside Building Block
    QUALIFIER_ATTRIBUTE21 = "Y"
    # Outside Direction
    QUALIFIER_ATTRIBUTE22 = "L"
    # Access Method
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    # Context
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    # View Object Attribute
    QUALIFIER_ATTRIBUTE27 = "Attribute28"
    # Component Alias
    QUALIFIER_ATTRIBUTE28 = "PROJECTNAME"
    # Read Only
    QUALIFIER_ATTRIBUTE30 = "Y"
    LAST_UPDATE_DATE = "2004/05/24"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    ### Project Name Component end ###
    Edited by: 891594 on Jan 6, 2012 11:40 AM
    Edited by: 891594 on Jan 6, 2012 11:54 AM

    In extended controller processRequest method:
    Get the project ID, asssuming that you are passing project id through hash map.
    String prjId = pageContext.getParameter("ProectId_Parameter");
    Default the LOV item value using:
    OAMessageLovInputBean msglov = (OAMessageLovInputBean)webBean.findChildRecursive("ProjectId");
    if(msglov != null)
    msglov.setText(pageContext,"Hello");
    -Anand

  • Linked content using RH project name for topic title instead of FM file/heading name

    Anyone seen this before? (and, yes, for anyone who is interested, the epub of my book should be available once I get this solved)
    -Matt
    PS: the htm filename is fine, it's just the topic title that's odd.
    Message was edited by: mattrsullivan

    I'm pretty sure that was in reference to setting Topic Title markers...not something I want to do in a 700 page book!
    More info: The book processes and validates a clean EPUB if I omit the index, and throws 300+ errors when I include the index.
    Via Notepad++. the index shows <section name=(the project name)>, so I imagine it's taking offense at the eleventy-six files with the exact same topic identifier.
    Anyone seen this before??
    -Matt

  • CUSTOM DOCUMENT over internet file name convention

    Hi ,
    I am sending an OAGIS xml file(CUSTOM DOCUMENT over internet) through interal delivery channel to our supplier, I am getting an below error.
    I got the same error while processing an EDI transaction, I change the file name, and then it processed successfully
    ex: Penske_850_4010_1_25
    in the same way for sending an file(CUSTOM DOCUMENT over internet) , do we have any file naming convention
    I tried with Benchmark_850_4010_1_25, it showing a 2nd error.
    Please help me to resolve this
    Machine Info: (essapp000-u008.emrsn.com)
    Description: Make sure the trading partner has name, type, and value information
    StackTrace:
    Error -: AIP-50548: Trading partner agreement lookup failed as From trading partner cannot be identified
         at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:199)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:589)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:221)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1061)
         at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
         at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
         at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)
    and Machine Info: (essapp000-u008.emrsn.com)
    Description: Unable to identify the trading partner agreement from the given input values. Also verify agreement effectiveToDate
    StackTrace:
    Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "Emerson", To party[NAME] "Benchmark", Business action name "null"; also verify agreement effectiveToDate
         at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
         at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:589)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:221)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1061)
         at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
         at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
         at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)

    Hi,
    I used to get "Unable to identify the trading partner agreemen" due to below reasions,
    1. Agreement is not deployed properly. Please check whether deployed agreement is in active state.
    2. While creating the Operational Capability, please check whether initiator and responder defined correctly.
    For Outbound, Please check Remote trading partner Is Initiator should be false and Host trading partner Is Initiator should be true.
    As far as I know, File name convention should be folllowed for FTP/File and not for HTTP.

  • How to make project name / no. visible in suppor message?

    Hello,
    When creating a support message (NOTIF_CREATE), I can provide a project name /project number with the message.
    This info is also available, when starting the transaction monitor (CRM_DNO_MONITOR).
    But when looking into the message itself, this information is not available anymore.
    Where can I make this info visible?
    I am assuming, that the project is somehow linked to the support message and that the project is available in principle.
    Can anyone provide me a way how to link / show the project within the support message?
    Thanks and Regards,
    Jan

    HI
    another helpful link i found, but nt sure that clear ur issue
    [Re: Field "Subject" in the web service desk (Incident Management)|Re: Field "Subject" in the web service desk (Incident Management)]
    [Re: User Status profile in Service Desk|Re: User Status profile in Service Desk]
    jansi

  • How to export images with Project Name to be visable by Photo Mechanic.

    Hello all,
    I am trying to create another complete set of my images, that can be edited by outside programs (Photo Mechanic and/or Lightroom). I am doing this by exporting the images out of a managed library. I want the Aperture "*Project name*" and Rating fields to be passed to Photo Mechanic. And then I want PM to be able to do queries on the Metadata fields containing the Aperture Project Name and Rating. My intention is to use Photo Mechanic to rename the images and relocate the images but still keep track of the Rating and Project Name.
    In Aperture, when I add a custom metadata item under IPTC and export the image, that custom metadata item does not show up in PM or Bridge for that matter.
    How can I export images and have the Rating and *Project Name* be exported and visible in PM or LR or Bridge?
    Thanks in advance,
    Dick B.

    There is not an easy way but Ian Wood's tool might help you out.
    Personally I would just use the "subfolder format" drop down options available in all of the export and relocate dialogs to sort them into directories that are based on Aperture project name - easy enough considering those other tools use file system based folders for there organization structure anyway.
    RB

  • File name convention when accessing NI 9802 from RT Host vi.

    I have a question regarding the file name convention to use when writing files to a NI 9802 module. 
    Just to note, I'm using a 9014 controller with a 9104 chassis, LabVIEW 8.6 RT/FPGA, and NI-RIO 3.0.
    I've read a post regarding the subject.  The post says to use the DOS 8.3 naming convention in the form of "CRIO-X##.BIN".  All uppercase letters.  See http://digital.ni.com/public.nsf/allkb/D15720EB0F60FAC58625732700070081.  (Also, I guess from reading the post that you're limited to 255 files per directory, maybe?)  The built in example for writing data to a file on the 9802 from a RT Host vi shows using "Example.txt" as the filename.  However, the built in example for writing directly to the 9802 from the FPGA using Methods does use the "CRIO-X##.BIN" convention.
    I guess what I'd like to know is this:  Does writing data to the 9802 from the RT Host vi require using the "CRIO-X##.BIN" convention (to be efficient, anyways)?  I was hoping to use filenames that actually had the date/time in the name (e.g. Node2_09_04_59__10_30_2008.txt).  Does the "CRIO-X##.BIN" convention (DOS 8.3) only need to be used when writing directly to the 9802 through Method Nodes?
    I'm not writing lots of data real fast, but rather, recording some data for long periods of time (many days).  Additionally, I plan on writing the data as text.
    Any info would be appreciated.  Thanks.
    Stephen

    Hi Stephen,
    The CRIO-X##.BIN naming restriction comes only from the limitations of the FPGA.  We sometimes encourage people to follow this naming convention only because we don't want people using RT to suddenly realize they'd now like to use it from FPGA and now they have to rename all their files.  If you are only using 9802 from RT you can names your files anything that's valid in the FAT16 filesystem.  This includes names that are longer than 8.3.
    The reason for all this is that in the FPGA case, the entire filesystem must be implemented on the FPGA.  We have to make lots of trade offs for FPGA space.  When you use the 9802 from RT the filesystem is implemented on the controller and is a more complete implementation.
    You are also correct that from FPGA you are limited to 255 files.  Post again if you have any other 9802 questions.
    Ross
    cRIO R&D 
    Ross Houston
    Senior Software Engineer
    RIO Software R&D

  • Project Center - How to Update / Correct the URL/Link stored in the Project Name field.

    In the Project Center list, the link in the "Project Name" field for some projects take you the the project details page and some display the project schedule. How can I update/correct the links to display the project schedule?

    Reason for this behavior is your enterprise project template which your project manager used for creating project.
    We create Enterprise project template, associate PDP , Schedule, workflow according to our need then we use these Enterprise project template for project creation.
    In your case some of the project manager must have used basic template( default template) for some project, Custom Enterprise template for some project and f you are using workflow then workflow template for some project, that is why you are able to see
    PDP page first for some project and Schedule page for some project. 
    In order to change it you can change default PDP as schedule for Enterprise project template then open project save and publish them.
    kirtesh

  • 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.

  • Add Project Name and description to the Projects Notification Layout in OTL

    Hi,
    I want to add the Project name and description to the OTL Projects Notification Layout. I have tried the following code to change the ldt file.
    BEGIN HXC_LAYOUT_COMPONENTS "Projects Notification Layout - Project Name"
    OWNER = "ORACLE"
    COMPONENT_VALUE = "PROJECTNAME"
    REGION_CODE = "CUS_PROJECT_PROMPT"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "HXC_CUI_PROJECT_NAME"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "181"
    COMPONENT_DEFINITION = "LOV"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT =
    "Projects Notification Layout - Day building blocks - matrix layout"
    LAST_UPDATE_DATE = "2004/05/24"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Notification Layout - Project Name"
    OWNER = "ORACLE"
    QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
    QUALIFIER_ATTRIBUTE1 = "ProjectBaseLOVVO"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "HXC_CUI_PROJECT_LOV"
    QUALIFIER_ATTRIBUTE4 = "809"
    QUALIFIER_ATTRIBUTE5 = "12"
    QUALIFIER_ATTRIBUTE6 =
    "HxcCuiProjectName|PROJECTNAME-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECTNAME|RESULT|N|HxcCuiProjectName|PROJECTNAME-DISPLAY|RESULT|N"
    QUALIFIER_ATTRIBUTE8 = "ProjectName"
    QUALIFIER_ATTRIBUTE9 = "ProjectId#NUMBER"
    QUALIFIER_ATTRIBUTE10 =
    "oracle.apps.hxc.selfservice.timecard.server.ProjectBaseLOVVO"
    QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    QUALIFIER_ATTRIBUTE27 = "Attribute8"
    QUALIFIER_ATTRIBUTE28 = "PROJECT_NAME"
    QUALIFIER_ATTRIBUTE30 = "Y"
    LAST_UPDATE_DATE = "2004/05/24"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    I have created a segment PROJECT_NAME (attribute8) to the "PROJECTS" context of "OTL Information Types" DFF. Bouce the apache server.
    I am able to get the prompt but unable to get the data in the column.
    Please help.
    Thanks & Regards,
    Munish

    Hi Also have tried with the following ldt code. In this code I have added the projectname field from the PROJECT LOV and tried to get the value of the projectname into the text field.
    BEGIN HXC_LAYOUT_COMPONENTS "Projects Notification Layout - Project"
    OWNER = "ORACLE"
    COMPONENT_VALUE = "PROJECT"
    REGION_CODE = "HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "HXC_TIMECARD_PROJECT"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "180"
    COMPONENT_DEFINITION = "LOV"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT =
    "Projects Notification Layout - Day building blocks - matrix layout"
    LAST_UPDATE_DATE = "2004/05/24"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Notification Layout - Project"
    OWNER = "ORACLE"
    QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
    QUALIFIER_ATTRIBUTE1 = "ProjectBaseLOVVO"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "HXC_CUI_PROJECT_LOV"
    QUALIFIER_ATTRIBUTE4 = "809"
    QUALIFIER_ATTRIBUTE5 = "12"
    QUALIFIER_ATTRIBUTE6 =
    "HxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECT|RESULT|N|HxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N|HxcCuiProjectName|PROJNAME|RESULT|N"
    QUALIFIER_ATTRIBUTE8 = "ProjectNumber"
    QUALIFIER_ATTRIBUTE9 = "ProjectId#NUMBER"
    QUALIFIER_ATTRIBUTE10 =
    "oracle.apps.hxc.selfservice.timecard.server.ProjectBaseLOVVO"
    QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    QUALIFIER_ATTRIBUTE27 = "Attribute1"
    QUALIFIER_ATTRIBUTE28 = "PROJECT"
    QUALIFIER_ATTRIBUTE30 = "Y"
    LAST_UPDATE_DATE = "2004/05/24"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    BEGIN HXC_LAYOUT_COMPONENTS "Projects Notification Layout - Project Name"
    OWNER = "CUSTOM"
    COMPONENT_VALUE = "PROJECTNAME"
    SEQUENCE = "181"
    COMPONENT_DEFINITION = "TEXT_FIELD"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT = "Projects Notification Layout - Day building blocks - matrix layout"
    REGION_CODE = "CUS_PROJECT_PROMPT"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "HXC_CUI_PROJECT_NAME"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Notification Layout - Project Name"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
    QUALIFIER_ATTRIBUTE1 = "N"
    QUALIFIER_ATTRIBUTE2 = "NODISPLAYCACHE"
    QUALIFIER_ATTRIBUTE3 = "10"
    QUALIFIER_ATTRIBUTE4 = "1"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    QUALIFIER_ATTRIBUTE27 = "Attribute20"
    QUALIFIER_ATTRIBUTE28 = "PROJNAME"
    QUALIFIER_ATTRIBUTE30 = "Y"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    But no data is displayed.
    I have also tried with the QUALIFIER_ATTRIBUTE27 = "Attribute8" as the attribute8 is being defined in the PROJECTS context of the "OTL Information Types" DFF.
    Thanks & regards,
    Munish

Maybe you are looking for

  • Is there any way to retrieve accidentally deleted source clips?

    I accidentally deleted source clips for a video project, and now the viewer won't show my video (although I can still see the frames when I run my cursor over the project). Is there any way to retrieve the files or show iMovie where to find the sourc

  • Rights enabled PDF From and XML Data Collection

    Hello, Requirements is something in this line..Convert 3 page word doc- with name field,date field and few radio buttons to PDF.These would be send then send back via email, for further processing.Interested in the actual data rather than the PDF for

  • HDD clone on a new HDD

    Hi, my 500Mhz ibook's HDD is coming up with a red failing (SMART). If I make a disc image of this HDD and park it on our iMac, then replace the old HDD with a new higher capacity HDD, can I then boot the new disc from the disc image or am I completel

  • Image not displayed on 10g Tutorial page

    Hi , the imagew on the "Proactively Managing Space by Using the Segment Advisor" 10g tutorial are not displayed. Could someone fix it please? Thanks in advance Binh URL is : http://www.oracle.com/technology/obe/10gr2_db_single/manage/space/space_otn.

  • Recovering IPS-4260 6.0 that is not completing boot sequence

    Hi all, I have a 4260 with 6.0 Image that is not completing the booting sequence, it stops at "grub". As you are all aware, the 4260 do not have CD drive to boot from. Any idea how to recover it. I downloaded the recovery image with .PKG extension bu