Zoho Deluge - Store and repopulate a multi lookup list in Creator
- Category: Zoho
- Hits: 18136
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)
Zoho Deluge - Get distance between two coordinates
- Category: Zoho
- Hits: 19492
A quick article to document how to calculate the distance "as the crow files" between two coordinates given the latitude and longitude of each.
Why?
Well, you can pay for a good Google solution that will distance following roads and the such but.. the following is free albeit as-the-crow flies.
This makes use of an undocumented function in Zoho which is acos or inverse cosine. Just lifted from the JavaScript library figuring if it supports cos() then try this standard function. Note this has only been tested in Zoho Creator rather than Zoho CRM.
How?
This function returns the distance as the crow flies.
Zoho Deluge - Get User Timezone, Country and Location
- Category: Zoho
- Hits: 20217
A quick article just as a note to get the users country information from a third-party API based on the given IP address.
How?
Well this is just a list of free 3rd-party APIs and the below code is dependent on these being online and working...
Zoho Deluge - Some Useful Regular Expressions
- Category: Zoho
- Hits: 51024
A more comprehensive post on some other regex (regular expressions) to format values in Zoho.
How?
CSS Add Text to Breadcrumb Link with a Transition
- Category: Cascading Stylesheets
- Hits: 20803
This is an article I hope to refine one day where given a set of breadcrumb hyperlinks, when I hover the mouse over the links, the text changes and the transition between the two is controlled smoothly.
Why?
At time of print, I couldn't find any clear example demonstrating this so here's my take on it:
What I have
» Home / Products / LanternsWhat I want (on mouseover)
// if I hover the mouse over the "Home" link: » Return to Home / Products / Lanterns // if I hover the mouse over the "Products" link: » Home / More Products / Lanterns // if I hover the mouse over the "Lanterns" link: » Home / Products / More Lanterns
How?
Convert Past Date to Time Ago in PHP
- Category: Personal Home Page
- Hits: 22811
Just a quick note to refine a function that will take a date in the past and return the number of years, months, weeks, days, hours, minutes and seconds.
Why?
Here are some examples of what we want to achieve:
1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds // full string 1 year 3 weeks 5 hours 7 seconds // where shown values are not zeroActually we just want the first two words of those strings:
3 days ago // where event is 3 days ago or just over but less than 4 days ago 1 week ago // where event is just over 1 week ago but less than 2 weeks ago
How?
Zoho Deluge - Generate 5 Letter Booking Retrieval Code
- Category: Zoho
- Hits: 29550
This is a quick article on how to generate a 5 letter code from several functions: one which returns 5 randomly selected characters and another two which convert a number to 5 letters.
Why?
Zoho doesn't have a function to generate random numbers or strings. There are workarounds however.
How?
URL Alias uniqueness with PHP & MySQL
- Category: Personal Home Page
- Hits: 26665
So this is an article for me on how to copy Joomla's and Wordpress' feature where a Title/Name value is converted to a search-engine friendly URL alias and is unique in the database. Ok that's a long sentence; let me try this:
- When I save a record in JoomlaCMS or WordpressCMS
- It creates a unique name to use in URLs
- I want that
Why?
These are used as inputs to server-side scripts for the sake of search-engine friendliness. There are no silver bullets here but I want to block any character that isn't a letter, a number or an underscore.
How?
Suppose the following exists as a MySQL database table called my_table_name:
What we have:
/----------|-------------------|----------------------\ | id | name | url_alias | |----------|-------------------|----------------------| | 1 | My *First* Test | my_first_test | | | | | | | | | \----------|-------------------|----------------------/What we want:
/----------|-------------------|----------------------\ | id | name | url_alias | |----------|-------------------|----------------------| | 1 | My *First* Test | my_first_test | | 2 | My *First* Test | my_first_test_1 | | 3 | My _-_First Test | my_first_test_2 | \----------|-------------------|----------------------/
Page 27 of 74
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:
bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
Ethereum:
0xb038962F3809b425D661EF5D22294Cf45E02FebF

