How to ImplementCross validation rules in OA Page

I have created a custom page which has a Key flex field.How do i implement the cross validation rules?Please let me know.Thanks in advance

For example,
I shouldn't be able to enter Advertisement(say 022)
for administration Balancing segment.
It has to be restricted.So, is there any special logic that i have to implement.
In GL we have a check box for validation rules.Please let me know if the same is possible through OA Page.
Thanks

Similar Messages

  • How to apply validation rule for View Object (VO) attributes?

    How to add Validation Rules to VO attributes, just like EO Business Rules?
    I got 2 problem with that:
    1. VO can join multiple tables, and the attribute's validation rules may reference to the fields from multiple entities.
    2. Since the EO Validation Rules only execute before the data actually write to entity (Commit operation). But user may need to input data from multiple pages with only 1 commit.
    I am using JDeveloper 11g with ADF BC.
    Regards,
    Samson Fu

    Just something to point out, the EO validation doesn't fire on a commit (if you mean commit as in the database/AppModule commit). You can also access VO information from the EO validation rules by using view accessors.
    Regards
    Grant

  • How to create validations on exit a page item?

    Hi all,
    I need to validate a field on exit it and not when click a button. Is it possible in apex? 
    Thanks
    bsalvador

    bsalvador
    You didn't state the apex version you are using but assuming your at least on version 4 all client side interaction start with Dynamic actions.
    These are explained in chapter 17.9 of the Application Express Application Builder User's Guide Release 4.2.
    See if using the when condition works for the validations. With an alert as action to notice the user of the error.
    The standard when conditions would probably not cover all your needs completely.
    Then JavaScript comes into play. Some starting points
    For basic javascript
    Code academy
    Mozilla developer network Getting started tutorial
    Specific for APEX documentation for the javaScript API
    And since APEX uses jQuery the jQuery learning centre.
    An other approach when you're on APEX 4.1+ have a look at the following plugin Live Validation
    This plugin supports a number of validation types with out the need of any programming. Check out the list of supported validation types here.
    Nicolette

  • Validation Rule for Accounting Document type

    Hello Experts
       I have an requirement  to block certain accounting doc type to get vendor line item post in that. For that I tried to block direct through OBA7 but not be able to also can't delete number range as it is shared by another doc type. My last option is Validation rule but i never work on this ,so any suggest how to create validation rule " To Block Accounting Doc type SO THAT THERE WILL NOT BE ANY line item posting occur in that doc type.
    Regards.

    ok sure.  OB28 callpoint 1.  Create a step under this callpoint.
    1)  Prerequisite is as follows:  note XXXX is your company code and ZZ is your doc type.
    BKPF-BUKRS = 'XXXX' AND
    BKPF-BLART = 'ZZ'
    2)  Then you need to enter the check.  Here you can just put FALSE.
    3)  The last part is to create your message.  Message type E so they get an error and then create a message number in the class that you choose and give it a description:
    Document Type 'ZZ' is not allowed
    Save it and wah lah! 
    Let me know how it goes.
    Thanks,
    Jes

  • Planning validation Rules...

    Hi,
    I am using 11.1.2 version for planning. In that, i found a Validation Rules box in dataform creation.
    I red Planning readmes about Validation Rules. But I didn't getting, how to write those rules.
    So, If u know please tel me, How to write Validation Rules in Dataform in 11.1.2 Planning version.
    Thank u

    What readmes are you referring to, the admin documentation explains how to use them - http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin/dv_bldr.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

  • How to Enforce Sharepoint 2013 content type validation rules when modifying document using Word 2013

    Good day,
    I have two date columns (Start Date and End Date) in a content type in Sharepoint 2013.  A file library uses this content type.
    In the document template I have the two dates (Start Date and End Date) showing in the Document Panel.  I can edit them well enough and they show in the document correctly.
    In the content type I have validation rules that the End Date must be greater than the Start Date. 
    The question is, how can I enforce this validation on the client side in Word.  Is there anyway to achieve this?
    The user will not have access to change the document properties in Sharepoint. (Not my call)
    Thank-you!

    The "panel" is called the Document Information Panel in SharePoint. You can customize this using InfoPath from the page where you created / edited your Content Type. Go to Settings, Site Settings Content Types, edit your content type, click Document
    Information Panel and then click "Edit this template". In InfoPath you can create a Rule to enforce your dates.
    This may require the Enterprise Edition of SharePoint to support the InfoPath Forms Services.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • How to Add/Edit validation rule for Column in ADf table(Jdeveloper11g)

    I am working on Jdevloper11g with ADF table. There i have one column where user can enter numeric value in range 1-1000 .So i have to add validation as such he/she can't enter value apart from 1-1000 range also not any other charcters.
    I know on form, if i select attribute from binding and right click i will find one option "Edit Vlaidation rule..." and from there i can change validation rule for perticular field.
    But how i can achive same on Column's filed??
    Thanks for all help.
    Jaydeep

    Hi Barnislav,
    I tried the way you mentioned but i am getting below exception.
    Could not complete Edit validation Rule... Because it would result in an invalid document
    oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element RangeValidationBean not expected [ node = RangeValidationBean ]
    <tree IterBinding="searchConfigurationDataIterator" id="searchConfigurationData" ApplyValidation="true">
    <nodeDefinition DefName="com.oraclecnm.util.search.SearchAttributeBean">
    <AttrNames>
    <Item Value="searchAttributeName" />
    <Item Value="searchAttributeId" />
    <Item Value="weightage" />
    <Item Value="isAttributeSearchable" />
    </AttrNames>
    </nodeDefinition>
    <RangeValidationBean OnAttribute="weightage" ResId="pages.SearchConfigurationPageDef.searchConfigurationData_Rule_1" Inverse="false" Severity="Error" Name="searchConfigurationData_Rule_0" OperandType="LITERAL" MinValue="1" MaxValue="1000" />
    </tree>
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3669)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3577)
         at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2825)
         at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1166)
         at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1653)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1684)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2898)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:586)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:556)
         at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:469)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.adfdtinternal.model.ide.validation.RuleEditAction.actionPerformed(RuleEditAction.java:35)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  • How to programmaticaly invoke validation rule

    Hi,
    I need to invoke programmaiticaly all validation rules when Entity Object is initialized from db.
    1) What method in EntityImpl class should I override ?
    2) How to force validation role programmatically ?
    Kuba

    Hi Timo,
    Obviously you have right. Our customer has a special requirement e.g. "soft validation". Data should be commited to database but marked as incorrect. To obtain this, I have a set of validation attribute rules that always return true but attribute with special message is added to special Map as incorrect. Attributes from this map are used as hints and displaied on the page as warning icon. It works fine but only when user change data. I need to fire these roles when data is read from db and particulary entity is initialized.
    Kuba

  • How to create a validation rule in SAP BODS Job

    Hi Experts
    I have created a BODS Job and in that job i have to create a validation rule as if the cust_id is null the loading must stop.
    I dont have idea where i have to define this validation rule in the Job and how to stop the load job if the validation rule file.
    My Job was defined like below image
    Please guide me where i have to define the validation rule and how to stop the load job.
    Thanks in advance
    PrasannaKumar

    Hi samatha b
    Thanks for your response. I have done as you said and now i can rise the exception.
    I have another requirement as per the validation transformation the data will load into Pass table and Fail table after job execution. If any data entered into fail table i have delete the data loaded into Pass table.
    Here i am facing problem as my target tables are MySQL tables and when i am writing scripts i wrote the script as
    sql('database','delete from <tablename>');
    but as it is an SQL Query execution it is rising exception for the query.
    How can i delete the data loaded into MySQL Target table using scripts.
    Please guide me for this error also
    Thanks in Advance
    PrasannaKumar

  • How to use bind variables in "query result" "validation rule"

    I have created a validation rule on my entity object. rules=compareValidator attribute=InvoiceNumber operator=NotEquals queryResult=SELECT ...
    In this query, I would like to reference entity attributes from the current instance of the entity when the value fires, for example SELECT invoice_number where invoice_id != :invoiceId
    How can I reference a bind variable inside the query result compare validator validation rule?
    THanks,
    Jerry.

    bump

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

  • How can I use database constraints in entity attribute validation rules

    I am interested in using database constraints to validate attributes in entity objects.
    I would like to implement a JboValidatorInterface in a way that I can use an operator like "GreaterOrEqualTo" to compare with values retrieved from the database for a column associated with an entity object attribute.
    I have used this pattern with success in other environments, where the user community decides the minimum value for a thing should change from x to y, and simply changing a database object also changes the validation methods of all applications which access it.
    I am not certain that column constraints are the appropriate vehicle, but so far that seems to be the case.
    I see that you can create a validation rule which makes comparisons against a view object attribute. I am wondering if there is a generic way to use standardized names for column constraints along with ADF hooks into properties of database columns, to avoid writing individual queries for each attribute.
    Thanks in advance!!!

    Jeffrey,
    If you already have constraints on the underlying tables, why do you need to validate them in ADF BC? You can certainly use some framework extension classes to give the user nicely formatted error messages - see ER: ADF BC - allow custom error msgs for common exceptions (e.g. DML) for more details.
    I am using this method so that anything that is enforced in the database (check constraints, foreign keys, unique constraints, etc) are not enforced in the ADF BC layer as well - after all, there's more than one way to get data into a table, and DB constraints ensure that even if data gets in through another mechanism (apart from the ADF application), it is valid. My 2 cents, of course.
    Hope this helps,
    John

  • Cross-Validation Rules: How to re-validate segments all ready enabled?

    Is it possible to call one of the APIs to re-validate the code combinations againts the Cross-Validation Rules? If the enabled flag is set to 'Y' then the CVR is ignored. I am aware of the Cross-Validation Rules Report which is helpful, but I need to go a step further. I'm looking to loop through the gl.gl_code_combinations tables, re-validate the combinations that are enabled, if CVR fails then determine if there are any amounts that need to be moved prior to disabling the combination.
    I have a routine that:
    1. creates temp table of all enabled combinations
    2. loops through gl_code_combinations
    3. deletes record from gl_code_combinations, do not commit
    4. calls API fnd_flex_keyval.validate_segs
    5. updates status of temp table
    6. rollback deleted record
    7. repeat 2 - 7 until done
    8. query gl_balances using temp table combintions that have failed.
    I'm a little nervous to run such a routine, because of the delete.
    Does anyone have any ideas or suggestions?
    Thanks,
    Jamie
    Edited by: jmdavis on Dec 15, 2008 6:17 PM
    Edited by: jmdavis on Dec 15, 2008 6:18 PM

    Use where clause for that UDA's in attribute that refer to other attributes data source. the where clause may required use Lookupcodes, these lookup codes may have to be configure in the source attribute values table column.
    Edited by: user11979254 on May 13, 2010 2:49 AM

  • How to restrict user to post in GL a/cs thru validation rule ?

    Hi Experts,
    I want to restrict an user to post transactions for tds related gl accounts.is that possible through Validation rules.
    Actually i created a step and under that i configured prequisite,check and message.
    In "prerequisite" Company code = xxxx and user name = fffffff
    in "check i configured, all restricted GL accounts
    In "message" -
    GL account restricted to post by user fffffff
    But still the problem is not yet solved as the user is able to post transaction in that GL accounts.
    Plz guide.
    Sumeya offrin

    Hi Neeraj,
    Thank you for the response.
    Xtely.i have done the same.created an authorization groupp and assigned the group in GL account master data(control data tab) and even the group contains the users who are authorized to post into these GL accounts.
    But sorry,the problem not yet solved.
    Anyother solution?
    waiting for the another response.
    With Regards,
    Sumeya offrin
    Edited by: sumeya offrin on Nov 26, 2008 1:47 PM

Maybe you are looking for

  • Dreamweaver does not link any images or styling to my webpage

    Hi, I have been creating a webpage and have moved images from one folder to another and now the website will not display any images or styling. I have moved all the content back and it still doesn't show. I have created a completely new website with

  • Printing requirements for Bi publisher report

    Hi all Can any one tell me the steps required for me to look at the setups on my server side so that i can print the reports using the bursting API.The problem is i am not able to debug the log file as there is no connection error or any other except

  • RTMP Streaming Works, HTTP Streaming Does Not

    I am using the following to stream video live: - Windows Server 2008 with Flash Media Server 5. - Flash Media Live Encoder 3.2 - This tutorial step by step to setup the manifests: Stream live multi-bitrate video over HTTP to Flash and iOS - YouTube -

  • Strange File name appearance, PLEASE HELP!

    I have Mac OS X v 10.6.8; When I open any finder window, the below file name appears on all of them. I have deleted the item to "trash" it still shows when I open any finder window! I suspect it is some kind of virus, but I am not sure. I have Norton

  • I think its dead for sure. :(

    i think my logic board is fried. and the hard drive i think is dead too. the hard drive is making the dreaded clicking no whirrr sound. and when i turn on the ibook the cd drive makes the normal sound sometimes no hard drive sound and it just sits th