Basic Suitelet
Hi,
I would like to make a basic Suitelet that has a search box on a page where the user can enter a a value and press enter and search against a custom record, then open the record in a new tab or window.
Should this be possible? What would be the best way to achieve it?
Thanks,
Yes that should be very doable with a suitelet. Where exactly are you getting hung up? What have you tried, etc. This would likely take a conversation as opposed to a single answer; I would recommend joining the slack channel and asking specific questions about what is or is not working.
To be brutally honest I am not entirely sure where to start. I normally base my scripts on something existing but don’t seem to be able to find anything comparable. From there I would normally try and reverse engineer and get it to do what I wanted.
I can now get to the stage of creating a form with a box on but getting that to fire off the search, I am no sure where to head.
I did attempt to join the slack group but it wont seem to let me post.
Thanks
Something close to this but filled out should do the trick.
exports.onRequest = function onRequest(context) {if (context.request.method == 'GET') {//create form with text field//add a submit button to do the search//display the form} else { //POST//read the value from the field in the context object//perform the search//display results, redirect to record, etc}}
Thank you I will see what I can do with that 🙂