-
In InfoPath the way to set any data is to put it in a seconary DOM and read that data. This data can be changed easily by exporting it out changing the data and importing it back in.
About having a config file to have this data -> the App.Config file for a regular C# code is renamed as app.exe.config, For an Infopath solution the C# code is ...
-
One thing that you can do is map the DropDownList to a secondary Dom with similar structure and then in the OnLoad function get the data and either replace or insert it into the secondary DOM that is mapped to the dropdownlist.
The XML structure definitely needs to be same is this case otherwise the code will fail.
Hope this ...
-
The book ''Developing Solutions with Microsoft InfoPath'' is a good book and has lot of small details that are very useful to InfoPath developers. Other place where you can get good information is the help file that comes along with the InfoPath SDK
Shanthi
InfoPathDev India
-
The only way i can think of programmatically to set a text box readonly is to set an element value in the DOM and have conditional formatting for the text box based on the value of this element
If the text box read only status needs to be saved across Infopath sessions then you can either have this value in the secondary DOM and reset it OnLoad ...
-
Hello Rip,
You can do that by writing code on the OnAfterChange event for the row Node. But be careful that you only insert the new nodes when the Operation is ''Insert'' and the nodeName that is calling the onAfterChange is the correct one.
Hope this helps!
Shanthi
InfoPathDev India
-
Can you give details on the error that you get? Is it a data validation error or some other error?
Shanthi
InfoPathDev India
-
Hello,
For the 1st way mentioned above, you need to have Sharepoint Portal servive installed (this is different from Windows Sharepoint services -> previously called as Sharepoint Team Services [STS]). When they say ''the name of your SharePoint Portal Server 2003 instance'' they mean where you have Sharepoint Portal server installed. Or in ...
-
You can use the Tab index field in the advanced tab in Properties window of the control to set the tab order as you want it.
Shanthi
InfoPathDev India
-
You can add an OnBeforeChange event handler which checks the operation and then gives an error message if they are trying to delete the attachment.
Hope this helps!
Shanthi
InfoPathDev India
-
Just like there is Alert there is a Confirm to get a confirm dialog box -> thisXDocument.UI.Confirm. If you want a confirm window with Yes/No buttons, here is code that can help you out
if(XdConfirmChoice.xdNo == thisXDocument.UI.Confirm(string.Format(''Are you sure you want to delete?'' ), XdConfirmButtons.xdYesNo))
return;
Here if the user ...