Ejemplo n.º 1
0
        private async void load(string url)
        {
            HMS.SP.Form spForm = await SPGet.getForm(spglb.myClient, url);

            this.add_Form(1, spForm);
            this.hide_running();
        }
Ejemplo n.º 2
0
 public int  add_Form(int pos, int level, HMS.SP.Form spForm)
 {
     if (spForm.__HMSError_ != null && (spForm.__HMSError_.errno != 0 || spForm.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spForm.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spForm.__deferred_);
     pos = this.add__metadata(pos, level, spForm.__metadata_);
     pos = this.add__rest(pos, level, spForm.__rest);
     pos = this.add_lineAt(pos, level, "FormType", HMS.SP.SPUtil.toString(spForm.FormType_));                   //PageType;
     pos = this.add_lineAt(pos, level, "Id", HMS.SP.SPUtil.toString(spForm.Id_));                               //Undefined;
     pos = this.add_lineAt(pos, level, "ServerRelativeUrl", HMS.SP.SPUtil.toString(spForm.ServerRelativeUrl_)); //String;
     return(pos);
 }
Ejemplo n.º 3
0
 public int add_Form_deferred(int pos, int level, HMS.SP.Form spForm)
 {
     {
         string useUrl = spForm.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "Form", "", knownPages.pageForm, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "Form", "", knownPages.NONE, "");
             pos = this.add_Form(pos, level + 1, spForm);
         }
     }
     return(pos);
 }
Ejemplo n.º 4
0
 public int add_Form(int level, HMS.SP.Form spForm)
 {
     return(add_Form(-1, level, spForm));
 }