Suitelet Page For Resource Allocation

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

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

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

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

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?