Setting of "Repeater type" does not display in plugin tab !
AnsweredHi,
I have a problem with Plugin Manifest string. I need to use some text fields in repeater form. The log show that these settings are loaded, but they aren't displayed on NX Client. So I tried with the example of polygon in setting_model.h, and it doesn't work, too.
Related code:
"engineSettingsModel": {
"type": "Settings",
"items": [
{
"type": "GroupBox",
"caption": "Engine settings",
"items": [
{
"type": "CheckBox",
"name": ")json" + kThrowPluginDiagnosticEventsFromEngineSetting + R"json(",
"caption": "Produce Plugin Diagnostic Events from the Engine",
"defaultValue": false
}
]
},
{
"type": "GroupBox",
"caption": "VA Server settings",
"items": [
{
"type": "Repeater",
"count" : )json" + kMaxNumVAServer + R"json(,
"startIndex": 0,
"template" : {
"type": "TextField",
"name" : "va_ip#",
"caption" : "VA Server #",
"description" : "IP address of the VA Server #",
"defaultValue" : "",
"validationErrorMessage" : "IP address must contain 4 part of digits and \'.\' between them, e.g. 192.168.1.1 (127.0.0.1 is not accepted).",
"validationRegex" : "(?!^127.0.0.1$)(^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$)",
"validationRegexFlags" : "i"
}
}
]
}
]
}
"engineSettingsModel": {
"type": "Settings",
"items": [
{
"type": "GroupBox",
"caption": "Engine settings",
"items": [
{
"type": "CheckBox",
"name": ")json" + kThrowPluginDiagnosticEventsFromEngineSetting + R"json(",
"caption": "Produce Plugin Diagnostic Events from the Engine",
"defaultValue": false
}
]
},
{
"type": "GroupBox",
"caption": "VA Server settings",
"items": [
{
"type": "Repeater",
"count": 5,
"template": {
"type": "GroupBox",
"caption": "Polygon #",
"filledCheckItems": ["polygon#.figure"],
"items": [
{
"type": "PolygonFigure",
"name": "polygon#.figure",
"minPoints": 4,
"maxPoints": 8
},
{
"type": "SpinBox",
"name": "polygon#.threshold",
"caption": "Level of detection",
"defaultValue": 50,
"minValue": 1,
"maxValue": 100
},
{
"type": "SpinBox",
"name": "polygon#.sensitivity",
"caption": "Sensitivity",
"defaultValue": 80,
"minValue": 1,
"maxValue": 100
},
{
"type": "SpinBox",
"name": "polygon#.minimumDuration",
"caption": "Minimum duration (s)",
"defaultValue": 0,
"minValue": 0,
"maxValue": 5
}
]
}
}
]
}
]
}
Log (for polygon example):
[ivs_analytics_plugin_engine] SDK version built into the Server: "4.2.0 R3"
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] Received settings:
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] {
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon1.figure": "{}",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon1.minimumDuration": "0",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon1.sensitivity": "80",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon1.threshold": "50",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon2.figure": "{}",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon2.minimumDuration": "0",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon2.sensitivity": "80",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon2.threshold": "50",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon3.figure": "{}",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon3.minimumDuration": "0",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon3.sensitivity": "80",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon3.threshold": "50",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon4.figure": "{}",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon4.minimumDuration": "0",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon4.sensitivity": "80",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon4.threshold": "50",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon5.figure": "{}",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon5.minimumDuration": "0",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon5.sensitivity": "80",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "polygon5.threshold": "50",
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] "throwPluginDiagnosticEventsFromEngine": "false"
[ivs_analytics_plugin_engine_{ea807f1a-a15a-281e-eb4e-bfb78a58a6d6}] }
*Nothing display*

-
Hi Nhat Nguyen Trong,
It looks that at the moment Repeater works only for deviceAgentSettingsModel and not supported for engineSettingsModel. Thanks for pointing this out, I'll check with our dev team to see if it is something we can fix in the future releases.
1 -
I've confirmed that the repeater element isn't supported for engineSettingsModel. It can be used only for deviceAgentSettingsModel configuration. We're planning to fix this in future releases, but I can't give you any solid schedule at the moment, sorry for the inconvenience.
internal: JIRA-VMS-232461
Please sign in to leave a comment.
Comments
2 comments