Bug 5633

Switching functions in IDE not working correctly 23 November, 2020

Roland Smith
20 November, 2020
Product: PowerBuilder Category: PowerBuilder IDE
Version: 2019 R2 Build:
Classification: Sybase (legacy) bug Publishing: Public
Priority: P3
Status: Scheduling Reason:
Ken Guo @Appeon 23 November, 2020
Hi Roland,

Thanks for reporting this problem! We reproduced it on our end and will do further research to figure it out. We will keep you posted on the progress.
BTW, PB 12.6 has the same issue as well. 
And we suggest you try the following workarounds:
If there are many arguments of a function, it is suggested you use the structure as the function's argument.

Chris Pollach @Appeon 20 November, 2020
Hi Roland;

  Thank for reporting this issue, details to recreate and the Test Case App! I was able to replicate your issue on my PB 2019R2 build 2358 IDE as well.

  Wow, is the IDE ever slow in displaying the "of_collect_values" method. Something weird going on in that area IMHO as there is no inheritance even! I think that Engineering should look at the cause of that was well while they are at it.

  I was also able to replicate the slowness and incorrect method name display as well in my PB 2019 R3 beta build 2593 as well.  :-(

  I will now transfer this ticket over to the main Support / Engineering team their review and resolution.

Regards .... Chris
Roland Smith 20 November, 2020
The function of_collect_values has 36 arguments, I'm not sure if that has anything to do with it. After trying it some more, I've noticed that the problem happens when selecting either of the functions that are alphabetically after of_collect_values, it doesn't have to be selected first.
Roland Smith 20 November, 2020
bugtest.zip (30KB)

Selecting a different function from the dropdown at the top of the user object painter does not properly switch to the other function. The dropdown control continues to show the prior function. I included a screen shot in the attached zip file.

*Reproduce Steps:
Open the object n_test_nvo.
Make sure the prototype pane is visible.
Note that it opens the alphabetically first function: of_calc_process.
In the function name dropdown, select of_collect_values.
It takes a while because it has a lot of arguments but eventually it is selected properly.
In the function name dropdown, select of_delete_pf_sap_hist_rows.
The dropdown returns to of_collect_values while the script title, prototype, and script code are correctly showing of_delete_pf_sap_hist_rows.

We first noticed this in 2019 GA but we have tested with 2019 R2 and it works the same.
Windows 10
Database Type:
Microsoft SQL Server
Database Version: