How to validate a model and the input provided by user using backbone js

Description It validates the model and input provided by the user. If the input is invalid, it returns a specified error message or if the input is valid, it doesn’t specify anything and simply displays the result.Syntax:model.validate(attributes,options) Parameters:attributes − These attributes define the property of a model.options − It includes true as an option to validate the… Continue reading How to validate a model and the input provided by user using backbone js

Adding Link to the button using configuration record.

Create new page in My account in extension js modules like,open js module and crete extra file for new page name as jj.three.three.router.js. We can create page by using the router . In router file with view file and model file names required for data and server links (URL).view file links with tpl file(jj_three_three_tpl) of… Continue reading Adding Link to the button using configuration record.

How to add Scroll bar style over the line in the page so that its functionality will be same as like scrolling

Description: Creating a scroll bar on the single line curser moving. Add the following code in the container class and use the border line in webkit-scrollbar-track so that the scroll bar style over the line will be same as like scrolling functionality on single line. ::-webkit-scrollbar{        width:10px;        height:0px;   … Continue reading How to add Scroll bar style over the line in the page so that its functionality will be same as like scrolling

Adding Out of Stock Behavior Using CSV File

Solution:Navigate to setup>Imports/Exports>Import csv record.import type as we are making changes to item in the inventory select item, record type Inventory item. CSV Files:To create csv file navigate to lists>search>saved searchcreate a new saved search and in filters add Display in website, subsidiary, inactive and save In the result columns select the fields need to… Continue reading Adding Out of Stock Behavior Using CSV File