Example #1
0
        private async void load(string url)
        {
            HMS.SP.FieldLink spFieldLink = await SPGet.getFieldLink(spglb.myClient, url);

            this.add_FieldLink(1, spFieldLink);
            this.hide_running();
        }
Example #2
0
 public int  add_FieldLink(int pos, int level, HMS.SP.FieldLink spFieldLink)
 {
     if (spFieldLink.__HMSError_ != null && (spFieldLink.__HMSError_.errno != 0 || spFieldLink.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spFieldLink.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spFieldLink.__deferred_);
     pos = this.add__metadata(pos, level, spFieldLink.__metadata_);
     pos = this.add__rest(pos, level, spFieldLink.__rest);
     pos = this.add_lineAt(pos, level, "Hidden", HMS.SP.SPUtil.toString(spFieldLink.Hidden_));     //Boolean;
     pos = this.add_lineAt(pos, level, "Id", HMS.SP.SPUtil.toString(spFieldLink.Id_));             //Undefined;
     pos = this.add_lineAt(pos, level, "Name", HMS.SP.SPUtil.toString(spFieldLink.Name_));         //String;
     pos = this.add_lineAt(pos, level, "Required", HMS.SP.SPUtil.toString(spFieldLink.Required_)); //Boolean;
     return(pos);
 }
Example #3
0
 public int add_FieldLink_deferred(int pos, int level, HMS.SP.FieldLink spFieldLink)
 {
     {
         string useUrl = spFieldLink.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "FieldLink", "", knownPages.pageFieldLink, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "FieldLink", "", knownPages.NONE, "");
             pos = this.add_FieldLink(pos, level + 1, spFieldLink);
         }
     }
     return(pos);
 }
Example #4
0
 public int add_FieldLink(int level, HMS.SP.FieldLink spFieldLink)
 {
     return(add_FieldLink(-1, level, spFieldLink));
 }