Bug 5019

ribbonbar enhancement request for "InsertRecentItemFirst" and similar functions 13 January, 2021

Miguel Leeuwe
03 August, 2020
Product: PowerBuilder Category: PowerScript
Version: 2019 R2 Build:
Classification: Enhancement Publishing: Public
Priority: P3
Appeon Product 13 January, 2021
Hi Miguel,  


Thank you for submitting the ticket.  

We now acknowledge this ticket to be an enhancement request and will record and track it internally in our enhancement management system. At the same time, we are closing the ticket here because this support system is for handling standard support services but not for maintaining enhancement requests.  

Please note that despite its "Closed" status, you are welcome to come back here and leave further comments or query the relevant development progress on this ticket.  



Amy Feng
Miguel Leeuwe 03 August, 2020
Thank you!
What I do now as a workaround is:

lrapp_menu.insertrecentitemfirst(  aw_window.title, "ue_openlist")
//&& added code to be able to set the tag
ll_return = lrapp_menu.getrecentitem( 1, lrbm_item)
if ll_return < 0  then return
//Place the menu to the position of index 1
lrbm_item.tag = aw_window.classname()
lrbm_item.picturename = "window!"
lrbm_item.clicked = "ue_openlist"
lrapp_menu.setrecentitem(1, lrbm_item)
Mark Lee @Appeon 03 August, 2020
Hi Miguel,

Thanks for reporting this problem and for your valuable suggestion.
We will record it as a new enhancement / requirement request and will transfer it to our product team for consideration.

Mark Lee
Miguel Leeuwe 03 August, 2020
"InsertRecentItemFirst" only allows 2 parameters: 
a string for the display text and a string for clicked event.

If later I would click on the item in the recent list, I only have this title. 
If I've stored the window OBJECT NAME in the string, fine ... I can open the window. But ... we NEVER want to display the window object name for a user in the list. We want the window TITLE to appear for the users.
Therefore I want to store the window object name in the Tag and the window Title as display on the recent items list.
We cannot do that with InsertRecentItemFirst - last and similar functions.

We can work around it, buy using "setrecentitem()" or have a global variable in our application which holds the window object which belongs to a windows title.

Nevertheless the InsertRecentItemFirst - last and similar functions are pretty useless if we don't have an extra parameter available to fill the "tag".

*Reproduce Steps:

Windows 10
Database Type:
Database Version: