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 / June 2006

Tip: Looking for answers? Try searching our database.

Couple of questions on advanced form creation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Uleric - 25 May 2006 19:30 GMT
I am in the process of building an infopath form for researchers to
collect data on an expedition and bring back to the office when when
they get back to populate a centralized collection database. The form
is built on an MS SQL data source, but should be usable offline when
they go out into the field (there is no online access where they are
collecting data from).

So the questions:

I am trying to create a unique field from 3 collected fields, animal,
date ,and transmitter. The three fields are integers that look
something like this:

animal: 2221
transmitter: 423
date: 05/25/2006

The unique number looks like this when its concatenated:
222105252006423

I can do this function in pretty much any other programming language,
but have a couple of issuses when dealing with Infopath. The cunudrum:

An expression box pointed to the data source record with the following
expression would work:

[code]     concat(@trans, @animal)    [/code]

This concats the transmitter and animal perfectly. But... It isn't an
integer which is what I need for the database. And.. I loose the date
field. What I really want is:

[code]     concat(@trans, @date, @animal)    [/code]

But that lookse like this when it outputs, and isn't an integer:

222105/25/2006423

So I need a way to strip the slashes out of the date return in the
concat function as well as returning the function as an integer.

Second question, is...

Is is possible to save an offline form as an executable, without
Infopath and still save the data to connect to the database when they
get back into the field? Or.... is there an infopath viewer that
someone can use to fill out the form? A lot of our researchers are
still using older versions of Office without infopath as an installed
package.

Thanks in advance.
S.Y.M. Wong-A-Ton - 13 Jun 2006 22:02 GMT
Use the substring() and concat() functions on the date field to be able to
strip the slashes. For an example on how to use these two functions, see
http://enterprise-solutions.swits.net/infopath/auto-format-time-on-lostfocus.htm

InfoPath forms cannot be saved as executables. InfoPath forms are XML files.
You could create your own WinForms application, though, that reads the XML of
InfoPath and manipulates/changes the value of its fields.
---
S.Y.M. Wong-A-Ton

> I am in the process of building an infopath form for researchers to
> collect data on an expedition and bring back to the office when when
[quoted text clipped - 47 lines]
>
> Thanks in advance.
 
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.