Matias Bonifacino
07/11/2022, 12:40 PMcontext.form.clientScriptModulePath = 'xxxxx'
replaces other scripts?reptar
07/11/2022, 1:40 PMTyn Guardian
07/11/2022, 1:59 PMwsangster
07/11/2022, 2:48 PMscrenshaw
07/11/2022, 3:52 PMBrandon
07/11/2022, 4:43 PMMichael Scott
07/11/2022, 7:22 PMMichael Scott
07/11/2022, 7:22 PMMichael Scott
07/11/2022, 7:23 PMMichael Scott
07/11/2022, 7:25 PMMichael Scott
07/11/2022, 7:25 PMMichael Scott
07/11/2022, 7:26 PMscrenshaw
07/11/2022, 7:29 PMvar invoiceObj = record.transform({
fromType: record.Type.SALES_ORDER,
fromId: i_so_id,
toType: record.Type.CASH_SALE,
isDynamic: true
});
Morris
07/11/2022, 10:02 PMSINDHU REDDY
07/12/2022, 5:03 AMkarlenigma
07/12/2022, 9:10 AMDiderik
07/12/2022, 9:44 AMN/cache
(which is not available in Client Scripts). So I have made module C that has the same functionality, but without using N/cache
. In my AMD config I have in path an alias that points directly to module B. Now I want to configure it in such a way that when that alias is used from within the Client Script (or a module used in a Client Script) that instead of B it points to C.
I got it to work when the alias is called directly from the User Event and Client Scripts. I did this by adding the Client Script in the "map" part of the AMD config. But it doesn't work when module A calls the alias.
My AMD config basically looks like this:
{
paths: {
"foo": "modules/B"
},
map: {
"SuiteScripts/ClientScript": {
"foo": "modules/C"
}
}
}
I have also tried passing an array in paths, since according to the documentation that works as a failover. But I then simply get "unexpected error has occured" with the User Event. In the Client Script I Get "d.split is not a function" and then it fails to load the script. Interesting side note here is that when the module that doesn't load in the Client Script is the first element in the Array I get this error. But when the module that works is the first element, everything works and that module is being loaded.Wreckless
07/12/2022, 12:39 PMkwood
07/12/2022, 3:21 PMLogan Ickert
07/12/2022, 3:23 PMdbaghdanov
07/12/2022, 4:00 PMN/query
vs N/search
?razer456
07/12/2022, 4:17 PMrazer456
07/12/2022, 4:22 PMZachO
07/12/2022, 6:38 PMjen
07/12/2022, 6:38 PMscrenshaw
07/12/2022, 8:38 PMnew Customer.Customer()
, but can instead just skip the first one and do new Customer()
?Josh Godfrey
07/12/2022, 9:43 PMABC custom role
3. UE Script defines a custom module in my file cabinet ex. define(['N/record', 'N/runtime', 'N/search', 'N/https', 'SuiteScripts/Mosaic/PLX_CM_Common.js'],
4. In the CM, I have a callback function that creates custom record type
I would assume when* the original UE script calls the CM, it would use the same permissions applied to the UE Script? But instead I'm getting a permission error (ABC Custom Role needs a higher level permission on this custom record type
)
I don't get this error when I trigger the UE script in my admin role though.Chris Simon
07/13/2022, 12:23 PMSimon
07/13/2022, 1:33 PMalien4u
07/13/2022, 1:44 PM