I had write an dummy extension that i want to work in test plan screen and its test steps screen. when a user check the Test steps i want to get the values of those checked test steps. If all steps are not being selected so it should return 'Pause' on close, not pass or fail.
I had write an extension of dialogue box (for warning that you had not selected this option)that i want to show on the click of Save & Close button if user had not selected a default value or hadn't clicked all steps. but i m unable to attach my extension to that dialogue screen.
I'm trying to find a solution where a user can refresh a prompt without refreshing the whole page.
I have two prompts which cascade:
promptA > promptB
The desired behaviour is
user makes selection in promptA
user clicks a link or button to and the report refreshes with the choice(s) from promptA applied [this part is solved]
or
user clicks a button or link
report does not refresh
values for prompt B are displayed
user clicks link or button to refresh page with choices from promptA and promptB applied
Can anyone suggest anything? Or is this not possible? (I'm aware this is a bit against the grain of a more standard approach such as cascading prompts on an inital prompt page!)
Thanks
Can somebody explain to my how can i use or upload my client script in suitescript creating a form in netsuite? Appreciate the help. Thank you.
Your question is not clear. You want to upload a client script that would create a form?
First, do you want to upload javascript/suitescript file? if yes then you should follow what Jo O posted earlier.
Second, you mean your client script will create form? I don't think it is possible because only suitelet can create a form.
Third, you mean to say that you want a client script attached to a form? If yes there are two ways to do it, First you can customize your form and put your client script on the Custom Code tab. Second is to create a client script record and do not deploy it to any record take note of the script ID and you can use the setScript method to set/attach the script on the nlobjForm object on before record load of user event script or on the suitelet.
This is from SuiteAnswers # 23388.
Assuming you're using the Eclipse IDE with the SuiteScript Add-in, first make sure that you have your NetSuite accounts setup in the IDE:
1.In SuiteCloud IDE, set your master password by going to NetSuite > Master Password > Set Master Password.
2.Add your NetSuite accounts by going to NetSuite > Accounts and clicking Add.
After you have the script file ready:
3.Next, right-click in the SuiteCloud IDE editor area and then go to NetSuite > Upload File in Editor. The Upload File in Editor window opens. Wait for the progress bar to complete. The Upload File in Editor window closes upon completion.
Verify Your Script Upload
4.Right-click in the editor area and then go to NetSuite > Log in to Project Account. A browser loads with your NetSuite account logged in.
5.In NetSuite, go to Documents > Files > File Cabinet. The File Cabinet Folders page of your NetSuite account loads.
6.Navigate to the SuiteScripts directory and check your file in the subdirectory that matches your project name.
You then need to create a custom form that will link in this code.
7.In NetSuite, go to Customization > Scripting > Scripts > New. The Select Type page loads.
8.In the Type list, click Suitelet. (assuming your code is a suitelet)
9.In the Name field, enter a valid name (example: GettingStarted_SS_HelloWorld).
10.In the ID field, enter a name that begins with an underscore (example: _gs_ss_helloworld).
11.In the Scripts subtab, select your *.js file in the Script File dropdown list.
12.In the Function field, enter the function name that you wrote. Use the exact case and do not use the parentheses.
13.Hover over the dropdown arrow on the Save button, and then click Save and Deploy. The New Script Deployment page loads.
14.In the Title field, enter the Name value from step 9.
15.In the ID field, enter the ID value from step 10.
16.In the Status dropdown list, select Testing.
17.Click the Links subtab.
18.In the Center dropdown list, select Classic Center (or whichever Center is appropriate).
19.In the Section dropdown list, select the menu where you want this to appear (example: Setup).
20.In the Category dropdown list, select the submenu on the menu where you want this to appear (example: Custom).
21.In the Label field, enter the exact item on the menu that you want the user to select (example: Getting Started).
22.Click Add.
23.Click Save.
Test Your Script
24.In NetSuite, go to the menu, submenu, and item specified in steps 19, 20, and 20 (example: Setup > Custom > Getting Started). The page you just created should load.
You should create a Suitelet with a form and then create url using N/url and open it using https or nlExtOpenWindow from client side.
I have created a very simple Workflow that contains two activities:
1- FormSubmitted (starts the Workflow, I specify a certain form)
2- Notify (to display a customized message on screen)
Now, when I hit "Submit" on the form, the browser hangs on and keeps on loading and loading, as if the operation is taking time. Nothing then happens,
Any idea?
I'm writing a chrome extension that needs to do some work when the user submits a form. I've got a content script running in the background that runs the following code:
$(document.body).on('submit', 'form', function () {
doWork();
});
That works perfectly on most sites, but breaks on the login form of twitter. Oddly, though, it doesn't break entirely. If I click the 'Sign In' button on twitter, the doWork() function will run. However, if I press enter to submit the form, doWork() never runs.
In my efforts to debug, I then copy and pasted my code into dev tools to rebind the function, and see if it worked. It did - even when using enter, the new binding worked.
My next thought was that maybe jQuery.on wasn't working on elements created via javascript (assuming the button submitted a hidden dynamically-created form via javascript, rather than the visible form, for some reason). So, I rebound the event like above, but added in a line that would alert me with the class name of the submitted form - all of the forms have unique class names on the twitter login page.
As you may have unfortunately guessed, clicking 'Sign In' vs. pressing enter alerted with the same class name - so, no matter which way I look at it, I have an event bound to that form submit, but for some crazy reason it is not getting called when I press enter.