hi,

i am trying to build a registration form in my screen & i have to save these data which will be entered by the user. For this i took the help of the ex - Registration.

But in this when i am trying to save the data which has been entered by user i am not able to save thi

Here is the code...........


in .rss file i mentioned........


RESOURCE AVKON_SETTING_ITEM_LIST r_registration_setting_item_list
{
title = rls_setting_title;

items =
{
AVKON_SETTING_ITEM //Login ID
{
identifier = EregistrationSettingLogin;
setting_page_resource = r_registration_login_setting_page;
name = rls_login_title;
},
AVKON_SETTING_ITEM
{
identifier = EPassWord;
setting_page_resource = r_registration_password_setting_page;
name = "PASSWORD";
},
AVKON_SETTING_ITEM
{
identifier = EConfirmPassWord;
setting_page_resource = r_registration_password_setting_page;
name = "CONFIRM_PASSWORD";
},
AVKON_SETTING_ITEM
{
identifier = Esecurity;
setting_page_resource = r_registration_security_setting_page;
name = "SECURITY_QUESTION";
},
AVKON_SETTING_ITEM
{
identifier = Esecurityans;
setting_page_resource = r_registration_security_setting_page;
name = "SECURITY_ANSWER";
}
};
}




in registration listbox.cpp i mentioned...


CAknSettingItem* CRegistrationListbox::CreateSettingItemL(TInt aIdentifier)
{

CAknSettingItem* settingItem = NULL;

switch ( aIdentifier )
{

case EregistrationSettingLogin:
settingItem = new ( ELeave ) CAknTextSettingItem( aIdentifier,
iItemData->iLogin );

StoreSettingsL();


break;

case EPassWord:
settingItem = new ( ELeave ) CAknPasswordSettingItem(
aIdentifier, CAknPasswordSettingItem::EAlpha,iItemData->iPw );
StoreSettingsL();


break;
case EConfirmPassWord:
settingItem = new ( ELeave ) CAknPasswordSettingItem(
aIdentifier, CAknPasswordSettingItem::EAlpha, iItemData->iPw1 );
StoreSettingsL();

break;
case Esecurity:
settingItem = new ( ELeave ) CAknTextSettingItem(
aIdentifier,iItemData->iSecurityQuestion);
StoreSettingsL();


break;
case Esecurityans:
settingItem = new ( ELeave ) CAknTextSettingItem(
aIdentifier, iItemData->iSecurityAnswer);
StoreSettingsL();

break;
default:
break;
}
return settingItem;
}

IN the registrationview.cpp we have ...


void CRegistrationView::ConstructL()
{
BaseConstructL();

iListbox = new ( ELeave ) CRegistrationListbox;
iListbox->SetData( &iItemData );
iListbox->SetMopParent( this );
iListbox->ConstructFromResourceL( R_REGISTRATION_SETTING_ITEM_LIST );

AppUi()->AddToStackL( *this, iListbox );
iListbox->MakeVisible( ETrue );
iListbox->SetRect(ClientRect());
iListbox->ActivateL();
iListbox->DrawNow();
}


from the registrationappui.cpp i called ....

BaseConstructL( CAknAppUi::EAknEnableSkin );

iAppView = CRegistrationView::NewL();
CleanupStack::PushL( iAppView );
AddViewL( iAppView );
CleanupStack::Pop( iAppView );
ActivateLocalViewL( iAppView->Id() );

from constructL.

now i took the global variable in registrationappui.ccp & want to copy the value entered by user like....

iItemData->iLogin;
iItemData->iPw;
iItemData->iPw1;
iItemData->iSecurityQuestion;
iItemData->iSecurityAnswer;


to the global variables. BUt i am unable to do the same.
Please Help.....