One feature which we are being requested is the facility to allow a user to enter 1 record only. The application, for example, would ask for data about a user and the user will have to enter that data - but we do not want the user to enter more than 1 record - just the user's data only! DotNetMushroom RAD provides a simple way for one to do this. All that the RAD developer needs to do is to create a navigator to an edit form which edits the data that one wants to control with 1 user = 1 record. In the navigator the following navigator command is issued:
Module = (module where the edit form is placed)
Navigator Command = Filter (DNMFILTER)
Parameters: dnm_UserId = {%dnm_userid}
Usually the parameters in {} are data which is bound to the current form. The {% } syntax will get the data from DNN instead from the current form. So in DotNetMushroom RAD {%dnm_userid} refers to the current user id in DNN. The dnm_UserId (on the left hand site of the parameter) is the user id field which is automatically created in DotNetMushroom tables. If there is not data for the filter above, then the system will prompt for new data, else the system will load the existing data to be amended. |