Skip to main content

Posts

Creator 's Html snippet with EJS tag

  An Introduction to EJS: The Embedded JavaScript Templating Engine When it comes to creating dynamic web applications, rendering HTML pages with server-side data is an essential task. Many developers turn to templating engines to simplify this process, and one of the most popular choices is EJS (Embedded JavaScript) . If you're unfamiliar with EJS or are considering it for your next project, this blog will provide a comprehensive introduction to its benefits, features, and how to get started with it. What is EJS? EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. The main goal of EJS is to make it easier to embed JavaScript code directly into your HTML templates. It allows you to add dynamic content, use logic like conditionals and loops, and even include reusable components. EJS is commonly used in Node.js applications for rendering server-side views, and it integrates seamlessly with Express.js, one of the most popular web frameworks fo
Recent posts

How to add custom related list in any module in Zoho Crm || Full Code

  lead_records = zoho.crm.getRecordById("Deals",id); // info lead_records ; list1 = list(); CML = ifnull(lead_records.get("CML"),"False"); // info CML ; PML = ifnull(lead_records.get("PML"),"False"); CRL = ifnull(lead_records.get("CRL"),"False"); DL = ifnull(lead_records.get("DL"),"False"); if(CML == false) { CML = "No"; list1.add(CML); } else { CML = "Yes"; list1.add(CML); } if(CRL == false) { CRL = "No"; list1.add(CRL); } else { CRL = "Yes"; list1.add(CRL); } if(PML == false) { PML = "No"; list1.add(PML); } else { PML = "Yes"; list1.add(PML); } if(DL == false) { DL = "No"; list1.add(DL); } else { DL = "Yes"; list1.add(DL); } info "list data" + list1; responseXML = ""; // rowVal = 0; responseXML = responseXML + "<record>"; // for each data in list1 // { info "d

How to Add Multiple Portal By Deluge ||How How to add Different Portal Permission Set

Creating a portal to assign users to specific profiles using Deluge scripting in Zoho Creator can streamline your application’s user management. In this context, the code snippet provided assigns a user to the "Customer" profile based on their email and enables their portal access. Here's a breakdown and explanation: ### Code Explanation: 1. **Assign User to Profile:**    ```deluge    portal = thisapp.portal.assignUserInProfile(input.Email, "Customer");    ```    This line assigns the user, identified by their email, to the "Customer" profile. The `assignUserInProfile` function is a method in the Deluge scripting language that allows developers to specify which profile a user belongs to within the application. 2. **Enable Portal Access:**    ```deluge    input.Portal_Status = "Enabled";    ```    This line updates the `Portal_Status` field to "Enabled," indicating that the user now has access to the portal. This status change is cru

How to convert Url to Imege/File By Deluge for Creator || Using the Upload Api || How to upload Imege in zoho creator from crm

This code snippet appears to be part of a script or program that involves invoking URLs to handle file uploads. Let's break it down: 1 Invoke the URL to retrieve a file ( Logo ) : Logo is the url of Imege like Logo =" https://images.pexels.com/photos/674010/pexels-photo-674010.jpeg" response = invokeurl [ url :Logo type :GET ]; Here, the code is making a GET request to a URL stored in a variable named Logo . This request likely retrieves some file data. 2. Setting parameters : response.setParamName("file"); This line sets a parameter named "file" in the response obtained from the previous request. It prepares the response to be sent as a file in a subsequent request. Logo_imge = invokeurl [ url :"https://creator.zoho.com/api/v2.1/clientnamexxxxx/appnamexxxx/report/demo_report/" + CreatorID + "/Logo/upload" type :POST files:response connection:"creator" ]; 4. Logging info "Logo_imge==" + Logo_imge; This p

Happy New Year 2024

How To Add Hour and Minuts By Deluge in Date and Time Field

   z = zoho.crm.getRecordById("Deals",5341860000008118012); Event_Date = z.getJSON("Event_Start_Time"); info Event_Date; date = Event_Date.getPrefix("T"); info date; time = Event_Date.getSuffix("T"); info time; hour = time.getPrefix(":"); info hour; hourtonumber = hour.toNumber(); info hourtonumber; min = time.getSuffix(":"); newmin=min.getPrefix(":") ; mintonu=newmin.toNumber(); addhr = hourtonumber + 5; info addhr; Event_Date = z.get("Event_Start_Time").addHour(addhr).addMinutes(mintonu).toString("yyyy-MM-dd'T'HH:mm:ss'+08:00'"); info Event_Date; mp = Map(); mp.put("Event_Start_Time",Event_Date); test = zoho.crm.updateRecord("Deals",5341860000008118012,mp); info test;

Wordpress Theme

  Price Card Download <!DOCTYPE html > <html lang = "en" > <head>     <meta charset = "UTF-8" >     <meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     <title> PriceList </title> </head> <style>     .pricemainu {         justify-content : center ;         display : flex ;         flex-direction : row ;         /* background: pink; */         padding : 20px ;         gap : 20px ;     }     .card {                 background : black ;         height : 450px ;         width : 300px ;         border-radius : 5px ;         padding : 5px ;         box-shadow : 2px 2px 10px 1px red ;     }     .heading {         border-radius : 2px ;         height : 100px ;         background : red ;         font-size : 40px !important ;         line-height : 70px ;                 text-align : center ;     }     .spacer {         height : 40px ;         width : 100% ;         b

Create Widget in Creator

  Zoho Creator Widget https://js.zohostatic.com/creator/widgets/version/1.0/widgetsdk-min.js ZOHO . CREATOR . init ( ) . then ( function ( data ) { //Code goes here } ) ; Widget Site JS API Add Record Update Record Get ALL Record Get Record Count Delete Record Upload File Download Imege