Hi,
I have a class called CMyItemList, derived from CAknSettingItemList.
The setting list contains a CAknEnumeratedTextPopupSettingItem item and a CAknTextSettingItem item.
Now, when the user select an option from the popup field I want to set dynamically a value for the edit field.
I have overloaded the EditItemL method like this:
thanks.Code:void CMytemList::SetData(TMyInfo& aData) { iCountry = aData.Country(); iPrice.Copy(aData.Price()); } void CMytemList::GetData(TMyInfo& aData) { aData.SetCountry(iCountry); aData.SetPrice(iPrice); } void CMyItemList::EditItemL( TInt aIndex, TBool aCalledFromMenu ) { CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu ); ( *SettingItemArray() )[aIndex]->UpdateListBoxTextL(); ( *SettingItemArray() )[aIndex]->StoreL(); if(aIndex == 0) { TMyInfo iMyInfo; GetData(iMyInfo); // Here I use an array of prices corresponding to another array of countries .................... iPrice.Copy((*iPriceArray)[iMyInfo.Country()]); .................... //CEikonEnv::Static()->InfoWinL(_L("Price"),iPrice); // The price is changed accordingly to the choosed country as I can check using the above InfoWinL code line // Now my problem is how to update the second item, the edit item containing the prices? // I use something like: ( *SettingItemArray() )[1]->UpdateListBoxTextL(); ( *SettingItemArray() )[1]->StoreL(); // but nothing happen } }




