2022-02-14 18:32:26
Topic starter
A developer is going through the "Configuring NEO Widgets" tutorial and got the error message "UiMetaModel XML is Invalid."
screenshot:
code from line 32 of the developer's UiMetaModel:
<NeoWidgetType name="MoneySpent" componentPath="PLT/Widgets/KPI"> <AllowedLayouts>COLUMNAR,FIXED,FLEXIBLE</AllowedLayouts> <PreviewImagePath>/oms/img/neo/widgets/kpi/kpi1.png</PreviewImagePath> <Config> { "reportName": "EXTR.TransactionTotal", "valueColumnName": "EXTR$Transaction$PriceAmount", "uomColumnName": "EXTR$Transaction$PriceUOM", "severityColumnName": "Undefined$PRICE_AMOUNT", "emptyValue": "0", filters: {filters: {"Undefined$Timeline_displayValue":"Money Spent","Undefined$Timeline":"Money Spent"}} }
What is the best way to solve this issue?
The UiMetaModel is picky about the order of elements. It wants you to group elements WebAction, WebActionGroup, etc. together in a certain order.
The developer was able to solve the issue by putting that NeoWidgetType element near the top of UiMetaModel, right below WebInfo.