Hello,
I'm using a project partner comboBox in Order system form and i need to select a particular value in ValidValues comming from OPRJ table to fill this comboBox , is it possible?
This is my c# code
Form form = B1Connections.theAppl.Forms.Item("139");
//Create Project object;
oPRJ = (SAPbobsCOM.Project)projectService.GetDataInterface(ProjectsServiceDataInterfaces.psProject);
//Set Down Project Values
oPRJ.Code = Numero_Dossier;
oPRJ.Name = nom_dossier;
try
{
if (Numero_Dossier != string.Empty)
{
projectService.AddProject(oPRJ);
}
}
catch { }
oItem = form.Items.Item("157");
oCmb = (ComboBox)oItem.Specific;
oCmb.ValidValues.Add (Numero_Dossier, nom_dossier);
oCmb.Select(nom_dossier,BoSearchKey.psk_ByDescription);
I get this error when running
Item -Form Item is not editable