Skip to main content

Posts

Showing posts with the label JumpRef

AX 2012: How to use JumpRef method

JumpRef method is mostly used with fields which are not linked with an EDT however,  this depends on the design of the code and the requirement. I got a requirement to show 'View Details' options to the field of type notes (memo). There can be multiple ways to accomplish it but its always better to have your code at a central location (best to have it in Class or at table level) to reuse it. JumpRef method can be overridden at form level under control itself but we are not going to do [avoid code changes at form level] Better to override JumpRef method at datasource field level and call method from table. JumpRef  Method: public void jumpRef() {     JumpRef::peformJumpRef(JumpRef.Notes); } PerformJumpRef  method at table static   void  peformJumpRef(Notes _notes) {     MenuFunction    menuFunction;     Args       ...