update an existing record and save new record in User defined SBO form
I have created an user defined form in SBO usuing vb.net where I have retrieved records from data base and displayed in the form. Also I can navigate records.
Now I want to update an existing record which is already displaying and also want to save new records. All these process should happen in the same way it happens in an existing SBO form , like when someone trys to write something into an already displaying record the "OK" button changes to "Update" button automatically etc. etc.
Can I have an simple example code regardig this.
You just name your command button to 1, here is a hint from SAP Help file.
UID=1 is reserved to Add button and includes automatic management of form mode by the application (changing the button caption when form mode changes).
UID=2 is reserved to Cancel button.
It will be the same as the behavior of SAP. Hope this helps.