View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005011 | MMW v4 | Framework: Scripts/Extensions | public | 2008-12-08 01:35 | 2008-12-17 11:43 |
Reporter | Bex | Assigned To | |||
Priority | immediate | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 3.1 | ||||
Fixed in Version | 3.1 | ||||
Summary | 0005011: Regression: MoreFrom Pop Menus doesn't work | ||||
Description | These 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 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Fixed in build | 1203 | ||||
|
Bex, can you send any example script ? |
|
Sure! Attached scripts shows that "MoreFrom Pop Menus" works in 3.0 but not in 3.1 |
|
Fixed in 1202 |
|
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) |
|
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 ? |
|
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. |
|
I UL-ed updated script file to see behavior under multiple AddMenuItem-s |
|
Fixed in 1203 |
|
Verified 1203 |
|
Added new script example that will execute as last Auto script to clearly see how fix works. |