I’m currently working on making a cloud gem that uses DyanamoDB. I am stuck on how to post data through a Lua script. I keep getting issues along the lines of:
"[Error] (Script) - Lua failed to call method: cannot convert parameter 1 from table to ExampleData*"
or
"[Error] (Script) - Lua failed to call method: cannot convert parameter 2 from table to const ExampleData&"
.
I have tried different ways, and the latest was:
CloudGemInventory_ExampleData.ExamplePropertyA = UiTextInputBus.Event.GetText(self.dataToStore)
CloudGemInventory_ExampleData.ExamplePropertyB = 0
CloudGemInventoryRequestBus.Event.CreateExampleData(self.entityId,CloudGemInventory_ExampleData,nil)"
I am just unsure what to put in CreateExampleData as it requires a specific data type that I don’t know how to provide.