In that line of code you’re going to create an instance of the graph used to manage those records.
Something like:
YourGraph graph = PXGraph.CreateInstance<YourGraph>(); YourDAC record = (YourDAC)graph.graphView.Insert(new YourDAC()); record.field = somevalue; record.field2 = somevalue; record = (YourDAC)graph.graphView.Cache.Update(record); graph.Save.Press();
If you’re planning to update an existing record then instead of the .Insert line, you’ll locate the record you want to update and then set the new field values, call .Update and then save.
In that line of code you’re going to create an instance of the graph used to manage those records.
Something like:
YourGraph graph = PXGraph.CreateInstance<YourGraph>(); YourDAC record = (YourDAC)graph.graphView.Insert(new YourDAC()); record.field = somevalue; record.field2 = somevalue; record = (YourDAC)graph.graphView.Cache.Update(record); graph.Save.Press();
If you’re planning to update an existing record then instead of the .Insert line, you’ll locate the record you want to update and then set the new field values, call .Update and then save.
In that line of code you’re going to create an instance of the graph used to manage those records.
Something like:
YourGraph graph = PXGraph.CreateInstance<YourGraph>(); YourDAC record = (YourDAC)graph.graphView.Insert(new YourDAC()); record.field = somevalue; record.field2 = somevalue; record = (YourDAC)graph.graphView.Cache.Update(record); graph.Save.Press();
If you’re planning to update an existing record then instead of the .Insert line, you’ll locate the record you want to update and then set the new field values, call .Update and then save.