Skip to main content
Solved

Adding a new Data Member


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

View original
Did this topic help you find an answer to your question?

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
  • 317 replies
  • 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

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
  • 317 replies
  • January 4, 2023
MoulaliShaik79 wrote:

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

Forum|alt.badge.img+3
  • Author
  • Captain II
  • 317 replies
  • January 4, 2023
MoulaliShaik79 wrote:

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!!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings