D
DaveFroMelandra
I need the help of a brain superior to my own.
Quite simply I have a tiny SQL database. I will make this more complex, but
not before I overcome this elementary problem.
Customers
CustomerGUID - unique identifier - does not allow nulls - default value
newid()
CustomerName - nchar 100 - does not allow nulls - no default value
I would like to create a simple InfoPath form that enables a user to add a
new customer to the database.
I would like them to be able to simply type the name of the customer in the
Customer box and click submit.
I have successfully created the link to the appropriate data source, namely
the database with the customers table in it.
I set up a data view and dragged from the task pane to the main window to
create a text box labelled Customer Name.
I added a control: a button.
I changed it properties so that it bacame a submit button.
When I preview the InfoPath form and try to submit a companu called test, I
see the error message, "Field or Group: CustomerGUID. Error: only specific
pattern allowed".
How do I overcome this?
Can InfoPath generate GUIDs? If not, how can I persuade InfoPath to pass the
appropriate information to SQL so that a new row is added to the database
generating the GUID automatically?
Thank you,
Dave
Quite simply I have a tiny SQL database. I will make this more complex, but
not before I overcome this elementary problem.
Customers
CustomerGUID - unique identifier - does not allow nulls - default value
newid()
CustomerName - nchar 100 - does not allow nulls - no default value
I would like to create a simple InfoPath form that enables a user to add a
new customer to the database.
I would like them to be able to simply type the name of the customer in the
Customer box and click submit.
I have successfully created the link to the appropriate data source, namely
the database with the customers table in it.
I set up a data view and dragged from the task pane to the main window to
create a text box labelled Customer Name.
I added a control: a button.
I changed it properties so that it bacame a submit button.
When I preview the InfoPath form and try to submit a companu called test, I
see the error message, "Field or Group: CustomerGUID. Error: only specific
pattern allowed".
How do I overcome this?
Can InfoPath generate GUIDs? If not, how can I persuade InfoPath to pass the
appropriate information to SQL so that a new row is added to the database
generating the GUID automatically?
Thank you,
Dave