Nested ItemsControls' binding breaks when underlying data source changes, and the ItemsControls are collapsed

Windows Phone WinRT App, targeted to Windows Phone 8.1.
I have a nested data structure: class (SampleDataSource), that has an ObservableCollection (Groups) that contains class (SampleDataGroup) items that has an ObservableCollection (Items)
that contains class (SampleDataItem) items.
SampleDataSource is the DataContext of root item, a pivot control's ItemsSource is set to
Groups. In the pivot's DataTemplate there is an ItemsControl with ItemsSource set to
Items.
The above scenario is a slightly modified version of the pivot app template that is generated by Visual Studio.
So far it works properly.
Then I added a ToggleSwitch to the page that toggles the Visibility of the pivot.
Still works.
Then I added some more code to clear the Groups ObservableCollection when the pivot made collapsed, and reload the data before its visibility is set back to visible.
The result is that the top-level ItemsControl (the pivot) gets displayed properly, but the ItemsControl is empty. If I scroll to an other pivot page, the ItemsControl is populated, and from this point everything works correctly, even the initially empty
ItemsControl works just fine.
The code that is relevant to the issue is:
private async void ToggleVisibility_Toggled(object sender, RoutedEventArgs e)
if (pivot != null)
// Was collapsed, therefore we are going to show it, so load the data source
if (pivot.Visibility == Windows.UI.Xaml.Visibility.Collapsed)
await SampleDataSource.GetInstance().GetSampleDataAsync();
pivot.Visibility = (sender as ToggleSwitch).IsOn ? Visibility.Visible : Visibility.Collapsed;
// Just got collapsed, so remove the data from memory
if (pivot.Visibility == Windows.UI.Xaml.Visibility.Collapsed)
SampleDataSource.GetInstance().Groups.Clear();
The project (as mentioned above, it's a slightly modified version of Pivot App template) that reproduces this issue is available
HERE.
Does anyone have any idea what I should do to make ItemsControl work properly after making pivot visible?

I can't help you with this myself as I've not done it but there are quite a few tutorials kicking around the net.
Simple ODBC Connections in Adobe LiveCycle:
http://www.youtube.com/watch?v=C56_Cz-aE0c
Connecting a form to a database:
http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
Database connected forms:
http://acrobatusers.com/tutorials/database-connected-forms

Similar Messages

  • What is the data source name and the data target name for the table COSP

    Hi,
    Actaully i am new to fico/bw,and i have to create a report based on the actual and budget value and difference in the variance.
    in R/3 side the table they are using is COSP,so please let me know what is the data source name and the cube or ods name in BW side.wht are the fields in which i can get the BUDGET value in the report.
    here we are using all the business content extractors and BI content cubes and odss.
    please reply immediately as its very jurgent isssue.
    Thanks,
    ashok

    answered

  • How do i connect my keyboard when it is turned on and the batteries are new, the bluetooth does not recognize it?

    I had a connection between my macbook pro and my wireless keyboard, when the keyboard stopped working.  I replaced the batteries, and it will no longer allow me to connect the keyboard.  In fact, my macbook no longer recognizes it at all when I try to reconnect via bluetooth.

    Yes, I've had a similar problem:
    My keyboard was connecting just fine except for recently when my son would switch to his user and then I would switch back after he finished his homework in another room in the house.
    Now I've restarted and there is no longer a Bluetooth option to click in System Preferences, and as I dig deeper into the Network option, I can click the Bluetooth PAN, but if I try to "add" a BT device or select "Advanced" the button is grayed-out and the message says BT is not available.
    The keyboard power cycles fine and is available to my iMac for pairing.
    My top of the screen menu bar shows the BT symbol, but tells me it's not available.  Whaaaat???
    Utilities' System Info tells me there is "no information available" when I click the BT devices under hardware.
    Somehow it appears I've either lost the BT drivers or the module has failed.
    Any suggestions??
    TIA, Bradley

  • What needs to be done in OBIEE 11g when underlying data types change?

    I have an SQL table that I am referencing. It contains several date fields that were varchar(8). In order to do calculations, I just cast the fields as date, and performed my calculation.
    Recently, the DBA changed the fields to date type.
    I did a "View Data" and "Update row count", but it seems as if OBIEE is still treating the fields as varchar fields.
    What is the proper procedure in OBIEE 11g to recognize the changes that occurred in the underlying table?

    Hi
    In your scenario, I can suggest you can change manually to  each field lengths in physical layer.
    If you really looking one time fix then try to import the new table stricture into new rpd then save it then try to  merge original rpd . – But it is risky process ( We have two methods, patch merge and fully repository merge).
    Before doing above method take the backup original rpd and do it in your local.
    Thanks,
    Satya Ranki Reddy

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • Problem with embedded data-sources.xml and custom UserManager

    Hi all,
    Our application uses a custom UserManager, which is basically extended from the JDBC UserManager, declared as follows in orion-application.xml:
         <user-manager class="com.infocorpnow.a2g.security.oracle.A2GUserManager">
              <property name="table" value="pos.users" />
              <property name="userNameField" value="username" />
              <property name="passwordFiled" value="password" />
              <property name="dataSource" value="jdbc/A2GDS" />
              <property name="groupMemberShipTableName" value="pos.user_roles" />
              <property name="groupMemberShipGroupFieldName" value="role_name" />
              <property name="groupMemberShipUserNameFieldName" value="login_id" />
         </user-manager>
    Since we want to be able to deploy the application several times on the application server, and therefore have each deployment of the ear point to its own datasource (i.e. its own local "A2GDS"), we've found out how to embed data-sources.xml inside the EAR file we're deploying, and modify the orion-application.xml as follows:
         <data-sources path="./data-sources.xml" />
    And then place data-sources.xml in the same meta-inf folder as the orion-application.xml.
    This has worked fine when deploying to the standalone OC4J.
    Now when I try to deploy the exact same EAR file in Oracle 9iAS, and I get to the User Manager screen, the Custom User Manager does not show up correctly. It did show up prior to me embedding the data-sources.xml. Please help? This is fairly urgent.
    Thanks
    Jason

    I should also mention I'm using the Java Edition of 9iAS R2 (9.0.3 container) on Solaris.

  • I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    Sorry, but it is not possible to merge two Apple IDs/iTunes Store accounts.
    Regards.

  • Difference between data sources 0CO_PC_PCP_03 and 0CO_PC_PCP_010

    Hi All,
    Please tell me the difference between these two data sources 0CO_PC_PCP_03 and 0CO_PC_PCP_010.
    Thanks,
    Mayank

    Hi,
    The problem with period format that you are mentioning before executing the DS in RSA3.
    Check the format of that field in source and provide the correct format.
    Crrect Format : YYYYPPP
    For your scenario provide the Period value as 2009001(Dont Put Dot) and execute the ds.You will be able to  see the data in RSA3.
    Regards
    Ram.
    Edited by: Ramakanth Deepak Gandepalli on Dec 31, 2009 6:33 AM

  • I have microsoft word for for my Mac book pro. When I open saved letters /documents on word the date automactically changes to the current date. How do I stop this happening? Many Thanks

    I have microsoft word for for my Mac book pro. When I open saved letters /documents on word the date automactically changes to the current date. How do I stop this happening? Many Thanks

    I suggest you post your qeustion on the Microsoft Mac forums as it's their software you're having issues with and that's where the MS experts hang out
    http://answers.microsoft.com/en-us/mac

  • How to change the Data sources after deploying the application ??

    Hi All,
    i want to know how to change the Data sources after deploying the application to the application server ???
    I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)

    Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?

  • Data source properties for the rulefiles.

    Could some one explain what is the use of field edits like move/split/join/create of data source properties for the rulefiles.

    move/split/join/create are very useful loading data without going back to source file and changing them. For example
    you have an entity dimension with member names like
    east10569
    east10658
    if you want to add a prefix for these members to make them unique, you can use those field edits.
    the other uses which I saw is concatination to create unique names etc.
    hope this helps

  • My imported movie shows up in the event library under 2006 date, month of march, the movie name.  I want the movie to show up in the event library under the date I choose and the movie name. How do I do this?

    My imported movie shows up in the event library under 2006 date, month of march, the movie name.  I want the movie to show up in the event library under the date I choose and the movie name. How do I do this?

    rogerhermans wrote:
    I did change the name of the event. I cannot change the date of the event in the Modify command. The date and month was selected by the system as I did not name my event to start with. I now want to change the date (from 2006 to 1987) , delete the month and show the event name. I want the event library to post all my events by year (specified by me) and name of event.
    you can change the date, so that FCPX categorizes it properly.  First delete the clip(s) from FCPX, but not from your computer entirely, make sure you have the originals somewhere.
    Open a terminal window and use the following command:
    touch -t 198711280800.00 <path/filename of clip>
    Where the format is:  (use leading zeros if necessary for date & time)
    first four digits: year
    next four:  month and day
    next four:  time of day (in 24 hour format)
    next 2:  seconds as a decimal (this is optional, if you leave it off you will get 00 seconds)
    The above example will change the file date to Nov. 8, 1987  08:00:00 AM
    This will change the created, modified and last access dates of the clip/file.
    Then reimport the clip(s) and FCPX should categorize it properly.

  • How to findout the data source information for the perticular tables

    Hi,
    Can you please tell me the process to findout the data source information for the perticular tables .
    For ex.. T2503 ,T2507 ,T25A1,T25A2 etc ..
    I am doing a reverse engineering to find out the data sources build on the above SAP Tables.
    Thanks.

    Hi,
    Still we haven't get the field level information ,before they send us we should first give them the corresponding data sources for the COPA tables which they have given .
    I have searched in help.sap.com but I didn't find any information on this .
    Please let me know is there any way to know the data source details for SAP Tables.
    Thanks

  • Failed to acquire DAS with data sources that match the specified OCE

    Please help, Thank you all.
    We are migrating Oracle databases from Windows to Linux servers. Currently, I have no problem to use my desktop Hyperion Intelligence Designer 8.5 with new oce file to connect to Linux. However, I published the same oce file to Hyperion Performance Suite 8.5 then I got “Sever Error [2018]: Failed to acquire Data Access Service with data sources that match the specified OCE”.
    I launched Service Configurator, in the “Local Service Configurator - DAS1_host”, the “Database JDBC URL is point to Linux server. Also, I added ODBC connection to Oracle database on Linux in the “Properties of Data Access Service: DAS1_host’s Data Source”. Database of JDBC URL in BI1_host, AZ1_host, PUB1_host, SM1_host, LS1_host, UT1_host, BPS1_host, AN1_host are also point to Linux server.
    The “Remote Service Configurator” has ES1_host’s” Storage” with JDBC URL point to Linux server. The same for RM1_host’s and NS1_host’s “Storage” with JDBC URL point to Linux server.
    Is there some missing configuration on the server? Thank you in advance.

    You should login to my oracle support to look into this ID.
    This is the solution mentioned
    Solution
    1) In the .profile file, you will find the definition of the LD_LIBRARY_PATH variable. However, the path to 64 bit libraries is probably appended before the path to the 32 bit libraries(%ORACLE_HOME%/lib32). Therefore, please reverse the order in the definition so that the 32 bit libraries get loaded before the 64 bit libraries.
    Then, restart all services.
    2) Oracle 9.2 was the first Oracle release which defaults to using the 64 bit libraries in the 'lib' directory and the 32-bit libraries that we need are in the 'lib32' directory.
    Therefore, please have the%ORACLE_HOME%/lib32 placed in front of the LD_LIBRARY_PATH environment variable definition.Then, restart all services.
    3) Please check that users have read and write access to the files located in the %ORACLE_HOME%/lib32 folder.
    4) Check the permissions of the libclntsh.a file(located in the %ORACLE_HOME%/lib32 folder) are set to rwxr-xr-x
    5) Recreate the OCE connection in DAS and restart DAS in CMC.
    6) Restart all the BIPlus Services and process the query.

Maybe you are looking for

  • GRE/Legal Entity not migrated in R12

    LE not migrated into R12 We are upgrading from 11.5.9.2 with OPM to R12.0.4, after upgrade, LE not migrated Question arise is At 11i, For Legal Entity, Is it necessary to attach Classification of HR Organization. Existing is GRE/Legal Entity Only.

  • Cant download

    I can't download from Nokia music, while clicking buy its show as an error message " there was a problem registering your phone with your Nokia music unlimited subscription. Try again in a moment- if the problem continues, contact Nokia support

  • Is it possible to call a web service within acrobat reader.

    Hi, I designed a form template which makes a web service call. Then tested the form using acrobat professional 8.0. Everything was fine. But, when I open the same form with acrobat reader, the web service call didn't work. I want to know is this a kn

  • Top 10 Opportunities

    How do I see the Fiscal Qtr, Fiscal Year, and Region drop down that are included in the Top 10 Opportunities report. I looked at it in design mode but I do not see where they are. I copied the report, because I need to change it to top 15, and I cann

  • MTE Class Availability_RFC_Destinations_MA_Class Metric

    Hello guys, We need to monitoring Precalc server with Solution Mnager. We are create RFC to Precal Server in our Solman and test MTE Class Availability_RFC_Destinations_MA_Class with FM /SDF/E2E_CCMS_MTE FM work well and display the correct informati