Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Setting inline HTML field from Client Script in SuiteScript 2.0

tarunbandil:

I am unable to set a Field of type INLINEHTML using Suitescript 2.0. However, the same field works with SuiteScript 1.0. Here is the code snippet:


/**
* @NApiVersion 2.x
* @NScriptType ClientScript
*/
// In SuiteScript 2.0
define(['N/search'], function(search) {
return {
pageInit: function(context) {
var currentRecord = context.currentRecord;
// Set Value (This does not set any data)
currentRecord.setValue({ fieldId: 'inline_html_field', value: '
Test Value
' });
// Get value (Returns undefined)
currentRecord.getValue({ fieldId: 'inline_html_field'});
}
}
});

// In SuiteScript 1.0
nlapiGetFieldValue('inline_html_field'); // Returns the data in field



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Setting inline HTML field from Client Script in SuiteScript 2.0

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×