I have a simple directory form in which I have 3 text fields and an Add button. The primary business object is set to ST_RELAT_BO. When I click Add, a new row is added to my dataset for this business object. I want my fields to refresh accordingly to this newly added row to the data set. Is there a simple command that I can call that will refresh my text boxes to use the new row so that I can continue adding the information? Right now, when I click ADD, the form never refreshes to the new row so I can't enter the information.
There is a couple way to take care of this issue:
1 - you can put code in the hookpostnew method of the form and use the bindingcontext object to display the last record of the dataset.
2 - if you don't have a grid on the form and you only display one record at any given time you put code in the hookprenew method to clear the dataset.