Greetings all,
I am now 25 minutes into my learning for Infopath/DBXL and am starting to put some effort into designing my first form. My goal is to figure out a way to pre-populate a read-only field with an "ID" number and have that ID number guaranteed to be unique for the form and also (preferably) to be selected from a range based upon username. So babysteps first... how to get a form with a unique number from my DB Table?
If I understand what i am reading correctly, I can use a straight to DB connection to mimic form to a table-row, but for anything more complex (e.g. multiple tables on 1 form, updates after the fact, workflow, etc.) it may be easier to use DBXL webservices. Looking for someone that can jump start my VERY limited knowledge on how to do this?
Example of a student sick leave form that looks like:
"Student Sick Leave Form"
"Request ID: 41534" <--- guaranteed unique request ID and my PK in my "SickLeave" table.
"Student Name: <blank to start>Joe Smith"
"Teacher Name: <blank to start>Mr. Jones"
"Absence Reason: <blank to start>Flu"
DB Server: MYDBSERVER
DB Name: AcademicForms (e.g.)
Table Name: SickLeaveFormRequests (e.g.)
Table Structure: <Req_ID>|<StuID>|<StuName>|<TeachID>|<TeachName>|<AbsenceReason>|<AbsenceDate>
How would I go about structuring this? Do I need to create a complex query with table-locks to make sure the ID is always unique? Do I have to configure my DBXL web service as a datasource to point to the table in a particular way? Hoping someone can help me out with pointing me in the right direction so I don't spend too much time going down the wrong path.
Thx,
Rob