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:
00475222
Vues:
31
Hi Barbara

I will give your method a try. I read Rick's help pages. The only problem I seem to have is that my UDF does not get called by the ExpandTemplate method. I can call them in code and they work but they just never get triggered by the Expandtemplate method. I am not sure what 'Error: = Process.MyMethod()' means when I look at the source code of the generated page especially when the functions work properly when called manually.

Thanks
Simon

>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
Simon White
dCipher Computing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform