Help!?!?!?
Somehow I got voluntold into this project, “well he is great
at Excel, so InfoPath should be no problem”. With that said this document is
the first document I have created with InfoPath and SharePoint. Some background
on the document, this document is used to track the life cycle of an audit
(finance) so I believe there was a need for both a repeating section and a
repeating table within the section. An audit may have more than 1 issue
(repeating section) and the individual Action Plans can range from daily to one
time reviews for up to 3 months these reviews must be documented (repeating
table). I am in the final stages of this project and want to start testing but I
do want to have an error check performed when the “Submit CAP to Area Director”
button is clicked (if error is found the rules would stop other rules so form
will not be submitted)
Rule is as follows if “CountReviews<NumberOfReviews” then
“concat("Error: Number of reviews associated with CAP ", ../my:group1/my:AddCAPPlan[current()]/my:ReferenceNumber, " is less than what is required. Based on the Date CAP started, CAP due date, and Frequency of review there should be a total of ", my:group1/my:AddCAPPlan[current()]/my:NumberOfReviews, " though only ", my:group1/my:AddCAPPlan[current()]/my:CountReviews, " have been recorded.")"
I have also tried adding both current()/../ and [current()], tried to play with eval(eval(, though not really sure how that function
works, and playing in the manifest.xsf.
CountReviews = count(ReviewSerial) (number
of rows in table)
NumberOfReviews = Rules Based – Days between “CAPStartDate”
and “CAPDueDate” divided by whatever is needed to calculate for daily, weekly,
monthly, or quarterly reviews.
This is a browser form as my end users do not have InfoPath
Filler.
At this point I would be happy with the above message to
appear within the affected section but preferably I would like it outside of
the section on the bottom of the form just above the buttons. I would also like
the end user to either continue with the error (button to change a field to
proceed) or to go back and fix to resubmit.
From my hours of research I believe Qrules has a solution
for this, I am currently trying to get our IT dept. (foreign) to take a look at
the solution but who knows how long that will take.
Hopefully I have given enough information to allow you to
understand what I am trying to do. Any help anyone can offer would be absolutely
awesome.
Thanks Adam