uiConnect() - Can it connect to standard shape events?

Discussion about recent product features & solutions!
Search

Post Reply
2 posts • Page 1 of 1
Lbortolozzo
Posts: 20
Joined: Tue Oct 03, 2017 12:33 pm

uiConnect() - Can it connect to standard shape events?

Post by Lbortolozzo »

Is it possible to use uiConnect() to connect to the standard shape events?

For instance I would like to connect to the "selectionChanged" event of a table. However, the selectionChanged event is not recognised despite being shown in the results of the .event() function.

Source Code:

main()
{
DebugN("myTable events:", myTable.events());
uiConnect("selectionChangedUiCB", "myTable", "selectionChanged");
}

void selectionChangedUiCB(mapping event)
{
DebugN("selectionChangedUiCB");
}

Log Result:

WCCOAui (7), 2019.10.17 10:030:21.202, CTRL, WARNING, 72, Function not defined,
Module: _QuickTest_
Panel: C:\WinCC_OA_Projects\myProject\panels\examples\myPanel.pnl
Script: Initialize
Line: 4, uiConnect, selectionChanged
WCCOAui6:["myTable events:"][dyn_string 15 items
WCCOAui6: 1: "scrolledCB"
WCCOAui6: 2: "selectionChanged"
WCCOAui6: 3: "headerClickedCB"
WCCOAui6: 4: "textFieldOut"
WCCOAui6: 5: "message"
WCCOAui6: 6: "dragDropCB"
WCCOAui6: 7: "dragEnterCB"
WCCOAui6: 8: "dragStartCB"
WCCOAui6: 9: "langChanged"
WCCOAui6: 10: "onMouseOver"
WCCOAui6: 11: "onLosingFocus"
WCCOAui6: 12: "onFocus"
WCCOAui6: 13: "doubleClick"
WCCOAui6: 14: "rightClick"
WCCOAui6: 15: "alertConfirm"
WCCOAui6:]

Thanks,
Louis

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: uiConnect() - Can it connect to standard shape events?

Post by leoknipp »

You can use the uiConnect() function to connect to a function which called by the CTRL function triggerEvent().
Reacting on a standard event of a UI shape is not possible.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
2 posts • Page 1 of 1