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)

Similar Messages

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • How to add multiple button in a column of a table in sapui5?

    Hi Experts,
         I have a requirement i have list of orders in a table and i want to place two buttons in a column for approval and reject,
    if it approved i want to display approved as a text.
    i tried like this i place two buttons in matrix layout and i write a case statement i tried to return but its not displaying the layout.
    Please help me.
    Thanks & Regards
    chittibabu.

    Hi,
    You can't add a layout to the text property of a textfield, so this won't work.
    A better approach would be something like this:
    oTable.addColumn(new sap.ui.table.Column({
      label: new sap.ui.commons.Label({text: "Confirmation"}),
      template: new sap.ui.layout.HorizontalLayout({
        content : [
          new sap.ui.commons.TextView({
            text: "Confirmed",
            textAlign: sap.ui.core.TextAlign.Left,
            visible : ...
          new sap.ui.commons.Button({
            text : Approve,
            press : doApprove,
            visible : ...
          new sap.ui.commons.Button({
            text : "Reject",
            press : doReject,
            visible : ...
    Simply place all needed elements inside the layout, and based on the 'visible' property, you either show both buttons, or the textview.
    I'll leave it as an exercise to you on how you should actually handle the visible state for the TextView and Buttons (hint: use model binding)

  • CO validation rule for cost center

    we want system to show error message when user post to cost center other than 1111 for GL account between 540000 to 541000, how to define the validation rule?

    You can put FI validation (Ob28) , give restriction to co code BSEG-BUKRS ( for your co code ) and BSEH-HKONT  ( for GL account for you want to restrict) and have check on BSEG-KOSTL and then assign the error message.
    Regards
    Ranjan

  • How to add a tip to flexfield columns

    How to add shorttip to Flex: (BankDetails) columns/segments. I know how to add shortip if it is a messtext input, I would like to know is there a way to add shorttip to Flexfield columns using personalizations.

    There seems to be no way for adding tip for a single segment using personalization.
    FYI:
    1. For whole region you can add a tip by creating a tip item just under flex item.
    2. Using controller, get the handle of any single segment. Then use the below method:
    oamessagetextinputbean.setLongTip()
    -Anand

  • How to add a new tab for the project?

    Dear All Experts,
        Could you tell me how to add a new tab for the project?
        Pls refer to the screenshot as below:
    Thanks!
    Xinling Zhang

    Hi,
        The new tab in cj20n , and the new tab can only be displayed in the highed level.Pls refer to below
        And in cj02, there is no this tab also in the wbs detailed screen,
    Thanks!
    Xinling

  • How to write a validaton rule for Cost Center and plant in PO

    Hi,
    I need to write a Validation Rule for Cost center and Plant in Purchase Order to get the error message if the Plant and cost center combination didnot match.
    But i am not sure in which transaction code do we need to write this validation. Kindly help me by giving T.Code or path to do validation at PO level.
    Thanks
    Sunil

    >
    Sunil Pal Raj wrote:
    > Hi,
    >
    > I need to write a Validation Rule for Cost center and Plant in Purchase Order to get the error message if the Plant and cost center combination didnot match.
    >
    > But i am not sure in which transaction code do we need to write this validation. Kindly help me by giving T.Code or path to do validation at PO level.
    >
    > Thanks
    > Sunil
    Check OKC7
    Regards,
    Indranil

  • How to add a search help for a field in Screen Personas?

       I just started learning to use a Screen Personas, and I want to know how to add a search help for a field.
       I found a property in the help document named "IsLookupSupported". Is it the key?  But I saw it was gray in the field I created, and its value is "false". I could not change it.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • How can I edit a droplet for Photoshop 6?

    How can I edit a droplet for Photoshop 6? The company hired somebody to set up the droplet years ago, and nobody remembers how it was set up. The computer that was used to save the files has crashed, and I need to change the path the droplet uses for saving the files. I tried to open the droplet with Image Ready, but it said it was not an image ready droplet and could not be opened. The computer running Photoshop is using Windows XP.

    It seems that the script on the ps scripts page is to old to work in cs5.
    This is a lnk to xtools 1.8 which has the latest version of the droplet decompiler:
    http://sourceforge.net/projects/ps-scripts/files/xtools/
    Just unzip, find the Apps folder and look for the DropletDecompiler.jsx.
    Then put your droplet on the desktop, Use File>Scripts>Browse in cs5 to navigate to the DropletDecompiler.jsx.
    Here's an example using the Aged Photo.exe droplet from the ps 6 samples folder:
    here's the resulting action opened in cs5:

  • Restricting TDS based on validation rules for vendor invoice posting

    I have two Tax Types assigned in the vendor master. If at the time of invoicing user do not delete the unwanted tax types, system posts both the amounts related to both the tax types.
    User has to necessarily delete one tax type which is not required and then proceed with simulating the vendor invoice.
    Can this be controlled thru validation rules ? Even if the user forgets to delete the unwanted tax type while passing vendor invoice, validation rule must throw an error asking to delete the unwanted tax types before simulating the vendor invoice.
    Please help how to build such validation rule with detailed procedure.
    Thanks
    Ravi

    Hi Ravi,
    I hope you have selected both withholding tax type and code at the vendor master level itself.
    It is generally advisable to select withholding tax type at vendor master level and leave the field withholding tax code to be in display mode. Hence during vendor master creation, they can only select withholding tax type and not the withholding tax code. Ensure liable to tax should be ticked against all withholding tax types.
    During invoice entry creation either in FB60 or in MIRO, they can select the withholding tax code next to the withholding tax type and simulate and post.
    In your case, you cannot delete the withholding tax types at invoice entry level. Ensure to delete the unwanted withholding tax type from your vendor master itself, I mean delete only the withholding tax codes pertaining to that unwanted withholding tax type.
    Hope this helps. Assign points if useful
    Regards,
    Dwarak.

  • How to add a validator to a custom tag

    Hello,
    I would like to know how to add a validator to my custom tag as an attribute.
    <mytags:custom validator=???/>
    Thanks.
    Sebastien

    Are you wanting to use one of the JSF validators or a home brewed one?

  • Validation rule for expense type

    Hi,
    I'd like to know if it's possible to create a validation rule for expense type and personnel number.
    I need to lock some expense types for some personnel number.
    Thanks in advance.
    Osmar Tardivo.

    Hello,
    Sorry to say but I am not aware of any customization which restrict an expenses type based on personal number..
    There is a setting which can restrict Travel Expense Types based on Employee Grouping. Please go through below path.
    Travel Management-> Travel Expenses-> Control Parameters for Travel Expenses-> Control Parameters from Travel Privileges-> Define Employee Grouping for Travel Expense Types
    Hope this help you!
    Thanks,
    Vaibhav

  • Hi All ,How to add a new  field for MEDRUCK if we havea ZMEDRUCK

    Hi All ,
            How to add a new  field for MEDRUCK if we have a ZMEDRUCK
    Req: If I want to add a new field for the following text editor line :
    IN MAIN WINDOW > TEXT EDITOR> SERCH FOR TOTAL_AMOUNT-->
    In that we will have
    &ekko-waers&    &komkfkwrt&
    (currency)       (numerics)
    Pls send the Code to make these changes .Pls its urgent
    Thanks&Regards.
    Bharat.

    Hi
    If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
    If that field is not there in the any of the structures then you can define a variable using define command
    /: DEFINE  &VAR&
    / &VAR&  = <some value>
    or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to add a document type for the residence status GB in infotype 48

    Hi Team,
    How to add a document type for the residence status GB in infotype 48.
    Please answer this  at the earliest.PFA screnshot.
    Thanks
    chris

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

  • How to add a related content for a particular document in UCM

    Hi All
    How to add a related content for a particular document in UCM. On which table it stores all the related document details. Can anyone suggest me a document which helps me to know how to add related contents for a document
    With thanks and regards
    Anoop

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

Maybe you are looking for