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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

New Change Request Page

PreetiGupta
15-Moonstone

New Change Request Page

Hi,

I have a requirement where I need to show some additional information deepening on the Change Request subtype selected in New Change Request wizard. As the object is not persisted yet, I am having trouble to find out API.

For example I need to show Comment field label as "Disposition and Effectivity" for certain Change Request type but label as "Comment" only for other CR sub types. I changed the label as below..

[cid:198300218@02092010-0807]

Right now it shows as above for all CR subtypes.

Please help.

Thanks,
Preeti
3 REPLIES 3
avillanueva
22-Sapphire II
(To:PreetiGupta)

Was this useful?

NmCommandBean bean; //should be accessible

//get name of document type

objType=CreateAndEditWizBean.getTypeNameFromTypePicker(bean);



At the top of the create/edit page should be a field indicating the
type:

So, see how the JSP renders that and you should be able to get the
String for the select type. Next, create a String to hold the value of
the label. Have some logic in the JSP page to figure out what the label
should say based on the type name. When describe the table column below,
you can insert the String value for the label.




Antonio,
I have tried your code and played around with it to try and get it going. It always fails trying to find the "CreateAndEditWizBean" do you happen to know where the API for this is I have searched around and found NmCommandBean easily and it seems to work for that part however Create has not shown itself.
Thanks in advance
Matt

From: Villanueva, Antonio [

You need a JSP import declation at the top of the page if it cannot find the class. It is:

com.ptc.core.components.beans.CreateAndEditWizBean

A majority of the JCA code is in codebase/WEB-INF/lib/wnc-web.jar (which is where this class is stored)



Sent from my Verizon Wireless BlackBerry
Announcements


Top Tags