Example #1
0
        private async void load(string url)
        {
            HMS.SP.UserCustomAction spUserCustomAction = await SPGet.getUserCustomAction(spglb.myClient, url);

            this.add_UserCustomAction(1, spUserCustomAction);
            this.hide_running();
        }
Example #2
0
 public int  add_UserCustomAction(int pos, int level, HMS.SP.UserCustomAction spUserCustomAction)
 {
     if (spUserCustomAction.__HMSError_ != null && (spUserCustomAction.__HMSError_.errno != 0 || spUserCustomAction.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spUserCustomAction.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spUserCustomAction.__deferred_);
     pos = this.add__metadata(pos, level, spUserCustomAction.__metadata_);
     pos = this.add__rest(pos, level, spUserCustomAction.__rest);
     pos = this.add_lineAt(pos, level, "CommandUIExtension", HMS.SP.SPUtil.toString(spUserCustomAction.CommandUIExtension_));               //String;
     pos = this.add_lineAt(pos, level, "Description", HMS.SP.SPUtil.toString(spUserCustomAction.Description_));                             //String;
     pos = this.add_lineAt(pos, level, "Group", HMS.SP.SPUtil.toString(spUserCustomAction.Group_));                                         //String;
     pos = this.add_lineAt(pos, level, "Id", HMS.SP.SPUtil.toString(spUserCustomAction.Id_));                                               //Undefined;
     pos = this.add_lineAt(pos, level, "ImageUrl", HMS.SP.SPUtil.toString(spUserCustomAction.ImageUrl_));                                   //String;
     pos = this.add_lineAt(pos, level, "Location", HMS.SP.SPUtil.toString(spUserCustomAction.Location_));                                   //String;
     pos = this.add_lineAt(pos, level, "Name", HMS.SP.SPUtil.toString(spUserCustomAction.Name_));                                           //String;
     pos = this.add_lineAt(pos, level, "RegistrationId", HMS.SP.SPUtil.toString(spUserCustomAction.RegistrationId_));                       //String;
     pos = this.add_lineAt(pos, level, "RegistrationType", HMS.SP.SPUtil.toString(spUserCustomAction.RegistrationType_));                   //UserCustomActionRegistrationType;
     pos = this.add_deferredAt(pos, level, "Rights", "...", knownPages.pageBasePermissions, spUserCustomAction.Rights_.__deferred_);        //BasePermissions;
     pos = this.add_lineAt(pos, level, "Scope", HMS.SP.SPUtil.toString(spUserCustomAction.Scope_));                                         //String;
     pos = this.add_lineAt(pos, level, "ScriptBlock", HMS.SP.SPUtil.toString(spUserCustomAction.ScriptBlock_));                             //String;
     pos = this.add_lineAt(pos, level, "ScriptSrc", HMS.SP.SPUtil.toString(spUserCustomAction.ScriptSrc_));                                 //String;
     pos = this.add_lineAt(pos, level, "Sequence", HMS.SP.SPUtil.toString(spUserCustomAction.Sequence_));                                   //Number;
     pos = this.add_lineAt(pos, level, "Title", HMS.SP.SPUtil.toString(spUserCustomAction.Title_));                                         //String;
     pos = this.add_lineAt(pos, level, "Url", HMS.SP.SPUtil.toString(spUserCustomAction.Url_));                                             //String;
     pos = this.add_lineAt(pos, level, "VersionOfUserCustomAction", HMS.SP.SPUtil.toString(spUserCustomAction.VersionOfUserCustomAction_)); //String;
     return(pos);
 }
Example #3
0
 public int add_UserCustomAction_deferred(int pos, int level, HMS.SP.UserCustomAction spUserCustomAction)
 {
     {
         string useUrl = spUserCustomAction.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "UserCustomAction", "", knownPages.pageUserCustomAction, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "UserCustomAction", "", knownPages.NONE, "");
             pos = this.add_UserCustomAction(pos, level + 1, spUserCustomAction);
         }
     }
     return(pos);
 }
Example #4
0
 public int add_UserCustomAction(int level, HMS.SP.UserCustomAction spUserCustomAction)
 {
     return(add_UserCustomAction(-1, level, spUserCustomAction));
 }