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

Task where user provides a value for N items

joe_morton
17-Peridot

Task where user provides a value for N items

Version: Windchill 12.0

 

Use Case: I have a workflow where the user adds CAD models to a Package, and then the workflow will publish those to STEP. Right now only the master representation is published. I have a new request for the ability to specify the Simplified Representation used for the publish. There could be any number of CAD models in the Package.


Description:

The dream would be to present the user with a table (in a task?) where the first column is a list of the models they requested, and the second column has a a drop-down where they select the representation to publish for that specific model. Even without the complexity of a dropdown, I can't think of a good way to manage multi-valued paired data like this. Has anyone faced something similar and found a good solution?

 

I appreciate any ideas!

ACCEPTED SOLUTION

Accepted Solutions

@joe_morton 

How about this.

In the task you give the user a link to a jsp.

They open the jsp and it lists the cad objects in a drop down or as a checkbox list.

They select the desired cad object and select a Get Simp Reps.

They select the desired Simp Rep and then click the “Publish Simp Rep” button.

 

You could list in jsp the cad objects that have Simp Reps and all of their Reps in two columns with checkboxes next to each cad object and it’s Simp Reps and use Java script functions to disable all checkboxes other than the Simp Reps belonging to the cad object selected.

Next the user checks one Simp Rep and then the submit to publish that Simp Rep.

 

Should work.

View solution in original post

3 REPLIES 3

@joe_morton 

How about this.

In the task you give the user a link to a jsp.

They open the jsp and it lists the cad objects in a drop down or as a checkbox list.

They select the desired cad object and select a Get Simp Reps.

They select the desired Simp Rep and then click the “Publish Simp Rep” button.

 

You could list in jsp the cad objects that have Simp Reps and all of their Reps in two columns with checkboxes next to each cad object and it’s Simp Reps and use Java script functions to disable all checkboxes other than the Simp Reps belonging to the cad object selected.

Next the user checks one Simp Rep and then the submit to publish that Simp Rep.

 

Should work.

Thanks for this, I'll give it a try! I haven't done my own jsp pages before, so I'll have to do some research. 

Joe,

 

Is the Package a workflow process variable?

If no, I'd suggest making a variable for it.

 

David

 

 

Announcements

Top Tags