Scenario Using custom role with proper permission, user navigates to Customization > Workflow > Workflows but some existing workflows are missing. Solution Ensure that the role has permission to the record type(s) where the missing workflows are applied to. For example, if the Workflow is created for Opportunity records, make sure that the role has Opportunity permission with Full access level. Navigate… Continue reading User Who has Full Permission for Workflow Cannot See Existing Workflows
Month: January 2025
Sending ID Values From Record to List/Record Field of Another Record Using Go to Record Workflow Action
Scenario In some circumstances, sending the name or id value of one record to the List/Record field of another record requires a procedure. For instance, when a new customer record is generated, the name of the newly created customer appears inside the customer List/Record field of a new Sales Order record, pre-populated. Solution Navigate… Continue reading Sending ID Values From Record to List/Record Field of Another Record Using Go to Record Workflow Action
Vue.js toggle/switch button.
Install npm install vue-js-toggle-button –save Import plugin: import ToggleButton from ‘vue-js-toggle-button’ Vue.use(ToggleButton) OR OR Import component: import { ToggleButton } from ‘vue-js-toggle-button’ Vue.component(‘ToggleButton’, ToggleButton) Use <toggle-button @change=”onChangeEventHandler”/> <toggle-button v-model=”myDataVariable”/> <toggle-button :value=”false” color=”#82C7EB” :sync=”true” :labels=”true”/> <toggle-button :value=”true” :labels=”{checked: ‘Foo’, unchecked: ‘Bar’}”/>
vue3-blocks-tree
A simple organization structure tree view based on Vue3.x. It supports events, slots, horizontal vision and nodes manipulation Usage <template> <h1>Basic</h1> <div> <blocks-tree :data=”treeData” :horizontal=”treeOrientation==’1′” :collapsable=”true”></blocks-tree> </div> <h1>With slots</h1> <div> <blocks-tree :data=”treeData” :horizontal=”treeOrientation==’1′” :collapsable=”true”> <template #node=”{data,context}”> <span> <input type=”checkbox” :checked=”selected.indexOf(data.some_id)> -1″ @change=”(e)=>toggleSelect(data,e.target.checked)”/> {{data.label}} </span> <br/> <span v-if=”data.children && data.children.length”> <a href=”#” @click=”context.toggleExpand”>toggle expand</a> </span> </template>… Continue reading vue3-blocks-tree
Handling Multi-Select Fields in NetSuite SuiteQL Queries
When working with NetSuite, retrieving data from multi-select fields in SuiteQL queries can be challenging due to the way NetSuite structures these relationships. Multi-select fields store multiple values, often linked via mapping tables, requiring additional joins to retrieve related data properly. Example Query The following query demonstrates how to retrieve records associated with a multi-select… Continue reading Handling Multi-Select Fields in NetSuite SuiteQL Queries
Adding a Toggle Button functionality to a Page in SCA
Adding a toggle button enhances the user experience by allowing users to show or hide specific elements dynamically. In SuiteCommerce Advanced (SCA), a toggle button can be used to reveal additional form fields or sections without cluttering the UI. This article provides a step-by-step guide on implementing a toggle button to show or hide a… Continue reading Adding a Toggle Button functionality to a Page in SCA
Implementing Custom Breadcrumbs in Checkout Pages – SCA
Breadcrumbs enhance navigation by providing users with a clear path through the checkout process. In SuiteCommerce Advanced (SCA), customizing breadcrumbs in the checkout pages ensures a seamless user experience. This article guides you through implementing custom breadcrumbs for the checkout process. 1. Understanding Default Breadcrumbs in SCA SuiteCommerce Advanced uses the getBreadcrumbPages function to generate… Continue reading Implementing Custom Breadcrumbs in Checkout Pages – SCA
Javascript function that makes easier to replace multiple occurrences of a substring.
replaceAll() makes it easier to replace multiple occurrences of a substring. const signal = “Batman! Batman must respond!”; console.log(signal.replaceAll(“Batman”, “Bruce”)); // “Bruce! Bruce must respond!”
Javascript statement allows shorthand access to an object’s properties
The with statement allows shorthand access to an object’s properties but is generally discouraged due to ambiguity in scope. const obj = { name: “Bruce”, city: “Gotham” }; with (obj) { console.log(name, city); // “Bruce Gotham” }
Saves search formula to display sate in a state format
Add the following column in the search search.createColumn({ name: “formulatext”, formula: “TO_CHAR({trandate},’DD/MM/YYYY’)”, label: “Expiry Date” })