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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to show Life Cycle States in a drop down in Create part jsp page

Rajesh_A
2-Explorer

How to show Life Cycle States in a drop down in Create part jsp page

Hi,
I would like to know how to show all Life Cycle States of a specific Life Cycle template in a drop down in Create Part jsp file.
So that the User can select the desired Life Cycle state from drop down while creating Part.
I have an idea to use DataUtility through customization.
But still looking for best solution to achieve this through Configuration.
Thanks in advance.

4 REPLIES 4
jmomber
12-Amethyst
(To:Rajesh_A)

I'm doing something similar to display Views in a comboBox, but my comboBox is in a table, so I think I had to use the dataUtility for that reason.


Additionally you could put everything in the .jsp. I'm not sure which way is better, just showing you another option.


//JSP PAGE


<%


//Code to gather all system views
View[] viewList = ViewHelper.service.getAllViews();
List<string> viewKey = new ArrayList<string>();
List<string> viewDisplay = new ArrayList<string>();


for( int i=0; i < viewList.length; i++)
{
viewKey.add(viewList[i].getName());
viewDisplay.add(viewList[i].getName());
}
%>


<c:set var="d" value="&lt;%=viewDisplay%">"/>
<c:set var="k" value="&lt;%=viewKey%">"/>



<w:combobox id="comboBox1" name="comboBox1" displayvalues="${d}" internalvalues="${k}"/">


~Jamie

ddemay
7-Bedrock
(To:Rajesh_A)

On create part page the OIR controls this. No need to customize! You can display all lifecycles or restrict to a certain set.




Sent from my Verizon Wireless 4G LTE Smartphone
Rajesh_A
2-Explorer
(To:Rajesh_A)

Hi David,


ddemay
7-Bedrock
(To:Rajesh_A)

Search on discrete set algorithms in help center.


Sent from my Verizon Wireless 4G LTE Smartphone
Announcements


Top Tags