You searched for the word(s): 12
-
Here is the code to send an email via code
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters[''Email Submit''];
oEmail.To = ''
[email protected];
[email protected]'';
oEmail.CC = ''
[email protected]'';
oEmail.Subject = ''subject'';
oEmail.Intro = ''Intro'';
oEmail.Submit();
Note: Above code is in c#
Agni
InfoPathDev India
-
Is the action that you are performing in the code or in the InfoPath?
If it is in the code then name the buttons differently and write a common method for the functionality and pass the dataconnection name as a parameter to the method. Now call this method in all the 4 buttons onclick method.
If it is in InfoPath then also you need to name the ...
-
Hi
thanks for the response. I have tried that but have some problems. I have 3 different emails i want to send when i click on 3 different buttons. With your method it only allows me to send 1 email.
Can anyone give me the code that the data connection generates?
-
Form A:
Contains general information on a group at the top. A few text boxes. Below this, it also has a repeating section, which contains more information that is specific to certain servers owned by a group.
Form B:
At the moment, it just contains two drop town list boxes. It pulls the data from Form A's Sharepoint repository and propogates ...
-
Hi
I have a form with 4 buttons but they always perform the same action. I have 4 different data connectionas that i want each one of the buttons to use. The problem is that as soon as i set one button the other 3 also do the same thing.
HELP - how do i stop this
-
Hi
I am having a similar problem and have read every thread on this site on on some others but i still cannot get a username.
I have a text box called ''name'' and all i want is the Username in this box. Could someone please provide me with the code to do this as i am at a wall and have no idea how to continue.
-
I am new to INFOPATH.... IS there a URL or a sample which i can follow to write this custom data validator
-
hi all,
Someone pls help me in accessing windows User Id using JSCRIPT,
''System.Environment.UserName'' , I have tried it its not working.
pls some one can you give code onload event { ''JSCRIPT'' }
or tutorial how to do then it would be useful.
Thanks for your Help
Shree
SHREEPRABU,
SOFTWARE ENGINEER
US TECHNOLOGY
-
Does it have instructions on how to set it up and use it? I'm not a serious developer, I just want to be able to get the current username and password so that people can easily log into sharepoint and see the data that they want.
-
How do you do the first part? Do you need to edit the code-behind on a form?
There are a lot of people asking this question on the forums, and the responses always tend to be 'use system.environment.username'. It would be nice if someone could do a step - by - step tutorial showing how.