✏️ Explanatory Question

How can you create a cached display method for the PaymentTerm description in the CustGroup table?

👁 44 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

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.