-
Hi jeanpaul,
Directly in InfoPath there is no such method, but as you said you can use translate. Other way is write a funtion to convert data to uppercase by using string.ToUpper() function.
Agni
InfoPath Dev India
-
Hi Thierry,
Here is the code that accesses the secondary datasource.
IXMLDOMDocument2 domSecondaryXML = (IXMLDOMDocument2)thisXDocument.CreateDOM();
domSecondaryXML.async = false;
domSecondaryXML.load(''datasource.xml'');
Now youc an start using domSecondaryXML like any other IXMLDOMDocument2 object.
Agni
InfoPath Dev India
-
Hi wcotech,
As far as I know there is no direct way to change the Master/Detail selection color. May be you can do some investigation by looking into view.xsl files if there is any setting.
Agni
InfoPath Dev India
-
Yes it is possible, you just need to change the command of the dataconnection if you want to change the query with which you getting the data from DB.
Here is how you can change the query of a DB data connection in code
ADOAdapterObject oAdapter = (ADOAdapterObject) thisXDocument.DataAdapters[''DatabaseConnectioName''];
//Here you can write any ...
-
Hi speddi, Welcome to the Forum!
You cannot do the way that you do with asp.net.
If you want a value to be selected by default then you need to set that value directly into the form xml.
Once you set the value to the field that is bound to the dropdown then that value is shown as selected in the UI.
Hope this Helps!
Agni
InfoPath Dev India
-
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, 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 Smaur,
There are many similar posts on this site, you can search for replace keyword.
Or you can modify the code inhttp://www.infopathdev.com/forums/topic.asp?TOPIC_ID=552
to suit your needs.
Agni
InfoPath Dev India
-
Hey wcotech, this code is for c# and you are using it in the script.
It has to be
var oEmail = XDocument.DataAdapters(''Submit'');
Agni
InfoPath Dev India