Harryaars
(Harryaars)
January 24, 2024, 3:55pm
1
This is the code I’ve created to add an item to my datatable. However, it isn’t working I do get to the confirmation text, but it never adds anything into the datatable.
https://blueprintue.com/blueprint/m40g-vsy/
Does anyone know more about this? Or is anyone having the same issues when it comes down to the “Add Data Table Row” node?
I know that this functionality was added in 5.3, so maybe it is still in “construction”?
MDeaders
(MDeaders)
April 9, 2024, 10:34pm
2
Hey there, did you ever figure out what caused this to not work? I’m having the exact same problem at the moment.
You can add data using the node, but you have to SAVE it for the modification to stick.
the engine now seems to support load/save to csv/json
this is available on 5.1 at least but not sure if it’s on previous too.
also
You can save your data table from cpp.
call
FDataTableEditorUtils::BroadcastPreChange(DataTable, FDataTableEditorUtils::EDataTableChangeInfo::RowList);
you can get the rows using DataTable->GetAllRows and you get some pointers.
you can modify them.
or you can add rows using DataTable->AddRow
at the end you need to call DataTable->Modify()
then
UEditorLoadi…