Scenario: Can i use display methods in X++ code. I mean if i have a display method getStatus() on table Vend. I can use it like vend.getStatus(). Is it a violation of best practice what are the pros and cons.
Answer: No, there is no performance penalty and no best practice warning is issued.
So you can go ahead and use the display methods in code.
The only difference from a non-display method is that you can actually use them in forms and reports.
Add as display method getStatus() in the CustTabl method list.
public display boolean getStatus()
Use this method in the field group and in the code simultaneously.
public void processCustomerStatus()