I have a custom menu item.
The item shows in the Menu list (left panel)
Clicking on the link successfully loads the custom template and custom macro I created.
I can hang code off a button that successfully runs from within the custom Views.js file I created.
The Macro makes a call to retrieve some information using the custom Model.get I created which is coded in custom .Model.js file.
What I'm missing is the ability to carry out standard NLAPI functionality so that I might return record data to the screen.
I have tried adding code in to the Model.js file :
// YV Test model define('YVTest.Model', function () { 'use strict'; return Backbone.Model.extend({ urlRoot: 'services/yvtest.ss', get: function(id){ var theTest = {}; var personRec = nlapiLoadRecord('customrecord_nb125_mytestacc', id); theTest.forename = personRec.getField('custrecord_nbs125_myacc_forename'); theTest.surname = personRec.getField('custrecord_nbs125_myacc_surname'); return theTest; } }); but when the section loads <%= console.log(YVTest.get("1"))%> does not happen.If I put similar code in YVTest.Model.js // YV Test model define('YVTest.Model', function () { 'use strict'; return Backbone.Model.extend({ urlRoot: 'services/yvtest.ss', get: function(id){ var theTest = {}; theTest.forename = "Neil"; theTest.surname = "Elliott"; return theTest; } }); });I can see the object properties and use them in the macro.What I want to do is pull back one or more records form the system on to the page.Can someone please help as I feel I'm treading water right now! Thanks,Neil