Creating an Infrastructure of Your Own [Part 3]

    By: Mr. Rik Brooks on May 01, 2014

    This article is the third and final installment in the three-part series focusing on how to create your own infrastructure. By the end this article, you should be able to implement editor and master/detail editors with no coding at all.

    This article is third in the series on creating your own infrastructure. I’ve made every attempt to make it easy to work with the architecture. The actual coding hasn’t been always simple but that’s not the point. If you spend time with your infrastructure and get it right then everything after that will be easier.

    You will require the first two articles for this one. We have done significant work already and I’ll build upon that.

    Before we get to the meat of the article I want to expose you to something that is so very common in the life of an Architect. I’ve decided to add a button to the toolbar_dw_default. I created a pb_dw_retrieve button. Of course the process was similar to the way we did it in Infrastructure part 2. First we add code to the clicked event.

    The problem is that if you have a retrieve that requires arguments then you can’t use this. You would have to inherit from your pb_dw_retrieve and override the clicked event. Then, you would have to inherit from toolbar_dw_default and put your new retrieve button there.

    Speaking of toolbar_dw_default. Let’s inherit from that and throw our new toolbar onto it.


    Login to read the article. Not a member? Create a free account!

    Released: May 1, 2014, 10:45 am | Updated: October 8, 2014, 9:46 am
    Keywords: PowerBuilder Article | Technical Journal | DataWindow | In Memory | Inheritance | Object Oriented | PowerBuilder | Rik Brooks




    Copyright © 2014 ISUG-TECH. All Rights Reserved
    All material, files, logos and trademarks within this site are copyright their respective organizations

    Terms of Service - Privacy Policy - Contact the Help Desk