Question Status

Suggested Answer
John Rolf asked a question on 10 Jul 2013 2:33 PM

The problem we have is as follows relating to Dynamics AX 2012 R2:

 

  • We want to do a dynamic lookup on a form grid in one of our fields by overriding the lookup() method.
  • The field is of type Int64 where we want to store the recids of records in multiple other tables and because of that we haven’t set up relations on the table.
  • So on our form we can override the INT64 field’s lookup method and it can find the correct values based on dynamic lookup.
  • The problem is that the recid will now be displayed on the form and we want to be able to display a different String value instead of the recid.
  • We’re aware of the Replacement key behaviour on tables where the form will create a ReferenceGroup control and an automatically created field.

 

Is there a way that we can display a string value in a control (that has a lookup) and save a int64 to the related datafield on a form without using the replacementkey and referencegroup behaviour?

Reply
Suggested Answer
Syed Zeeshan Haider Jafry responded on 10 Jul 2013 10:35 PM

You can use the edit method which is like display method but you can edit the control. Please see the blow msdn document,

msdn.microsoft.com/.../aa637541.aspx

Regards,

Zeeshan 

AX Techi

Reply
Suggested Answer
Syed Zeeshan Haider Jafry responded on 10 Jul 2013 10:35 PM

You can use the edit method which is like display method but you can edit the control. Please see the blow msdn document,

msdn.microsoft.com/.../aa637541.aspx

Regards,

Zeeshan 

AX Techi

Reply