How and when is the BindingContext collection populated?
Hello
For what I read, a BindingContext is a collection of CurrencyManager objects, and a Form has a BindingContext Property. On the other hand, for each data source on a Form, there is a CurrencyManager object. So, for example, imagine that one have placed a
DataSet ("ds") on a Form, and there are 3 tables in that DataSet ("Table1", "Table2", "Table3"). One can reference the CurrencyManager for every table like this:
Dim cm1 As CurrencyManager = DirectCast(Me.BindingContext(ds, "Table1"), CurrencyManager)
Dim cm2 As CurrencyManager = DirectCast(Me.BindingContext(ds, "Table2"), CurrencyManager)
Dim cm3 As CurrencyManager = DirectCast(Me.BindingContext(ds, "Table3"), CurrencyManager)
Which means, that somehow the BindingContext collection was populated, and this collection is indexed by a Key which the combination of Object + String.
The BindingContext is populated automatically at Design-Time, but I would like to know how it is made and how. What's more, I would like to know who creates the instances of CurrencyManager.
Thanks a lot.
Actually the BindingContext is a collection
of BindingMangerBase objects (from which CurrencyManager and PropertyManager derive).
The BindingManagerBase instances are created whenever a new
Binding is added to the specified control's BindingContext property. The BindingContext takes care of acquiring the BindingManagerBase instance by requesting it from the DataSource (if provided), loading it from cache (if already created), or
creating a new instance of CurrencyManager or PropertyManger as appropriate. The exact behavior can be see in the
source code.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"
Similar Messages
-
How and When Does the attribute VI_ATTR_VXI_TRIG_STATUS get initialized
How and When Does the attribute VI_ATTR_VXI_TRIG_STATUS get initialized. Do the actual trigger lines get measured or does the attribute get initialized to a default value when the vxi resource manager is executed?
Hey whl6868,
According to page 157 (or 3-135) of the manual (http://www.ni.com/pdf/manuals/370132c.pdf), there is no default value for VI_ATTR_VXI_TRIG_STATUS. If Resman is returning valid values for it, then it must be actually reading the lines. Else, I would only expect it to return valid values when you actually call the function yourself.
Regards,
David R
Applications Engineer
National Instruments -
How and When Sub-Ledger Data is populated into XLA_DISTRIBUTION_LINKS Table
Hello Gurus
I have been working on a Sub-Ledger Accounting and I could get a fair idea of how data is being transferred from XLA_DISTRIBUTION_LINKS to XLA_AE_LINES and XLA_AE_HEADERS. As per my understanding, During "Create Accounting" process, data from XLA_DISTRIBUTION_LINKS will be summed up based on JOUNRAL_LINE_TYPES rules and conditions to load into XLA_AE_LINES and XLA_AE_HEADERS. Then during "Transfer to GL" process, data from XLA_AE_LINES and XLA_AE_HEADERS is transferred to GL Tables. What I didn't understand is how and When data gets loaded into XLA_DISTRIBUTION_LINKS. What are the rules and conditions and during which step data will be loaded to XLA_DISTRIBUTION_LINKS table? Can somebody please explain me how data is transferred from Sub-Ledger Distribution Tables to SLA Distribution Table?
Thanks,
Sunny.Above Notes are good.
But I just wanted to add a staight point.
xla_distribution_links and xla_ae_lines will get populated at the same time.
Both goes on JLTs and their conditions. One is detailed and the other is summarized / merged.
xla_ae_lines will have extra balancing lines and xla_distirbution_links will have extra gain / loss lines, which end up with zero amount.
Also check the links for the setup of distribution identifiers.
http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextacattg
http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextdisidg
By
Vamsi -
I know nothing about how to use my new ipod and when reading the little information that came with it, all I can do is turn it on. Then in a few seconds it goes black, never having brought up a screen to do anything! Help! What do I do to get this thing going?
You might consider connecting it to the charger and charging up the battery overnight.
Please Get the iPod Touch User Manual for iOS 5 -
my computer crashed and had to be restored to factory settings losing ituness collection of music. My ipad has my itunes library. how do i get the music collection from the ipad to the computer?
You should be able to copy iTunes purchases over to your computer's iTunes via File > Devices > Transfer Purchases. For music from other sources (e.g. copied from CDs) you will need a third-party program to copy them back from your iPad - there are some listed half-way down this page which should work : https://discussions.apple.com/docs/DOC-3991
-
when do games get saved? Can i do it manually? I often lose most recent game if i restore it from iCloud
You'd need to ask the developer. How and when individual apps use iCloud is up to the developer of that particular app,
-
How and when the database release a row lock?
Dear experts,
We are using the following statement to obtain a row lock in a table in the database(ORACLE of course),
SELECT * FROM {TABLE_NAME} WHERE ID = 1 for update
and if we succeed grabbing the row lock we will continue to issue a update statement every 30 seconds to preserve the lock as far as possible.
here is the update statement to preserve the lock,
UPDATE {TABLE_NAME} SET time = ? WHERE ID = 1.
As you see more longer we keep holding the row lock , more update statements are submitted in the pending transaction.
In normal case our application can grab the exclusive row lock and works for a long time,however sometimes a connection reset exception is thrown
and our application will close the connection(I assume the pending transaction will be rolled back by the database) and exit the JVM.
Since other applications will keep trying to grab the same row lock to become the master role,
we expect one of them can succeed but they are all failed because the database has not released the row lock as expected.
Can someone explain more details about how and when the row lock can get released in our use case?
Thanks,
SuoNayi
Edited by: SuoNayi on 2013-5-30 上午8:12Hm. Is this part of an XA transaction by any chance? I know that Oracle maintains separate bookkeeping for such transactions which can cause rows to stay 'locked' even when the regular DBA views will indicate there is no user currently locking the record at all. I have no idea about the actual details and what you need to do to clean up such a situation, that is something a DBA should know and do.
If not... well this is more of a question for people who know the DBMS, which makes it a target for the Oracle DBMS forums. Java developers don't tend to have DBA-level knowledge of the database, you should ask the question where you have more chance of people with expertise answering stuff:
General Database Discussions -
How and when the table will go STALE ?
Hi,
I want to check how and when a table will be marked as STALE.
I have done following steps
---- Created a table --------------------
SQL> create table t1 (id number, name varchar2(100)) ;
Table created.
---- Inserted decent amount of data --------------
SQL> declare v1 number; begin for i in 1..25 loop
2 insert into t1 select object_id, object_name from all_objects ; commit; end loop;
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> select table_name, status, num_rows, last_analyzed, monitoring from user_tables where table_name='T1';
TABLE_NAME STATUS NUM_ROWS LAST_ANAL MON
T1 VALID YES
---- Gather stats -----------------
SQL> exec dbms_stats.gather_table_stats( user, 'T1', METHOD_OPT => 'FOR ALL COLUMNS SIZE 1');
PL/SQL procedure successfully completed.
SQL> select table_name, status, num_rows, last_analyzed, monitoring from user_tables where table_name='T1';
TABLE_NAME STATUS NUM_ROWS LAST_ANAL MON
T1 VALID 115544 18-JAN-08 YES
---- Insert more data ---------------------------
SQL> declare v1 number; begin for i in 1..25 loop
2 insert into t1 select object_id, object_name from all_objects ; commit; end loop;
3 end;
4 /
PL/SQL procedure successfully completed.
Now, after I have analyzed the table and get the stats in, I loaded good amount of data. So, in theory, this table should be marked as STALE.
Where can I check if this table has been marked STALE? when ?
Please guide.
ThanksYou need to read that manual with more caution. It has all info you need.
1. Table modification info stays in shared pool and flushed into dictionary by Oracle automatically. You can explicity do it by calling dbms_stats.flush_database_monitoring_info.
2. dba_tab_modifications view = How many DML are applied to target table?
dba_tab_statistics.stale_stats = Is statistics stale?
3. When you call dbms_stats.gather... familiy, Oracle flushed the stale info to disk. You gnerally don't need to care about that.
4. Statistics is considered to be stale, when the change is over 10% of current rows.
(As of 11g, this value can be customized per objects. Cool feature)
create table t_stat(id int);
insert into t_stat select rownum from all_objects where rownum <= 100;
commit;
exec dbms_stats.gather_table_stats(user, 'T_STAT');
select * from sys.dba_tab_modifications where table_name = 'T_STAT';
No row selected
select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
NO
insert into t_stat select rownum from all_objects where rownum <= 20;
select * from sys.dba_tab_modifications where table_name = 'T_STAT';
No rows selected <-- Oops
select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
NO <-- Oops
exec dbms_stats.flush_database_monitoring_info;
select * from sys.dba_tab_modifications where table_name = 'T_STAT';
TABLE_OWNER TABLE_NAME PARTITION_NAME SUBPARTITION_NAME INSERTS UPDATES DELETES TIMESTAMP TRUNCATED DROP_SEGMENTS
UKJA T_STAT 20 0 0 2008-01-18 PM 11:30:19 NO 0
select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
YES -
I've connected my digital camera to my 2013 mac mini and used iPhoto to import photos from the camera.
HOW and WHEN can I safely remove the camera please?Dismount the camera by clicking on the unmount icon on the right in the iPhoto source pane. Once it is unmounted remove it
LN -
I created a new collection and put all of my same photos in them as a previous collection, then I changed them to black and white and both collections changed. How do I keep the first collection colour and make the second collection black and white.
For the second collection, choose the option to make virtual copies. Then you can turn the virtual copies to black & white, leaving the first collection in color. If you want file copies of the B & W images you can export copies.
-
I have an employee running Illustrator in the Creative Cloud and for whatever reason her PPD field is grayed out when she goes to print. My other two employees running this both have the Fiery file for the printer we have as an option. Any idea how I can get the PPD field populated?
Permissions issues on the PPD files or the printer... Or the driver has never been fully installed in the first place due to whatever technical or again permissions issues...
Mylenium -
How and when to create a fact table
hi every1,
I am new to oracle and specially to Data Warehousing. I am using OWB 11g on windows XP.
I have created the dimensional for a database, now i am in the implementation phase.
i have the following questions.
1. I don't know how and when to create a fact table. I have already created the dimensions (ROLAP).
2. Do i need to create a mapping for a Cube. if yes, then how to load them from 4 different dimensions. how will be the join condition, they don't match?
3. I will also try for aggregation, do i need to use MOLAP for the dimensions or ROLAP works?
Please, give a quick reply.
regards
RFYou should ask your question here:
Warehouse Builder
where it is on topic. -
Usage of G/L interim Account - How and When to offset it ?
Hello,
To use this account, we have to specify that the payment method is connected to this type of account.
After, we have to assign the G/L Interim account to the bank master data.
This method is only available with payment transfer.
But if the posting following the bank transfer is duly put onto this transitory account, how and when can you offset it against a genuine Bank Account?
Thanks
StéphaneStéphane,
The Checking Account clearning (Interim account) is mainly used when there is a step after the Incoming payment and before the money is actually realized in the Bank. This is mainly true in case of Checks, Credit Card and Cash Deposits.
The Deposit function which is performed for the above mentioned 3 types of transaction actually offsets the Interim Account.
The JE for the Deposit function typically is
Bank Account Debit
Interim Account Credit
Let me know if you have further questions
Suda -
Composite mode (control click or right click) and how and when to use
Hello,
I would like to learn how and when to utilize the composite mode (control click or right click on your timeline)and all of its functions. Do you have a recommendation as to who might be able to explain what each of the composite mode functions do? Editors keep referring to how great this feature in FCP is.
Thanks,
JordanHave a read through the manual first. It explains what Composite Mode does and the theoretical underpinnings. Book III- Chapter 18- Page 361 (in FCP 5.1) is a good place to start.
If you have questions, come back.
Have fun.
x -
Broadband usage-how and when are you informed?
Hi all,
I was hoping someone could help me. I have recently been made aware that I have been going over the monthly usage allowance for my Broadband option by the fact that I have had a charge added to my account. After speaking to a BT operator today I am not really any further forward. I had asked if I should have been informed of this sooner and they said that they had sent an email to my 'primary' email address which was the BT.com one-which I don't use and don't even know how to access. I have all my bills etc sent to my usual address so I think it is disgusting that anything is sent anywhere else other than my designated email address. As far as I was concerned everything which was sent from BT went to my designated address and I wasn't informed any different at any point. Also, he told me I had been going over my allowance since January and that the way the billing works means I have only just been charged for February on this month's bill (April). I don't see how this could be right as I would have thought the charge should have been added the month after exceeding so I would have paid for February in March? This now means that because I didn't know about it, I will be paying for the amount I exceeded in March in May which I think is ridiculous.
I have been with BT for 5 years and have never come across this problem before but I do know that I feel uninformed. The person I spoke to today was rude and aggressive and I was disgusted by the way he spoke to me as I work in positions concerning customer service and his manner was appalling.
So basically I am hoping someone could tell me exactly how and when you should be informed of exceeding your allowance? Also, if an email is sent to the BT.com address-why is this as all my bills etc are sent to another email address?
Thanks in advance for any replies,
EmmaA few people have found this out, re the primary email only issue.
If you can get into your email account, you should be able to forward all email to an alternative email address to avoid this situation again.
If you have an BT online account you can check your usage via their usage meter (although there have been issues with it around the Jan - Mar period). This will help you keep an eye on home much you are using.
With the charge, the first month you go over they don't charge you. But if you go over a second time they will start to charge, hence the offset charging.
if you require a response from BT you could try the MODS on here by completing http://bt.custhelp.com/app/contact_email/c/4951 (allow 72 hrs for a response)
Check your exchange or major service outagesIf someone has given a helpful answer, please click on their Ratings star on the left-hand side. ***
Maybe you are looking for
-
Using a second blog for a testimonials page
Hi, I'm building a site for someone who will be purchasing the webMarketing hosting plan so I won't have access to any webApps. To get around this problem, I've created a second blog to be used to manage testimonials. I've created a page and have ins
-
I have an iPhone 4 with IOS 4.2.6. I recently received an iPad with IOS5.1.1. I want to update my IOS on my phone but the computer I use is no longer hooked up to the Internet. What do I need to do? Also, does my iTunes need to be updated? It is what
-
How to get rid of Reading List and why my add page going in there?
My + on the toolbar is now adding pages to the reading list instead of the bookmark.. How do i change that/get rid off reading list? I want stuff to go to bookmark. I tried to change the setting in in Safari>Preferences>Bookmark but I dont have a bo
-
30EA2 code insight completion odities
update statements seem not to be supported by code insight completion for table name: For example for table 'table_name': type 'update table_' and press ctrl-space does not complete table name. When table name is typed, completion for field names wor
-
Error messages when generating
Hi, I am getting error messages when generating Webhelp that I haven't gotten before. When i go into the output files after getting these messages, I notice there are hardly any of the java script files in there. The messages I get are "Template Acti