I would like to delete a record from a graph, I can easily add one, but what is the syntax for deleting one with filter on Immatriculation field :
Example do add
ZVEHICULEGRAPH graph = PXGraph.CreateInstance<ZVEHICULEGRAPH>();
ZVEHICULE dac = new ZVEHICULE();
dac.Fichiernom="FICHIER.CSV";
dac.Fichierligne=55;
dac.Immatriculation= "AA-HH-38";
graph.ListViewZVEHICULE.Insert(dac);
graph.Actions.PressSave();
With this graph
namespace FLEXFORYOU
{
public class ZVEHICULEGRAPH : PXGraph<ZVEHICULEGRAPH>
{
public SelectFrom<ZVEHICULE>.View ListViewZVEHICULE;
public PXSave<ZVEHICULE> Save;
public PXCancel<ZVEHICULE> Cancel;
}
}
Thanks Xavier
There are 2 main ways to do this.
Call delete passing the record as parameter on the View.
Call delete passing key dictionary. You would need to call the delete method using a dicctionary. e.g: