Solved

Missing Toolbar buttons missing after creating a tab grid by extending to an existing customization

  • 14 March 2023
  • 9 replies
  • 143 views

Userlevel 2
Badge

I have an existing custom customisation I have to work with.  

Below is the Dac for the grid I want to add and the graph extension to be used

  [Serializable]

    [PXCacheName("TestTable")]

    [PXPrimaryGraph(typeof(TSSTStudentEntryExt))]

    public class TestTable : IBqlTable

    {

        #region LineNbr

 

        [PXDBIdentity(IsKey = true)]

        [PXUIField(DisplayName = "Line Nbr")]

        public virtual int? LineNbr { get; set; }

        public abstract class lineNbr : PX.Data.BQL.BqlInt.Field<lineNbr> { }

        #endregion

 

        #region StudentType

        [PXDBString(2, IsFixed = true, IsKey = true)]

        [PXDefault(typeof(TSSTStudent.StudentType))]

        [PXUIField(DisplayName = "Student Type", Visible = false, Enabled = false)]

        public virtual string StudentType { get; set; }

        public abstract class StudentType : PX.Data.BQL.BqlString.Field<StudentType> { }

        #endregion

 

        #region StudentNbr

        [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]

        [PXDBDefault(typeof(TSSTStudent.StudentNbr), DefaultForUpdate = false)]

        [PXParent(typeof(SelectFrom<TSSTStudent>.Where<TSSTStudent.StudentNbr.IsEqual<TestTable.StudentNbr.FromCurrent>.

            And<TSSTStudent.StudentType.IsEqual<TestTable.StudentType.FromCurrent>>>))]

        public virtual string StudentNbr { get; set; }

        public abstract class StudentNbr : PX.Data.BQL.BqlString.Field<StudentNbr> { }

        #endregion

 

}


 

  public class TSSTStudentEntryExt : PXGraphExtension<TSSTStudentEntry>

    {

 

    public PXSelect<TestTable,

        Where<TestTable.StudentType, Equal<Current<TSSTStudent.StudentType>>,

            And<Where<TestTable.StudentNbr, Equal<Current<TSSTStudent.StudentNbr>>>>>> TestDetail;

    }

 

TSSTStudent DAC has StudentType and StudentNbr as keys in its DAC.

Problem :  I am able to get the grid to show with the column but the standard toolbar for add and remove does not show. 

   

icon

Best answer by Naveen Boga 14 March 2023, 12:14

View original

9 replies

Userlevel 7
Badge +10

Hi @robert38,

You need to add your Custom DAC to the graph extension.

 public class TSSTStudentEntryExt : PXGraphExtension<TSSTStudentEntry, CustomDAC>

Then you don’t need to define actions separately.

Hope, It will helps!

Regards,

Sweta

Userlevel 7
Badge +17

Hi @robert38  Can you please share the screenshot, which will be more helpful.

Userlevel 2
Badge

@Naveen Boga  the tab grid only shows a grid without a toolbar (+ and remove)

Userlevel 2
Badge

@sweta68 that doesnt work the CustomDac would conflict with the Dac it inherits from. It shows as error code 

Userlevel 7
Badge +17

Hi @robert38  What is the Skin ID, you have mentioned for that grid in the design page?

Userlevel 2
Badge

@Naveen Boga  I don’t have a skinId

Userlevel 7
Badge +17

@robert38  Can you please provide like below and check?

 

 

Userlevel 2
Badge

@Naveen Boga worked now.. thanks

Userlevel 7
Badge +17

Awesome :) Thanks for sharing the update @robert38 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved