Home
TeamSite
Kick off
disco
I'm using form api to populate a bunch of fields on a data capture template. Basically, the user enters an employee number, form api initiates a cgi request, the cgi (perl) script querries our corporate LDAP and returns the employee info. The employee info is used to populate the fields on the datacapture form. This all works properly.
The problem occurs when I try to automatically set the name of the DCR to the employee name field. (one of the fields that is automatically populated by the cgi request.)
The employee name field has an event handler registered ("onItemChange") which changes the DCR name to the value of the field. Now, if the user manually changes the value in the field, the event is kicked off and handled appropriately. However, when the user enters the employee number, which in turn changes the employee name field, the event is not triggered.
Does anyone know how I can programmatically, trigger this event? Or perhaps there is an easier way to do this.
Thanks,
David
Find more posts tagged with
Comments
Adam Stoller
how about calling the function to set the filename change from within the callback function used for handling the return of data rom the CGI that performs the query?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
disco
I had tried that yesterday without success. I tried it again today and it worked. I must have had some other error causing problems.
Anyway, thanks for your response. That is exactly what needed to be done and it is working properly now.
David