简体   繁体   中英

FormControlName in ax 2012

is it possible to find the control name for control which is an edit method in ax 2012 form. ie how to find control name for edit method control.

I tried but could not find the correct name .

You can right click on the edit method and click "view details" and it will show you something like Fld_23 in the lower right corner.

Or if you need to dynamically determine this, I wrote a blogpost on how to recursively enumerate every control on the form. http://alexondax.blogspot.com/2014/05/how-to-use-recursion-to-loop-over-form.html

The controls are generated at runtime and there is a variable counter that just counts up as each new dynamic control is added during form runtime. So you can use the name you discover, as long as the form doesn't keep getting modified. It might be a good idea to just obtain the static group object or whatever that contains the edit method, then just find the child from there.

You must Right Click on form and click on Personalize option. In personalization form , Goto information tab and Click on Edit form name. Then You can see and edit form controls in AOT. You can use below link for more information. https://technet.microsoft.com/en-us/library/aa597239.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM