E9: Update text on UI status bar

This is how I am getting my oTrans_Adapter:
oTrans_adapter = (ARInvoiceAdapter)csm.TransAdaptersHT["oTrans_adapter"];

I will try removing the DoEvents. It does take a bit to delete one invoice so there is definitely time for the status to get updated. It’s just not happening.
I did a simply loop for the 2 second sleep as the only action and I could see the status change. Weird.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:f99d49.png@ca2dc938.4b9e56a2]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Thursday, January 23, 2014 3:39 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


Also is your oTrans_Adapter the current adapter? if so when you call GetByID and all those other methods the oTrans.PushStatusText of those methods will be pushed to the status bar so it may be flashing by rather quickly.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Thu, Jan 23, 2014 at 3:38 PM, Jose Gomez <jose@...<mailto:jose@...>> wrote:
Have you tried removing the Application.DoEvents. ... that may conflict with the oTrans.PushStatusText...


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Thu, Jan 23, 2014 at 2:46 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Bump :)





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:e3d37b.png@cd793c5a.4cac22eb]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Joe Rojas
Sent: Wednesday, January 22, 2014 4:40 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Update text on UI status bar



This customization is on AR Invoice Entry.
I have other code that creates a new menu item that is designed to delete all invoices in an AR Invoice Group so that the user does not have to manually delete one at a time.

When they click this new menu items, it calls the following method:

private static void deleteAllInvoicesInGroup(Object sender, ToolClickEventArgs e)
{
decimal grpInvTot;
int i = edvInvcHeadList.dataView.Count - 1; //zero based index
int k = 1;
DialogResult userAnswer;
userAnswer = MessageBox.Show("This will delete all invoices in this group.\nDo you want to continue?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (userAnswer == DialogResult.Yes)
{
Cursor.Current = Cursors.WaitCursor;
for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), false);
Application.DoEvents();
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k + 1;
}
Cursor.Current = Cursors.Default;
oTrans.Refresh();
}
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:899eb1.png@08f7cbb9.4b9b2695]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> wrote:


Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191<tel:781-232-5191>>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com><mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com><mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>>] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com><mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>>
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191<tel:781-232-5191>>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com><mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com><mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>>] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524><tel:904.469.1524<tel:904.469.1524>> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>><mailto:jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>><mailto:jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>><mailto:jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




[Non-text portions of this message have been removed]
oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...> wrote:

Â
<div>
  
  
  <p>Hello,


I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]

</div>
 


<div style="color:#fff;min-height:0;"></div>

Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@…

http://www.josecgomez.com
     Â


Quis custodiet ipsos custodes?


On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...> wrote:

Â
<div>
  
  
  <p>Hi All,


Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring



[cid:fe6f47.png@aae2e3d3.49a6126c]


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas


Sent: Wednesday, January 15, 2014 2:06 PM


To: vantage@yahoogroups.com


Subject: RE: [Vantage] E9: Update text on UI status bar




Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]

</div>
 


<div style="color:#fff;min-height:0;"></div>

I use  oTrans.PushStatusText("Message", false);  for debugging a lot.  try one before and after your loop, maybe it is going so quickly that it is getting cleared.

 

Greg

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar

 

 

that should / does work... what does your code look like?



Jose C Gomez

Software Engineer

 


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...> wrote:

 

Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:fe6f47.png@aae2e3d3.49a6126c]

This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Update text on UI status bar




Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]

 



CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

Thanks.  That’s a new one to me that I know we’ll have a use for.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Wednesday, January 22, 2014 3:54 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Update text on UI status bar

 

 

I use  oTrans.PushStatusText("Message", false);  for debugging a lot.  try one before and after your loop, maybe it is going so quickly that it is getting cleared.

 

Greg

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar

 

 

that should / does work... what does your code look like?



Jose C Gomez

Software Engineer

 


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...> wrote:

 

Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:fe6f47.png@aae2e3d3.49a6126c]

This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Update text on UI status bar




Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]

 

 


CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."

This customization is on AR Invoice Entry.
I have other code that creates a new menu item that is designed to delete all invoices in an AR Invoice Group so that the user does not have to manually delete one at a time.

When they click this new menu items, it calls the following method:

private static void deleteAllInvoicesInGroup(Object sender, ToolClickEventArgs e)
{
decimal grpInvTot;
int i = edvInvcHeadList.dataView.Count - 1; //zero based index
int k = 1;
DialogResult userAnswer;
userAnswer = MessageBox.Show("This will delete all invoices in this group.\nDo you want to continue?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (userAnswer == DialogResult.Yes)
{
Cursor.Current = Cursors.WaitCursor;
for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), false);
Application.DoEvents();
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k + 1;
}
Cursor.Current = Cursors.Default;
oTrans.Refresh();
}
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:899eb1.png@08f7cbb9.4b9b2695]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
Bump :)





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:e3d37b.png@cd793c5a.4cac22eb]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas
Sent: Wednesday, January 22, 2014 4:40 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Update text on UI status bar



This customization is on AR Invoice Entry.
I have other code that creates a new menu item that is designed to delete all invoices in an AR Invoice Group so that the user does not have to manually delete one at a time.

When they click this new menu items, it calls the following method:

private static void deleteAllInvoicesInGroup(Object sender, ToolClickEventArgs e)
{
decimal grpInvTot;
int i = edvInvcHeadList.dataView.Count - 1; //zero based index
int k = 1;
DialogResult userAnswer;
userAnswer = MessageBox.Show("This will delete all invoices in this group.\nDo you want to continue?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (userAnswer == DialogResult.Yes)
{
Cursor.Current = Cursors.WaitCursor;
for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), false);
Application.DoEvents();
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k + 1;
}
Cursor.Current = Cursors.Default;
oTrans.Refresh();
}
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:899eb1.png@08f7cbb9.4b9b2695]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
Have you tried removing the Application.DoEvents. ... that may conflict with the oTrans.PushStatusText...



Jose C Gomez
Software Engineer



T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Thu, Jan 23, 2014 at 2:46 PM, Joe Rojas <jrojas@...> wrote:

Â
<div>
  
  
  <p>Bump :)







Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring



[cid:e3d37b.png@cd793c5a.4cac22eb]


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas


Sent: Wednesday, January 22, 2014 4:40 PM


To: vantage@yahoogroups.com


Subject: RE: [Vantage] E9: Update text on UI status bar




This customization is on AR Invoice Entry.
I have other code that creates a new menu item that is designed to delete all invoices in an AR Invoice Group so that the user does not have to manually delete one at a time.

When they click this new menu items, it calls the following method:

private static void deleteAllInvoicesInGroup(Object sender, ToolClickEventArgs e)
{
decimal grpInvTot;
int i = edvInvcHeadList.dataView.Count - 1; //zero based index
int k = 1;
DialogResult userAnswer;
userAnswer = MessageBox.Show("This will delete all invoices in this group.\nDo you want to continue?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (userAnswer == DialogResult.Yes)
{
Cursor.Current = Cursors.WaitCursor;
for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), false);
Application.DoEvents();
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k + 1;
}
Cursor.Current = Cursors.Default;
oTrans.Refresh();
}
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:899eb1.png@08f7cbb9.4b9b2695]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]

</div>
 


<div style="color:#fff;min-height:0;"></div>

Also is your oTrans_Adapter the current adapter? if so when you call GetByID and all those other methods the oTrans.PushStatusText of those methods will be pushed to the status bar so it may be flashing by rather quickly.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Thu, Jan 23, 2014 at 3:38 PM, Jose Gomez <jose@...> wrote:
Have you tried removing the Application.DoEvents. ... that may conflict with the oTrans.PushStatusText...



Jose C Gomez
Software Engineer



T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Thu, Jan 23, 2014 at 2:46 PM, Joe Rojas <jrojas@...> wrote:

Â
<div>
  
  
  <p>Bump :)







Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring



[cid:e3d37b.png@cd793c5a.4cac22eb]


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas


Sent: Wednesday, January 22, 2014 4:40 PM


To: vantage@yahoogroups.com


Subject: RE: [Vantage] E9: Update text on UI status bar




This customization is on AR Invoice Entry.
I have other code that creates a new menu item that is designed to delete all invoices in an AR Invoice Group so that the user does not have to manually delete one at a time.

When they click this new menu items, it calls the following method:

private static void deleteAllInvoicesInGroup(Object sender, ToolClickEventArgs e)
{
decimal grpInvTot;
int i = edvInvcHeadList.dataView.Count - 1; //zero based index
int k = 1;
DialogResult userAnswer;
userAnswer = MessageBox.Show("This will delete all invoices in this group.\nDo you want to continue?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (userAnswer == DialogResult.Yes)
{
Cursor.Current = Cursors.WaitCursor;
for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), false);
Application.DoEvents();
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k + 1;
}
Cursor.Current = Cursors.Default;
oTrans.Refresh();
}
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:899eb1.png@08f7cbb9.4b9b2695]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 22, 2014 3:21 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


that should / does work... what does your code look like?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 22, 2014 at 3:19 PM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:


Hi All,

Just giving this a bump.
I tried using the code that Jose gave me but for some reason, I am not using the status bar get updated.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring
[cid:fe6f47.png@aae2e3d3.49a6126c]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Joe Rojas
Sent: Wednesday, January 15, 2014 2:06 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Update text on UI status bar



Thanks Jose.
I gave this a try but I’m not seeing the status bar text change. It just stays as “Ready”.

Here is my code in case anything jumps out at you. The code does works with the exception of updating the status bar text.
I also tried adding “Application.DoEvents()” with not luck.

for (int j = i; j >= 0; j--)
{
oTrans.PushStatusText("Deleting Invoices..." + k.ToString() + " of " + (i+1).ToString(), true);
oTrans_adapter.clearData();
oTrans_adapter.GetByID(Convert.ToInt32(edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"]));
DataRow dr = edvInvcHead.dataView.Table.Rows[0];
oTrans_adapter.DeleteMaster(dr, edvInvcGrp.dataView.Table.Rows[0]["GroupID"].ToString(), edvInvcHeadList.dataView.Table.Rows[j]["InvoiceNum"].ToString(), out grpInvTot);
k = k+1;
}






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291> | cell: 781-408-9278<tel:781-408-9278> | fax: 781-232-5191<tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:030846.png@7b4d5686.42874203]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Wednesday, January 15, 2014 12:24 PM
To: Vantage
Subject: Re: [Vantage] E9: Update text on UI status bar


oTrans.PushStatusText("Your message", true/ false) 'true false depends on whether you want the hour glass or not


Jose C Gomez
Software Engineer


T: 904.469.1524<tel:904.469.1524> mobile
E: jose@...<mailto:jose@...><mailto:jose@...<mailto:jose@...>>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 15, 2014 at 12:22 PM, Joe Rojas <jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>>> wrote:


Hello,

I have a customization that will be processing a known number of records.
Because the process can take a bit, depending on the number of records, I’d like to update the status bar with the progress.

Could someone share a code example of how to update the status bar?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291<tel:781-573-0291><tel:781-573-0291<tel:781-573-0291>> | cell: 781-408-9278<tel:781-408-9278><tel:781-408-9278<tel:781-408-9278>> | fax: 781-232-5191<tel:781-232-5191><tel:781-232-5191>

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@...<mailto:jrojas@...><mailto:jrojas@...<mailto:jrojas@...>> | www.matsinc.com<http://www.matsinc.com><http://www.matsinc.com>
Ask us about our clean, green and beautiful matting and flooring

[cid:252b75.png@d892c821.4ba7acde]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]

</div>
 


<div style="color:#fff;min-height:0;"></div>