本文討論如何透過啟用記錄以及在瀏覽器中使用除錯程式來除錯AEM Forms工作區。 此外,它也說明使用AEM Forms工作區時可能會遇到的一些常見問題及解決方法。
安裝修補程式後,請開啟AEM Forms工作區。 如果遇到「找不到資源」錯誤,請開啟CRX包管理器並重新安裝adobe-lc-workspace-pkg-<version>.zip
包。
在安裝軟體包時,如果遇到javax.jcr.nodetype.ConstraintViolationException: OakConstraint0025: Authorizable property rep:authorizableId may not be removed
錯誤,請執行以下步驟:
登入CRX DE lite。 預設URL為https://[localhost]:'port'/lc/crx/de/index.jsp
刪除以下節點:
/home/groups/P/PERM_WORKSPACE_USER
轉至「包管理器」。 預設URL為https://[localhost]:'port'/lc/crx/packmgr/index.jsp.
搜索並安裝adobe-lc-workspace-pkg-[version].zip
軟體包。
重新啟動應用程式伺服器。
您可以在不同層級產生記錄檔,以最佳化錯誤疑難排解。 例如,在複雜的應用程式中,在元件層級登入有助於除錯和疑難排解特定元件。
在AEM Forms工作區中:
若要取得特定元件檔案的記錄資訊,請在URL中附加/log/<ComponentFile>/<LogLevel>
,然後按Enter
。 在指定日誌級別上,元件檔案的所有日誌資訊都打印在控制台上。
若要取得所有元件檔案的記錄資訊,請在URL中附加/log/all/trace
,然後按Enter
。
日誌格式:<Component file> <Date>:<Time>: <Log Level> : <Log Message>
預設情況下,所有元件的日誌級別都設定為INFO。
allcategoryModel |
processinstanceModel |
tasklistModel |
appnavigationModel |
processInstanceView |
tasklistView |
appnavigationView |
processnamelistModel |
taskModel |
categorylistModel |
processnamelistView |
taskView |
categorylistView |
processnameModel |
teamqueuesView |
categoryModel |
processnameView |
todoView |
categoryView |
searchtemplatedetailsView |
trackingView |
favoritecategoryModel |
sharequeueModel |
uisettingsModel |
filterlistView |
sharequeueView |
uisettingsView |
filterView |
startpointlistModel |
userinfoModel |
outofofficeModel |
startpointlistView |
userinfoView |
outofofficeView |
startpointModel |
usersearchModel |
首選項視圖 |
startpointView |
usersearchView |
processinstancehistoryView |
startProcessView |
wserrorModel |
processinstancelistModel |
startprocessView |
wserrorView |
processinstancelistView |
taskdetailsView |
wsmessageView |
指令碼和樣式可在不同的瀏覽器中除錯。
在IE中除錯:若要在IE中除錯AEM Forms工作區,請參閱: https://msdn.microsoft.com/en-us/library/hh772704(v=vs.85).aspx.
在Chrome中除錯:若要在Chrome中開啟除錯程式,請使用捷徑:Ctrl+Shift+I。如需詳細資訊,請參閱: https://developer.chrome.com/extensions/tut_debugging.html.
在Firefox中除錯:Firefox中有數個可用來除錯指令碼和樣式的附加元件。例如,Firebug是這類除錯公用程式(https://getfirebug.com)。
PDF表格不會在Google Chrome中轉譯或提交。
SWF表格或指南未在Google Chrome中轉譯。
我已自訂AEM Forms工作區,但無法看到變更。
清除瀏覽器的快取,然後存取AEM Forms工作區。
使用者在案頭中開啟表單時,需要執行哪些動作才能在HTML中轉譯表單?
使用「工作台」時,在分配任務步驟中為預設配置檔案選擇「HTML」單選按鈕。
點按時不會顯示附件。
若要檢視附件,請在瀏覽器中啟用快顯視窗。
用戶已登錄到表單應用程式。 如果使用者嘗試登入工作區,當使用者沒有工作區權限時,可能不會載入。
從其他表單應用程式登出,然後登入工作區。
在AEM Forms工作區中轉譯時,使用「流程屬性」在其設計中的HTML表單,會在表單中顯示「提交」按鈕。
在設計表單時,當您使用「流程屬性」時,會在表單中新增「提交」按鈕。 當在AEM Forms工作區中轉譯為PDF時,一般使用者看不到「提交」按鈕。 不過,當在AEM Forms工作區中以HTML表格呈現時,一般使用者會看到「提交」按鈕。 在表單內按一下此「提交」按鈕不會啟動任何動作。 按一下AEM Forms工作區底部的「送出」按鈕(在表單外部),即可完成工作。