Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7584589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:57:33+00:00 2026-05-30T18:57:33+00:00

I’ve got a repeat control with a series of documents, and below that on

  • 0

I’ve got a repeat control with a series of documents, and below that on the same panel but outside the repeat control I have another bound document that is new. The new document has blank fields, but the fields have validation which requires content when the new document is submitted.

That works.

I’ve added an “edit” button to the repeat entry panel on the repeat control. The action is to pop that entry ento edit mode.

That works – and I can confirm that the individual rows on the repeat can toggle between edit mode independently, and that when toggling, the new document below does not toggle. It is left alone.

However,

If I have validation code on the new document, it triggers (which fails validation) on the new document even though I’m toggling one of the other bound documents in the repeat.

I have tried to make sure the button is set to partial refresh, and is only set to refresh the individual entry panel within the repeat, and I’ve tried to make sure the buttons are only bound to the right documents.

It appears to be only the validation code that is at issue, since if I disable it all the toggling works fine and the new document area does NOT create an empty new document in its target database.

Clearly I am missing something. Any thoughts?

If you want code, I’ve posted a stripped, sanitized, and annotated version as short as I could make it without removing the related bits here:

<xp:repeat repeatControls="false" var="devices" id="ExistingDevicesList" rendered="true">
  <xp:this.value><![CDATA[#{javascript: /* Some script that populates the repeat */ }]]>
  </xp:this.value>


  <xp:panel id="IndividualDevice">    <!-- ************ start of the individual device panel -->
    <xp:this.data>
      <xp:dominoDocument var="devDocument"
        databaseName=" xxxxx.nsf" action="openDocument"
        formName="device"
        documentId="#{javascript:devices.getDocument().getUniversalID();}"
        ignoreRequestParams="true" />
    </xp:this.data>


<!-- ******************* The Edit Button ****************** -->

          <xp:button value="Edit" id="button1">
            <xp:this.binding><![CDATA[#{javascript:
    var IndividualDevice:com.ibm.xsp.component.UIPanelEx = getComponent("IndividualDevice");
    IndividualDevice}]]>
            </xp:this.binding>

            <xp:eventHandler event="onclick"
              submit="true" refreshMode="partial"
              refreshId="IndividualDevice">
              <xp:this.action>
                <xp:changeDocumentMode mode="edit" var="devDocument"> 
                </xp:changeDocumentMode>
              </xp:this.action>
            </xp:eventHandler>
          </xp:button>             

<!-- ******************************************************* -->

          <xp:inputText id="inputText4" value="#{devDocument.field1}" />       
          <xp:inputText id="inputText5" value="#{devDocument.field2}" />
  </xp:panel>      
</xp:repeat>

<!--  ********** below is a field and button bound to the NewDevice Document -->

<xp:inputText id="inputText3" value="#{NewDevice.field1}"
  style="width:371.0px" required="false">
  <xp:this.validators>
    <xp:validateRequired
      message="You must enter a value." />
  </xp:this.validators>
</xp:inputText>    
<xp:button value="submit new device" id="newDevButton">
  <xp:eventHandler event="onclick" submit="true"
    refreshMode="partial" immediate="false" save="true"
    refreshId="NewDevicePanel" />
</xp:button>    
<!-- ************************************************************************ -->

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:57:35+00:00Added an answer on May 30, 2026 at 6:57 pm

    Try addind the following settings to your Edit button:

    execMode=”partial” execId=”IndividualDevice”

    This will ensure that the partial refresh only runs on the IndividualDevice panel, so the validation on the NewDevice datasource is not run. This will also be better for performance, because it reduces the elements in the component tree (server-side map of the XPage) being processed by the partial refresh.

    I was able to reproduce your problem with the code, but when I added the above properties, I was able to toggle documents in the repeat successfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a reasonable size flat file database of text documents mostly saved in
I am trying to loop through a bunch of documents I have to put
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.