Skip to main content
Answer

Adding a new Data Member

  • January 4, 2023
  • 6 replies
  • 345 views

Forum|alt.badge.img+3

Hello experts,
I’ve been trying to add a new grid under a new tab in the Stock Items (IN202500) screen. But upon checking out it came to know that we have to add a new Data member property first in order to set the grid and its fields. Can anyone please let me know how can we define a new Data member/View for such a case in detail procedure?

Thanks a lot in advance.

Best answer by MoulaliShaik79

Hi @Harshita,

You can create DataViews in the graph, like the below one:

public class InventoryItemMaint _Extensions : PXGraphExtension<InventoryItemMaint>
{
        #region DataViews
            public SelectFrom<YourDacName>.View YourDataViewName;
        #endregion
        
        #region EventHanlders
            // your event handlers
        #endregion

      …..etc
}

 

Thanks,

Moulali Shaik

6 replies

Forum|alt.badge.img+1

Hi @Harshita,

You need to create a DataView inside Graph and then set that DataView to the DataMember property on layout properties.

For Example:

 Dataview creation:

  public SelectFrom<YourDacName>.View DataViewName;

 

select the screen where you want to add a new grid. After adding the Grid to the required Tab, select Layout properties and then assign your DataView to the DataMember property.

 

 

 

I hope this may help you!

Moulali Shaik.

 


Forum|alt.badge.img+3
  • Author
  • Captain II
  • January 4, 2023

Thank you so much @MoulaliShaik79 . I wanted to know whether InventoryItemMaint is the required graph in my case.

 

 

If yes, then where shall I need to create the new DataView in the graph?
 

 


Forum|alt.badge.img+1
  • Semi-Pro II
  • Answer
  • January 4, 2023

Hi @Harshita,

You can create DataViews in the graph, like the below one:

public class InventoryItemMaint _Extensions : PXGraphExtension<InventoryItemMaint>
{
        #region DataViews
            public SelectFrom<YourDacName>.View YourDataViewName;
        #endregion
        
        #region EventHanlders
            // your event handlers
        #endregion

      …..etc
}

 

Thanks,

Moulali Shaik


Forum|alt.badge.img+3
  • Author
  • Captain II
  • January 4, 2023

Hi @Harshita,

You can create DataViews in the graph, like the below one:

public class InventoryItemMaint _Extensions : PXGraphExtension<InventoryItemMaint>
{
        #region DataViews
            public SelectFrom<YourDacName>.View YourDataViewName;
        #endregion
        
        #region EventHanlders
            // your event handlers
        #endregion

      …..etc
}

 

Thanks,

Moulali Shaik

Thanks a lot @MoulaliShaik79 . It worked.
One last query if i could get references of some documentations/videos for knowledge on DACs, graphs etc. apart from the T200 and other guides?


Forum|alt.badge.img+1

Hi @Harshita 

Please check the below links:

https://openuni.acumatica.com/learning-paths/developer-learning-paths/development/

or

https://help-2021r2.acumatica.com/(W(20))/Help

 

I hope this may help you!

Thanks,

Moulali Shaik.

 


Forum|alt.badge.img+3
  • Author
  • Captain II
  • January 4, 2023

Hi @Harshita 

Please check the below links:

https://openuni.acumatica.com/learning-paths/developer-learning-paths/development/

or

https://help-2021r2.acumatica.com/(W(20))/Help

 

I hope this may help you!

Thanks,

Moulali Shaik.

 

Thank you so much once again!!