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;








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!










share|improve this question






















  • 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

















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!










share|improve this question






















  • 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













0












0








0


1






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!










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 19:35









Arif WBArif WB

213 bronze badges




213 bronze badges












  • 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

















  • 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
















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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer



























      0














      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.






      share|improve this answer

























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 28 at 11:12









        Arif WBArif WB

        213 bronze badges




        213 bronze badges


















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해