-
I am trying to pull in the name of current user
I would normaly use ADWS to do this but the client dosn't have it. So I'm using the following blog but to no avail.
http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx
Attached is an example ...
-
I should add - you do still have the error node where you can see it when you are trying this, right?
-
Interesting! Can you attach a copy of your form under the Options tab? I'd like to take a look at it.
-
You were correct. I was using a version of the form where I had tried using a change event to get the week num. However, on the older form with no code, GetWeekDay is still not generating a result. When I type GenerateGuid in the older form, I do get a result value but nothing with GetWeekDay
-
Sounds like qRules has been disabled - any chance you accidentally added custom code to your form? If you put the Command field on your form, type in GenerateGuid and tab out, what happens?
-
Thanks for the quick reply Hilary. I tried this but I can't seem to get anything working. I created a button and assigned a rule to set the value of the command field and set it to this value concat("GetWeekDay /date=", DeliveryDate, "/day=Mo") I also added the result, error and success fields to ...
-
Yes, this does work! Thank you.
I tried the substring-after, already but did not think to nest two functions.
-
i don't have the ability to change my original datetype, due to the datasource, so this does not work for me, but thanks for your help.
-
You bet. I don't think we have a way currently to return the week of the year based on a date (but that would be a good add - I'll put in a feature request). We have a command called "GetWeekDay" that I think you can use to easily get the Monday and Friday based on a date tho. Check the command overview for deets, but here ...
-
I need help on this.
I want to validate an attachment in repeating section. User can click the add item if they want to add extra attachments.
Let say:-
1) if backdate = yes, show AttachmentSection. (previous i hide this section)
2) How to validate user has attached either 1 attachment or 2 attachment after section appear in screen? ...