If Only I Have TIme
As you may know by now, there are two types of entities in Marama. Yes, the first is Model Entity and the second is Shape Entity. This example is concern about retrieving and updating exported properties in Shape Entity.
In Shape Definer (where you define what shape you like to represent your model), you can set the attribute display as Exported Properties. Exported Properties is different from Label, TextField n TextArea Shape. Exported Properties will not display the input in it. It will only appear in the Properties View.
Enough for the intro. The trouble with Exported Properties is that you can’t retrieve or update the value using normal shape command:
shape.setPropertyValue(“AttributeName”, “NewName”); or
You need to use this command instead:
shape.getModelEntity.setPropertyValue(“AttributeName”, “NewName”); or
You need to add .getModelEntity to the shape because it’s referring directly to the Model Entity. The usual method access the Model Entity through Shape Entity.
Did you get it? Ya, it’s a bit confusing. Welcome to Marama!