I am looking to edit and save metadata that is displayed in a editable text box on the widget.
I have used the following blueprints to achieve it and failed. The metadata value sets back to default value, but still creates a .sav file in my saved games.
Any suggestions or help on the same would be great.
Thankyou!!
Try to do it this way:
- Make the variable “Txt” exposed when the widget is created and set text to your text block or another text widget:
- Then, iterate your map and create widgets with exposing variables.
Show how you made saving and loading, please.
If you check saved data in the same session where you save data, you need to rebuild or update your widgets with new values.
I don’t see where you save and load the metadata map
Thankyou for the quick response.
The metadata is being imported from revit through datasmith and projected on the UI.
I have been trying to make changes in the metadata value projected in editable text box of respective UI and save it, and hence used the above blueprints for it.
Do correct me , if the approach is wrong as I am confused with the save node and its variables.
It looks like you are saving and loading text from a metakey or metavalue widget. If so, each widget has its own save object instance, and they overwrite each other. You need to save the data in the parent widget as a map.
You need to have only one unique save game object instance.
You should reorganize your widgets structure. I’m preparing instructions on how you could do it.
Do you want to save every value separately or all values at the same time?
I want to save the value seperately.
Hello there,
two things:
-
To edit and save metadata in editable text box - #7 by MeghaKK
When you go to this post, second image, do you use two different SaveGame references? -
Where and when do you get your meta data? Do you always get the meta data? Could it be possible that you overwrite your text? like: You get the SaveGame on EventConstruct, populate your list and then the “Get Meta Data” event does gets executed again and overwrites everything with the default values?
1.There is only one save game instance (The Blueprint images shown are in same UI widget )
2.I get metadata when I click on the equipment ,the UI widget displays it .
yes we can edit the values but the next time i call the ui widget it displays the old value not newly edited one.
I suggest the following solution:
- Create one item widget containing Key and value instead of two separate ones.
- When creating a widget, you check if there is a saved value by key and if yes, then apply it. If not, then take the default value.
-
Save:
Don’t make any references to avoid overwriting data of other items. -
In the Parent widget:
Thankyou so much for the detailed solution.
I shall try this now!


















