Skip to main content
1-Visitor
October 4, 2013
Question

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

  • October 4, 2013
  • 4 replies
  • 1246 views

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

12-Amethyst
October 9, 2013

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

1-Visitor
October 9, 2013
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_A1-VisitorAuthor
1-Visitor
October 9, 2013

Hi David,


1-Visitor
October 9, 2013
Search on discrete set algorithms in help center.


Sent from my Verizon Wireless 4G LTE Smartphone