Examples of masterObject()


Examples of com.webobjects.eocontrol.EODetailDataSource.masterObject()

      Object obj = parentD2WPage();
      String OBJECT_KEY = "object";
      NSMutableDictionary<String, Object> userInfo = new NSMutableDictionary<String, Object>(obj, OBJECT_KEY);
    if (dataSource() instanceof EODetailDataSource) {
      EODetailDataSource dds = (EODetailDataSource)dataSource();
      userInfo.setObjectForKey(dds.masterObject(), OBJECT_KEY);
      userInfo.setObjectForKey(dds.detailKey(), "propertyKey");
    }
      NSNotificationCenter.defaultCenter().postNotification(BUTTON_PERFORMED_DELETE_ACTION, obj, userInfo);
    }
 
View Full Code Here

Examples of com.webobjects.eocontrol.EODetailDataSource.masterObject()

      if (_showRemoveButton == null) {
        boolean isRemoveable = ERXValueUtilities.booleanValueWithDefault(d2wContext().valueForKey("isEntityRemoveable"), false);
        EODataSource ds = dataSource();
        if (ds!= null && ds instanceof EODetailDataSource) {
          EODetailDataSource dds = (EODetailDataSource)ds;
          EOEnterpriseObject masterObj = (EOEnterpriseObject)dds.masterObject();
          EOEntity masterEntity = ERXEOAccessUtilities.entityForEo(masterObj);
          EORelationship relationship = masterEntity.relationshipNamed(dds.detailKey());
          EORelationship reverseRelationship = relationship.inverseRelationship();
          if(isRemoveable) {
            if(reverseRelationship == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.