x++


Passing FromControl in a lookup override method


I need to update a form in AX to use a complex drop down box. To do this, I need to override the Lookup method. According to the code example I have, code like this should work:
public void lookup(FormControl _formControl){}
Unfortunately, I receive the compile error "The method override has an incorrect number of parameters." From what I can tell, this error makes no sense as this is a valid override of the method. How do I fix this?
The lookup method on a datasource field on a form should be defined as:
public void lookup(FormControl _formControl, str _filterStr) {}
The lookup method on a control on a form should be defined as:
public void lookup() {}
In the AOT, if you right click on the Methods node where you want the function created and select Override method/lookup, AX will create a method with the correct signature for you.

Related Links

AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria

Categories

HOME
asp.net-web-api
google-app-engine
xml
twitter-bootstrap-3
forms
webdriver
3d
sublimetext
database-normalization
tvos
crystal-lang
trac
accessibility
fabric.io
project
alamofire
filechannel
google-form
heat
screen-readers
azure-iot-hub
scsi
vuejs
html5-appcache
nodemcu
react-toolbox
syntax-highlighting
bulletphysics
paperjs
android-gridview
processwire
roblox
video-capture
salesforce-communities
cd
logback-groovy
uiimage
plan-9
jide
dotnet-httpclient
manova
compiler-design
opengl-4
dt
django-1.10
hadoop-2.7.2
ziparchive
redbeard-ios
bizagi
ellucian-scribe
piracy-prevention
ascii-art
asyncdisplaykit
opl
themoviedb-api
poppler
vacuum
ocra
botan
rrule
adehabitathr
infosphere-spl
uncaught-typeerror
post-commit-hook
spy++
wcm
parallel-testing
file-not-found
dsym
scriptaculous
ebay-lms
neos-server
flex++
joomla-template
apache-abdera
pdfviewer
qtconcurrent
pyunit
correlated-subquery
workflow-services
uipagecontrol
object-database
interprocess
application-verifier
spread
glui

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App