-
Yes, then you can access via code and you don't have to hardcode the path. Agni, can you paste some sample code which accesses 2DS files?
Patrick Halstead [InfoPath MVP]
InfoPathDev
-
Hi Vasudha, Welcome to the forum!
Write a method in your formcode that returns true if the form is new and false if it is false.
for ex:-
public bool isNew()
{
return thisXDocument.IsNew;
}
Now set conditional formatting on you textbox(any control), and call the above method with xdExtension functionality.
You can find more info about ...
-
If you want to bind ''To'' address to a bound field then you need to set this setting by modifying your connection. In the Email dataconnection wizard you can bind your ''to'' address to a field in your form.
Otherwise you can get the emailaddress from the field and set that value to it, for ex:-
oEmail.To = ...
-
Hi! I have a drop down list that is populated via a web service. The web service returns a dataset. Now I want to make a selcted index as selected in the drop down. How do i do this.
I can do the same thing in asp.net as follows.
myDropDownList.SelectedItem.Selected=''True''
Thanks in advance for the help.
speddi
-
I have a form connected to an access database. Is it possible to query information using multiple date ranges?
-
-
Hey all,
When using a Master/Detail table, is there any way to change the color that Infopath uses to highlight the record in the Master table? Currently it highlights gray and I wanted to know if I could change that to a more astetically pleasing color.
-
If I enter oEmail.To=abc@xyz.com; won't that send the email to ''abc@xyz.com''? What I'm trying to do is have the oEmail.To=A Bound Field, that way whatever email address is in the datafield at the time of submitting gets the email sent to them. I hope that makes sense.
-
Hi, wcotech,
1. Here is the total code for email
var oEmail = XDocument.DataAdapters(''Email Submit'');
oEmail.To = abc@xyz.com;
oEmail.CC = xyz@abc.com;
oEmail.Subject = ''Subject'';
oEmail.Intro = ''Email body'';
oEmail.Submit();
2. Here you have typo mistake ''XDocument.DOM.xml''.
In XDocument 'd' is written in lower case.
Agni
InfoPath ...
-
Hi,
I use roles in my InfoPath Form and the Form is published to a SharePoint Form Library. Is there a way to disable (read only) certain fields in the form after the user saves the form (to prevent the user from editing the form afer the submit).
Thank You
-Vasudha