EO Based Validations

Hi
ADF BC Application
I am trying to Keep EO Based Validations in my page.
I have an attribute called Server Name in EO. For this, I want to keep 2 validations.
1. Length should be >=6
2. Should be unique(no duplicates)
For the First Validation, I have used Length Validator like this
Attribute : ServerName
Operator : Greater Than
comparision:char
Enter Length :5
error Message : Server Name should be 6 characters long
For the Second Validation , I have taken list validator.
But , suppose, I give servername lessthan 6 characters then it gives error message for both validations. I dont understand it.
and even for duplicate validation also , it gives error msg even if it is not duplicate
Please Help me.
Thanks

Hi,
Your first validation rule looks correct, maybe there is an error in the second one. Check you have select "List Validator", "Your Attribute", "NotIn", "Query Result" and have entered for query something like "select YourAttribute from YourTable". It seems your second validation rule is systematically called, also it's possible that you selected "In" instead of "NotIn".
Hope that help,
Regards,
Tif

Similar Messages

  • User Level based Validation caching

    Hi,
    This is with references to JSP/JPDK based portlets.
    To implement validation based caching in JSP portlets, the first step I understand is to create our own class that extends JspValidateRenderer and reference this new class in the provider.xml file in the <showPage class=" "> tag for the appropriate Portlet/s.
    The questions I had -
    1) What do I call to cause a change in the version identifier? Do I call getNewVersion() and
    let my implementation of the JspValidateRenderer's getNewVersion()take care of
    setting/updating the version identifier? I dont need to take care of storing the version
    identifier anywhere - is that correct?
    2) How do I implement this if, for eg. events in Portlet A determines if a cached version or a
    new version of Portlet B has to be rendered? In my case Portlet A would be a
    showDetails page of Portlet A collecting data that drives the content in Portlet B.
    So, everytime the html form in Portlet A'showDetails page is submitted, I would like to
    refresh Portlet B, otherwise simply use the cached version. How do I change the version
    identifier in Portlet B, to cause the Portlet A to not use the cached version?
    3) How do I enforce USER level in this model? I didnt see any parameter that accepts the LEVEL in
    validation based caching methods.
    Appreciate any suggestions/help since this is my first attempt at implementing any form of cahing
    regards
    -Ananth Makaram

    Yes. There will be 20000 instances in the case you have mentioned.
    To answer your question "Would that be expensive OR is it a non-issue? "
    - The File Cache is built to handle 10 million cache items efficiently. So, This will NOT be an issue for the cache you are mentioning.
    - Assuming each of the portlet is about 2k. In your case you'd only have about 40MB in case. Even in very big sites the cache size is only about 2GB per mid-tier
    Moreover, Disk space is very Cheap. There are cache clean jobs which clean up the cache regularly to make sure that it does NOT grow to unmanageable proportions.

  • Webservice based validation

    Hi
    I am new to oracle Apex. I saw oracle supports web service call. Can we have item level validation using web service on Apex?
    Regards
    Ani

    Ok,
    What I want is, when user enter data in a text item it should call a webservice to validate the data entered by the user.
    Eg. When a user enter a an airport code, apex should call a webservice that validate the airtport and display the airport name.
    Hope it is clear now.
    Regards
    Anil

  • Special character Validation: error

    HI Guys,
    I wrote a validation to restict the use of special chracters.
    Its a formula based validation, both REAL TIME and BATCH, on the Node.
    HasCharacters(Custom.EPMA_Alias, ["]).
    However, when I go to put an Alias on a member, it tells me there is a special character in this, but there is not.
    I also tried HasCharacters(PropValueCustom.EPMA_Alias0, ["]) with same results.
    I also need to add the following characters:
    |
    Thank you for all your help!.

    Hi,
    DRM will not support the syntax ["], instead try somethinug like this for your validation logic-
    And(
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),|,,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),",,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),%,,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),*,,T)))

  • Validation of catalog load

    I need info on how the catalogs are validated while loading into iProc application?
    * auto upload of catalog to production catalog based on rules,
    * auto validation upon supplier catalog upload manual prompt validation (by supplier or catalog manager) upon supplier catalog upload
    * Specific (syntactic?) validators:
    ** Spellcheck
    ** Price check (rule-based validator based on specified % delta; i.e., pass if under 10% change in price)
    ** character check (rule-based validator(?) based on right # characters present in certain cells; i.e., supplier ID field must contain "x" characters)

    Hi,
    I have updated the scripts so that you can run them without problems. Please download the new scripts (OW_2002_OLAP_Catalog.zip) from www.iafsoft.com/downloads/ and try the following steps.
    (1) create user IAF with OLAP_DBA privilege.
    (2) Open the OLAP Worksheet from OEM using the IAF user.
    (3) Copy and paste the codes from case3_1_OLAP_DML.txt to OLAP Worksheet, and run the program.
    (4) Run case3_2_RelationalView.sql from SQL*Plus using IAF user.
    (5) Run case3_3_cwm2_script.sql from SQL*Plus using IAF user.
    (6) Create your BI app in JDev using IAF user.
    BTW, I have tested the whole process with Oracle9i OLAP 9.2.0.1.0a, production version of JDev903 and BI Beans903.
    Shinji

  • How can I use ViewObject in Reusable Validation Rule ?

    I read chapter 9.6.1 of ADF Developer Guide 4GL, "Creating View Objects at Runtime for Validation". In our system there is a validation that can use ViewObject, e.g :
    SUM of outstanding AR cannot exceed the Credit Limit of the Customer.
    This rule must be applied to more than one entity :
    - During Order data entries
    - During Invoice Creation
    - ..and some more..
    So I think about create a Reusable Validation Rule
    (Like Steve recommends on : http://radio.weblogs.com/0118231/stories/2005/07/21/recommendedValidationStrategies.html. => DateRangeRule.Java )
    And within this Reusable Validation Rule, I use View Object to do SQL based validation as explained on chapter 9.6.1 above.
    How can I do that ?
    Thank you for your help,
    xtanto

    The ADF Toy Store Demo 10.1.2 version contains a reusable rule that uses view objects. If you google for "ADF Toy Store Demo 10.1.2" you will find it. Its a validation rule in the FwkExtensions project in that demo that validates state abbreviations for a country code.

  • ADF BC declarative Compare  validator on date attributes

    Hello
    I trying to abandone validation on the UI beans by resorting to the built-in ADF declarative validation available at the Entity object level.
    I test the Compare validator between two numeric attributes and it worked well, also between two String attributes, but when i tried to compare two dates attributes the results of the validation was not correct.
    any reason as to why Entity based validation based on dates values does not give appropriate results
    rgds
    Ammar Sajdi

    We are using entity based declerative validations for Dates with no problem.
    Remember that Date type has also a time portion in database.
    may be there is your error.

  • Simultaneous Client and Server Form Validation using Custom Tag Library

    I am developing a custom tag library for validator tags
    which are capable of doing client side validation (Javascript)
    and server side (Java). My problem is with the development
    of a regular expression based validator. Because of differences
    in the way Javascript and Java handle regular expressions
    i can not use the same regular expression for both types of
    validation. Is there any way to convert a valid regular
    expression from the java.util.regex format into the Javascript
    format or vice versa? My major problems are with the (or, ||)
    statements and the user of backslashes.

    If you are speaking of RE syntax flavours, they are basically the same(namely perl5 flavour). Any expression that works in JS should work in j.u.regex too.
    Though, their usage is quite different.
    So, there is no need for convertion of expressions.
    But porting the code may be not so trivial.

  • How to create validation in workflow

    I create a simple workflow application, but how to do validation in this application? thanks in advance

    HI SharpLj,
    Activity validation enables activity authors and users to identify and report errors in an activity’s configuration prior to its execution. Windows Workflow Foundation (WF) provides the following three types of activity validation:
    RequiredArgument and OverloadGroup attributes.
    Imperative code-based validation.
    Declarative constraints.
    Further information:
    Configuring Activity Validation
    Please let me know if there is anything that I can do to help.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enhancement request - ADF BC convert EO based VO to read-only VO

    Hi
    Can't see if we can do the following in 11g (or 10.1.3); is it possible? Otherwise would be a nice to have.
    If at design time I mistakenly create an ADF BC VO as one that is based on an EO (ie. updateable VO), but it would be better suited to a read-only VO (for the documented runtime efficiencies), a tool to convert the updateable VO to a read-only VO without losing the attributes and SQL query settings would be great. Ideally a right mouse click option on the VO or via the VO document window as an option.
    Cheers,
    CM.

    I've filed Enh. Req. # 6040888 for tracking.
    You should be able to copy the existing query to the clipboard, remove the entities, then paste in the query again.
    Numerous new runtime features in 11g depend on having an EO-based view object, and the runtime overhead is not large, so in practice our internal best practice for our own Oracle Applications development teams will be to use entity-based VO's most of the time going forward.
    It's true there is a small amount of overhead still, and view objects used for SQL-based validation purposes will still be good candidates (as well as view objects that don't want to see the pending changes in the entity cache for some application-specific reason).

  • Validation problem on tabular form APEX 4.2

    Hi,
    My APEX Version is 4.2.
    I have problem with validations on tabular forms, for example : I have a column who must be numeric... when I get a character it is controlled properly, but it removes my line of the screen and he writes in the table below:
    state error:
    ORA-01403: no data found
    ORA-06510: PL / SQL: exception defined by the user untreated
    I Haven't this problem with this application on APEX 4.0
    PS : the validation was automatically create by APEX
    Regards

    Thomas,
    Is this a standard APEX tabular form validation, or a custom PL/SQL based validation? It might be easiest to diagnose what's going on there, if you could replicate this issue on apex.oracle.com, and point us to an example.
    Thanks,
    Marc

  • Validation/rendering strategy

    Hello,
    I would like for an outputText element to be hidden (i.e. not rendered) when the corresponding inputText element has input and validated (by a standard tag-based validator). Is that possible?
    <h:outputText id="age-label" rendered="??" value="Fill in your age"/>
    <h:inputText id="age" value="#{MyBean.age}" required="true">
    <f:validateLongRange minimum="5"/><!-- Notice that this is not an inline validator -->
    </h:inputText>Thanks in advance,
    Julien.

    You'd better to use h:message for this.
    <h:inputText id="age" />
    <h:message for="age" />Then the 'required' and 'invalid length' errors will also show up in there. You can customize the messages. Check this useful article http://www.jsf-faq.com/faqs/faces-messages.html
    If you don't want to use h:message for some reasons, then add a boolean check to the backing bean so that it returns true if the age is not filled in.
    public boolean isAgeFilled() {
        // implement logic
    <h:outputText rendered="#{myBean.ageFilled}" />

  • Validation Using a MessageResources Class Instead of a Property File

    We have a WL 8.1 portal application that performs XML-based validation as described here:
    http://e-docs.bea.com/workshop/docs81/doc/en/core/index.html
    It works fine. Each jpf specifies the validation error messages like this:
    * @jpf:message-resources resources="Validation.Validations"
    This pulls the error messages from the Validations.properties file, as expected.
    We'd like to move the validation error messages out of the property file and into the WL content store.
    Has anyone successfully done something similar with a portal application?
    I've done some research and there are a number of examples that show how to do this with a Struts application. For example, the DBMessageResources looks like a step in the right direction.
    http://sourceforge.net/project/shownotes.php?release_id=320056&group_id=49385
    Modifying those files to produce ContentMessageResourcesFactory and ContentMessageResources gives us access the WL content store.
    The piece that I'm missing is this:
    How can we get the XML-based validation to get its messages using ContentMessageResources rather than the property files specified by the @jpf:message-resources annotation?
    According to the documentation (and just to show that I made an attempt to read the fine manual), both the @jpf:message-resources annotation and the netui-data:declareBundle tag can be used to reference property files. I'm looking for instructions on getting XML-based validation to use a MessageResources class, instead.

    Problem solved. Here's the solution in case someone else has a similar question in the future.
    I added the following to strutsValidator-merge-config.xml and confirmed that constructors for both ContentMessageResources and ContentMessageResourcesFactory are called when the application is accessed for the first time.
    <message-resources
    factory="com.carlson.lss.common.util.ContentMessageResourcesFactory"
    key="org.apache.struts.action.MESSAGE"
    parameter="300"/>
    Using a key of "org.apache.struts.action.MESSAGE" is critical to making this work. I found that tidbit here:
    http://forums.bea.com/bea/click.jspa?searchID=600352721&messageID=600044412
    I removed the @jpf:message-resources annotation but left the following annotation in the JPF:
    * @jpf:controller nested="true" struts-merge="/WEB-INF/strutsValidator-merge-config.xml"
    Triggering a validation error results in calls to the getMessage method in the ContentMessageResources class.
    W^5 (which was what we wanted)

  • Validating XML Parser

    We want to validate XML Messages generated by UDS 5.1 components against XSchemas before we send them out.
    Forte 3.5. built in parser does no validation.
    Has anybody set up a solution architecture he/she will share with us ? ( We do NOT have an AppServer in place !).
    Solutions on UNIX platform preferred.
    Thanks for each hint !

    We have implemented a validating XML parser that does not require command line execution but unfortunately it depends on the Microsoft MSXML parser. We used olegen to create a Forte project that allows us to reference the MSXML parser as if it were inline Forte TOOL code. The MSXML4.dll provides support for validating XML schemas.
    We are looking to find a multi-platform way to accomplish the same thing. I'm guessing that there may be a validating XML parser out there implemented in C that can be included into the Forte repository using the wrapper mechanism - has anyone tried this?
    I see that Xerces has a C++ based validating parser - do you thing that could be accessed via the wrapper? Or would that have to be accessed via the command line?
    Regards.

  • New GeoRaptor release !

    Hello List,
    A new release of the GeoRaptor plugin is ready ! Version 20100524 is available for download on the project's sourceforge page : [http://sourceforge.net/projects/georaptor/] Update center : [Update Center|http://georaptor.sourceforge.net/install.xml]
    GeoRaptor is a SQLDeveloper plugin to view Oracle Spatial data and assist in creating/validating Spatial data and indexes.
    This current release (20100525) release includes these changes:
    - GeoRaptor now handles Tables/Views and Materialized Views.
    - Initiation of GeoRaptor functions can occur at the table or column level in the SQL Developer connection tree; (ie a GeoRaptor context menu has been added to the Columns of a table/view)
    - The way the sdo_geometry structure attribute is displayed has been re-written to handle xD data with slightly improved colouration (more to come).
    - There is now the ability to display an sdo_geometry attribute in a query result table as SDO_GEOMETRY/WKT/KML or GML2/GML3.
    - The dropping of a spatial index (for tables/materialized views) can now be done via a new context menu option.
    - The way the sdo_geometry data is displayed in the spatial view has been re-written. It will draw 2D, 3/4D (Z or M or both) data but only in 2D.
    - The way sdo_geom_metadata is handled and updated has been overhauled. Tables with multiple geometries can be dealt with in the one metadata panel.
    - Spatial indexing has been improved.
    - There is a Suffix/Prefix (called Affix) Tools>GeoRaptor>Preferences preferences for controlling its placement.
    - GeoRaptor can discover the layer_gtype parameter (from either all the data or from a sample).
    - Setting the sdo_indx_dims parameter can be done via a pulldown; as also whether the index is geodetic (tick box)
    - Setting the TABLESPACE parameters has also been added.
    - GeoRaptor can now be told to position a new table/sdo_geometry object (Add to Spatial View) in the spatial view at the top of the layer tree or at the bottom (Tools>Preferences>GeoRaptor)
    - The ability to move an existing layer in the spatial view to the the TOP or BOTTOM has been added via a right mouse click menu entry.
    - Similarly, you can now tell GeoRaptor where to put the layer list in the view: in the RIGHT or LEFT panel.
    - The position of the dividers in the spatial view now are trapped and saved.
    - The geometry spatial validation routines have been modified to allow for tolerance or diminfo based validation. Multiple geometries per table are handled. The user can now select their own primary key (including multiple columns) they would like to use in the output report.
    - GeoRaptor can now draw arrows at the midpoint of each segment in a linestring or just at the end.
    - GeoRaptor can process (ie visualise) data as STRUCT or JGeometry (a user preference controls this).
    - A comprehensive and flexible shapefile loading component has been added that handles multiple shapefiles, various attribute sets, changing of string attributes to numbers etc.
    Enhancements:
    - Code quality improvements are already being prepared.
    - The next release already has ready to go enhancements to the shapefile loader.
    - The ability to create (automatically) a single sdo_geom_metadata entry that covers all shapefiles in a shapefile set that is loaded into a single table.
    - Similarly a basic spatial index can be built at the end of a load run.
    - The ability to round the ordinate values read from each shapefile's X,Y, Z etc double precision ordinates. So, an shapefile X value of 234567.97456362839 can be written as 234567.975 if a decimal place rounding of 3 is chosen.
    - More options or colouring SDO_GEOMETRY data in a resultset;
    - Ability to colourize SDO_DIM_ARRAY, VERTEX_TYPE etc structures;
    - Support the mapping (add to spatial view) of a SQL query resultset (viewed currently only by styling the sdo_geometry attribute).
    - This will include the ability to select a subset of the resultset for visualisation, copying to clipboard, export (not just one at a time as in the current version). In fact, working with resultsets will become the main focus of how GeoRaptor will work in the future.
    - Add a new Spatial node to SQL Developer that collects up all tables etc with spatial data in one node (like Tables/Views/Materialized Views etc) so we can initiate action from there minimising mouse movement and increasing end user productivity.
    - Create a tool for discovering and removing stale sdo_geom_metadata records.
    - Support projections in the map view;
    - Support multiple independent map views (not just one);
    - Support WMS layers within the map view;
    - Provide spatial data export (shapefiles first);
    - Support limited visualisation of external shapefile data before loading eg to view to display with existing Oracle data.
    - Network topology visualisation and functionality;
    - Export functionality
    We encourage you to use GeoRaptor and discover its usefulness. We are spatial professionals who use SQL Developer every day in our business and consulting activities: we want the tool to make our lives easier and we hope they will do that for you too.
    However, we don't know how you use GeoRaptor and SQL Developer so we would love to hear your wishes for the product and the sorts of improvements would help you in your work and use: [Feature Requests|https://sourceforge.net/tracker/?group_id=158162&atid=806731]
    Like all software GeoRaptor is not perfect: the software contains bugs.
    Please help us in recognizing and fixing those bugs by reporting them : [Bug tracker|https://sourceforge.net/tracker/?group_id=158162&atid=806728]
    Now that we have a release out, we intend on making regular bug fix release and not just releases containing new functionality.
    The GeoRaptor team
    Edited by: Olaf I. on Jun 8, 2010 5:58 AM : a more comprehensive list of what's new !

    This release is really great. Simon uses the term "we" but he has probably done 99% of all the enhancements that have gone into this release.
    Thanks a lot for the effort Simon!!

Maybe you are looking for

  • Possible to set it so you can't delete a specific folder and contents...

    Hello. I'm wondering if anyone knows a way I can set a folder so that a user can't delete the folder (and thus, the contents by deleting that folder). But, at the same time, I want them to be able to manage the items within the folder (ie. can delete

  • How to execute vb script with out using Remote manager in oim 11g r2

    Hi Currently, i have a requirement to execute  vb script (present on a remote machine in which connector server is installed) from oim machine while using Exchange connector (11.1.1.6). This can be achieved by using remote manager,but i dont want to

  • DBMS_METADATA.GET_DDL- how does it format output

    I call "DBMS_METADATA.GET_DDL" to get package body source code, see example call below. Can i be always sure that it will always: 1. Return schema name before package name as for example this: "MYSCHEMA"."COLLECTSTATS". Or may it return sometimes wit

  • How to display  Reports parameter form in Oracle Forms 10g.

    hello, am migrating from Forms 6i applications to Forms 10g. one of my application contain report, that report display parameter form I wrote below code for WHEN-BUTTON-PRESSED Trigger DECLARE pl_id      ParamList; v_report_id report_object; v_report

  • Place 65 Word files

    G5; OS 10.5.4; CS 3 I've received 65 Word files that I have to place as a single story. Normally I would tell my client to put them together into one file but in this case I cannot. I can select multiple files to place but they will not flow continuo