How can you create a cached display method for the PaymentTerm description in the CustGroup table?
Short Answer
Views 22
Answer:
Answer: To create a cached display method for the PaymentTerm description in the CustGroup table:
- Customize the CustGroup table in your project.
- Add the following display method:
- Add the method to the table's Overview group.
- Override the
init()
method of the CustGroup data source with thecacheAddMethod()
call to cache the display method.
display Description pktdisplayPaymTermDescription() { return (select firstOnly Description from PaymTerm where PaymTerm.PaymTermId == this.PaymTermId).Description; }
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of X++ Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.