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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Customization - creating a drop down list of all Projects in Project Link

mquayle
4-Participant

Customization - creating a drop down list of all Projects in Project Link

This a customization question is for an existing Test Request document which is stored in a Test Library.  I want to add an attribute called "Project" to the Test Request document.  To populate the attribute, I want to be able to search and select from all existing Projects in Project Link to populate the attribute. Is this possible, and if so, how?  

1 REPLY 1

Hi @mquayle,

 

Yes, this can be done with customization apporach. 

To do this:

1. Write your own custom class which implements com.ptc.core.components.suggest.Suggestable interface.

2. Override public Collection<SuggestResult> getSuggestions(SuggestParms sParms) method.

3. THis method returns a collection of objects (here it will name of all projects from your system).

3. In this method you can use wt.query.QuerySpec object to query all of the Projects you have created.

4. And use above class a Data Utility to attribute for SuggestTextBox.

 

I hope this helps you.

 

Regards,

Shirish

Top Tags