<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: No save option in Designer
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/out_sider">out sider</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/718839#718839">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Now that I can acess the contentWindow because the iframe parent is in the same domain I'm having another issue <span> :) </span>.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>By doing console.log(guvnor) I get the following information of the guvnorEditorObject:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="header monospace" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div class="title">Object<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></div><ol class="properties properties-tree monospace" style="padding-right: 6px; padding-bottom: 2px; padding-left: 16px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-size: 12px; font-family: Consolas, 'Lucida Console', monospace; color: #000000; text-align: -webkit-auto; background-color: #ffffff;"><li><span class="name" style="color: #881391;">afterCancelButtonCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-null" style="color: #808080;">null</span></li><li><span class="name" style="color: #881391;">afterSaveAndCloseButtonCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-function">function (){console.log('ssssssssssssssaved')}</span></li><li><span class="name" style="color: #881391;">brlCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-null" style="color: #808080;">null</span></li><li><span class="name" style="color: #881391;">drlCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-null" style="color: #808080;">null</span></li><li><span class="name" style="color: #881391;">getAssetsUUIDs</span><span class="separator">: </span><span class="value console-formatted-function">function (){return c.Lg()}</span></li><li><span class="name" style="color: #881391;">getBRL</span><span class="separator">: </span><span class="value console-formatted-function">function (b){this.brlCallbackFunction=b;c.Mg()}</span></li><li><span class="name" style="color: #881391;">getDRL</span><span class="separator">: </span><span class="value console-formatted-function">function (b){this.drlCallbackFunction=b;c.Ng()}</span></li><li><span class="name" style="color: #881391;">registerAfterCancelButtonCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-function">function (b){this.afterCancelButtonCallbackFunction=b}</span></li><li><span class="name" style="color: #881391;">registerAfterSaveAndCloseButtonCallbackFunction</span><span class="separator">: </span><span class="value console-formatted-function">function (b){this.afterSaveAndCloseButtonCallbackFunction=b}</span></li><li><span class="name dimmed" style="color: #881391;">__proto__</span><span class="separator">: </span><span class="value console-formatted-object">Object</span></li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span class="value console-formatted-object">There is a "<span style="color: #881391; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; text-align: -webkit-auto; background-color: #ffffff;"><span style="color: #881391; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; text-align: -webkit-auto; background-color: #ffffff;">registerAfterSaveAndCloseButtonCallbackFunction</span>" </span><span style="text-align: -webkit-auto; color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;">which receives as argument the function to call when the Save button is pressed. The problem is that it isn't calling the function.</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="text-align: -webkit-auto; color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;">Things I've noticed:</span></p><p><span style="text-align: -webkit-auto; color: #000000; font-size: 12px; background-color: #ffffff; font-family: Consolas, 'Lucida Console', monospace;">In the Stand Alone Editor there isn't a Save and Close button but a Save All Changes button...as such it makes more sence to use the "<span style="color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;">registerAfterSaveAllButtonCallbackFunction" <span style="color: #000000;">which you previously refered. Bu the guvnorEditorObject doesn't have such property.</span></span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What can I do in order to refresh the iframe of the Stand Alone editor after saving?</p><p><span style="text-align: -webkit-auto; color: #000000; font-size: 12px; background-color: #ffffff; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/718839#718839">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>