NetTalk Central

Author Topic: Stopping Drag & Drop capability in Netwebyear  (Read 2654 times)

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Stopping Drag & Drop capability in Netwebyear
« on: September 05, 2012, 02:46:47 AM »
Hi,

How do I stop the drag & drop capability of the NetWebYear claendar display?
I have a 'Big' NetWebYear displayed in a page, and the user can drag one displayed 'Day' (IE; one of the squares that represent a day), onto another. That would be cute if I wanted it, but I dont - And all the records that were related to the original date (The day that was dragged) disappear when it's dropped. Rather than add another feature (like say to the user.. look, you can drag one date ointo another and all the records end up in the second one) I'd just like to restrict this behaviour.
Thanks
Pauly
 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Stopping Drag & Drop capability in Netwebyear
« Reply #1 on: September 05, 2012, 04:29:51 AM »
Hi Pauly,

I will need to add an option to turn it off. At the moment it's an intrinsic part of how the control works.

>> And all the records that were related to the original date (The day that was dragged) disappear when it's dropped.

Tell me more about this please. What's happening underneath is that your form procedure is being called as if the user opened the form, changed the date, and saved the form. So if something goes wrong with the drag & drop, it would be interesting to know if the same thing goes wrong when the date is changed.

One thing you may not have set (which may be what is causing the grief) is the setting on the Priming tab of the Form. (The form, not the calendar.) On the Priming tab of the form is a setting
From Calendars:
This lets you set the Date field(s) and Time fields. This is what the template uses for the drag & drop.

the UpdateConferences form procedure, in the HotDates example is a good working example.

>> That would be cute if I wanted it, but I dont -

I bet it'd be even cuter if it worked in your app <bg>... It is a pretty cool feature though for folk using the calendar.

cheers
Bruce


Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Stopping Drag & Drop capability in Netwebyear
« Reply #2 on: September 06, 2012, 01:57:28 AM »
HI Bruce,

Thanks for the reply - The form actually contains a browse with a child of a child.. IE -Calendar Table-> Form With Child table that contains a browse-> Form to add records to the browse related to the child.
I can understand why in some applications that would be cool - but definitely not in this one. I look forward to the option :-)

Thanks again 
Pauly



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Stopping Drag & Drop capability in Netwebyear
« Reply #3 on: September 06, 2012, 09:46:18 PM »
added in 6.44, on the new "options" tab.

cheers
Bruce