'The name 'Base' does not exist in the current context

I'm trying to create a function to feed a log, I can't because I don't know how to pass the base parameter, I tried: Base, this, this.Base :)

Error : The name 'Base' does not exist in the current context

Thanks

    namespace ZLOG
    {
      public class INSERTLOG
      {
           public string exec(string traitement, string detail)
            {
              ZZLOGGRAPH graph = PXGraph.CreateInstance<ZZLOGGRAPH>();
              ZZLOG dac = new ZZLOG();
              dac.Logdate=DateTime.Now;
              PX.SM.Branch un_etab = PXSelect<Branch, Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>.Select(Base);  
              if (un_etab!=null) {dac.Logetab=un_etab.BranchCD;}
              
              graph.ListViewZZLOG.Insert(dac);
              graph.Actions.PressSave();
              return "OL";
            }
      }
   }


Solution 1:[1]

Just use the ZZLOGGRAPH instance - graph.

PX.SM.Branch un_etab = PXSelect<Branch, Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>.Select(graph);  
          

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rick