1. Raj Kumar
  2. PowerBuilder
  3. Wednesday, 31 July 2019 07:43 AM UTC

Hello all,

 

I have currently implemented PFC Dropdown search onto my program and it is working fine when my DataObject is selected in the IDE or set by script (only if the DataObject is empty on the IDE). However, whenever I change the DataObject of the DataWindow by script again (eg. dw_list.dataobject = "d_g_detail") the functionality stops working. 

Does anyone have any idea how I can make the drop down search work again after changing DataObject of datawindow by script.

 

Thanks!

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 31 July 2019 12:43 PM UTC
  2. PowerBuilder
  3. # Permalink

I think you have to remove the column registration for the service and register the columns again.

One way:

of_SetDropDownSearch(FALSE)    // destroys the whole service

of_SetDropDownSearch(TRUE)     // creates the service again

inv_DropDownSearch.of_register()   // register columns

 

Another way:

inv_DropDownSearch.of_unregister()   // unregister all columns

inv_DropDownSearch.of_register()   // register columns

 

Comment
  1. Raj Kumar
  2. Friday, 16 August 2019 03:59 AM UTC
Thanks!
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 31 July 2019 22:18 PM UTC
  2. PowerBuilder
  3. # 1

You have to do what Renee said EVERY TIME you change the dwo of a dddw.

Olan

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.