Continuing my work on RTU assets from yesterday, I found I needed to program some of the common formulas you see in Google Sheets into Javascript to be used in my Suitescript code. These common functions include: PV(rate, number periods, payment amount, future value, end or beginning) FV(rate, number periods, payment amount, present value, end or beginning) PMT(rate, number periods, present value, future value, end or beginning) Each of the…
Read guide →How do you change a paragraph into a list item in Google Docs using Google App Script? To convert a paragraph into a list item using Google Docs identify first the paragraph you want to modify, then obtain the childIndex of where the paragraph is and finally insert the list item using insertListItem() function. Here’s how this process works going through step-by-step: Locate Paragraph To Change In your Google App…
Read guide →If you’re starting out with Handlebars and using it to create your HTML web pages, you may come across an oblique error message which may not make too much sense. One such error you may encounter returns the following response: throw new Exception(‘Must pass iterator to each’) To solve this problem you need to locate within your Handlebars template code an {{ each}} call. For example, you may have something…
Read guide →I’ve fallen in love with the new Lightbox / Fancybox alternative Colorbox. Unfortunately though I spent half a day in frustration trying to get a simple YouTube clip displayed in an iframe popup. The errors I received in the console were: Which produced Access-Control-Allow-Origin errors or http protocol errors and a whole myriad of other warnings – just from a simple YouTube iframe setup. My simple code on the Genesis…
Read guide →In one recent project I had to incorporate a traditional slider on the front page of a WordPress installation to showcase the range of products this site was selling. I was a little lazy and bought a popular package to accommodate the needs of my clients’ request. Unfortunately though, after tinkering around with it, I found it more of a nuisance than a help. Even after setting the package to…
Read guide →