E
eddielaurent
I have developed a sample form (Infopath sp1) for use in a WSS Forms
Library. In the On_Load event of the form I obtain the user login ID
and then use a web service to find the Active Directory display name
for the user.
The display name is then stored in a field in the form - which is part
of the main data source for the form. The web service is a secondary
datasource.
I have used the Tools\Submitting Forms option to specify where the form
should be submitted to. I have then published the form to the library.
So far it is working correctly - if I login as user Fred and fill in
the form I see Fred Bloggs appearing as the display name in the form.
When I submit the form it appears in the WSS forms library. However
when I log on as a different user and view the form submitted by Fred
Bloggs the On_Load code is kicking in and replacing the display name
with that of the currently logged on user.
Is there a way to specify that submitted forms cannot be updated or to
set the form as read only, or am I missing something in the way am I am
using the main and secondary datasources?
Thanks
Eddie
Library. In the On_Load event of the form I obtain the user login ID
and then use a web service to find the Active Directory display name
for the user.
The display name is then stored in a field in the form - which is part
of the main data source for the form. The web service is a secondary
datasource.
I have used the Tools\Submitting Forms option to specify where the form
should be submitted to. I have then published the form to the library.
So far it is working correctly - if I login as user Fred and fill in
the form I see Fred Bloggs appearing as the display name in the form.
When I submit the form it appears in the WSS forms library. However
when I log on as a different user and view the form submitted by Fred
Bloggs the On_Load code is kicking in and replacing the display name
with that of the currently logged on user.
Is there a way to specify that submitted forms cannot be updated or to
set the form as read only, or am I missing something in the way am I am
using the main and secondary datasources?
Thanks
Eddie