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

Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

SOLVED
Moonstone

Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

Hi All,

I am trying to implement Auto Suggest picker (SuggestTextBox) on WTDocument/WTPart creation wizard in Windchill 10.1. Does anybody have done this before?

Can anyone please help me on this?

Appreciate your help.

Regards,

Shirish

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

I think we did something similar in one of our projects. We created a custom wizard to add additional data input fields.

if you want to auto fill user,organization or context, I remember we have it OOTB. But for custom  objects, you will have to create a suggestion class (implementing Suggestable interface) which would basically do the query. This class should be registered as a service, This service could be called from suggestTextBox wrapper tag.

Thanks

Binesh
Barry Wehmiller International

View solution in original post

5 REPLIES 5

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

I think we did something similar in one of our projects. We created a custom wizard to add additional data input fields.

if you want to auto fill user,organization or context, I remember we have it OOTB. But for custom  objects, you will have to create a suggestion class (implementing Suggestable interface) which would basically do the query. This class should be registered as a service, This service could be called from suggestTextBox wrapper tag.

Thanks

Binesh
Barry Wehmiller International

View solution in original post

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

Hi Binesh,

Yes, you're correct. I followed same approach (create a Suggestion class which implements Suggestable Interface).

I am able to make IBA text field to behave like a suggestible; however when I type something in the field it spins for a while and nothing is returned as suggestions.

In the MS logs below exception is logged:

ERROR : com.ptc.mvc.controllers.ExceptionController  - message : An unexpected error has occurred.  Contact your system administrator for assistance.

error:-------------java.lang.NullPointerException

java.lang.NullPointerException

        at com.ptc.core.components.suggest.SuggestableFactory.getSuggestions(SuggestableFactory.java:75)

        at com.ptc.jca.mvc.controllers.SuggestController.processRequest(SuggestController.java:96)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)

        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)

        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)

        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)

        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)

        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)

        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at com.ptc.jws.servlet.filter.WsdlServletFilter.doFilter(WsdlServletFilter.java:61)

In the UI it is behaving like this:

      Suggestable Picker.png

Note sure if I am missing something. I can share step-by-step instructions I followed to implement this feature.

Regards,

Shirish

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

Hello Shirsh,

Can you please share your instructions?

I rencetly worked on auto suggest and it is working for me.

One thing I need to figure out is how to add a button to the Auto Suggest field and seen in the screenshot you posted.

Thank you,

Chaitanya A. Jagdale

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

Hi Chaitanya,

After having too much back & forth email on this topic, it has been concluded as SuggestTextBox is not currently supported with MultiValue component (that is without Single Value Constraint).


There is recently an Enhancement Request added to for this.
https://www.ptcusercommunity.com/ideas/6151


Thanks,

Shirish

Re: Configure Auto Suggest Picker (SuggestTextBox) on object creation page?

Hello Shirish,

             Even we have similar requirement, we need a text box for document with suggested values, if u have already achieved this , can u help me with steps for implementing this feature.

 

Thanks a lot in advance,

sai.

Announcements
LiveWorx Call For Papers Happening Now!