Monday, March 15, 2010

MenuItem types

What is the difference between MenuItem types - Display, Action and Output, except that they reside under different AOT nodes and that different intrinsic functions should be used to access them via reflection?

I know one - they are displayed with different images in the navigation pane:

Are there any other differences?


  1. output normally run reports
    action normally run classes
    display normally run forms

    I've found that in order to make the right-click and open work from a report, the extended data type/table's formref needs to open a display menu item. It does not work to open a class - at least in AX 4.0 SP2

  2. To open a class, the class needs to have a main method, even in 4 SP2!

  3. Cool. That's the difference - "only display menu items can be used as FormRef"
    However you can run a class or a report from that display menu item so "Go to main table" will do that.

  4. Hi

    I'm working in Shop Floor Control > Clock in/out.
    The end users doesn't have any input control if they scan wrong Employee Id, In that case the error message should close by itself.

    I know Infolog.CloseInfolog(msecs) close a infolog after certain time(msecs).

    Is there any way to close the "throw" error message automatically, Or In other words How do i stop execution in case invalid input entry?

    Please let me know

  5. Hi,

    If I understood correctly there are 2 options you can choose from:
    1) remove error message from the infolog - use infolog.clear(0)
    2) do not display error message but only throw an error - use throw Exception::Error

  6. Thanks Gigz...

    The issue is....the code (\Classes\JmgRegistrationForm\empId()) uses throw statements to display error message and stop the execution further. In that case Employee should hit 'ok' button in the error(infolog) message to try to scan the badge again.

    Infolog.CloseInfolog(msecs) / Infolog.Clear(0) wont close the "throw" message right?

    If you think its irrelavant to discuss about this issue in this topic, i can email you. please let me know

  7. Infolog.clear(0) should close the infolog if there was nothing in it before the method call.
    Try the following job:

    throw error("Error");

    That is what I think you can do in your case.

  8. Another reason to use menuitems is to be able to attach the configuration and security keys. As a developer, we can bypass the security checks in calling the class or report directly. So, is a best practises in using the menuitems, just my personal thought.

  9. No doubt that menu items should be used. I just wanted to figure out what is different between their types.

  10. Wow...Thanks Gigz, that helps,
    i used closeinfolog in catch block.

  11. Hi Gigz

    I'm having trouble in using update_recordset to update multiple rows (in dest table) by processing multiple (using join) rows from source table.

    let us say, if i want to get sum(qty) from my source table, its not getting the sum, instead its getting only first record qty value.

    could you please assist me?
    let me know if you need more info.

    Here is my code:

    update_recordset _dest
    setting soldqty = _dest.soldqty + _source.qty
    join sum(qty) from _source
    where _dest.itemid == _source.itemid &&
    (_source.physicaldate >= _dest.periodfrom &&
    _source.physicaldate <= _dest.periodto);


  12. I would say you need to do "group by ItemId" for the joined table.

  13. Thanks for the quick response. I tried it already and it seems it didn't like.

    Order by/ group by clauses are not allowed in update_recordset statements.

  14. Yes, right.

    You'll have to use while select in this case. I don't think it is possible to do update_recordset.

  15. Initially i wrote the code using while select... and select forupdate...)
    (and the source table is inventTrans)

    Since it affects performance, i thought of using update_recordset which may faster the process. but no luck..

    Do you think is there any other better way i can try to improve the performance? Have indexes also.


  16. If this operation is really a bottleneck you can use direct SQL.

  17. If you don't mind, Can you give me your email id so that i can explain my requirement in detail?

  18. In addition to allowing you to set configuration keys and security rights, you can also pass different parameters into the same object (e.g., COSDiffProd and COSDiffProj Output MenuItems call the same report, but pass different EnumParameters.)

    Although each MenuItem type can be used to reference a Form, Report, Job, Class, Query, or SQLLibraryReport (at least in Ax2009) a perusal of the AOT shows that the following uses are fairly typical (but by no means always the case) :

    Display: as already noted, open a form (or class that opens a form) object, often called from a MenuItemButton control, or from the Content Pane.

    Output: open a report by calling a runbasereport class or a report directly.

    Action: Callout to a class to modify a record, import data, run an upgrade checklist or a consistency check, or print a report; usually called from a Control on a form, such as a MenuItemButton.

  19. I do not even know the way I stopped up right here, but I thought this publish
    was once good. I don't realize who you might be but definitely you are going to a famous blogger in the event you are not already. Cheers!

    My web page Cheers Kissimmee

  20. It's an amazing post in favor of all the web viewers; they will take benefit from it I am sure.

    Feel free to surf to my homepage: aquarium lighting

  21. Spot on with this write-up, I really think this website needs far more attention.
    I'll probably be returning to read more, thanks for the advice!

    My blog post golf ball monogrammer ink

  22. I like the helpful info you provide in your articles.

    I will bookmark your weblog and check again here regularly.
    I am quite certain I will learn a lot of new stuff right here!
    Best of luck for the next!

    Also visit my web site; physical science 9th edition

  23. Nice blog here! Also your site loads up
    very fast! What web host are you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as fast as yours lol

    My page; spinal fusion alternatives

  24. Hello There. I discovered your blog the usage of msn.
    This is an extremely neatly written article. I will be sure to bookmark it
    and return to learn more of your useful information.
    Thanks for the post. I will certainly return.

    Stop by my homepage; St Cloud Golf

  25. I'll immediately grasp your rss as I can't find your email subscription hyperlink or newsletter service.
    Do you have any? Kindly allow me recognise in order that I may just subscribe.

    Visit my homepage: Las Vegas Golf Lessons

  26. Valuable info. Lucky me I found your web site accidentally, and I'm stunned why this twist of fate didn't happened in
    advance! I bookmarked it.

    Here is my page; true back traction device

  27. Today, while I was at work, my cousin stole my apple ipad and tested to see if it can survive a 30 foot drop, just so she
    can be a youtube sensation. My apple ipad is now destroyed and she has 83 views.
    I know this is completely off topic but I had to share it with someone!

    My blog post :: Materialisticva67.Webs.Com

  28. I absolutely love your blog.. Excellent colors & theme.
    Did you create this web site yourself? Please reply back as I'm looking to create my own site and would love to find out where you got this from or what the theme is called. Cheers!

    Also visit my blog ... golf instruction sarasota fl

  29. I got this web page from my buddy who informed me about this web page and now this
    time I am visiting this web site and reading very
    informative posts at this time.

    Feel free to visit my weblog florists in las vegas 89117

  30. Hi there! I just wanted to ask if you ever have any trouble with
    hackers? My last blog (wordpress) was hacked and I ended up
    losing several weeks of hard work due to no data backup.
    Do you have any solutions to protect against hackers?

    Have a look at my page ...

  31. I think the admin of this web page is actually working
    hard for his site, since here every stuff
    is quality based data.

    Take a look at my weblog ... Ladies Golf Gloves

  32. Thanks , I've just been searching for info approximately this topic for ages and yours is the best I've discovered till now.
    But, what about the conclusion? Are you positive about the source?

    Also visit my web-site :: LED Lighting

  33. Hey There. I found your blog using msn. This is a really well written article.
    I will make sure to bookmark it and come back to read more of your
    useful info. Thanks for the post. I'll definitely comeback.

    Also visit my web page; las vegas golf lessons

  34. Heya i'm for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and help others like you helped me.

    Also visit my site: las vegas golf instruction

  35. Hello to every one, it's truly a nice for me to pay a visit this site, it includes helpful Information.

    my web blog :: callaway golf apparel for women

  36. Hi, i think that i saw you visited my web site so i came to “return the favor”.
    I am trying to find things to improve my site!I suppose its ok to use some of your ideas!

    my weblog :: golf in kissimmee fl

  37. This is a topic which is close to my heart... Best wishes!
    Exactly where are your contact details though?

    my web-site; Orlando Chiropractor

  38. Really no matter if someone doesn't understand after that its up to other users that they will help, so here it takes place.

    Also visit my site ::

  39. UGG Australia has produced some unique and fun types
    in boots for girls - Classic Stripe UGG Boots are really a perfect illustration on this.
    And recollection, they might eventually be
    willful Worn tedium without situation, so how the graduate can do their job.
    And utilization from the preserving stratum inside the knock-off may also be a easy preventative pelage - not
    the real authenticated guy who are able to conflict users; the fabrication is
    her toes when her vernacular users of sea boots check in
    the U.

    My blog post prada

  40. Hello to every single one, it's actually a pleasant for me to pay a quick visit this web site, it contains priceless Information.

    my web page; St Cloud Floral

  41. There is really a lot surprise this specific simply just
    released sorts are listed below: uggs estimates
    boots or shoes mayfair " booties " girls java Highkoo Microsof corporation 5450 fight-style
    exceptional. And recollection, they may eventually be willful Worn tedium without situation,
    so that this graduate can do their job. In addition, once you seem with the labels for that manufacturing site, you need to bear in mind that this labels which exhibit
    "Manufactured in China" are authentic, and
    many others are counterfeits.

    Also visit my web blog - プラダ

  42. Due to different styles and colors of UGG boots and UGG shoes, you can match your mood along with your
    clothes. And recollection, they might eventually be
    willful Worn tedium without situation, so that the graduate
    can perform their job. Regardless of what your first choice is, UGG Classic Short you will get in the
    UGG boot.

    Feel free to surf to my web-site; プラダ 財布 新作

  43. UGG Australia has produced some unique and fun types in boots for females - Classic Stripe UGG Boots
    actually are a perfect illustration of the. These types of Ugg Boots Clearance may
    be found in 2 colors from the shop at fine sand as well as
    saying. And reproductions may well appearance just like terrific.

    Also visit my web-site ... prada

  44. Please let me know if you're looking for a article author for your blog. You have some really great articles and I think I would be a good asset. If you ever want to take some of the load off, I'd really like to
    write some content for your blog in exchange for a link back to mine.
    Please send me an e-mail if interested. Regards!

    my webpage: grandfather clocks

  45. Cheap Burberry Handbags These furnishings are a good choice.
    The artist material moisture from feet, ensure that is stays cold and dry.
    And reproductions may possibly appearance in the same way terrific.

    Review my homepage; プラダ

  46. If you disregarded the Ugg guidelines and wore your boots in water,
    or else you dropped liquid on the boot, you could have stains along your boots.
    People of every class and level can simply get these because their prices
    are of every range. Delicately wipe it by using a damp material, will
    not brush it fiercely that carries a brush, don't melt away these comfortable shoes with boiled water, and use washing detergent and alkaline cleaning fluid to wash it in the same time.

    My blog プラダ

  47. If you disregarded the Ugg guidelines and wore your boots in water, or perhaps you dropped liquid on
    your boot, you could have stains along your boots. ì (IE:
    sand, chestnut, chocolate, black) UGG boots. So
    you can discover that shoes, clothes, even bags for youngsters has be
    exquisite than before.

    Also visit my blog post ... プラダ バッグ

  48. There is a lot surprise this kind of simply just released sorts are listed below:
    uggs estimates boots or shoes mayfair shoes or boots girls java Highkoo Microsof corporation 5450 fight-style exceptional.
    And recollection, they will often eventually be willful Worn tedium without
    situation, so how the graduate are able to do their job.
    In addition, when you seem with the labels for that manufacturing site,
    you ought to bear in mind that the labels which exhibit "Manufactured in China" are
    authentic, and a lot of others are counterfeits.

    my weblog: prada

  49. It's a shame you don't have a donate button! I'd definitely donate to this outstanding blog! I guess for now i'll settle for bookmarking and adding
    your RSS feed to my Google account. I look forward to fresh updates and will talk
    about this site with my Facebook group. Talk soon!

    Feel free to visit my web blog: how to make sushi rice video

  50. Hello I am so glad I found your web site, I really found you by accident, while I was searching on Aol for something else, Anyways I am here now and would just
    like to say cheers for a fantastic post and a all round interesting blog (I also love the theme/design), I don't have time to read through it all at the moment but I have saved it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work.

    Check out my webpage ... short game Instruction

  51. I am genuinely glad to read this weblog posts which consists
    of tons of valuable information, thanks for providing these kinds of data.

    My site: home remodeling ideas kitchen

  52. It's not my first time to pay a visit this web site, i am visiting this website dailly and get nice data from here every day.

    Here is my web-site - hospital for special surgery internship

  53. Thanκfulneѕs to mу fаthеr whо tolԁ me
    about thіs blog, thiѕ web sіte іѕ іn fаct remarkablе.

    Alѕο vіsit my site: imprezy urodzinowe

  54. Thank you for sharing your info. I really appreciate your
    efforts and I am waiting for your further post thank you once again.

    Also visit my blog - okna rzeszow

  55. I enjoy what you guys are up too. This kind of clever work
    and reporting! Keep up the fantastic works guys I've incorporated you guys to my blogroll.

    Visit my web site ... die Welt von Platten

  56. This is axapta ERP blog for Technical and functional fields and includes Microsoft Dynamics Axapta tutorials and Dynamics Axapta Coverage. This blog also contains x++ code help for Ax developer and solution of technical and functional daily issues. This blog is specific for Microsoft dynamics programming. Enterprise portal, SharePoint services, business connectors and Enterprise Resource Planning applications and sql database.It will help to get Microsoft Business Solutions.

    axapta ERP blog

  57. شركة نقل اثاث
    شركة شراء اثاث مستعمل بالرياض
    الاثاث من الاشياء التى نستطيع ان نبذل فية الكثير من الجهد والوقت من اجل ان يتم القيام باعمال النقل من مكان الى اخر سواء الى اى مكان فى المملكة او اى مكان خارج المملكة ، فاعمال النقل من الخدمات التى تبدو لنا انها سهلة وبسيطة الا انة فى نهاية الامر من الخدمات التى تؤدى الى التعرض الى مشاكل كثيرا من الصعب ان يتم القيام بحلها من الكسر والخدش والتلفيات والضياع ،شركة قمم التميز من اهم وافضل الشركات شراء اثاث مستعمل حائل
    التى تحقق اعلى مستوى من خدمات النقل للاثاث والقيام بالاتفاق مع مركز التعاون الخليجى من اجل ان يتم الحفاظ على الاثاث ضد اى مشكلة ، فاذا كنت فى حيرة من امر النقل فتاكد انك الان تمتلك افضل الشركات المميزة الخاصة باعمال النقل من خلال الاعتماد على توفير عدد من الخدمات المميزة . شراء الاثاث المستعمل بحائل
    شركة قمم التميز على وعى كبير باعمال النقل والتى تحقق افضل مستوى من خدمات النقل التى تؤكد ان الاثاث يتم الانتقال من مكان الى اخر دون ان يتم التعرض الى اى مشكلة من اهم الخدمات المقدمة الاتى :- شراء اثاث مستعمل بحائل
    لا تكتفى شركة نقل اثاث بالقيام باعمال النقل فقط بل تهتم باعمال التركيب واعادة الاثاث الى ما كان علية بعد ان تتم اعمال النقل مباشرا . محلات شراء الاثاث المستعمل بحائل
    شركة تخزين اثاث
    تخزين الاثاث من المهام التى نجتاج الية فى اوقات معينة اثناء الانتقال من شقة الى اخر او القيام بالسفر لفترات طويلة ، فالحرارة المرتفعة والرطوبة والاتربة الناعمة تؤدى الى ظهور التشققات و تؤدى الى التكسير المفاجىء للاخشاب ، فاذا كنت فى حيرة من اعمال النقل فتعاون مع شركة المتخصصة فى اعمال التخزين من الامور التى لابد من القيام بية بطريقة مميزة على ايدى متخصصين فى القيام بهذة الخدمة .
    ارقام شراء الاثاث المستعمل بحائل
    شركة قمم التميز من اهم الشركات التى تقوم بانشاء مستودعات طبقا لمعاير ذات جودة مميزة والتى تساعد فى الحفاظ على الاثاث ضد اى عيوب او اى مشكلات
    شركة شراء اثاث مستعمل بحائل
    تظهر مع مرور مدة التخزين بالاضافة الى ان المستودعات مقسمة من الداخل الى اماكن مخصصه للزجاج واماكن مخصصة للاخشاب وهكذا حتى يتم الحفاظ على الاثاث فعليك ان تتعاون وتتواصل مع الارقام المتواجدة على الصفحة ارقام محلات شراء الاثاث المستعمل بحائل
    من اجل ان تتم الحفاظ على الاثاث ضد اى تغيرات من الممكن ان تحدث ، بالاضافة الى اننا نقدم عقود مميزة فى اعمال التخزين فى مقابل ارخص الاسعار

  58. Creative Banner is a focusing fact for any kinds of business institutions. Banner show your products identity which is provided by you. Manage your banner design service creatively by any professional designer to highlight your products. Cr eative banner grabs your customer’s attention.