Sapui5 在SAP UI5中调试格式化函数

Sapui5 在SAP UI5中调试格式化函数,sapui5,Sapui5,在我的应用程序中,我在sap ui5应用程序的单独文件夹中包含了一个formatter.js文件,并在视图的控制器中声明了该文件 <Page title="{i18n>MasterTitle}" > <List id="list" type="Active" items="{/SalesOrderCollection}" > <ObjectListItem type="Active" ti

在我的应用程序中,我在sap ui5应用程序的单独文件夹中包含了一个formatter.js文件,并在视图的控制器中声明了该文件

<Page title="{i18n>MasterTitle}" >
    <List
    id="list"
    type="Active"
    items="{/SalesOrderCollection}" >
    <ObjectListItem
        type="Active"
        title="{SoId}">
        <attributes>
            <ObjectAttribute text="{ path: 'OrderedDate', formatter: 'com.corp.demo.sales.util.Formatter.date' }" /> 
        </attributes>
       <firstStatus> 
              <ObjectStatus text="{OverallStatus}" /> 
       </firstStatus>
    </ObjectListItem>
</List>
</Page>
但无法格式化显示为空白的日期。我可以使用console.log语句登录到formatter.js文件,但是没有触发日期函数

如何检查日期函数是否被触发

谢谢,
Prasad

您可以在web ide中使用调试模式。 您可以使用此路径

project settings-run configurations-web application-url components 

将sap ui debug=true参数添加到您的URL。

通过在index.html中添加数据sap ui xx bindingSyntax=complex解决。

您确定需要行中的引号吗?是的,它们是必需的。我的意思是双引号.iam不使用web ide。在项目中使用Eclipse。