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:

  1. Customize the CustGroup table in your project.
  2. Add the following display method:
  3. 
    display Description pktdisplayPaymTermDescription() 
    { 
        return (select firstOnly Description from PaymTerm 
        where PaymTerm.PaymTermId == this.PaymTermId).Description; 
    }
    
    
  4. Add the method to the table's Overview group.
  5. Override the init() method of the CustGroup data source with the cacheAddMethod() call to cache the display method.

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.