<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33815.aspx</link><pubDate>Mon, 03 Nov 2008 18:19:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33815</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33815</wfw:commentRss><description>&lt;p&gt;sitting with a sheepish grin..... nope rule 1 wasn&amp;#39;t running.&amp;nbsp; I changed the condition to look and see if timesheet_id is not blank for the condition.&amp;nbsp; works like a charm.&amp;nbsp; I guess my trying to look smart with a fancy command didn&amp;#39;t work out too well.&lt;/p&gt;
&lt;p&gt;Thanks Hilary, you rule&lt;/p&gt;
&lt;p&gt;Now on to finding my next challenge... LOL&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33814.aspx</link><pubDate>Mon, 03 Nov 2008 17:42:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33814</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33814</wfw:commentRss><description>&lt;p&gt;Is rule 1 running? Throw a dialog box in there, see if it pops up....&lt;/p&gt;
&lt;p&gt;Or show your query field on your form somewhere so you can see if it is being populated....&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33812.aspx</link><pubDate>Mon, 03 Nov 2008 17:35:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33812</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33812</wfw:commentRss><description>&lt;p&gt;yes the 1st step in each rule is a condition.&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33811.aspx</link><pubDate>Mon, 03 Nov 2008 17:29:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33811</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33811</wfw:commentRss><description>&lt;p&gt;Hi, Jeff:&lt;/p&gt;
&lt;p&gt;Is Item 1 in rule 1 an action? Or a condition? I would think it would be a condition -- you don&amp;#39;t want action #3 to run unless item 1 is true, right?&lt;/p&gt;
&lt;p&gt;So, Rule 1, I think, should be based on the condition that the document is not new, and have 2 actions: 1) set the query field and 2) run the query&lt;/p&gt;
&lt;p&gt;Rule 2 should have a condition to see if the approved field is set to true and an action to open the form in read only. &lt;/p&gt;
&lt;p&gt;Is this how they are currently set up? as conditions on rules?&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33808.aspx</link><pubDate>Mon, 03 Nov 2008 17:12:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33808</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33808</wfw:commentRss><description>&lt;p&gt;Ok not sure how I screwed up the previous post but lets try again.&lt;/p&gt;
&lt;p&gt;I attached a picture of my data source.&amp;nbsp; I still cannot get the is_approved field to show true when its been updated in the database.&amp;nbsp; The entry table and approved table are linked to the timesheet table via the timesheet_id.&lt;/p&gt;
&lt;p&gt;I have two rules set to run when the form opens.&amp;nbsp; Rule1 does the following.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;checks to see if the XDocument.IsNew = False.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;sets the q:tbl_Timesheet :timesheet_id to the value of d:tbl_Timesheet :timesheet_id&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;then runs the query on the main data source.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Can all of these be run in one rule or do I need to setup rules for each step.&lt;/p&gt;
&lt;p&gt;Rule 2&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Checks to see if tbl_Timesheet_Approval :is_approved is set to &amp;quot;True&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If &amp;quot;True then it opens form in view: Read Only&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;I don&amp;#39;t know if this will work or not since I cant get past the is_approved update problem&lt;/p&gt;
&lt;p&gt;Thanks again, if there is anything else you need that I left out let me know.&lt;/p&gt;
&lt;p&gt;Jeff&amp;nbsp; (I don&amp;#39;t know how I got this picture in the post, and I don&amp;#39;t know how to get rid of it.)&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33805.aspx</link><pubDate>Mon, 03 Nov 2008 15:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33805</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33805</wfw:commentRss><description>&lt;p&gt;I used the XDocument.IsNew = false expression and that seemed to work.&amp;nbsp;&amp;nbsp; ^^^^^^^ as always I&amp;#39;m overlooking the obvious easy answer... lol&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33804.aspx</link><pubDate>Mon, 03 Nov 2008 15:23:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33804</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33804.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33804</wfw:commentRss><description>&lt;p&gt;Well, if you have a value in the ID field (data fields), then the form is not new. You could use that for a condition -- if ID field is not blank.....&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33801.aspx</link><pubDate>Mon, 03 Nov 2008 15:04:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33801</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33801</wfw:commentRss><description>&lt;p&gt;Thanks so much for your help Hilary, I am actually making some progress YEAH.&amp;nbsp; The only problem I have right now is when I open a blank form it is running the query and grabbing the ID of the first record in the database.&amp;nbsp; I&amp;#39;m sure there is a property field or another rule I can run to only run this query if its not a new form.&amp;nbsp; I will search the forum and see if I can figure this out before you have a chance to reply.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Again Thanks&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33752.aspx</link><pubDate>Fri, 31 Oct 2008 17:56:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33752</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33752</wfw:commentRss><description>&lt;p&gt;Well, everyone here was new at some point!&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t have to have a control on the form that is bound to the approved field in the data source, as long as the field is in your data source. &lt;/p&gt;
&lt;p&gt;Is your form built off the table? That is, when you designed your form, did you select to design it off a database?&lt;/p&gt;
&lt;p&gt;If so, your main data source for your form will have two groups in it -- query fields and data fields. If you look in those groups, you&amp;#39;ll see two sets of fields with the same names. The query fields are the way we chose which data to return to the form. The data fields display the data. So, the fields on your form, probably intended for display and editing of data (or entering new data) are bound to the data fields. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing that you have a field in your table that you are using for Id. I am suggesting you create a new open rule, to run before your switch views rule, that has the following actions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;sets the &lt;strong&gt;query&lt;/strong&gt; Id field to be equal to the &lt;strong&gt;data &lt;/strong&gt;Id field&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;runs a query using the main connection (in the rule action, select &lt;strong&gt;Query using data connection&lt;/strong&gt; and in the dropdown, select &lt;strong&gt;Main Connection&lt;/strong&gt;)&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This will cause the form to query the database every time it is opened. If the timecard entry already exists (i.e., it has an Id), the data for that timecard will be refreshed in the form. This means that if the &amp;#39;approved&amp;#39; field has changed, the form will have that change.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a simple (ugly!) template that I used when I set the rule to test, just so you can look at the rule and see what I mean. You&amp;#39;ll not be able to test using my form, of course, because you don&amp;#39;t have access to my local SQL server. But it may help clarify what I&amp;#39;m saying. Right click the link for the attachment and save it, and open it in design mode.&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33749.aspx</link><pubDate>Fri, 31 Oct 2008 17:12:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33749</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33749</wfw:commentRss><description>&lt;p&gt;I completely understand the logic.&amp;nbsp; now my problem is I don&amp;#39;t understand how to implement it.&amp;nbsp; Do I need to bind the approved field on the form to approved in the query&amp;nbsp;data source or the table source?&amp;nbsp; I guess my next question is I don&amp;#39;t know what you mean by run my main query?&amp;nbsp; I am really new to info path and just starting to learn the basics.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33747.aspx</link><pubDate>Fri, 31 Oct 2008 16:03:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33747</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33747</wfw:commentRss><description>&lt;p&gt;Well, I&amp;#39;m going to guess that your form was created off your database. If that&amp;#39;s the case, it isn&amp;#39;t set to query on open. &lt;/p&gt;
&lt;p&gt;I did a simple test. I created a form off a database, and then, I created an open rule that sets the data source query field for ID to the same value as the data source data field for ID. Then I added an action to run my main query. What this does is &amp;#39;refresh&amp;#39; the form&amp;#39;s data on open.... meaning I could go to my db and set a boolean to &amp;#39;true&amp;#39; and that would show in the form. &lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;
&lt;p&gt;Oh, and you&amp;#39;ll want that ruleset to run &lt;strong&gt;*before*&lt;/strong&gt;&amp;nbsp; the rule to switch views....&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33746.aspx</link><pubDate>Fri, 31 Oct 2008 15:52:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33746</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33746</wfw:commentRss><description>&lt;p&gt;I placed the approved field on the top of the form and set an open rule that if approved is true open in read only view.&amp;nbsp; I then entered a test form which submitted to the database with no problems.&amp;nbsp; I then went into the database and set the approved field to true.&amp;nbsp; I then reopened the saved infopath form and found that it still showed the approved value as false.&amp;nbsp; Is there&amp;nbsp;a rule I need to run on open to update the approved field?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for you easy to follow explaination.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33744.aspx</link><pubDate>Fri, 31 Oct 2008 14:29:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33744</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33744.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33744</wfw:commentRss><description>&lt;p&gt;Hi, Jeff:&lt;/p&gt;
&lt;p&gt;Have you considered using User Roles? You could set up a role for supervisors, and add some controls to the timecard that would be hidden if a person wasn&amp;#39;t a member of that group. You could create another view of the timecard that was read-only, and add an open rule that would switch to the read only view if the timecard was marked approved and the person wasn&amp;#39;t part of the Supervisor User Role. Does that make sense?&lt;/p&gt;
&lt;p&gt;Now, if you want to continue having the supervisor check Access instead to mark entries approved, you could use the same approach. You don&amp;#39;t have to have a control on the form for every field in your data source. So, for example, if your Access table has a column called &amp;#39;approved&amp;#39;, and the supervisor sets the value to &amp;#39;true&amp;#39;, your form could have the same type of open rule -- if the approved column is true, open in read only view.&lt;/p&gt;
&lt;p&gt;Let me know if you need more details, okay?&lt;/p&gt;</description></item><item><title>ability to limit resubmits</title><link>https://www.infopathdev.com:443/forums/thread/33742.aspx</link><pubDate>Fri, 31 Oct 2008 14:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33742</guid><dc:creator>jdecker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33742</wfw:commentRss><description>&lt;p&gt;I have created a timesheet entry form in infopath, which sends the information back to an access database.&amp;nbsp; I have two tables setup in my mainsource data connection.&amp;nbsp; One table is Timesheet which has an auto generate number for each timesheet entry.&amp;nbsp; This table also has the employee info, work crew, work date, approved check box, approved by, and approved date.&amp;nbsp; The second table is called entry which basically list what the worker did that day broken out by time segments. &lt;/p&gt;
&lt;p&gt;Alot of this will be filled out while in the field and submitted when they come back to the office at the end of the day.&amp;nbsp; There will be times when they get called out during the night and they will need to add after hour events to the timesheet and resubmit it.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What I need to do is find a way to disallow a resubmit if the timesheet has already been approved by the supervisor.&amp;nbsp; The supervisor will be checking the entrys in Access and marking them as approved.&lt;/p&gt;
&lt;p&gt;For security reasons I thought about creating a table called Timesheet_approval which would hold the timesheet number, approved check box, approved by, and date approved.&amp;nbsp; That way I could set security in the database to keep employees from marking a timesheet unapproved and adding time to it.&amp;nbsp; My concern with that was I didn&amp;#39;t know how to do the same steps as above with another table involved.&lt;/p&gt;
&lt;p&gt;Also if there are any ideas of a better way of doing this I am all ears.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item></channel></rss>