-
Yes, it is like the timesheet should be filled on weekly basis. So i need to associate the dates and daynames properly such that one textbox will have dayname and other will have date.
My timesheet will look similar to ...
-
Hi,
Add the following code lines to verify the errors.
var thisXDocument = null;
thisXDocument = window.external.Window.XDocument;
if (thisXDocument.Errors.Count > 0)
{
alert("Please fill the required fields.");
return;
}
Else
{
Write your code here
}
-
Do you want to autopopulate the day name in Text box or is that value coming from any xml?
-
Hi,Do you want to display all the day names? If so, just add a rule to the drop down to set the day names in the text box.If the day names are different for each week then prepare an xml and using a rule by filtering the value in the drop down you can populate the value in text box.
-
Shiva,
Thanks for your quick response. When you say shifting to sharepoint site do you mean refreshing the page? The scenario I face is that I have the Infopath form as a popup. Once the user submits the form I use e.CancelableArgs.Cancel of SubmitEventArgs to close the window and while closing the Infopath form window I want the webpart to ...
-
Hi,
I am creating a timesheet infopath form in which the day names should be shown atomatically without using code behind.
There is an dropdown list which will have values like, Firstweek,secondweek... and based upon that those day names should be display
Please help me
-
Are you using code to call the save operation?
This is a C# expression to obtain the epoch time:
int epoch = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
-
I'm not sure why that error is happening, but I can tell you that you shouldn't be setting the selection namespaces on the secondary DOM every time a function is called. They should be set once globally and left that way.
I'm used to accessing the secondary DOM with XDocument.DataObjects["DomName"].DOM rather than ...
-
I think InfoPath is an ok tool for what you're doing, but in my honest opinion, you're not going about it the way InfoPath was intended to be used. XML (and InfoPath is just a visual representation of XML) is great for grouping similar sets of data together, and those tables in your form should really be repeating tables, not flat ...
-
I am using this code in jscript to get info from a secondary datasource:
var YeastStoragedom = XDocument.GetDOM("YeastStorageStateID");
YeastStoragedom.setProperty("SelectionNamespaces",'xmlns:dfs = "http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:d = ...