Hi.
I am calling the Import dialog with out the enhanced view and setting the fields before the dialog displays. I can set all of the fields except the Database. I would like to set the Database and lock it down. Here is my code. I am doing all this in the ImportCMD_OnINIT event.
private void ImportCMD_OnINIT(object DLG)
{
NewProfileDlg temp=null;
try
{
temp=(NewProfileDlg) DLG;
temp.SetAttributeValueByID(IManage.AttributeID.nrDescription,locProfile.R_DBField1,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrType,locProfile.R_DBField2,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrClass,locProfile.R_DBField3,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrSubClass,locProfile.R_DBField4,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrOperator,locProfile.R_DBField5,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrAuthor,locProfile.R_DBField6,false);
temp.SetAttributeValueByID(IManage.AttributeID.nrCustom1,locProfile.R_DBField7,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrCustom2,locProfile.R_DBField8,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrComment,locProfile.R_DBField12,true);
temp.SetAttributeValueByID(IManage.AttributeID.nrDatabase,"Corporate",false); <-***This does not seem to have an effect on the Profile. ******
}
catch(System.Exception caught)
{
}
temp=null;
}
Thank you,
Chris
Edited by cheld on 09/21/05 02:11 PM (server time).