Hi, i'm just getting to grips with sugar and unsure how to implement the following. I have 2 custom modules booking and session which are related through a 1 to many relationship. Everything is working great. I've looked at using logic hooks to automatically add sessions when a booking is created. This seems pretty trivial. How can I provide input so that the user can define the number of sessions, a particular day and time, which is then used to generate say 50 sessions. My initial thought was to add these fields to a panel in the edit view and just not show them in the detail view. This seemed silly as the data would then be in the database and may confuse users if they choose to edit records. Obviously I could hide the fields in the edit view once the process has occurred as it only needs happen once, but again this seemed silly. The only other approach I considered was to add a custom button to the form which shows a popup and then have the various fields in the popup.
Any help would be greatly appreciated.
Regards


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks