API Support Forum
OEC API > API Support > Get Balance
Author Topic: Get Balance
(4 messages, Page 1 of 1)
Moderators: VPfau
CWhite140
Posts: 9
Joined: Feb 28, 2013


Posted: Feb 06, 2014 @ 05:27 PM             Msg. 1 of 4
I've reviewed advanced example. I notice that we don't get the account balance until we change the account.

How do we trigger those events at the form load so that balances show correctly?

It looks like we can use Globals.CurrentAccountOrAB.

I.e equivalent to request balance


Curtis White
Edited by CWhite140 on Feb 6, 2014 at 17:30:54
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Feb 06, 2014 @ 08:44 PM             Msg. 2 of 4
Majority of OECAPI functionality works as "pull model" - you don't need to request information, it is loaded to OECAPI instance after connect and keeps updated automatically. Balance is such data that updated without requests from client applications.

Victor Vins
Lead Software Developer
CWhite140
Posts: 9
Joined: Feb 28, 2013


Posted: Feb 07, 2014 @ 03:09 PM             Msg. 3 of 4
Yes but the advanced example doesn't work. The balance is shown to be blank until the account is changed.

Curtis White
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Feb 07, 2014 @ 04:33 PM             Msg. 4 of 4
I believe you mixed up request to API and server and an event to populate user interface

Victor Vins
Lead Software Developer