GrayFoxNZ
GrayFoxNZ

Reputation: 361

How to retrieve and save a added custom field in code

I have created a custom field (UsrMyCustomField) on the customers screen under Accounts Recievable. I have verified it has been created on the baccount table and I can save it through the website no worries.

How through code can I access this custom field?

cheers

Upvotes: 1

Views: 532

Answers (1)

HDanh
HDanh

Reputation: 225

I don't know which technique you use to create your custom field. There are 2 ways to access your custom field

ACE:

BAccount.UsrMyCustomField/Customer.UsrMyCustomField

(in case your custom field created under Customer class)

AEF, let's assume your field created under extension class, for example: BAccountExt

BAccountExt ext = PXCache<BAccount>.GetExtension<BAccountExt>(yourBAccountRow)();
ext.UsrMyCustomField;

Upvotes: 1

Related Questions