public static void OnLoad1Step( ITeamDetails form,  EventArgs args)
 {
     ITeam team = form.CurrentEntity as ITeam;
     if(team != null)
     {
         IOwnerSecurityProfile securityProfile = team.GetSecurityProfile(team.Owner);
         if(securityProfile != null)
             form.securityProfileLookup.LookupResultValue = securityProfile;
     }
 }
        public static void saveButton_OnClickStep( ITeamDetails form,  EventArgs args)
        {
            ITeam team = form.CurrentEntity as ITeam;
            team.Save();

            // do this extra save since team is a view representing owner
            team.Owner.Save();

            IOwnerSecurityProfile profile = form.securityProfileLookup.LookupResultValue as IOwnerSecurityProfile;
            team.Owner.UpdateOwnerSecurityProfile(team.Owner, profile);
        }
Exemple #3
0
        public static void saveButton_OnClickStep(ITeamDetails form, EventArgs args)
        {
            ITeam team = form.CurrentEntity as ITeam;

            team.Save();

            // do this extra save since team is a view representing owner
            team.Owner.Save();

            IOwnerSecurityProfile profile = form.securityProfileLookup.LookupResultValue as IOwnerSecurityProfile;

            team.Owner.UpdateOwnerSecurityProfile(team.Owner, profile);
        }
Exemple #4
0
        public static void OnLoad1Step(ITeamDetails form, EventArgs args)
        {
            ITeam team = form.CurrentEntity as ITeam;

            if (team != null)
            {
                IOwnerSecurityProfile securityProfile = team.GetSecurityProfile(team.Owner);
                if (securityProfile != null)
                {
                    form.securityProfileLookup.LookupResultValue = securityProfile;
                }
            }
        }