-
Hi kurtd,
Please check out the following link, you can get the more information on xpath:
http://www.w3schools.com/xpath/default.asp
-
Hi Kurtd,
You should give your xpath of where do you want to set that number of week value. In previously you had given one xpath like ''//my:myFields/my:txtWeek''. Because of I had used that xpath only here. But that is wrong for your requirement. Here is the change.
I think you are using secondary DOM for setting number of week value. For that ...
-
Hi Clay,
Take a look at this HowTo:http://www.infopathdev.com/howto/tutorials/default.aspx?i=51dce616335a4ff6a78f2d289baf4651
-
Hi Sylapse,
You should add rules and based on filter you can set those values. Check out this link and get more information.http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85
-
Hi kurtd,
You can write below this code to in your on after change event.
if (e.IsUndoRedo || e.Operation != ''Insert'')
{
return;
}
string dateString = e.Source.text;
int date = Convert.ToInt32(dateString.Substring(8,2));
int numberOfWeek = (date / 7) + 1;
thisXDocument.DOM.selectSingleNode(''/my:myFields/my:txtWeek'').text = ...
-
Hi Paul,
Instead of using OR you should use AND then it works as per your requirement.
-
Hi kurtd Welcome to the forums,
By using on after change event on date field you can set the week number to another field. Depends on your setting date format (eg: dd/mm/yyyy) get the complete date value. By using substring functions you can get the ‘dd#%92 value in C#. By getting ‘dd#%92 value you need to calculate ((dd / 7) + 1) is week number ...
-
Hi Philippe,
For removing borders to expression box, double click on expression box and select borders and shading option. In that window borders option, select NONE for no borders for that expression box. If you want to change the border color then select any color and assign to that expression box.
-
Hi Clare,
You can check your secondary data connection and those details once again. If you don#%92t want to share point secondary connection then you need to remove that reference from manifest.xsf file.
For removing that reference from manifest.xsf file, open this file in notepad and search key word like ‘dataobject#%92. Select share point ...
-
Hi Woff,
You should directly add several values in to repeating table in design mode depending on the binding of drop down values.
1. For those dropdown values if you have secondary DOM, then open the secondary xml file in notepad directly you can add those values. This is the point above Matt Faus talking about.
2. If you have main DOM, then ...