Skip to main content Comment on this application
Comment on this application]]>
‘); $(‘#addcommentbtn’).click(function () { $(‘#addcommentbtn’).hide(); $(‘#commentheader’).show(); if (!Civica.Util.IsNullOrEmpty(Civica.PortalSettings.PlanningCommentDocType)) { $(“#addcomment”).callscript({docTypeCode:Civica.PortalSettings.PlanningCommentDocType, refType: plancase.KeyObjectType, keyNumber: plancase.KeyNumber, keyText: plancase.KeyText, submitCallback: function(){ // Refresh the page to show the comment after submission, you may want to display // a message here if you are going to validate comments before showing them. document.location.reload(); } }); } else if (!Civica.Util.IsNullOrEmpty(Civica.PortalSettings.PlanningCommentProcType)) { $(“#addcomment”).processstart({ processType:Civica.PortalSettings.PlanningCommentProcType, blockedRedirectURL:’/planning/search-applications/’, showUI: false, keyObjectType: plancase.KeyObjectType, keyObjectNumber: plancase.KeyNumber, keyObjectText: plancase.KeyText, blockedCallback: function(){ // Refresh the page to show the comment after submission, you may want to // display a message here if you are going to validate comments before showing // them. document.location.reload(); } }); } }); } } $(“#civica-planningsearchandview”).keyobjectsearchandview({ RefType: Civica.PortalSettings.PlanningApplicationRefType, Sort:[{“Field”:”S.SDate1″,”Type”:”desc”}], SearchCriteriaFields : [“FullTextSearch”,”CivicaInternalAllAddressLines”,”AText6″,”APicklist1″,”APicklist2″,”SDate1From”,”SDate1To”,”SDate3From”,”SDate3To”], KeyObjectDisplayComponents: [{ Name : “BasicDetails” }, { Name : “FullDetails”, options :{DisplayFields:[“APicklist1″,”APicklist2″,”SPicklist3″,”SPicklist2”]},Collapsible : false }, { Name : “Documents”, Collapsible : true, options : { ShowDownloadAll : true } }, ], KeyObjectViewerCallback : keyObjectViewerCallback }); }).call(contentDiv, Civica.jQuery, Civica.jQuery); });
Source