This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 19, 2012, 1:04 PM
14 Posts

Using SSJS in button/partial update in SSJS instead of function

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
I use this in my button but will alsp update one frame. Is it possible this way? i Use this button in a different frame so it not find the id if i use it under Partial Update
 
<xp:button id="button1" value="Save" rendered="#{javascript:document2.isEditable()}">
    <xp:eventHandler event="onclick" submit="true" refreshMode="complete" id="eventHandler1">
        <xp:this.action>
            <xp:actionGroup>
                <xp:actionGroup>
                    <xp:saveDocument
                        var="document2">
                    </xp:saveDocument>
                </xp:actionGroup>
                <xp:openPage
                        name="/xp_w3.xsp" target="openDocument">
                    <xp:this.documentId><![CDATA[#{javascript:context.getUrlParameter("documentId")}]]></xp:this.documentId>
                </xp:openPage>
            </xp:actionGroup>
            </xp:this.action>
    </xp:eventHandler>
</xp:button>
 
 Regards
Willy
Mar 21, 2012, 9:31 AM
56 Posts
Re: Using SSJS in button/partial update in SSJS instead of function
Hello Willy,
 
as I can see you are trying to save a document and then open another Xpage after that.Though I don't understand what's your problem is. This button should save the document and then open the new Xpage with the given documentId. What do you mean with refreshing another frame? (I hope you don't use real frames =) )
 
Please explain your problem a little more detailed, maybe I am able to help.
Mar 22, 2012, 10:14 AM
14 Posts
Re: Using SSJS in button/partial update in SSJS instead of function
Uses XPage in a widget in IBM Connections. When I save, I would update the content in another widget. Then they use iframe in their widgets I do not know how I can contact to iframen. Would only do a refresh of the selected widget. Has a frame ID (widget02)

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal