How to solve these Best Practices errors

Do we have any books/articles/links that will help to understand and solve best practices errors according to their diagnostic Id.

I was having problems with following BP errors:

  • The property caption should be set to @format (BP:495) → I did set it to @ABC12 format but still the error persists.

  • TwC:The keyword forceliterls must not be used in the query expression(BP 831)

  • why is method bound to client when it has no client calls?(BP 650)

  • consider moving the method that runs on the client tier into a separate class as a static method to run the server tier (BP 630)

  • Label is changed on the control from Hours to Hours (path form\formname\Designs\DesignLists) (BP 165)

Thanks in advance for all your help

Shankar

I am sorry but these error related to reporting ??? and may i know the ax platform which you are using , like ax 2012, ax 2009 or ax 2012r2

No these are best practices errors in AX 2012…

Generally it is a very good practice in development to solve these best practices errors.

You can see them by right clicking any form > Add Ins > Check best practices…

Thanks

Shankar

Using forceLiterals is not recommended because of risks of SQL injection. You should review whether your usage is save and validate inputs if needed. (Unfortunately I’ve never tried to exploit this vulnerability, therefore I don’t have any more details.)