Is there any way to determine the folder you’re dropping the doc into? There is the EntryName parameter on the Database Script Postdragdrop event, but that only returns the lowest level view name. The NotesDatabase.GetView(“ViewName”) function requires the full name. How can I find the folder?Thanks.
Subject: Postdragdrop event
The PostDragDrop event is passed (Source as NotesUIView). You can use source.viewname to return the name of the folder.
Subject: Re: Postdragdrop event
You are correct, but also incorrect.
-
You are talking about the postdrag drop event in the NotesUIView Class, which only works for Calendar views/folders. Check out the designer help.
-
With the Postdragdrop event of the NotesUIDatabase class you can capture the folder standard/calendar name using the ‘EntryName’ argument.
Since the origional post was regarding the second case we will look at that. The EntryName argument in the help database states that EntryName will be the alias of the design element. Now you would think this would be the alias of the folder (or the name if no alias). In fact it is only the text displayed for the specific entry.
Example 1:
Folder - Client\Lotus
given that this is the folders name you will only get the name displayed for that outline entry, in this case it is ‘Lotus’.
Example 2:
Folder - Clients\IBM
If in the outline i create an entry called ‘Clients-IBM’ and point it to the folder ‘Clients\IBM’ then when we drag onto the entry we will get ‘Clients-IBM’.
So in summary it does not matter what the name/alias of the folder is, the EntryName argumanet of the postdragdrop will only ever contain the value of the outline entry it is dragged onto.
Hope this helps.
–
Regards,
Anthony Lee