View Issue Details

IDProjectCategoryView StatusLast Update
0002053NoesisGUIUnrealpublic2023-12-12 11:34
Reportermaxnt Assigned Tohcpizzi  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version3.0.12 
Target Version3.1Fixed in Version3.1.0 
Summary0002053: ComboBox Selected Index not updating when selecting first item
Description

In UE4 when selecting a combobox's first item (Index 0) a property that is bound to SelectedIndex does not trigger the set UFUNCTION to be called. However, selecting other items works fine (Index > 0).

Steps To Reproduce

Add a Combobox to xaml with more than 1 CombBoxItem and bind SelectedIndex to a ViewModel property
Create Get and Set UFUNCTIONs in C++
Add breakpoint or logging to Set function
Run project and change Combobox selected item
Notice Set not being called when selecting first item

WPF
<ComboBox SelectedIndex="{Binding TestSelectedIndex, Mode=TwoWay}" >
<ComboBox.Items>
<ComboBoxItem Content="1"></ComboBoxItem>
<ComboBoxItem Content="2"></ComboBoxItem>
<ComboBoxItem Content="3"></ComboBoxItem>
</ComboBox.Items>
</ComboBox>

C++
UFUNCTION()
void GetTestSelectedIndex(UPARAM(ref) int32 OutTestSelectedIndex) const;

UFUNCTION()
void SetTestSelectedIndex(int32 Index);

PlatformAny

Relationships

related to 0002025 resolvedhcpizzi Expose properties defined by UFUNCTION Getter and/or Setter 

Activities

maxnt

maxnt

2021-06-30 18:40

reporter   ~0007315

Update

This is not a bug I have a typo in my Get function

UFUNCTION()
void GetTestSelectedIndex(UPARAM(ref) int32& OutTestSelectedIndex) const;

With this change everything works as expected!

hcpizzi

hcpizzi

2021-07-02 11:20

developer   ~0007316

On top of supporting native getters with an out ref parameter, we now support getters with return values too.

Issue History

Date Modified Username Field Change
2021-06-28 16:28 maxnt New Issue
2021-06-30 16:55 sfernandez Assigned To => hcpizzi
2021-06-30 16:55 sfernandez Status new => assigned
2021-06-30 16:55 sfernandez Target Version => 3.1
2021-06-30 16:55 sfernandez Relationship added related to 0002025
2021-06-30 18:40 maxnt Note Added: 0007315
2021-07-02 11:20 hcpizzi Status assigned => resolved
2021-07-02 11:20 hcpizzi Resolution open => fixed
2021-07-02 11:20 hcpizzi Fixed in Version => 3.1
2021-07-02 11:20 hcpizzi Note Added: 0007316
2021-07-27 20:05 jsantos Fixed in Version 3.1 => 3.1.0