天天看點

SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works

The appearance of smart table rendered looks like below:

SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works

​How table related annotation is parsed and table columns are rendered

Unlike the previous three examples, the control instance of SmartTable now is not created dynamically by ODataControlFactory, but statically declared in xml view and created then by XMLTemplateProcessor after xml view is loaded and parsed:

SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works

How “currency” filter works

Since currency code is marked as filterable = true in metadata.xml,

SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works
SAP Fiori Elements裡的Smart Table工作原了解析How “currency” filter works