40173

How to set a field's value on the view mode of a NetSuite custom record, using client script?

Question:

I have a doubt about the nlapiSetFieldValue and nlapiGetFieldValue methods on NetSuite API.

Do these methods work somehow on client script, when the record is in view mode? I'm having a hard time getting and setting any fields values without accessing the DOM elements directly.

Here's what I'm trying to achieve: I have a process running in background, and on a custom record's view mode I have a button to check its status. When the status changes, I only need to refresh one field with its current value, wich I'm getting via a restlet call.

I'm trying to avoid reloading the whole page, to improve performance.

Please notice that I don't need to commit the value, because it already is saved on the record. I just need to show the updated status on runtime.

Thanks in advance.

Answer1:

I just received an answer from the NetSuite team:

There isn't a way to use API methods to achieve this, so their suggestion is to reload the page on this case.

You can always access the DOM elements directly, but this is not a best practice.

Recommend

  • How to prevent cross domain issues by proxying in IIS?
  • Performance difference between accessing local and class member variables
  • Access PCF DEV from external machine on same network as host
  • How to add closing tag for canvas in three js rendered Canvas?
  • Get the pasted content on document on paste event
  • EntLib Way to Bind “Null” Value to Parameter
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Django model inheritance, filtering models
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Android fill_parent issue
  • C++ Partial template specialization - design simplification
  • NHibernate Validation Localization with S#arp Architecture
  • Recording logins for password protected directories
  • How can I send an e-mail from a vbs script
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • Splitting given String into two variables - php
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • Bug in WPF DataGrid
  • Can Jackson SerializationFeature be overridden per field or class?
  • Is possible to count alias result on mysql
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • Check if a string to interpolate provides expected placeholders
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Redux, normalised entities and lodash merge
  • When should I choose bucket sort over other sorting algorithms?
  • Convert array of 8 bytes to signed long in C++
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • Unanticipated behavior
  • Benchmarking RAM performance - UWP and C#
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • using HTMLImports.whenReady not working in chrome
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Understanding cpu registers
  • how does django model after text[] in postgresql [duplicate]
  • Linking SubReports Without LinkChild/LinkMaster
  • Recursive/Hierarchical Query Using Postgres
  • Running Map reduces the dimensions of the matrices