How can I use an EXTJS library to load a progress bar on screen and monitor the execution time of a saved search in NetSuite?Script to get Netsuite Advanced Inventory Serial NumbersNetsuite Suitelet: Iterate through a list of transaction line items Load and Submit record without reaching Governance LimitsNetsuite timetrack Duration field into a WorkflowNetsuite custom field does not display data in search resultsAdd a button to a results column in NetSuite Saved SearchesNetsuite System Notes for Contract ItemsSuiteScript Auto Create a Journal with Unapplied Payment BalanceHow do I set the context.currentRecord in a Suitelet?Netsuite SuiteScript 2.0 How to complete the parameters of the N/record load functionNetSuite SuiteScript 2.0 How to specify field, sublist field or subrecord field in N/search create API
What's the big deal about the Nazgûl losing their horses?
Will electrically joined dipoles of different lengths, at right angles, behave as a multiband antenna?
Did Stalin kill all Soviet officers involved in the Winter War?
Should I warn my boss I might take sick leave?
Why do most airliners have underwing engines, while business jets have rear-mounted engines?
Is it acceptable that I plot a time-series figure with years increasing from right to left?
Is this standard Japanese employment negotiations, or am I missing something?
How to supply water to a coastal desert town with no rain and no freshwater aquifers?
Why do Klingons use cloaking devices?
Creating patterns
When is one 'Ready' to make Original Contributions to Mathematics?
Problems in compiling code due to Modulus operator
Will Jimmy fall off his platform?
n-level Ouroboros Quine
Taking advantage when the HR forgets to communicate the rules
The Purpose of "Natu"
What are some bad ways to subvert tropes?
Advice for making/keeping shredded chicken moist?
Question about targeting a Hexproof creature
Do intermediate subdomains need to exist?
How do I iterate equal values with the standard library?
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
Why no parachutes in the Orion AA2 abort test?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
How can I use an EXTJS library to load a progress bar on screen and monitor the execution time of a saved search in NetSuite?
Script to get Netsuite Advanced Inventory Serial NumbersNetsuite Suitelet: Iterate through a list of transaction line items Load and Submit record without reaching Governance LimitsNetsuite timetrack Duration field into a WorkflowNetsuite custom field does not display data in search resultsAdd a button to a results column in NetSuite Saved SearchesNetsuite System Notes for Contract ItemsSuiteScript Auto Create a Journal with Unapplied Payment BalanceHow do I set the context.currentRecord in a Suitelet?Netsuite SuiteScript 2.0 How to complete the parameters of the N/record load functionNetSuite SuiteScript 2.0 How to specify field, sublist field or subrecord field in N/search create API
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to set up a progress bar (in a message box) on a client-side script for the Journal record type in NetSuite. This progress bar is supposed to trigger when an ACCOUNT ITEM (column field on journal record) is clicked. On CLICK, a saved search is suppose to run and when the search is complete, hide the progress bar and place results in another column field on the page.
I have already tried using the EXT JS framework to load a progress bar. I was successful with this when an account item is clicked, BUT unable to hide the bar after the search is complete.
I first declare my saved search which essentially calls the progress bar:
var saved_search = showProgressBarWithFn(search);
The function "showProgressBarWithFn(search)":
showProgressDialogWithFn: function(search)
try
Ext.MessageBox.show(
title: 'Please wait',
msg: 'Loading items...',
width:300,
wait:true,
waitConfig:
interval: 200,
scope : Ext.bind(search, this),
fn : function()
Ext.MessageBox.hide();
);
catch(e)
console.log("An unexpected error occurred" + e.message);
Above, I have tried to force the scope to run on the search, hence the "ext.bind" call. (Please advise if I have used this function incorrectly). I had read on the API documentation that the "scope" triggers the callback.
I expect a progress bar to show on screen, then disappear straight after the saved search has returned a result.
Any guidance to complete this task would be greatly appreciated!
extjs netsuite
add a comment |
I am trying to set up a progress bar (in a message box) on a client-side script for the Journal record type in NetSuite. This progress bar is supposed to trigger when an ACCOUNT ITEM (column field on journal record) is clicked. On CLICK, a saved search is suppose to run and when the search is complete, hide the progress bar and place results in another column field on the page.
I have already tried using the EXT JS framework to load a progress bar. I was successful with this when an account item is clicked, BUT unable to hide the bar after the search is complete.
I first declare my saved search which essentially calls the progress bar:
var saved_search = showProgressBarWithFn(search);
The function "showProgressBarWithFn(search)":
showProgressDialogWithFn: function(search)
try
Ext.MessageBox.show(
title: 'Please wait',
msg: 'Loading items...',
width:300,
wait:true,
waitConfig:
interval: 200,
scope : Ext.bind(search, this),
fn : function()
Ext.MessageBox.hide();
);
catch(e)
console.log("An unexpected error occurred" + e.message);
Above, I have tried to force the scope to run on the search, hence the "ext.bind" call. (Please advise if I have used this function incorrectly). I had read on the API documentation that the "scope" triggers the callback.
I expect a progress bar to show on screen, then disappear straight after the saved search has returned a result.
Any guidance to complete this task would be greatly appreciated!
extjs netsuite
What version ofextjs?Ext.MessageBox.show()haven't parameters likewaitConfig, where did you read it? Howscopetrigger the callback?Scopeis a pointer of the callback function. Can you attach code ofsearchfunction ?
– norbeq
Mar 26 at 8:21
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06
add a comment |
I am trying to set up a progress bar (in a message box) on a client-side script for the Journal record type in NetSuite. This progress bar is supposed to trigger when an ACCOUNT ITEM (column field on journal record) is clicked. On CLICK, a saved search is suppose to run and when the search is complete, hide the progress bar and place results in another column field on the page.
I have already tried using the EXT JS framework to load a progress bar. I was successful with this when an account item is clicked, BUT unable to hide the bar after the search is complete.
I first declare my saved search which essentially calls the progress bar:
var saved_search = showProgressBarWithFn(search);
The function "showProgressBarWithFn(search)":
showProgressDialogWithFn: function(search)
try
Ext.MessageBox.show(
title: 'Please wait',
msg: 'Loading items...',
width:300,
wait:true,
waitConfig:
interval: 200,
scope : Ext.bind(search, this),
fn : function()
Ext.MessageBox.hide();
);
catch(e)
console.log("An unexpected error occurred" + e.message);
Above, I have tried to force the scope to run on the search, hence the "ext.bind" call. (Please advise if I have used this function incorrectly). I had read on the API documentation that the "scope" triggers the callback.
I expect a progress bar to show on screen, then disappear straight after the saved search has returned a result.
Any guidance to complete this task would be greatly appreciated!
extjs netsuite
I am trying to set up a progress bar (in a message box) on a client-side script for the Journal record type in NetSuite. This progress bar is supposed to trigger when an ACCOUNT ITEM (column field on journal record) is clicked. On CLICK, a saved search is suppose to run and when the search is complete, hide the progress bar and place results in another column field on the page.
I have already tried using the EXT JS framework to load a progress bar. I was successful with this when an account item is clicked, BUT unable to hide the bar after the search is complete.
I first declare my saved search which essentially calls the progress bar:
var saved_search = showProgressBarWithFn(search);
The function "showProgressBarWithFn(search)":
showProgressDialogWithFn: function(search)
try
Ext.MessageBox.show(
title: 'Please wait',
msg: 'Loading items...',
width:300,
wait:true,
waitConfig:
interval: 200,
scope : Ext.bind(search, this),
fn : function()
Ext.MessageBox.hide();
);
catch(e)
console.log("An unexpected error occurred" + e.message);
Above, I have tried to force the scope to run on the search, hence the "ext.bind" call. (Please advise if I have used this function incorrectly). I had read on the API documentation that the "scope" triggers the callback.
I expect a progress bar to show on screen, then disappear straight after the saved search has returned a result.
Any guidance to complete this task would be greatly appreciated!
extjs netsuite
extjs netsuite
asked Mar 25 at 19:35
Arif WBArif WB
213 bronze badges
213 bronze badges
What version ofextjs?Ext.MessageBox.show()haven't parameters likewaitConfig, where did you read it? Howscopetrigger the callback?Scopeis a pointer of the callback function. Can you attach code ofsearchfunction ?
– norbeq
Mar 26 at 8:21
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06
add a comment |
What version ofextjs?Ext.MessageBox.show()haven't parameters likewaitConfig, where did you read it? Howscopetrigger the callback?Scopeis a pointer of the callback function. Can you attach code ofsearchfunction ?
– norbeq
Mar 26 at 8:21
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06
What version of
extjs? Ext.MessageBox.show() haven't parameters like waitConfig, where did you read it? How scope trigger the callback? Scope is a pointer of the callback function. Can you attach code of search function ?– norbeq
Mar 26 at 8:21
What version of
extjs? Ext.MessageBox.show() haven't parameters like waitConfig, where did you read it? How scope trigger the callback? Scope is a pointer of the callback function. Can you attach code of search function ?– norbeq
Mar 26 at 8:21
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06
add a comment |
1 Answer
1
active
oldest
votes
I have resolved this in another way and thought I'd share my answer.
I firstly created a function without a callback like below.
showProgressDialog: function(Title, message)
{
try
Ext.MessageBox.show(
title: Title,
msg: message,
width:300,
wait:true,
waitConfig:
interval:200,
);
I then call this in my main function of the script, followed by the saved search, then simply CLOSE the dialog using "Ext.MessageBox.Hide()" with a setTimeOut call to allow a short delay for the progress bar to show on screen.
showProgressDialog('Running vendor/customer search', 'Please wait...');
var results = executeSavedSearch('customer', filters, fields);
setTimeout (function() Ext.MessageBox.hide();,1000);
The reason for the setTimeOut() is because the saved search completes too quickly to show the progress bar and hide again. Happy to expand on this if other people have a similar issue.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55345216%2fhow-can-i-use-an-extjs-library-to-load-a-progress-bar-on-screen-and-monitor-the%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have resolved this in another way and thought I'd share my answer.
I firstly created a function without a callback like below.
showProgressDialog: function(Title, message)
{
try
Ext.MessageBox.show(
title: Title,
msg: message,
width:300,
wait:true,
waitConfig:
interval:200,
);
I then call this in my main function of the script, followed by the saved search, then simply CLOSE the dialog using "Ext.MessageBox.Hide()" with a setTimeOut call to allow a short delay for the progress bar to show on screen.
showProgressDialog('Running vendor/customer search', 'Please wait...');
var results = executeSavedSearch('customer', filters, fields);
setTimeout (function() Ext.MessageBox.hide();,1000);
The reason for the setTimeOut() is because the saved search completes too quickly to show the progress bar and hide again. Happy to expand on this if other people have a similar issue.
add a comment |
I have resolved this in another way and thought I'd share my answer.
I firstly created a function without a callback like below.
showProgressDialog: function(Title, message)
{
try
Ext.MessageBox.show(
title: Title,
msg: message,
width:300,
wait:true,
waitConfig:
interval:200,
);
I then call this in my main function of the script, followed by the saved search, then simply CLOSE the dialog using "Ext.MessageBox.Hide()" with a setTimeOut call to allow a short delay for the progress bar to show on screen.
showProgressDialog('Running vendor/customer search', 'Please wait...');
var results = executeSavedSearch('customer', filters, fields);
setTimeout (function() Ext.MessageBox.hide();,1000);
The reason for the setTimeOut() is because the saved search completes too quickly to show the progress bar and hide again. Happy to expand on this if other people have a similar issue.
add a comment |
I have resolved this in another way and thought I'd share my answer.
I firstly created a function without a callback like below.
showProgressDialog: function(Title, message)
{
try
Ext.MessageBox.show(
title: Title,
msg: message,
width:300,
wait:true,
waitConfig:
interval:200,
);
I then call this in my main function of the script, followed by the saved search, then simply CLOSE the dialog using "Ext.MessageBox.Hide()" with a setTimeOut call to allow a short delay for the progress bar to show on screen.
showProgressDialog('Running vendor/customer search', 'Please wait...');
var results = executeSavedSearch('customer', filters, fields);
setTimeout (function() Ext.MessageBox.hide();,1000);
The reason for the setTimeOut() is because the saved search completes too quickly to show the progress bar and hide again. Happy to expand on this if other people have a similar issue.
I have resolved this in another way and thought I'd share my answer.
I firstly created a function without a callback like below.
showProgressDialog: function(Title, message)
{
try
Ext.MessageBox.show(
title: Title,
msg: message,
width:300,
wait:true,
waitConfig:
interval:200,
);
I then call this in my main function of the script, followed by the saved search, then simply CLOSE the dialog using "Ext.MessageBox.Hide()" with a setTimeOut call to allow a short delay for the progress bar to show on screen.
showProgressDialog('Running vendor/customer search', 'Please wait...');
var results = executeSavedSearch('customer', filters, fields);
setTimeout (function() Ext.MessageBox.hide();,1000);
The reason for the setTimeOut() is because the saved search completes too quickly to show the progress bar and hide again. Happy to expand on this if other people have a similar issue.
answered Mar 28 at 11:12
Arif WBArif WB
213 bronze badges
213 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55345216%2fhow-can-i-use-an-extjs-library-to-load-a-progress-bar-on-screen-and-monitor-the%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What version of
extjs?Ext.MessageBox.show()haven't parameters likewaitConfig, where did you read it? Howscopetrigger the callback?Scopeis a pointer of the callback function. Can you attach code ofsearchfunction ?– norbeq
Mar 26 at 8:21
Hi - the search is simply running on the customer record. I have found an alternative to this now though, thanks for replying.
– Arif WB
Mar 28 at 11:06