Zoho Deluge - Counting in a Map dataType
- Category: Zoho
- Hits: 13677
A quick article on how to count within a map. I didn't have too much difficulty getting this to work and I'm not sure if there are better ways of counting so I'm documenting it to see if I can refine the code or find a some short codes that will do the same.
Why?
I'm aiming to automate a process which counts the number of products allocated to an account or in total for a purchase order. Let us assume we have the following in a form/report called "Stock_Upload":
RowID Name SKU Account Email 0001 Test Product 1 TEST001The code is a for loop which iterates through each row, assigning an entry for a new product or account, and specifying the quantity for each.This email address is being protected from spambots. You need JavaScript enabled to view it. 0002 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0003 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0004 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0005 Test Product 2 TEST002This email address is being protected from spambots. You need JavaScript enabled to view it. 0006 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it. 0007 Test Product 1 TEST001This email address is being protected from spambots. You need JavaScript enabled to view it.
How?
So depending on the number of levels, the count will be with a series if then else statements. See the results/yield section to determine which best fits your scenario:
Zoho Deluge - Modify the product line items in an invoice module
- Category: Zoho
- Hits: 15869
This is a reminder on how to swap out a product in an invoice.
Why?
A client wanted one of their products to be swapped out with another as they had a 3rd-party feed that kept creating a product that they didn't stock.
How?
Zoho Deluge: Adding / Removing Total Tax from a Quote Record
- Category: Zoho
- Hits: 13151
A quick reminder on when I want to apply overall Tax or remove Tax from a quotes product line items.
Why?
I would apply the standard update function and although the response would say it modified the record, the tax wouldn't apply both visually and programmatically.
How?
A little undocumented this "feature" but the gist is if you want to add tax, it has to be built up in the tax options, if you want this to be zero, you need to pass the option of tax as zero and remove all other options.
MS Excel - Open CSV with Long Numbers
- Category: Excel
- Hits: 8925
This is a quick reminder for myself on opening a CSV in MS Excel but without converting long numbers into exponential notations (which are incorrectly rounded anyway).
My Data:
Account ID,Name,Phone,Record ID 1457102000000135533,Joel,00441234567890,1457102000000165989 1457102000000135566,Stanley,01709123456,1457102000000167543 1457102000000135608,David,00331234567890,1457102000000166795My Excel:
Account ID Name Phone Record ID 1.4571E+18 Joel 4.41235E+11 1.4571E+18 1.4571E+18 Stanley 1709123456 1.4571E+18 1.4571E+18 David 3.31235E+11 1.4571E+18
How?
Firstly, save the CSV file as text file (*.TXT).
AutoHotkey - MS Windows 10 - Open Apps on Multiple Monitors and Desktops
- Category: AutoHotkey
- Hits: 26460
- Microsoft Windows 10
- AutoHotkey 1.1.30
Yay for Microsoft Windows 10 in joining the rest of the Operating Systems in implementing multiple desktops. So if you have a Mac or Linux system, you will know of a feature where you can have another virtual desktop on your device.
For those that don't know it, the feature is similar to mobile phones where you swipe left/right to reveal another screen of app icons. The same can be done to the desktop versions with open applications instead of just their icons.
Why?
MS Windows 10 has made a major step but when you close down your PC and log back in, all the applications are grouped into the one desktop. If you have a multiple monitor setup (ie. more than 1 monitor), then MS Windows will almost remember which apps were open on which screen but always on Desktop 1.
In addition, there are some developments on AutoHotkey forums where people are having difficulties opening an app on their second monitor. So I thought I'd jot down some notes here on how I've achieved this across multiple monitors... and now multiple desktops.
How?
The following example is assuming you have 3 monitors and 3 desktops. I'm going to cover the basic code to: 1) get all monitors, 2) open an app on a specified monitor, 3) switch to another desktop.
Zoho Deluge - Get Refresh/Access Token API v2
- Category: Zoho
- Hits: 39443
A sorta quick article to note how I can generate refresh tokens and access tokens using Zoho Deluge code (so within Zoho Creator, CRM or Books) without XML calls.
Why?
I find myself using this more and more now that API v1 is on the way out and Zoho Deluge by itself is limited somewhat with regards to functionality and record editing when compared to API v2.
How?
Note that this is using Zoho Deluge and not another server-side script such as PHP to send the requests via API.
CSS Ordered List 1, 1.1...1.10 Formatting and Alignment
- Category: Cascading Stylesheets
- Hits: 12462
A quick article to remind me on how create an multi-level ordered list that indents and aligns correctly.
Why?
I'm finding that I need to do this quite often for some clients who want to include their terms and conditions in quote/invoice templates and want the HTML to be indented neatly.
Other examples out there will work, but I found that once the list count increased the number of digits (eg. 1.10) the text would be more indented (relative) to 1.1. I need all list elements to be all perfectly aligned.
// What I Have 1. Item 1 1.1 Item 1a 1.2 Item 1b ... 1.9 Item 1c 1.10 Item 1d 2. Item 2
// What I Want 1. Item 1 1.1 Item 1a 1.2 Item 1b ... 1.9 Item 1c 1.10 Item 1d 2. Item 2
// What I DON'T Want (happens if you use list-style-position: outside) 1. Item 1 1.1 Item 1a 1.2 Item 1b ... 1.9 Item 1c 1.10 Item 1d 2. Item 2
How?
I've been refining this based on several examples and the following solution seems to be the most stable:
Zoho Deluge - Store and repopulate a multi lookup list in Creator
- Category: Zoho
- Hits: 11919
A quick reminder on how I got a working snippet of code to store the entries in the lookup already selected, check against another table/form for valid options, repopulate the list with the selected item and filtering the options available for selection.
Why?
This was for a multi lookup with staff as the list entries. The lookup needed to filter against various forms such as Staff Rotas, Leave Requests, Qualifications and some others.
How?
The aim/objective is the following:
- Store what was already selected in the lookups
- Clear the lookups list
- Restore what was originally selected as selected.
- Repopulate with a filter list of options (not selected but available)
Page 25 of 73
Credit where Credit is Due:
Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.
Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.
Thank you for visiting and, as always, we hope this website was of some use to you!
Kind Regards,
Joel Lipman
www.joellipman.com
Latest Articles
Accreditation



Donate & Support
If you like my content, and would like to support this sharing site, feel free to donate using a method below:

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF
Paypal:

Bitcoin:

Ethereum:
