...feel the spirit of Microsoft Dynamics AX RSS 2.0
 Monday, April 28, 2008

Wie kann man zur Laufzeit den FormControlType einer beliebigen FormControl ermitteln?

Eine Methode auf der FormControl scheint nicht zu existieren, wie kann also der Typ einer FormControl mittels X++ ermittelt werden?
Mit Hilfe der Klasse SysFormRun ist dies möglich.

Hierzu ein kleines Stück Quellcode als Beispiel.

FormControlType formControlType;
;
formControlType = SysFormRun::controlType(classidget(MeineFormBuildControl));

Sollte keine FormControl als Parameter übergeben werden, wir eine Fehlermeldung generiert.
Nun kann entsprechend des ermittelten Types der FormControl weiter verfahren.




Monday, April 28, 2008 9:10:53 PM (Mitteleuropäische Zeit, UTC+01:00)  Mathias Füßler  #    Comments [0] - Trackback


Comments are closed.


Translate
Über/Kontakt

     







© Copyright 2010 Axel Kühn
Sign In
Subscribe this blog
Blogroll
 Arijit Basu
 Axapta Blog
Blog around Microsoft Business Solutions Axapta by Helmut Wimmer
 BlaBlubBlog
Der Blog von Kai Gloth
 Dave Bowles
 Dick Wenning
Ax(apta) start pages
 Fred Shen
 Harish Mohanbabu
 jinx´s AX Blog
Everything about Microsoft Dynamcis AX
 Lars Keller
All about .NET, VSTS, VSTO and more
 Max Belugin
 TaReMoTi Blog
Der Blog von Karsten Döring
Archiv
<July 2010>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
Statistik
Total Posts: 129
This Year: 11
This Month: 0
This Week: 0
Comments: 46





All Content © 2010, Axel Kühn
DasBlog theme 'Business' created by Christoph De Baene (delarou)