Hello,
I’ve added an attribute to the Customer screen and an attribute to the Location screen.
Attributes on the Customer screen.
Attributes on the Location screen.
I’ve finding that the attribute data is being saved to two different places.
The customer attributes are saved to the CSAnswers table. I can access this easily.
The location attributes are saved to the LocationKvExt table. I don’t know how to access data in these KvExt tables.
PXGraph p = new PXGraph();
Location location = p.Select<Location>().FirstOrDefault(x => x.LocationID == ardoc.CustomerLocationID);
CSAnswers cSAnswersLocationANACode = p.Select<CSAnswers>().FirstOrDefault(x => x.RefNoteID == location.NoteID && x.AttributeID == "CHGLLOCEAN");
I use the code above to access the attribute from the CSAnswers table - does anyone know how to access the data from LocationKvExt?