Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2006

Tip: Looking for answers? Try searching our database.

Time Card

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichardC - 09 Nov 2006 14:37 GMT
First let me say that I am not a programmer or a scripter and I want to
accomplish something I felt should have been very simple, but has turned out
to be a nightmare for me.  Maybe I am over-emphasizing but here goes.......

The sample time card has almost all of the features I need to create one of
my own.  Some quirky thinkgs I have already noticed and some things I need to
do are:

1. cannot modify the sample date source - resolved that by reading another
post
2. make this bi-weekly
3. modify the script.js to calculate correctly after resolving number 1

Reading another post I extracted the form files and created a new form based
on this.  Converted the main data source to point to the XML file.  I can now
edit the data source fields, hooray.  After changing the bindings to some
fields and testing, I noticed that the totals were not adding up.  Soooo, I
went to the script editor and noticed that there was nothing in there.  I
checked the sample and lots of stuff in there.  I copied and pasted from one
to the other and now am getting errors when previewing the form.  I imagine
this is based on namespace, but not entirely.  Nothing is ever that simple
for me.  This doesn't even get me to item 2 yet.

I created a time card in Excel and it works perfectly for my needs although
some extremely long and complicated formulas were used, most of which were
pirated from the Internet.  InfoPath seems like a better tool but if I am to
jump through such drastic hoops, I may scrap the whole project.  I am a sole
IT staff and cannot spend that kind of energy.

I appreciate in advance any and all hints, tips, advice, help, suggestions,
and any other word for what I need.  Thank you, thank you, thank you, in
advance for your kind generosity.

Rich
RichardC - 09 Nov 2006 15:43 GMT
Adding to previous post...........
Changed all references for "tc" to "my" in the script.js.  Now I am getting
an error, pasted:

Form template:
file:///C:\Documents%20and%20Settings\rich\Desktop\timecard%20in%20progress.xsn
InfoPath cannot open the selected form because of an error in the form's code.
The following error occurred:

Expected '}'
File:script.js
Line:135
                    case "my:overtimeHours":

I am trying desperately to work on this without asking too much, but as I
mentioned in the previous post, I am no script kiddie.

Thanks,
Rich

> First let me say that I am not a programmer or a scripter and I want to
> accomplish something I felt should have been very simple, but has turned out
[quoted text clipped - 30 lines]
>
> Rich
Josh - 11 Nov 2006 05:15 GMT
Richard can you send me your form and I will take alook at it. Have you
just used InfoPath as your scripting object or did you start with
Visual Studio.

hype8912(at)gmail(dot)com
Josh

> Adding to previous post...........
> Changed all references for "tc" to "my" in the script.js.  Now I am getting
[quoted text clipped - 50 lines]
> >
> > Rich
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.