Drag Appointment Set Insert Parameter for SQL

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    5 posts
    Member since:
    Jan 2016

    Posted 07 Feb Link to this post

    I've made a lot of progress with the scheduler, but I am running into one issue.

    I am working on scheduling physicians and they are either scheduled as a person or a group.

    I have two seperate drop down boxes.  One for physicians and one for groups.

     I am able to display the appointment and return either the group name or physician name on the appointment box, but I have set a parameter for inserting or updating entries with a @Type parameter.  @Type is defined in my c# code and works for all other function, except when dragging an appointment to another day.  @Type sets whether the insertion was a physician or a group.  When I do a report it will need to know if the ID stored is a physician ID or group ID.  Based on that it will resolve group/physician names and create links.

     

    Long story short I need to be able to define @Type insert parameter while the appointment is being moved to another day.  The appointment wouldn't necessarily be the last appointment open, which is making it harder.  The javascripting I've tried so far with OnClientAppointmentMoveEnd has caused the appointment to not be stored in SQL at all.

  2. Daniel
    Daniel avatar
    5 posts
    Member since:
    Jan 2016

    Posted 07 Feb in reply to Daniel Link to this post

    I'm thinking I may be able to add a hidden element to the form.  When the selection changes in group it can be set to group or vice versa and then store that value that way.  That would hold that value while it is being moved.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Daniel avatar
    5 posts
    Member since:
    Jan 2016

    Posted 07 Feb in reply to Daniel Link to this post

    Hidden field and a session value did the trick.
Back to Top