Hi Guys,
I am trying to hide specific grid columns on the My Cart (SP700001) screen for portal users. To achieve this, I attempted to implement the logic within a graph extension for InventoryCardMaint.
However, after adding the graph extension under the Code section of the Customization Project Editor and publishing with the default generated code, I encountered a compilation error. I’ve included the error details below for reference.
Could someone please advise on the correct approach to handle this?
This is on my local portal instance running version 2023.118.500.8456.
Graph Extension code:
using PX.Data;
using PX.Data.BQL;
using PX.Data.BQL.Fluent;
using SP.Objects.IN;
namespace SP.Objects.IN {
public class InventoryCardMaint_Extension : PXGraphExtension<SP.Objects.IN.InventoryCardMaint> {
#region Event Handlers
#endregion
}
}Error:
[2025-05-29 02:38:28.829] Compiled projects: MyCart
[2025-05-29 02:38:28.829] Validation started.
[2025-05-29 02:38:28.832] Copying the website C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite
[2025-05-29 02:38:28.834] Patching the file C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite\APP_CODE\Caches\InventoryCardMaint.cs
[2025-05-29 02:38:30.132] Done
[2025-05-29 02:38:30.132] Validating Binary Files
[2025-05-29 02:38:30.133] Validating Sql Scripts
[2025-05-29 02:38:30.188] Validating the website C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite
[2025-05-29 02:38:30.188] IIS APPPOOL\MYOB_2023_118_500_8456_PORTAL
[2025-05-29 02:38:30.768] Building directory '\WebSiteValidationDomain\App_Code\'.
[2025-05-29 02:38:46.030] \App_Code\Caches\InventoryCardMaint.cs(33): error CS0234: The type or namespace name 'Objects' does not exist in the namespace 'SP.Objects.SP' (are you missing an assembly reference?)[2025-05-29 02:38:46.031] \App_Code\Caches\InventoryCardMaint.cs(33): error CS0234: The type or namespace name 'Objects' does not exist in the namespace 'SP.Objects.SP' (are you missing an assembly reference?)[2025-05-29 02:38:46.032] Compiler time, in seconds: 15.84449
[2025-05-29 02:38:46.033] Validation failed.
Thanks!