Harley
07/07/2020, 3:50 AM_.extend(CaseModel, { ... })
does not appear to be possible.
In SuiteAnswers 'Commerce Migration to SuiteScript 2.0' (https://netsuite.custhelp.com/app/answers/detail/a_id/92119) I also noticed there is a note that says:
if you are developing extensions, attempts to import or include migrated modules in your customization will produce runtime errors.Does this mean that there is no way to extend the new 2.0 modules? Is there any documentation for making changes to 2.0 scripts? At this point the only way forward I can see might be to revert to making changes directly to the core files - which I'm not keen to do. I'm open to suggestions or experience others have on this matter.
Steve Goldberg
07/09/2020, 2:31 PMSteve Goldberg
07/09/2020, 2:33 PMHarley
07/14/2020, 6:14 AMSteve Goldberg
07/14/2020, 12:01 PMSteve Goldberg
07/14/2020, 12:04 PMHarley
07/15/2020, 12:13 AMKeith Fetterman
05/12/2021, 1:11 AMHarley
05/12/2021, 1:30 AMKeith Fetterman
05/12/2021, 1:40 AMHarley
05/12/2021, 3:37 AMSteve Goldberg
05/12/2021, 9:33 AMKeith Fetterman
05/12/2021, 2:19 PMSteve Goldberg
05/12/2021, 2:31 PMDo you know if there are plans to provide a better structure for customizing core SS 2.0 modulesI can't comment on future plans. My vague response is that the approaches I laid above are the ones you should focus on.
Do you have an example you can share?I do not, as it's not something I've attempted myself. However, you should take a look at what's going on in the Advanced > SCA > SuiteScript > SCA.js file. My understanding is that rather than specifying all the modules in the distro.json that you want to exported to the ssp_libraries.js library file, they are listed in SCA.js. You could probably remove the modules from the Backend folder and then 'restore' the SS 1.0 versions to SCA.js.
Keith Fetterman
05/12/2021, 3:52 PMSteve Goldberg
05/20/2021, 3:04 PM