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

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
  2. PowerBuilder
  3. # Permalink
2
Votes
Undo

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
Thanks!
  1. Raj Kumar
  2. Friday, 16 August 2019 03:59 AM
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 31 July 2019 22:18 PM
  2. PowerBuilder
  3. # 1
1
Votes
Undo

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.