I can show you exemple for put a # before car number and continue to have a dynamic subwidget:
using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
using ATVO.ThemesSDK.Data.Entity;
namespace Scripts
{
public class SC_car_number : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
if (value == null)
{
// do something appropriate, in this case probably just return nothing
return null;
}
// binding ----- car objet dans qualification
ICar result = (ICar) value;
var carN = result.Number;
return "# "+carN;
}
}
}