In your ISD installation folder, navigate to
There you have all the files used to generate the code behind for pages. They're XSL files wich contain plain code (th resulting) and meta code. In order to use the changes proposed in the previous post, I modified
There I found the corresponding places and made the changes:
- In PageLoad(), around line 513, commented out: Panel.Visible = false;
- In CreateWhereClause, around line 1441, commented out exception throwing and added return null;
- In GetRecord, around line 2724 added some code, copied from line 2713, to return a new record if RecordUniqueID is null;
Now all the Edit pages create in ISD applications can be used as Add pages, without having to handcode.