Hi,
I am trying to get the default DAC and its primary view from the Type. Any suggestions?
I have Type defined as below

and I have field as below values

Hi,
I am trying to get the default DAC and its primary view from the Type. Any suggestions?
I have Type defined as below
and I have field as below values
Best answer by Hughes Beausejour
Hi Krunal,
Try PXGraph.PrimaryItemType, PXGraph.PrimaryView properties and PXView.GetItemType method:
Example:
var graphPrimaryCache = graph.Caches[graph.PrimaryItemType];
var grapPrimaryView = graph.Views[graph.PrimaryView];
var graphPrimaryViewCache = graph.Caches[graph.Views[graph.PrimaryView].GetItemType()];
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.