Anil's Blog is Best Viewed on GOOGLE CHROME

Sunday, May 2, 2010

How to throw Attribute Level Validation in AMimpl







In Application Module

import oracle.apps.fnd.framework.OAAttrValException;

if (EndDate == null) // throwing Attribute Level Validation if the endDate is NULL

          {
              throw new OAAttrValException(OAAttrValException.TYP_VIEW_OBJECT,
                "xxIncreaseWorkVO1",
                 rowi.getKey(),
                 "RoleEndDate",
                 rowi.getAttribute("RoleEndDate"),
                 "PA",
                 "XX_ROLE_ED_NOT_BLANK");
          }


Note: Don't forget to create one Primary Key in VO.

1 comment:

  1. hi anil,iv tried out this.i hav a vo based case and no eo.i tried this code bt cms up on page header as error1-mesage..is ther anythng else i misd out?

    ReplyDelete

Note: Only a member of this blog may post a comment.