03-06-2024 1:30 PM - edited 03-06-2024 1:33 PM
After migrating customer's servers from SAP9.3 PL12 to SAP 10 2402 (through 2208) our addon started giving back an exception when accessing any property of SelectedObjects from ChooseFromListEvent
System.Runtime.InteropServices.COMException (0xFFFFE1B3): Data Table - invalid Unique Id [66000-138]
bei SAPbouiCOM.DataTableClass.get_IsEmpty()
on line where I use cflEvent.SelectedObjects.IsEmpty, like in code sample:
public bool ProcessItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal)
{
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST && !pVal.BeforeAction && pVal.ActionSuccess && pVal.ItemUID == "edBP") {
var oForm = GetForm(FormUID);
SAPbouiCOM.ChooseFromListEvent cflEvent = pVal as SAPbouiCOM.ChooseFromListEvent;
SAPbouiCOM.Grid grid = SAPUtils.GetControl<SAPbouiCOM.Grid>(oForm, "gRLZ");
if (!cflEvent.SelectedObjects.IsEmpty)
{
SetCardName(oForm, cflEvent.SelectedObjects.GetValue("CardName", 0).ToString());
Dear experts, any ideas what should I do with this? It looks like a bug.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.