Hi,
I am trying to locate the code which gets executed when i drag and drop a file from the explorer onto mail memo form. Is it possible to know?
Thanks in advance,
Agasthya
Hi,
I am trying to locate the code which gets executed when i drag and drop a file from the explorer onto mail memo form. Is it possible to know?
Thanks in advance,
Agasthya
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
This is a built-in function of Notes; not part of the mail file design. What are you trying to do?
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Hi,
Actually I wanted to insert a file similar to the drag and drop. My req is:
I have a database which will store file paths, in Notes I provided a action button and when user clicks on that the files are displayed. I need to attach the selected file to the Memo and it should be like attach or drag and drop action to the user.(means if i attach using Script then it is not appearing properly).
Thanks in advance,
Agasthya
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Write the code that decides which file to attach as an agent. Have the agent set an environment variable (“Temp1” or some other name you choose) to the selected filename if a file is selected. Write a formula action or button on your form as follows:
@SetEnvironment(“Temp1”; “”);
@Command([RunAgent]; “SelectAFile”);
_filename := @Environment(“Temp1”);
@If(_filename = “”; “”; @Command( [EditInsertFileAttachment] ; _filename ; 1)
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Hi,
I tried the code sample its working fine. But it is working only for 1 attachment then later it is not working. Am I missing anything please help.
Thanks in advance,
Agasthya
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Suspect [EditInsertFileAttachment] is leaving the cursor focus in a place where you can’t insert an attachment. You probably need to reposition the cursor into the rich text field. There are commands for that in NotesUIDocument class and @Commands.
If that’s not it, “not working” is not sufficient information to diagnose the problem. Please see these links:
How to debug Notes applications
How to ask a technical question about Notes
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Hey,
Sorry for the post. Actually I added the same @function to set the Environment variable in the agent. That gave the problem. Later I changed the code and added Script what i have to do. Its working.
Thanks a ton,
Agasthya
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Hi Andre,
I want some info, I tried to get the info from the forum as well but could not find.
As u suggested i used the @Formulas and called an agent having script That’s working fine. Now my problem is the @formulas will not work for Web Client. So i thought of having the @Formuals implementation for the Notes Client and different Script for the Web Client. And I would like to switch to the script if it is Web Client. Is this possible? Please can u suggest any link or info.
Thanks in advance,
Agasthya
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Sure – the easy way is to have two buttons or actions – one using macro language, and hidden from web users, the other using JavaScript and hidden from Notes client users. I’ve never tried to fill in the attachment filename in an attachment control automatically and then submit the form using JavaScript, but I don’t see why it shouldn’t work.
Subject: RE: How to locate the code which is getting executed when we drag and drop a file in the memo form
Oho! so simple… I will give a try.
Thanks a ton,
Agasthya