<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display popup confirm dialog when click button &amp;quot;Reject&amp;quot;? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101264#M29104</link>
    <description>&lt;P&gt;Is this something you are doing with Activiti?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 18:59:32 GMT</pubDate>
    <dc:creator>jljwoznica</dc:creator>
    <dc:date>2019-10-16T18:59:32Z</dc:date>
    <item>
      <title>How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101263#M29103</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I want to when I click on the "Reject" button to get a message asking the user to confirm that I want Reject?&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;P&gt;Thank !&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/350i9FBF254D4B195422/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 09:23:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101263#M29103</guid>
      <dc:creator>longnt23</dc:creator>
      <dc:date>2019-10-16T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101264#M29104</link>
      <description>&lt;P&gt;Is this something you are doing with Activiti?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101264#M29104</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-10-16T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101265#M29105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="login-bold"&gt;jljwoznica,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thank you for your interest in the problem I'm having.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&amp;gt;&amp;gt;Is this something you are doing with Activity?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Yes, When I review documents, I want a message to be displayed to confirm "Reject". After I click button "Reject"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 02:14:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101265#M29105</guid>
      <dc:creator>longnt23</dc:creator>
      <dc:date>2019-10-17T02:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101266#M29106</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I define own outcome-contraint for in workflow-model same as (File: test-model.xml):&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;                 &amp;lt;constraints&amp;gt;
                    &amp;lt;constraint name="my:myOutcomeOptions" type="LIST"&amp;gt;
                        &amp;lt;parameter name="allowedValues"&amp;gt;
                            &amp;lt;list&amp;gt;
                                &amp;lt;value&amp;gt;Approve&amp;lt;/value&amp;gt;
                                &amp;lt;value&amp;gt;Reject&amp;lt;/value&amp;gt;
                            &amp;lt;/list&amp;gt;
                        &amp;lt;/parameter&amp;gt;
                    &amp;lt;/constraint&amp;gt;
                &amp;lt;/constraints&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And custom sequence-flows to workflow definition (File: test.bpmn20.xml):&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;exclusiveGateway id="exclusiveGateway1"&amp;lt;/exclusiveGateway&amp;gt;
&amp;lt;sequenceFlow id="flow3" name="Rejected" sourceRef="exclusiveGateway1" targetRef="Rejected"&amp;gt;
    &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt; &amp;lt;![CDATA[${test_a1approvecount &amp;lt; test_a2approvecount}]]&amp;gt; &amp;lt;/conditionExpression&amp;gt;
&amp;lt;/sequenceFlow&amp;gt;&lt;/PRE&gt;&lt;P&gt;I want to when I click button "Reject" showing popup confirm and after click button in popup confirm (OK and Cancel) display change to dashboard. Please help me!&lt;/P&gt;&lt;P&gt;Thank you advance!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 04:27:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101266#M29106</guid>
      <dc:creator>longnt23</dc:creator>
      <dc:date>2019-11-13T04:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101267#M29107</link>
      <description>&lt;P&gt;Ok, let's start from the beginning. What you describe in workflow model in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;constraint name="my:myOutcomeOptions" type="LIST"&amp;gt;&lt;/PRE&gt;&lt;P&gt;are so called "transitions". Usually they are rendered by template and JavaScript&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl"&lt;BR /&gt;"/components/form/workflow/activiti-transitions.js"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The teplate which is used for transition elements rendering is controlled by share-config-custom.xml in a following way:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;form&amp;gt;&lt;BR /&gt;    &amp;lt;appearance&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;field &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="my:myOutcomeOptions" &lt;/SPAN&gt;&lt;SPAN&gt;label-id&lt;/SPAN&gt;&lt;SPAN&gt;="workflow.field.outcome" &lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;="response"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;            &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;control &lt;/SPAN&gt;&lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" &lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        &amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;/appearance&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I suppose the place to create your custom pop-up is in here&amp;nbsp;&lt;SPAN&gt;"/components/form/workflow/activiti-transitions.js"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is a function called "onClick". If I would need to implement similar pop-up I'd do it in this function using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Alfresco.&lt;SPAN&gt;util&lt;/SPAN&gt;.&lt;SPAN&gt;PopupManager&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101267#M29107</guid>
      <dc:creator>Vic</dc:creator>
      <dc:date>2019-11-13T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101268#M29108</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;After reading your answer helped me understand many issues.&lt;BR /&gt;I will practice following your instructions, if I get stuck I'll contact you later.&lt;BR /&gt;Once completed I will rewrite the entire process up here to help everyone.&lt;BR /&gt;What a wonderful person you are.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:50:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101268#M29108</guid>
      <dc:creator>longnt23</dc:creator>
      <dc:date>2019-11-13T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup confirm dialog when click button "Reject"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101269#M29109</link>
      <description>&lt;P&gt;Hi Vic,&lt;/P&gt;&lt;P&gt;I have found the file "&lt;SPAN&gt;activiti-transitions.js&lt;/SPAN&gt;" in below:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MyDesktop\alfresco\workflow-tutorial\target\tomcat\webapps\workflow-tutorial-share\components\form\workflow&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I custom function "onClick" :&lt;/P&gt;&lt;P&gt;Add new Popup Manager&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;fn&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; org_alfresco_training_onActionCallWebScriptSuccess&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;response&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
                                    &lt;SPAN class="typ"&gt;Alfresco&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;util&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;PopupManager&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;displayPrompt&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;
                                        &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                            title&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;this&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;msg&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;""&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                            text&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; JSON&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;stringify&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;response&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;json&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                            buttons&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;
                                                &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                                    text&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;this&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;msg&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"button.ok"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                                    handler&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; org_alfresco_training_onActionCallWebScriptSuccess_success_ok&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
                                                        &lt;SPAN class="kwd"&gt;this&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;destroy&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;();&lt;/SPAN&gt;
                                                    &lt;SPAN class="pun"&gt;},&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                                    isDefault&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;true&lt;/SPAN&gt;
                                                &lt;SPAN class="pun"&gt;},&lt;/SPAN&gt;
                                                &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                                    text&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;this&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;msg&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"button.cancel"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;                                                    handler&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; org_alfresco_training_onActionCallWebScriptSuccess_cancel&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;
                                                        &lt;SPAN class="kwd"&gt;this&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;destroy&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;();&lt;/SPAN&gt;
                                                    &lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;
                                                &lt;SPAN class="pun"&gt;}]&lt;/SPAN&gt;
                                        &lt;SPAN class="pun"&gt;});&lt;/SPAN&gt;

                                &lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But when I add it doesn't see the change on Alfresco . I re-run Alfresco when I saw the "activiti-transitions.js" file was created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did I do something wrong?&lt;/P&gt;&lt;P&gt;Please guilde me!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 03:24:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-popup-confirm-dialog-when-click-button-quot/m-p/101269#M29109</guid>
      <dc:creator>longnt23</dc:creator>
      <dc:date>2019-11-19T03:24:25Z</dc:date>
    </item>
  </channel>
</rss>

