[progress Communities] [progress Openedge Abl] Forum Post: Re: Parent Child Data Addition

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Bob, I would need to know more about your screen design to provide a better answer. I am guessing that you are using a Master / Detail type of configuration similar to the one in the following sample: oemobiledemo.progress.com/.../ Source Code: github.com/.../master-detail-grids (Or are you using a hierarchical grid configuration?) In this design, there is a parent grid (list of open jobs) and 2nd grid to show the children of the selected job. Is your data entry happening on the grid itself or on additional fields on a form? Is the save button on the form or are you using the edit button on a grid? In order to create the records programmatically, you would need to bind to the click event from the right context so that you have access to $scope. For example, you can do this on the onShow event in the view-factory.js file. The code on the event handler then can acccess the instance of the Kendo UI DataSource for the child grid and call the add() method and/or sync(). Example: $scope._$ds.CustOrderDetail.add({CustNum: 5, OrderNum: 10000}) Here are couple of resources that may come up handy: demos.telerik.com/.../ docs.telerik.com/.../datasource docs.telerik.com/.../grid Please let me know how it goes so I can provide more information. I hope this helps, Edsel

Continue reading...
 
Status
Not open for further replies.
Back
Top