Custom validation template

Hello,
I have issue with validation template.
Order Management Super User ->Setup->Rules->Security->Validation templates
I made own validation template. It is the same like "Regular Line". I run Tools -> Create validation packages. After this I go to Order Management Super User-> Setup ->Rules->Security->Processing Constraints and I made own constraint. My new constrain give new version number in sales order. When I put my own validation template this constraint does not work. When I put "Regular Line" it works fine and I have new version in sales order. I run generate constraints validation packages but my own validation templates does not work.
Where can I see package with my own validation template, because I am afraid that request "Create validation packages" does not generate it.
Regards,
Luko
OeBS 11.5.10.2

Hi Luko,
The generated validation packages all live in the apps schema. The easiest way to get the name of your package(s) is from the validation_pkg column of the oe_pc_validation_pkgs table. The format is:
OE_{ +a+  }PC{ +b+ }_{ +c+ }_{ +d+ }
where:
a = the validating_entity_id
b = the validation_entity_id
c = the validation entity short name (LINE, ORDER, BLKTHDR, HDRADJ etc.)
d = the validation template short name (i.e. the short name you used when defining the template)
Regards,
Jon

Similar Messages

  • Implementing Custom Validation Logic for Payment Disbursements

    Hi All,
    Is there anyone here, who has implemented Custom Validation Logic for disbursements in Oracle payments.
    Theory: Under Payments Setup Administrator -> Formats -> Formats, we can setup a payment format and even attach a XML template. Apart from this we can setup Pre-defined validations or user Defined validations.
    For Pre-defined validations / seeded validations, Oracle has provided an API
    IBY_VALIDATIONSETS_PUB.evaluateCondition. We can use this API, and call a custom package by using the keyword 'CUSTOM' in the call.
    Has anyone played around with this package and successfully implemented custom validations. Does anyone have a sample code on how to implement this. The Payment Manager Implementation guide is of little help.
    Thanks

    This document was very helpful to me in creating a custom validation.
    http://docs.oracle.com/cd/E18727_01/doc.121/e13416/T387353T419293.htm

  • Problems producing W3C-valid template-built pages

    Folks:
    DW CS3 on Intel Mac
    CMX Design-Time Extension
    I would like my site to pass the W3C markup validator,
    http://validator.w3.org/.
    My site design is straightforward: I've got a single
    custom-built template page, "index.php" for the layout of my site.
    There's no content in this file. The header of this file contains a
    link to my site's single master CSS style-sheet.
    All content comes from one of over 100 html "contact-chunk"
    files, each of which contains only "bare" HTML, no header or
    trailer material at all, no <!DOCTYPE...> nor <html>
    ... <head> ... </head> ... <body> ..
    </body> stuff at all. One of these contact-chunk files is
    included at each page-load. The details are not important.
    Wait, I lied: Each of those contact-chunk files contains a
    bare link to the site's master CSS style-sheet, like this:
    <link href="/TheMasterStyleSheet.css" rel="stylesheet"
    type="text/css">
    "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else. DW requires just the link so it can
    detect the site-wide style-sheet and let me apply styles from it to
    the "content-chunk" files.
    When complete pages are served to clients, that extra link
    would ordinarily mean the browser would see two different external
    style-sheet links from the composite page at load-time, which is is
    not allowed. This is in fact flagged as an error by W3C validator.
    There is no sense in giving browsers known-invalid code! It
    makes total sense to me that links to external styles-sheets need
    to occur just once,in the header of such composites as they are
    seen by browsers. It also makes sense to me that the contact chunk
    files could not contain <html> ... <head> ...
    </head> ... <body> .. </body> tags because these
    would be nested within the <body>... </body? structure in
    the template page. Confusion!
    Thanks to the DW designers, there's a way to avoid sending
    the second style-sheet link: DW's Design-Time Style-Sheet mechanism
    allows me declare specific style-sheet links as Design-Time ONLY;
    the specified links are stripped before the files are uploaded. DW
    CS3 supports only page-by-page declarations, But with the
    minimal-cost "CMX Design-time" extension (
    http://www.communitymx.com/abstract.cfm?CID=61265)
    added, I can make these declarations on a site-wide basis. Cool!
    All the above seems quite reasonable and how-it-must-be for
    template-include designs. However,I have found two problems:
    1. The Design-Time Style Sheet Mechanism works unpredictably
    When I tell the CMX Design-time Extension to exclude my
    master CSS style-sheet link from all .html files, site-wide, it
    apparently does what it is required to make this happen: it creates
    .mno files in _notes folders corresponding to all .html files in
    the source tree. (The only files with .html extensions in my source
    tree are such content-chunk files.) Without the extension, I'd end
    up with identical files after manually applying Text--> CSS
    Styles -->Design-Time individually to all the content-chunk
    files.
    I did have some successful test runs on individual content
    chunk files, so I know the Design-Time Mechanism is fundamentally
    sound.
    Yes, I am certain I re-PUT all the .html files to the server
    to allow the specified CSS link in each to be stripped. There is
    only one external style-sheet, and I'm certain I specified that
    one. Yes, I looked in the DW and extension documentation for
    additional information.
    2. This Design-Time Style Sheet mechanism is completely
    ineffective for embedded styles in content-chunk files..
    I think embedded styles are completely legal, and make
    perfect sense when particular styles are needed only for one source
    file. A few of my contact-chunk files contain these.
    My questions:
    Question 1: How to assure that the DW Design-Time mechanism
    is activated and works consistently? Or how to debug it? What
    exactly should appear in the _notes/*.mno files?
    Question 2: Assuming both my development machine and the
    server are running Unix, is there any downside to picking a
    distinctive extension for content-chunk files? Any standard? How
    about ".ihtml" e.g., "foo.ihtml"?
    Question 3: Is there any alternative that preserves embedded
    styles in my design? (I think it is inevitable that I'll need to
    move my local styles to the master CSS style-sheet or use in-line
    styles. I'm just checking in case I've missed a clever
    alternative.)
    Question 4: I'm doing a lot of work to make this design work
    with site-wide CSS, and each time I solve one issue, another one
    pops up. In my experience, that pattern either means I'm trying to
    use a subtle, complex mechanism, which simply takes a while to get
    right. Or that I've committed a fundamental design error, and
    there's possibly a much easier way to accomplish the same result.
    Which?
    TIA,
    Henry
    TIA,
    Henry

    > "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else.
    > DW
    > requires just the link so it can detect the site-wide
    style-sheet and let
    > me
    > apply styles from it to the "content-chunk" files.
    Won't work. The chunks are going in the body. Links to
    stylesheets in the
    body are invalid HTML and ignored by the browsers.
    > When complete pages are served to clients, that extra
    link would
    > ordinarily
    > mean the browser would see two different external
    style-sheet links from
    > the
    > composite page at load-time, which is is not allowed.
    This is in fact
    > flagged
    > as an error by W3C validator.
    This makes no sense. A page can have oodles of links to
    external
    stylesheets, but they must all be in the head of the page.
    > 1. The Design-Time Style Sheet Mechanism works
    unpredictably
    Perhaps it's more accurate to say that the CMX extension
    works unpredictably
    with DT Stylesheets. I've never seen an instance of DT
    stylesheets failing,
    either in my hands or in anyone else's. Your report is the
    first. I think
    CMX will have to help you with this one.
    > 2. This Design-Time Style Sheet mechanism is completely
    ineffective for
    > embedded styles in content-chunk files..
    >
    > I think embedded styles are completely legal, and make
    perfect sense when
    > particular styles are needed only for one source file. A
    few of my
    > contact-chunk files contain these.
    Nope - embedded styles are illegal in this sense.
    > Question 2: Assuming both my development machine and the
    server are
    > running
    > Unix, is there any downside to picking a distinctive
    extension for
    > content-chunk files? Any standard? How about ".ihtml"
    e.g.,
    > "foo.ihtml"?
    Nope. You could use 'monkeybutt' if you wanted. However, if
    you want DW
    to recognize that extension as containing HTML code you would
    need to
    'register' it with DW -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=1
    > Question 3: Is there any alternative that preserves
    embedded styles in my
    > design? (I think it is inevitable that I'll need to move
    my local styles
    > to
    > the master CSS style-sheet or use in-line styles. I'm
    just checking in
    > case
    > I've missed a clever alternative.)
    Yes, you can give each "chunk" chunk-specific container
    names, and place the
    desired chunk-specific CSS selectors in the parent CSS.
    > Question 4: I'm doing a lot of work to make this design
    work with
    > site-wide
    > CSS, and each time I solve one issue, another one pops
    up. In my
    > experience,
    > that pattern either means I'm trying to use a subtle,
    complex mechanism,
    > which
    > simply takes a while to get right. Or that I've
    committed a fundamental
    > design
    > error, and there's possibly a much easier way to
    accomplish the same
    > result.
    > Which?
    The latter, I believe.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "hen3ry" <[email protected]> wrote in
    message
    news:[email protected]...
    > Folks:
    >
    > DW CS3 on Intel Mac
    > CMX Design-Time Extension
    >
    > I would like my site to pass the W3C markup validator,
    >
    http://validator.w3.org/.
    >
    > My site design is straightforward: I've got a single
    custom-built
    > template
    > page, "index.php" for the layout of my site. There's no
    content in this
    > file.
    > The header of this file contains a link to my site's
    single master CSS
    > style-sheet.
    >
    > All content comes from one of over 100 html
    "contact-chunk" files, each of
    > which contains only "bare" HTML, no header or trailer
    material at all, no
    > <!DOCTYPE...> nor <html> ... <head>
    ... </head> ... <body> .. </body>
    > stuff
    > at all. One of these contact-chunk files is included at
    each page-load.
    > The
    > details are not important.
    >
    > Wait, I lied: Each of those contact-chunk files contains
    a bare link to
    > the
    > site's master CSS style-sheet, like this:
    >
    > <link href="/TheMasterStyleSheet.css"
    rel="stylesheet"
    > type="text/css">
    >
    > "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else.
    > DW
    > requires just the link so it can detect the site-wide
    style-sheet and let
    > me
    > apply styles from it to the "content-chunk" files.
    >
    > When complete pages are served to clients, that extra
    link would
    > ordinarily
    > mean the browser would see two different external
    style-sheet links from
    > the
    > composite page at load-time, which is is not allowed.
    This is in fact
    > flagged
    > as an error by W3C validator.
    >
    > There is no sense in giving browsers known-invalid code!
    It makes total
    > sense to me that links to external styles-sheets need to
    occur just
    > once,in the
    > header of such composites as they are seen by browsers.
    It also makes
    > sense
    > to me that the contact chunk files could not contain
    <html> ... <head> ...
    > </head> ... <body> .. </body> tags
    because these would be nested within
    > the
    > <body>... </body? structure in the template
    page. Confusion!
    >
    > Thanks to the DW designers, there's a way to avoid
    sending the second
    > style-sheet link: DW's Design-Time Style-Sheet mechanism
    allows me
    > declare
    > specific style-sheet links as Design-Time ONLY; the
    specified links are
    > stripped before the files are uploaded. DW CS3 supports
    only page-by-page
    > declarations, But with the minimal-cost "CMX
    Design-time" extension
    > (
    http://www.communitymx.com/abstract.cfm?CID=61265)
    added, I can make
    > these
    > declarations on a site-wide basis. Cool!
    >
    > All the above seems quite reasonable and how-it-must-be
    for
    > template-include
    > designs. However,I have found two problems:
    >
    > 1. The Design-Time Style Sheet Mechanism works
    unpredictably
    >
    > When I tell the CMX Design-time Extension to exclude my
    master CSS
    > style-sheet link from all .html files, site-wide, it
    apparently does what
    > it is
    > required to make this happen: it creates .mno files in
    _notes folders
    > corresponding to all .html files in the source tree.
    (The only files with
    > .html extensions in my source tree are such
    content-chunk files.) Without
    > the
    > extension, I'd end up with identical files after
    manually applying Text-->
    > CSS
    > Styles -->Design-Time individually to all the
    content-chunk files.
    >
    > I did have some successful test runs on individual
    content chunk files, so
    > I
    > know the Design-Time Mechanism is fundamentally sound.
    >
    > Yes, I am certain I re-PUT all the .html files to the
    server to allow the
    > specified CSS link in each to be stripped. There is only
    one external
    > style-sheet, and I'm certain I specified that one. Yes,
    I looked in the DW
    > and
    > extension documentation for additional information.
    >
    >
    > 2. This Design-Time Style Sheet mechanism is completely
    ineffective for
    > embedded styles in content-chunk files..
    >
    > I think embedded styles are completely legal, and make
    perfect sense when
    > particular styles are needed only for one source file. A
    few of my
    > contact-chunk files contain these.
    >
    > My questions:
    >
    > Question 1: How to assure that the DW Design-Time
    mechanism is activated
    > and
    > works consistently? Or how to debug it? What exactly
    should appear in
    > the
    > _notes/*.mno files?
    >
    > Question 2: Assuming both my development machine and the
    server are
    > running
    > Unix, is there any downside to picking a distinctive
    extension for
    > content-chunk files? Any standard? How about ".ihtml"
    e.g.,
    > "foo.ihtml"?
    >
    > Question 3: Is there any alternative that preserves
    embedded styles in my
    > design? (I think it is inevitable that I'll need to move
    my local styles
    > to
    > the master CSS style-sheet or use in-line styles. I'm
    just checking in
    > case
    > I've missed a clever alternative.)
    >
    > Question 4: I'm doing a lot of work to make this design
    work with
    > site-wide
    > CSS, and each time I solve one issue, another one pops
    up. In my
    > experience,
    > that pattern either means I'm trying to use a subtle,
    complex mechanism,
    > which
    > simply takes a while to get right. Or that I've
    committed a fundamental
    > design
    > error, and there's possibly a much easier way to
    accomplish the same
    > result.
    > Which?
    >
    > TIA,
    >
    > Henry
    >
    > TIA,
    >
    > Henry
    >
    >

  • OTL Time card: Where to write custom validations

    Hi,
    I need to write some validations after the user submits time card.
    WHat is the package in which I can write these custom validations? Does oracle recommend any specific package?
    Also, If i have two projects,
    Time card period: 01-01-12 to 01-08-12
    Project 1 ends on 01-05-12
    Project 2 starts from 01-06-12
    Would it be possible to restrict project lov if user tries to enter project on 01-07-12, not to use project 1?
    if not possible where can I make that validation in the code?
    Appreciate your help.

    Hi,
    I will answering your doubts no 3 and 4
    Instead of using XML template, I would suggest you to use WED Adi, which can be called from the OTL page
    button. And at that time the only thing u have to upload server with the WebAdi template.
    Here you will not need to build a custom table, a view will solve the purpose. And there is not need of further maintenance
    For the file to be read only you can include it in the code while extending your respective controller class.
    But Oracle recommend not to extend controller class. Let the client be aware of it, that it requires the extension
    of controller class of the page. If he thumps up the extension of controller class then your life becomes pretty simple.
    Regards,
    Pankaj Kedia

  • How to find validation template used in what case?

    validation template name Return Retrobilled Line
    How to find this validation template used or worked in what case?
    I check the Processing Constraints,but not operation or condition select this validation template.

    Hello,
    Below are some tips:
    1. If custom program- SEARCH for "TABLES" or "SELECT" stmt.
    2. The full-proof way will be to activate SQL Trace. Goto tcode ST05, check SQL Trace & then activate trace.
        Execute the program. After execution is complete, deactivate trace & then display trace. You will get all the tables which are being used.
    BR,
    Suhas

  • Custom RTF templates in Oracle Core Contracts ..

    Hello:
    We want to create custom RTF templates in Oracle Core Contracts along with custom data templates.
    We do not want to use XSL-FO templates since we are finding this too complex to work with ... also the fact that the XML data is being generated by some internal OAF processes that we cannot control.
    This is unnecessarily too complex for us.
    Can we create our own reporting using XML -Publisher and integrate it in the system ?
    Any thoughts on this would be appreciated ... Yesh

    Srini:
    I did read those pages and unless I am missing something .. it is basically saying the follwing:
    Copy the seeded XSL-FO templates and make changes to them and then upload them back. I have no real access to the xml data since it is somehow pre-generated. I do not have a choice of using RTF templates along with the ease of Word based formatting.
    The above process goes against the way in which we can write our own reports in XMLP:
    (a) Create our own data templates (use our own SQL)
    (b) Create our own layout templates (using RTF or XSl_FO)
    So I am stuck into undertsanding .... OAF, Java API's ,etc that I should not have to understand to generate a report ...
    yesh

  • Create a custom web template using VS 2012 with web features,site features sections applied

    hi,
     Want to create a  custom web template using VS 2012  in my SP 2013 environment.  i know "Vesku" has posted a great artice on this [  based on prev. version of SP].
    here -
    http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx
    i am  looking for a code based article  which has step by step process which provides how to add the site features, web features and attach the eventreceivers etc etc on sitecollection creation when i apply this template from central admin. 
    can anyone provide me any links / any source how to create a custom web template with one / two  custom features -  site features element and web features element , / master page etc ....
    I am stuck with this. as part of my reqmnt, i need to create a webtemplate with all the customlistinstances, custompagelayouts, custom masterpages, custom appln pages, custom web parts.
    help is appreciated !
    Das

    The problem is that Web Templates are deployed to a gallery in a site collection and aren't available in Central Admin when creating a new site collection.  YOu have to create the site collection without choosing a template and then choose your web
    template when you first access the root site in the site collection.  Here's an article that discusses that process here:
    http://sharepointchick.com/archive/2011/02/10/using-web-templates-to-create-site-collections.aspx
    Other than that Vesa's article is still the best one and works essentially the same in 2013 as it does in 2010.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • Perform custom validation on invoices created via iSupplier portal in R12

    Hello,
    It seems that since R12, invoices created on iSupplier portal are no longer loaded via Payables open interface tables (while ASBN's still are). It is nice that they are loaded immediately but now we do not have any way to perform custom validation that we normally do via AP_INTERFACE_WORKFLOW_PKG.do_custom_validation procedure.
    Is there any way to modify how iSupplier portal inserts Invoice data into AP tables? In particular we would like to choose specific document category for certain suppliers.
    Many thanks in advance,
    Kamil

    Hi Friends,
    Apologies to have put this in SCM-Costing Category. I just posted the same thing in Financials Category.
    Please ignore this, if found irrelevant under this category.
    Thanks,
    AAR

  • Problem with custom validated data types using domain on 11g

    Hi,
    I ' m on a migration process from 10 to 11 and I notice that a custom domain didn't work correctly anymore
    to be more specific every time that I was submiting a page a was getting an error cannot convert from myclass to oracle.jbo.domain.String
    I search the forum and I saw a similar problem
    Cannot convert type class java.lang.String to class oracle.jbo.domain.Clob
    at which Frank says that it is a known bug and suggests a work around.
    I use the workaround and it worked but some more issues came up:
    1. If the validation fails I get the error that I throw at the validate method not in a popup with just my message
    but in the whole window with the whole error stack, meaning that my custom validation is not handled like native ADF validation errors by
    the framework (at 10.1.3.4 worked OK)
    2 If i dont give a value at the attribute in the validation phase mdata variable is not null but is length is zero (at 10.1.3.4 its value was null)
    public class AFM implements DomainInterface, Serializable {
    public AFM(String val) {
    mData = new String(val);
    validate();
    private String mData;
    protected void validate() {
    // ### Implement custom domain validation logic here. ###
    mData==null // returns false
    mData.length()==0 // returns true
    3. Can i force validation only for new or updated values? I saw that the validation process is taking place every time a row is fetched.
    This is not only a performance issue, the bigger problem is that if a fetched from the DB value fails the validation an error is return but the
    user cannot change the value to correct it.
    TIA
    Tilemahos

    since i don't get any answer I wonder if i should have use a more provocative title like
    "custom domains in 11g don't work"
    is it true?
    Tilemahos

  • Custom Validator Class not found in Class Path

    I have developed a custom validator class for User Self Registration request. However, when OIM is unable to find the custom validator class and generates teh following error:
    [oracle.iam.platform.pluginframework] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: 76584c4849877d50:-45bb4068:13c8294bd72:-8000-0000000000001236,0] [SRC_CLASS: oracle.iam.platform.pluginframework.InternalStore] [APP: oim#11.1.1.3.0] [SRC_METHOD: getPluginInstance] Not able to load class com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator from classpath
    At what path should the jar file be placed?
    UZ

    I am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
    -> SelfRegisterUserCustomValidator.zip
    ->Plugin.xml
    ->/lib/SelfRegisterUserCustomValidator.jar
    ->/resources/
    Following our contents of plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
    </plugin>
    </plugins>
    </oimplugins>
    Following is the error being generated:
    Enter name (complete file name with path) of the plugin file:
    /u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
    [java] Java Result: 1
    [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
    [echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
    [echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [echo] at java.security.AccessController.doPrivileged(Native Method)
    [echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    [echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit.

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • Custom validation Messages printed more than once :-(

    Hi,
    I have added a Custom Validator to a drop down list box (h:selectOneMenu) and for a text field. and i bound these form elements to the corresponding UIComponent Object in the becking bean. The backing bean is in session scope I have a link which will forward to a different page and i disabled the validation on this link by setting immediate as true.
    But when the user clicks the command link goes second page and then comes back to the first page and click the submit button, the validation error occurs. But to my surprise i am getting the same Validation error message printed twice or thrice (as when we are going to the second page and then comes back and submits).
    If I am correct the Validator corresponding to the component keeps the old error state and then add the new error state.
    I tried to remove one FacesMessage object which i got from Iterator of FacesContext.getMessages() and then tried. but hence also i was getting the same result.
    When i looked at the log, i foud my validator class being invoked twoce (or thrice depending upon the no. of times i went to the secoond page).
    Can you please help me out from this problem?
    Thanking you,
    Sudheesh

    If it is indeed 1.1, I'd recommend trying 1.1_02 [1] and trying again.
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=5220

  • How to create a Custom form Template..

    Hi Eperts,
    I would like to seek a help from you regarding creating a custom form template on custom BO. could you guide me where i have gone wrong in successfully creating a Print form. I am in dead need of this particular solution for a client. It is hampering my entire scenario......
    1. I had created a Custom BO and I am trying to preview the created form on the OIF screen.
    2. I had created a form on above of the custom BO. This created form and form group is activated and configured as of needed by opening it through ALD (Adobe Life Cycle Designer).
    3. I had created a BAC element with some scoping questions and activated it. After activating it i had deployed the Business configuration.
    4. my solution got updated with the created and deployed BAC elements and i had done scoping for those elements to make my created form available.
    5. I can see my form template in Form Template maitaince under Application user managment WOC. I had made it to be available for all users and published.
    6. All the above steps are done success fully with no errors.
    7. When i accessed my custom BO and tried to preview the created form i am unable to view it and i am seeing the following window.
    Could you help me out in solving this or send me across any detailed document regarding this what you had done previously.
    Thanks in advance for your valuable help...
    Regards...
    Hanu K

    It looks like system didn't identify the form template. So please check if the required configuration for "Preview" modal dialog is done properly. In the SDK documentation, refer to section "8.4.3.4 Create a Preview Button for a Print Form"
    If you have already done the steps mentioned in the section 8.4.3.4, but still facing the issue then let me know.
    Best regards,
    Hari

  • How do you create custom validation rule in WS 9.2?!?!?!

    Hello,
    I am using Workshop 9.2. I created a page flow, and want to do some form validations.
    I saw the simple 9.2 example, but it is only good for very basic validation, what if you have to validate the form field against a database, must you write a custom validation rule? HOW would you do this in 9.2 so that will still stay with the workshop/netui paradigm?
    http://beehive.apache.org/docs/1.0.1/netui/validation.html
    Keith

    Hi Keith,
    Staying within the declarative validation framework the answer is probably that you do need to write a custom validation rule and refer to it using the @Jpf.ValidateCustomRule annotation.
    The NetUI Annotation Reference shows how the Struts validations are supported via the framework.
    http://beehive.apache.org/docs/1.0.1/netui/annotations/pageflow_annotations.html
    Specifically, if you look through the @Jpf.Validate* annotations, while most of these are "canned" common validations, there are a few that are more open-ended, such as @Jpf.ValidateMask and @Jpf.ValidateValidWhen.
    Those two let you write the validation logic in the annotation while @Jpf.ValidateCustomeRule only refers to a custom rule in the struts validator file.
    In any case, there is a validation rule editor which should help in authoring and managing the annotations. In the Page Flow Explorer or Page Flow Editor just right click on the action or form bean bean of interest and choose Validation Rules and the appropriate scope.
    I hope that's of some use,
    Troy

Maybe you are looking for