Favourite button issue

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
YedilethContreras
Posts:6
Joined: Thu Sep 03, 2020 7:28 am

Favourite button issue

Post by YedilethContreras »

Hi,

"PT_FavMgm.pnl" button-function doesn't work when placed on my project's template, but, if I load one of the default templates offered by Wincc OA, it perfectly works.

On my template, the "Favourite Management" window opens, but when trying to add a favourite user view, it always takes "StartPanel" and saves it, no matter what panel is actually being seen at the moment.

When trying to create a favourite view, logviewer shows this message:

WCCOAui (2), 2021.03.18 13:32:52.213, CTRL, SEVERE, 176, Uncaught exception in thread started at main:
WCCOAui (2), 2021.03.18 13:32:52.213, CTRL, SEVERE, 79, Index out of range,
Module: Vision_8
Panel: C:\Siemens\Automation\WinCC_OA\3.17\panels\para\msc\msc_FavMgm.pnl [Favourite management]
Object: 1 named: "tblFavourites" of type: TABLE
Script: SelectionChanged
In panel scope library: para\msc\msc_FavMgm.pnl []
Line: 51, dsUsed, 2
Stacktrace:
1: displayFavData() at [Module: Vision_8 Panel: para\msc\msc_FavMgm.pnl ScopeLib: msc_FavMgm.pnl]:51
2: main() at [Module: Vision_8 Panel: para\msc\msc_FavMgm.pnl Object: tblFavourites Script: SelectionChanged]:3


And, when trying to open the favourite view previously saved, logviewer shows this message:

WCCOAui (2), 2021.03.18 14:07:35.241, CTRL, SEVERE, 176, Uncaught exception in thread started at main:
WCCOAui (2), 2021.03.18 14:07:35.241, CTRL, SEVERE, 79, Index out of range,
Module: WinCC_OA_1
Panel: C:\WinCC_OA_Proj\MCC\panels\para\PanelTopology\templates\GTDL\basePanel_1920_1080_GTDL.xml [basepanel]
Object: 0 named: "casFavMgm" of type: CASCADE_BUTTON
Module: WinCC_OA_1
Panel: C:\WinCC_OA_Proj\MCC\panels\para\PanelTopology\templates\GTDL\basePanel_1920_1080_GTDL.xml [basepanel]
In reference: objects/STD_PANELS/PT_FavMgm.pnl Group: 0 named: "PANEL_REF1"
used in: objects/GTD_Footer/FooterLeft.xml Group: 13 named: "PANEL_REF79"
Script: Initialize
Script: Clicked
Library: C:\Siemens\Automation\WinCC_OA\3.17\scripts\libs\msc_multiScreening.ctl
Line: 491, dsUsed, 2
Stacktrace:
1: msc_useMenuId(string sUser = "root", int iMenuId = 3, string sMainModuleName = "mainModule_") at msc_multiScreening.ctl:491
2: main(string id = "2") at [Module: WinCC_OA_1 Panel: para\PanelTopology\templates\GTDL\basePanel_1920_1080_GTDL.xml Object: casFavMgm Script: Clicked]:3

Could you please give me any clue/advise about where should I take a look at in my template's project to solve this?

Regards,

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Favourite button issue

Post by leoknipp »

The settings for the favourites are saved in a datapoint called _<User ID>_UiConfiguration at the type _Ui_Config. The datapoint has a lot of string arrays to save data.
Possibly the settings in the element of this datapoint are not correct and therefore you get the "index out of range" error.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1