CRUD APPSCRIPT GITHUB

74 views
Skip to first unread message

DAVIDE

unread,
Sep 27, 2022, 7:55:45 AMSep 27
to Google Apps Script Community
Hello
can anyone help me fix this CRUD Web App built with Google AppScript?
I'm a beginner

Thank you

Nikola Grujičić

unread,
Sep 27, 2022, 8:15:31 AMSep 27
to google-apps-sc...@googlegroups.com
You have more comprehensive explanation on the attached link

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/8e34b32f-d301-4a6b-ae54-87c90caf6600n%40googlegroups.com.

DAVIDE

unread,
Sep 27, 2022, 8:57:29 AMSep 27
to Google Apps Script Community
I am seeing errors in the functions and I cannot understand.
Could you help me?
Thanks

/**  INCLUDE HTML PARTS, EG. JAVASCRIPT, CSS, OTHER HTML FILES */
function include(filename) {
  return HtmlService.createHtmlOutputFromFile(filename)
      .getContent();
}

*************************************************************
Errore
Exception: Bad value
include
@

*************************************************************
====================================
/**  PROCESS FORM */
function processForm(formObject){  

  /**--Execute if form passes an ID and if is an existing ID */
  if(formObject.RecId && checkID(formObject.RecId)){

    /**--Update Data */
    updateData(getFormValues(formObject),globalVariables().spreadsheetId,getRangeByID(formObject.RecId));
  }else{

    /**--Execute if form does not pass an ID
     **--Append Form Data */
    appendData(getFormValues(formObject),globalVariables().spreadsheetId,globalVariables().insertRange);
  }
 
  return getAllData();
}

*************************************************************
Errore
TypeError: Cannot read property 'RecId' of undefined
processForm
@
************************************************************
Reply all
Reply to author
Forward
0 new messages