Skip to main content
Answer

Customize Data Access

  • August 24, 2023
  • 1 reply
  • 74 views

Forum|alt.badge.img

It show me like this when reload “ Incorrect syntax near ')' ”. I think my code is correctly but…

here it is, please advice me

[PXSelector(typeof(Search2<InventoryItem.inventoryID,LeftJoin<InventoryItem,On<InventoryItem.inventoryID,Equal<INItemCategory.inventoryID>>>,Where<INItemCategory.inventoryID.IsNull>>))]
        protected virtual void _(Events.CacheAttached<INItemCategory.inventoryID> e)
        { // Empty method
        }

Best answer by sweta68

Hi @kevinheng21 ,

Could you please try below code snippet?

[PXSelector(typeof(Search2<InventoryItem.inventoryID, LeftJoin<INItemCategory, On<InventoryItem.inventoryID, Equal<INItemCategory.inventoryID>>>, Where<InventoryItem.inventoryID.IsNull>>))]
protected virtual void _(Events.CacheAttached<INItemCategory.inventoryID> e)
{
// Empty method
}

Hope, it helps!

Regards,

Sweta

1 reply

Forum|alt.badge.img+9
  • Semi-Pro III
  • Answer
  • August 24, 2023

Hi @kevinheng21 ,

Could you please try below code snippet?

[PXSelector(typeof(Search2<InventoryItem.inventoryID, LeftJoin<INItemCategory, On<InventoryItem.inventoryID, Equal<INItemCategory.inventoryID>>>, Where<InventoryItem.inventoryID.IsNull>>))]
protected virtual void _(Events.CacheAttached<INItemCategory.inventoryID> e)
{
// Empty method
}

Hope, it helps!

Regards,

Sweta