Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Webconnect and Templates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00475133
Message ID:
00475178
Vues:
40
Simon,
I put my UDFs in a PRG separate from the XXProcess.PRG and use a SET PROC TO... call. I've also found that Scripts are easier to handle than templates, and all of the script functions are in the xxProcess.PRG. Read Rick's help page on the differences and similarities between Scripts and Templates. He uses a Scan/Endscan in his examples of both techniques but you can probably expand that to how the SELECT code works.

HTH
Barbara

>Hi
>
>I am using web connect to create a web page using a template. However, I am unsure as to where to put my UDF code that should be executed in template page. The UDF is used to populate a listbox with values from a table. I was planning to return the HTML code for the options in the list box. The web page displays but the UDF's are not executed. Presently I have the UDF in the process class. I used the "expandtemplate" method to generate the web page. When I view the source of the generated web page it has "Error: " where I had embedded my UDF's.
>
>Thanks
>Simon White
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform