Friday, March 26, 2010

Editor scripts

I’ve noticed that there are only two editor scripts that I am using during development. First one is XML documentation template (Scripts\Documentation\Header Template) – very nice script for documenting classes\methods. It automatically generates documentation sections for description, input and output parameters and exceptions. The second one is parm method template (Scripts\Template\Method\Parm) – creates a standard AX getter\setter. The rest of the scripts are either to specific and need for them doesn’t appear in my daily work or they are doing too simple things and it is faster for me just type them.
What editor scripts are you using from standard AX?
What known editor scripts extensions are you using?
What kind of custom editor scripts are you implementing for yourself?

26 comments:

  1. I use a custom code to do one line comments (date, user and task).

    More infrequently I use the parm, find and exist method creators (the last two is not standard, but should be).

    I really dislike the XML doc in top of methods, it is looks ugly and is not easy to read.

    A shame as there are other alternatives like reStructered Text: http://www.ibm.com/developerworks/library/x-matters24/

    ReplyDelete
  2. I have created a script that gives me a default interop method:

    public static void interopMethodStub()
    {
    System.Exception e;
    ;

    new InteropPermission(InteropKind::ClrInterop).assert();

    try
    {

    }
    catch (Exception::CLRError)
    {
    e = CLRInterop::getLastException();
    while( e )
    {
    info( e.get_Message() );
    e = e.get_InnerException();
    }
    throw Exception::CLRError;
    }

    CodeAccessPermission::revertAssert();
    }


    I also use a modified parm method from Axaptapedia that creates a parmMethod based on the selected line in the class declaration.

    /Jonas

    ReplyDelete
  3. Ok, that is interesting, however I expected more comments on this topic:)

    I agree that find, exist and interop methods are quite useful.

    Regarding documentation - the way it is done in AX conforms with other Microsoft products. The docs are formed in the same way by VS. This approach targets more exteral help system they can be transferred to rather then readability from code. reStructured approach looks interesting and more readable, I agree, but I am not sure that it's easy towrite it without mistakes.

    ReplyDelete
  4. I added a script method that creates a conditional hard breakpoint based on a custom boolean for the current user in the infolog.globalCache():
    if(infoLog.globalCache().get(curuserId(),'debugFlag'))
    {
    breakpoint;
    }

    The debugFlag property is set using a simple job:

    static void setDebugFlag(Args _args)
    {
    boolean debugFlag;
    Dialog dialog;
    DialogField dfDebugFlag;
    NoYes result;
    ;

    dialog = new Dialog("Set debug flag value");

    dfDebugFlag = dialog.addField(typeid(noyes),"Debugging");

    dfDebugFlag.value(infoLog.globalCache().get(curuserId(),debugFlag));


    if(dialog.run())
    {
    result = dfDebugFlag.value() ? infolog.globalCache().set(curuserId(),debugFlag,true) : infolog.globalCache().set(curuserId(),debugFlag,false);
    }

    if(infolog.globalCache().get(curuserId(),debugFlag))
    Debug::printDebug("DebugFlag set.");

    if(!infolog.globalCache().get(curuserId(),debugFlag))
    Debug::printDebug("DebugFlag not set.");

    ReplyDelete
  5. I am using AxAssist Editor extension and quite happy with it.
    It was a nightmare to code in AX after Visual Studio so I was very delighted when I found AxAssist extension.

    It provides IntellySense extension as long as some editor scripts.
    Also customizable hotkeys are very handy.

    ReplyDelete
  6. http://www.tommy-hilfiger.co.nl/, http://www.hollisteronlineshop.com.de/, http://www.burberry-outlet.me.uk/, http://www.woolrich-clearance.com/, http://www.mcmhandbags.com.co/, http://www.coachoutletstore.net.co/, http://www.nikefree-run.net/, http://www.louis--vuitton.org.uk/, http://www.cheapmichaelkors.us.org/, http://www.bcbgdresses.in.net/, http://www.thenorthface.com.de/, http://www.truereligionjeans.net.co/, http://www.burberryonlineshop.de/, http://www.nikestore.us/, http://www.tommyhilfiger.net.co/, http://www.nike-roshe-run.com.es/, http://www.christianlouboutinshoes.ar.com/, http://www.the-north-face.ca/, http://www.tiffanyjewelry.us.org/, http://www.uhren-shop.com.de/, http://www.pradaoutlet.com.co/, http://www.ralph-lauren.ca/, http://www.true-

    ReplyDelete
  7. prada handbags, nike air max, ugg boots clearance, christian louboutin outlet, nike uk, burberry outlet online, tommy hilfiger outlet, bebe outlet, ugg boots, louis vuitton, nike, gucci shoes, replica watches, beats by dr dre, chanel, jordan shoes, gucci, womens clothing, juicy couture outlet, hair straightener, true religion outlet, asics, coach outlet online, longchamp, coach factory outlet online, hollister clothing, coach factory outlet, christian louboutin, tiffany, bcbg max azria, ugg boots, cheap coach purses, abercrombie, cheap oakley, air max, swarovski crystal, ralph lauren outlet, ugg australia, ray ban outlet, celine handbags, rayban, woolrich sale, toms shoes, true religion, lululemon outlet, instyler, giuseppe zanotti, air max, tommy hilfiger online, levi's jeans, ugg boots, oakley, beats by dre, north face, pandora,

    ReplyDelete
  8. [url=http://www.uggboots.com.de/][b]uggs[/b][/url], [url=http://www.nikefree5.net/][b]nike free 5.0[/b][/url], [url=http://www.newbalance-shoes.org/][b]new balance shoes[/b][/url], [url=http://www.abercrombieand-fitch.net.co/][b]abercrombie fitch[/b][/url], [url=http://www.abercrombie-hollister.nl/][b]abercrombie and fitch[/b][/url], [url=http://www.tommy-hilfiger-canada.ca/][b]tommy hilfiger[/b][/url], [url=http://www.ralphlaurenpolos.in.net/][b]polo ralph lauren[/b][/url],

    ReplyDelete
  9. p90x workout, ralph lauren, tiffany and co, ralph lauren outlet, chi flat iron, asics, tory burch outlet, new balance, ray-ban sunglasses, ugg boots, swarovski jewelry, tommy hilfiger outlet, rayban, chanel bags, cheap nike shoes, pandora, woolrich sale, prada handbags, babyliss, gucci outlet, pandora charms, louis vuitton, horloges, michael kors outlet, bottega, moncler sale, ralph lauren outlet online, softball bats, supra shoes, ray ban outlet, ugg boots, christian louboutin, louis vuitton, harrods, soccer shoes, louis vuitton, louis vuitton outlet, nike roche, the north face, ugg

    ReplyDelete
  10. [url=http://www.louis-vuittonblackfriday.com/][b]louis vuitton[/b][/url], [url=http://www.abercrombieand-fitch.net.co/][b]abercrombie fitch[/b][/url], [url=http://www.michael-kors-taschen.com.de/][b]michael kors uhren[/b][/url], [url=http://www.airmax-2015.org/][b]air max 2015[/b][/url], [url=http://www.the-north-face.ca/][b]the north face[/b][/url], [url=http://www.nikefree5.net/][b]nike free 5.0[/b][/url], [url=http://www.salvatoreferragamo.in.net/][b]salvatore ferragamo[/b][/url],

    ReplyDelete
  11. Dropped the load down to a degree he would do 16 to 18 reps, while still incorporating the large lifts on a more occasional basis This was not an especially efficient human body developing execute out, but he did get that chiseled look that.

    http://muscletips-college.com/

    ReplyDelete
  12. The use of products encourages the muscle tissue to develop and this in convert creates muscle tissue to improve. 5. Eating seafood in plenty and red various meats is a dietary way of how to get attractive tissue. The red various meats that you eat.

    http://pretraining-fitness.com/

    ReplyDelete
  13. Times on one day off, couple of times on, two times off or one day on one day off and so on Start with muscle that is hardest for you to develop You choose and always begin with a no cost bodyweight exercise and go large as you can for four to five.

    http://muscle-preparation.com/

    ReplyDelete
  14. Know you deserve Keep in mind you didn't get overweight over night So, you won't return again fit instantly either But a little more each day than the day before will definitely get you there If you're here then you're probably enthusiastic about.

    http://boostmuscle-help.com/

    ReplyDelete
  15. Moments after execute out Lifting loads not only tires your muscle tissue and often your mind too, but actually creates a microscopic crying inside your muscle tissue It is while relaxing after your coaching, and especially while sleeping, when your entire.

    http://manbody-building.com/

    ReplyDelete
  16. How can it produce visitors back to your organization web site? Certain sufficient, you want to have a clearer look at of how all these stuff can be achievable. After all, you have made the decision to try out on the net marketing and advertising so you can earn a lot more funds. There is no denying that the social networking websites.


    http://checkbinary.com/

    ReplyDelete