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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

Rajesh_A
2-Guest

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

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

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

Hi David,


Search on discrete set algorithms in help center.


Sent from my Verizon Wireless 4G LTE Smartphone
Top Tags