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



May 20, 2015, 1:33 PM
22 Posts

Document mode change not working with simple actions on new server

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2

A XPages application is replicated from Server A to Server B.

Opening a document from a view on server B and change mode to edit works fine.

Using the Save or Back button doesn't work. Page stays in edit mode. This is only on Server B on Server A the code works fine

I've used the option to open another xpages when update fails. XPages stays in edit mode . Seems that the Onclick is not working (security ? Configuration ?) It goes just ontop of the document

Any thoughts. ?

Kind regards

-----------------------------------

<xp:td>
    <xp:link escape="true" text="Edit" id="link2" style="font-weight:bold">
        <xp:this.rendered><![CDATA[#{javascript: !(currentDocument.isEditable()) & (database.queryAccessRoles(session.getEffectiveUserName()).contains("[Admin]") | (@Name("[CN]",session.getEffectiveUserName()) == myDoc.getItemValueString("TechnicalPerson")))}]]></xp:this.rendered>
            <xp:eventHandler event="onclick" submit="true"refreshMode="complete" immediate="true" save="false" id="eventHandler2">
                <xp:this.action>
                    <xp:changeDocumentMode mode="edit" var="myDoc">
                    </xp:changeDocumentMode>
                </xp:this.action>
            </xp:eventHandler>
    </xp:link>
                
    <xp:link escape="true" text="Save" id="link3" style="font-weight:bold" rendered="#{javascript:currentDocument.isEditable() }">
            <xp:eventHandler event="onclick" submit="true" refreshMode="complete" id="eventHandler54">
                <xp:this.action><![CDATA[#{javascript:    
                            var dsName = "myDoc.DATASOURCE";
                            var app = facesContext.getApplication();
                            var ds = app.getVariableResolver().resolveVariable(facesContext, dsName);
                            ds.save( facesContext, true );}]]>
                </xp:this.action>
            </xp:eventHandler>
    </xp:link>
</xp:td>

<xp:td>
                
    <xp:link escape="true" text="Back" id="link1" style="font-weight:bold">
            <xp:eventHandler event="onclick" submit="true"     refreshMode="complete" immediate="true" save="false"     id="eventHandler1">
                <xp:this.action>
                    <xp:openPage name="$$PreviousPage"></xp:openPage>
                </xp:this.action>
            </xp:eventHandler>
    </xp:link>
</xp:td>

May 25, 2015, 3:46 PM
453 Posts
Check access rights in ACL and server document.

When confronted with something that works on on serve but not on another the first place to look is in the DB ACL -- Are there any differences? Next look at the Server Document in the NAB on the two servers -- are there any differences? I had a similar (not exactly the same) situation and I found that the security settings differed and once I set them to being the same it all worked well.

I'm working on a situation with a client where an application works well on one server, but another application using exactly the same code base actually crashes the server. I'm guessing some corruption in some of the code but can't find it. Oh the joys of these sorts of inconsistency. 
 

I have a maxim that generally holds "bugs that are hard to find are easy to fix - bugs that are easy to find are hard to fix -- all bugs take the same amount of time!"

Jun 9, 2015, 12:38 PM
22 Posts
Lost binding with data source when document is in editmode

-Checked security settings on db, doc and server configuration documents. Settings are the same on the 2 servers.

- created a basic notes document, dataview and xpdocument that bind to newly created document. Copied the xpages design elements from the form

- tested and everything works likes it should do.

- It seems that when a document is being edited by a xpages, the binding between the data source (notesdocument) and the xpages is lost.

I get no error message. The xpages document stays in editmode and none of the available action (links, buttons, navigition) on that xpages are working


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