cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

get template parameters

ptc-2606448
1-Visitor

get template parameters

Hi all,

I need to know how to get the parameters/fields of the templates when I am in a wizzard. My problem is how to obtain for example the number field (step_1) when I am in the step_2

In jsp world is easy by using the request object, but here I can't find how to do it.

best regards

Felipe

1 REPLY 1

Felipe - It sounds like you need to understand how BasicTemplateProcessor
works , template processing in general? Refer to customizer's guide. Here
are some pointers:



If you look at the files you mentioned they have <script language="windchill&lt;br"/>..



These should clue you into how things work.



Take a look at htmltemplate.properties under codebase and study the code
with a decompiler under \codebase\wt\templateutil\processor



You'll also want to pay careful attention to
wt.enterprise.BasicTemplateProcessor



You'll also want to closely look at the codebase/wt/httpgw folder which
handles http gateway servlet for authenticated and unauthenticated requests.



The class HTTPState should give you access to the HTTPRequest/HTTPResponse
which use HTTPServletRequest object from tomcat. This is one class that I
mentioned is in the path up above \codebase\wt\templateutil\processor





It may not seem like it but I just gave you a lot of keys to how it works.
Good luck.



Regards,

David DeMay







_____
Announcements


Top Tags