Scenario: We need to create a suitelet page for resource allocation. The suitelet page should contain similar pages like the same. The Body fields should contain, Project Name. Common project fields. The sublist structure should same as the below image. Solution We can use a client script for the validation and another suitelet for background… Continue reading Suitelet Page For Resource Allocation
Tag: javascript
A Function for showing the validation error message using Javascript
This function can be used to display validation messages in any form like the contact us page. We can pass a message, type, and also the field: which determines under in which ‘div’ the message need to be displayed.
What is Github
GitHub is a Git repository hosting service that provides a web-based graphical interface. It is the world’s largest coding community. Putting a code or a project into GitHub brings it increased, widespread exposure. Programmers can find source codes in many different languages and use the command-line interface, Git, to make and keep track of any… Continue reading What is Github
Scheduled Email For PM’s using MR script
Requirement: We need to send pending timesheet details to the corresponding project manager by end of the Day.We can use a scheduled script for the development and it will check the timesheet and send a list of pending timesheets to the corresponding project managers with necessary details such as Date,Timesheet details,Actual Hours,Employee name , timesheet… Continue reading Scheduled Email For PM’s using MR script
Case pack quantity updation with the sales order line quantity
Requirement: In the sales orders, we can enter any number of item line quantities. But from the client business perspective, they need to control the quantity based on the item case pack. The quantity should be multiples of the case pack number and if the quantity is not a case pack multiple we need to… Continue reading Case pack quantity updation with the sales order line quantity
To replace the elements in an array with the elements of another array
We can replace part of an array with items from another array,
What is the ternary operator and how do we can use it?
JavaScript’s ternary operator (?:), also called the conditional operator, is used to replace a conditional statement, most commonly an assignment. For example: As you can tell from the above example, the ternary operator is shorter than using and if…else statement and allows us to assign the resulting value to a variable provided the condition is pretty much… Continue reading What is the ternary operator and how do we can use it?
Converting Date to d/m/yyyy format
Scenario: Convert given date to the d/m/yyyy format Solution: You need to use the module ‘N/format‘ to convert the date to different formats. format.parse method can be use for this. It parses a value from the appropriate preference format to its raw value. The appropriate preference format is the one selected in the Date Format… Continue reading Converting Date to d/m/yyyy format
Why use jQuery?
Some of the key points that support the answer for why to use jQuery: It helps us to manipulate HTML and CSS It helps us to manipulate DOM (Document Object Model) elements Provides event methods to trigger and respond to an events on a html page such as mouse click, keypress etc. Implements AJAX calls.… Continue reading Why use jQuery?
How to create an object from the given key-value pairs using JavaScript?
You are given different key-value pair(s), in any form like an array, and using those key-value pairs you need to construct an object which will have those key-value pairs. Object{} => Object {“0” : “Geeksforgeeks”,”1″ : “Hello JavaScript”,”2″ : “Hello React”} We first need to declare an empty object, with any suitable name, then by… Continue reading How to create an object from the given key-value pairs using JavaScript?