Month: October 2023
How to install vue-router in Vue project
Vue Router is the official router for Vue.js. To install Vue Router type this in command prompt. After installing Vue Router, enter the script in main.js file Given is the Javascript sample of Vue Router
Displaying Subsidiaries Without Hierarchy in Client Script
Concept of setting subsidiaries of a customer without hierarchy using the namenohierarchy filter in a client script field change script: Client Script Field Change Script: This refers to a script that is executed on the client side (typically in a web browser) when a specific field is changed in a record. In this context, you’re… Continue reading Displaying Subsidiaries Without Hierarchy in Client Script
Custom survey form using suitelet
// Adding an Inline HTML field for the questionnairevar inlineHtmlField = form.addField({id: ‘custpage_questionnaire’,type: serverWidget.FieldType.INLINEHTML,label: ‘questionnaire’});
Activity Saved Search > Ability to get the number of days a task is opened
This can be done by adding a Formula(Numeric) that uses formula string shown below. REGEXP_SUBSTR({completeddate}-{date}, ‘[^ ]+’) Here are the steps:I. Create an activity saved search.1. Navigate to Lists > Search > Saved Searches > New.2. Click Activity.3. In the Criteria tab, set Status= is any of Completed, In Progress, Not Started4. In the Results tab, add Formula(Numeric) | REGEXP_SUBSTR({completeddate}-{date}, ‘[^ ]+’)5. Click Save & Run.This… Continue reading Activity Saved Search > Ability to get the number of days a task is opened
Properly Making Radio buttons Mandatory on Suitelets
Create a Suitelet like the one below: function mySuitelet(request, response){ if(request.getMethod() == ‘GET’) { var form = nlapiCreateForm(‘my form’); form.addField(‘custpage_radio’, ‘radio’, ‘Alpha’, ‘a’); form.addField(‘custpage_radio’, ‘radio’,’Beta’,’b’); form.addField(‘custpage_radio’, ‘radio’,’Charlie’,’c’); form.addField(‘custpage_radio’, ‘radio’, ‘Delta’, ‘d’); form.getField(‘custpage_radio’, ‘a’).setMandatory(true); var machine = form.addSubList(‘custpage_mysublist’, ‘inlineeditor’, ‘my sublist’); var selectField = machine.addField(‘myselectfield’, ‘select’, ‘My Select Field’); selectField.addSelectOption(‘1’, ‘One’); selectField.addSelectOption(‘2’, ‘Two’); selectField.addSelectOption(‘3’, ‘Three’); form.addSubmitButton(‘submit’); response.writePage(form); } else { }} After that, run/launch the Suitelet. Without making any selection, click Submit. The form would be… Continue reading Properly Making Radio buttons Mandatory on Suitelets
Directing focus to a field:
The provided code can be utilized to set the focus on any field within a record. You can incorporate this code within a client script, specifically in the “field change” or “pageinit” events. This will enable you to control the focus, either when the record is initially loaded or when the value of a particular… Continue reading Directing focus to a field:
AI Content vs Humanized Content
In an era driven by technological advancements, the clash between Artificial Intelligence (AI) and humanized content has become a defining feature of the digital landscape. AI-powered content generation has surged forward in recent years, raising questions about the role of human creativity and connection in the content we consume. Let’s check the differences, advantages, and… Continue reading AI Content vs Humanized Content
The Display Built-In Self-Test
The Display Built-In Self-Test (BIST) is a diagnostic test that many monitors and display devices can perform to check their functionality and identify potential issues. The exact method for initiating a BIST can vary depending on the monitor’s make and model. Below are some general steps that might apply: Ensure Power and Connections: Make sure… Continue reading The Display Built-In Self-Test
Performing a hard reset to release any residual static power in a system
Performing a hard reset to release any residual static power in a system is a common troubleshooting step for electronic devices, especially when they are not responding as expected. Here are the general steps to perform a hard reset: Power Off: Ensure that the device is completely powered off. If it’s a computer, shut it… Continue reading Performing a hard reset to release any residual static power in a system