View Issue Details

IDProjectCategoryView StatusLast Update
0005011MMW v4Framework: Scripts/Extensionspublic2008-12-17 11:43
ReporterBex Assigned To 
PriorityimmediateSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005011: Regression: MoreFrom Pop Menus doesn't work
DescriptionThese menus simply isn't shown when used in 3.1, they worked fine in 3.0
SDB.UI.Menu_Pop_TrackList_MoreFrom
SDB.UI.Menu_Pop_NP_MoreFrom
SDB.UI.Menu_Pop_NP_MainWindow_MoreFrom (introduced in 3.1)

(I haven't checked any other menus yet.)

I guess it's due to the implementation of:
0004418: Find More from Same Context menu should indicate field values
- Or perhaps
0004773: Menu_Pop_NP_MainWindow subnodes isn't suported by scripting
TagsNo tags attached.
Attached Files
zPopMenutest.vbs (2,777 bytes)
Fixed in build1203

Relationships

related to 0004418 closedjiri Find More from Same Context menu should indicate field values 
related to 0004773 closedpetr Menu_Pop_NP_MainWindow subnodes isn't suported by scripting 

Activities

petr

2008-12-08 02:55

developer   ~0015545

Bex, can you send any example script ?

Bex

2008-12-08 15:58

updater   ~0015552

Sure!
Attached scripts shows that "MoreFrom Pop Menus" works in 3.0 but not in 3.1

petr

2008-12-08 20:00

developer   ~0015555

Fixed in 1202

Bex

2008-12-17 00:09

updater   ~0015686

The menus are now visible but always as the last menu. Changes to the ItemOrder is not considered when adding a menu to any of the Pop_MoreFrom menus.
E.g. SDB.UI.AddMenuItem(Menu, InSection, ItemOrder)
SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MainWindow , 1, 1) <--The first(1)
SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MainWindow , 1, 2) <--The second(2)
SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MainWindow , 1, 3) <--The third(3)
The menu added is in every case above added as the last menu. I.e.
SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MainWindow , 1, 0) <--The last(0)

petr

2008-12-17 00:21

developer   ~0015687

Last edited: 2008-12-17 00:23

And where's the problem ? InSection 1 means second section (this menu have only one section by default). In case you'll add InSection -1 or 0, item will be added in first section. -1 or 0 in ItemOrder means that item will be added at last in defined section. I think that was not changed since MM2 or i'm wrong ?

peke

2008-12-17 01:09

developer   ~0015688

Per online discussion. Bex is right that sorting is not ok, but also you are right that not much has changes since 2.5 as AddMenuItem only starts to add new items after embed/predefined options in both 2.5 and 3.x.

peke

2008-12-17 01:11

developer   ~0015689

I UL-ed updated script file to see behavior under multiple AddMenuItem-s

petr

2008-12-17 02:07

developer   ~0015691

Fixed in 1203

peke

2008-12-17 11:36

developer   ~0015696

Verified 1203

peke

2008-12-17 11:43

developer   ~0015697

Added new script example that will execute as last Auto script to clearly see how fix works.