<@U399QD98A> Can you share how you attempted to in...
# suitescript
s
@cja Can you share how you attempted to include the other module using the define function in your client script?
c
Hi Seth,
Copy code
define(['N/log', 'N/ui/dialog', './findAndSetFieldAssetForEquipment.js', 'N/currentRecord'],
    function (log, dialog, findAndSetFieldAssetForEquipmentModule, currentRecord) {
s
Is findAndSetFieldAssetForEquipment.js in the same file cabinet directory as the client script?
What you're doing is the correct approach. I've done that many times.
c
Sorry, I miss-named a file and that was the cause of my error!
However, now, even though I don't get the error any more, execution of my code seems to die when it calls the function in the other module. I'm now wondering if the code in the other module needs to be written as if it too is running client side. Which it is. So maybe I answered my question