EDI Solutions Details
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy901.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy901 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@1f965815"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign journalArticle = JournalArtic...  [in template "20101#20128#239265" at line 27, column 1]
----
1<#-- 
2Widget templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign tmpArticleId = "" /> 
10 
11 
12<#assign tmpArticleId  = paramUtil.getString(request, "selectedArticleId") /> 
13<#assign editmode  = paramUtil.getString(request, "p_l_mode") /> 
14 
15<#if tmpArticleId?has_content> 
16<#--     ArticleId found in request = "${tmpArticleId}" is_string = ${tmpArticleId?is_string?string("true", "false")}<br> 
17<#else> 
18    No article In request object<br>--> 
19</#if> 
20 
21<#-- <#if !tmpArticleId?has_content> 
22    <#assign tmpArticleId = defaultArticleId /> 
23    ArticleId set to default = ${tmpArticleId}<br> 
24</#if>--> 
25<#if tmpArticleId?has_content> 
26<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
27<#assign journalArticle = JournalArticleLocalService.getArticle(groupId, tmpArticleId) /> 
28 
29<@liferay_journal["journal-article"] 
30    articleId=journalArticle.getArticleId() 
31    ddmTemplateKey=journalArticle.getDDMTemplateKey() 
32    groupId=journalArticle.getGroupId() 
33/> 
34<script> 
35$(document).ready(function() { 
36    if ($("#navaccordion li").length > 0) { 
37        if (!$("#navaccordion li.current a").attr('href')) { 
38            let navUrl = $("#navaccordion li:first a").attr('href'); 
39            window.location = navUrl; 
40        }  
41
42}); 
43</script> 
44<#else>  
45    <#if !editmode?has_content> 
46     <script> 
47         $(document).ready(function() 
48
49             if($("#navaccordion li").length >0){ 
50                let navUrl = $("#navaccordion li:first a").attr('href'); 
51                 if(navUrl.indexOf("selectedArticleId") > 0) 
52
53                    var urlParams = new URLSearchParams(window.location.search); 
54                    if (urlParams.toString()) { 
55                        window.location = navUrl + '&' + urlParams; 
56                    } else { 
57                        window.location = navUrl; 
58
59
60
61        }); 
62     </script> 
63    </#if> 
64  
65</#if>