FDataTableRowHandle using meta = (RequiredAssetDataTags = "RowStructure=S_StructName")?

Is it possible to limit the UDataTable Property within an FDataTableRowHandle struct to a specific struct type?

The next example is not working for the FDataTableRowHandle. Is there a solution?

UPROPERTY(meta = (RequiredAssetDataTags = "RowStructure=S_StructName"))
  FDataTableRowHandle DT = FDataTableRowHandle();
UPROPERTY(meta = (RowType="MyStruct"))
UDataTable* Table;

OR

UPROPERTY(meta = (RowType="MyStruct"))
FDataTableRowHandle RowHandle;

Thanks, this is very useful info. I think it is not yet in docs.unrealengine.
I’m going to test it asap.

Perfect, thanks again. Structs name in RowType is entered without the F prefix.
Can this information be added to: ?

The vast majority of custom meta specifiers are not in that documentation page because it’s auto-generated from the global ones.

Items like “RowType” are part of special Detail Customisation classes that look for custom meta markup. Unfortuantely there’s no easy way to parse them all.

In UE 5.2 this no longer works for UDataTable, in order to make it work you need to use this:

UPROPERTY(Meta=(RequiredAssetDataTags = "RowStructure=/Script/Aura.UIWidgetRow"))
TObjectPtr<UDataTable> MessageWidgetDataTable;

You can find the exact name here (picture below), it’s usually ModuleName.StructName (without the initial F)

Funny thing, you can’t add spaces before and after =
RowStructure=/Script/ works.
RowStructure = /Script/ does not.

Thanks for letting us know :slight_smile: I’m always formatting things with spaces, this is easy to break then.

Just wanted to add that in 5.3 this indeed works:

UPROPERTY(meta = (RowType="/Script/Aura.UiWidgetRow"))
FDataTableRowHandle MessageWidgetDataTable;

Nice to know! I like this better than the previous just because it’s shorter!
May I ask where did you find this info?

Does this work only with FDataTableRowHandle or also with UDataTable ?

Fairly sure it does not work with datatable in 5.3

I did not “find” this info, I just tried it out and am actively using it in my code :smiley:
Quickly tested the same meta attribute with UDataTable, no success though.