Any help regarding Scenario will be appriciated: S...
# suitescript
h
Any help regarding Scenario will be appriciated: Step 1:: On a SalesOrder, Create 2 custom fields (Free form text) named "Popup Value 1" & and "Popup Value 2". Show them in the primary information section (Main Tab) on the sales order. I have done this,don't know where to start the remaining part which start from step 2 Step 2:: When clicked on Save button after filling the required fields on the sales order, You need to capture the submit event on client side using client script and show a popup that will show 2 text fields for user to enter values in with the labels as the custom fields and a button. On click of the button the values of the popup should be set in the custom fields of the SalesOrder and then the original save function should resume after that. I have to accomplish in SuiteScript 1.0
p
Have you written any SuiteScript before? I guess this is a course you are taking - are there not any notes/study materials with it?
h
@PNJ I have never tried SuiteScript before, I'm a begineer.No there is nothing i can see through. i have only to look from SuiteAnswers|Help but cannot find anything that leads me to achieve my task.
p
Ok, so what are you doing? Is it a course? Or some work? Do you know JavaScript?
h
it's a task. leading to training. Yes i know JavaScript
s
Who is doing the training? If someone is in fact training you, they should have taught you the SuiteScript 1.0 API methods to use for this task. It does not sound like that is the case here. What is this task for?
b
kinda cruel for training
suitescript 1 does not help you here
honestly suitescript 2 doesnt help either
the only solution that works in a suitescript entry point involves prompt, and that doesnt really fulfill the requirement without ignoring a bunch of the requirements
the alternative is picking your favorite ui library for a popup, which will almost certainly be asynchronous and inappropriate for a saveRecord entry point
h
@battk Exactly.i tried it using suitescript entry point prompts but was rejected.
@battk kindly check your inbox for my message for a minute.
s
@battk do we need DOM for this?
Copy code
document.main_form.submit();
or can we actually skip DOM and just use N/ui/dialog? first glance i'm thinking DOM though
b
basics are to show the popup and then do the equivalent of clicking the submit button again
s
@battk on the OK of the message box from say Ext.MessageBox.show ? wouldn't that require DOM? I guess I'll try it for homework haha
b
depends on how you do the equivalent of clicking the submit button again