Pie Chart Value - CurrentItem Property

The value of the last item in the chart touched either in the UI or via a list related command

Member of Pie Chart Value (PRIM_CHRT.PieChartValue)

Data Type - PRIM_CHRT.PieChartValueItem - A reference to a particular value in a pie chart

Details

CurrentItem is the item in the chart that was last touched either by the mouse, keyboard or a LANSA list command such as SELECTLIST or GET_ENTRY.
 
When CurrentItem is set, the field values associated with the list definition will be returned to the component. This ensures that the field values for the last item are correct when the event is fired.
 
Care is required when relying on CurrentItem to identify the item last clicked. This will actually be the FocusItem and it won't change until another item is clicked.  CurrentItem however can be affected by a simple MouseOver.
 
Currentitem is best suited to processing directly related the list e.g. DoubleClick events or SELECTLIST.
 
When dealing with actions driven by external sources, for example a button click to process the last item, using FocusItem is recommended.
 
Using the FOR command to iterate over the items in a list will not affect CurrentItem.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020