Hello guys, I am an absolute beginner with suitesc...
# beginners
j
Hello guys, I am an absolute beginner with suitescript. I have tried out one first sample , but instead of copying I just wrote it down
/**
*@NApi Version 2.0
*@NScriptType ClientScript
*/
define(['N/ui/dialog'],
function(dialog){
function helloWorld() {
var options = {
title :'Hello!',
message : 'Hello, World !'
};
try {
dialog.alert(options);
log.debug({
title:'Success',
details:'Alert displayed Successfully'
});
} catch (e) {
log.error({
title:e.name,
details:e.message
});
}
}
return {
pageInit : helloWorld
};
});
b
@NApiVersion is wrong
j
ohh, I see, there was a space , I am sorry could not see that. Thanks for prompt response
hello, I would also like to know what code patterns, naming conventions you people follow , or would be great for me
b
probably better asked in #C29HQS63G
that said, the general answer is whatever everyone else you are working with uses
if there is nobody else, the answer doesnt really matter