Note that there are some explanatory texts on larger screens.

plurals
  1. POxPage with multiple datasources has the second datasource always opened in edit mode
    primarykey
    data
    text
    <p>I have an xPage with 2 datasources. I open the page and the first datasource is readonly, while the second datasource is in edit mode. Adding ignoreRequestParms=true seems to cause this behavior, but its the only way that the document will save to a different datasource.</p> <p>I have found this link that someone has found similar behavior. <a href="http://www-10.lotus.com/ldd/nd85forum.nsf/7756aedc25e6d81285256324005ac76c/5e2f855ea18ff802852576e3007c34f2?OpenDocument" rel="nofollow">http://www-10.lotus.com/ldd/nd85forum.nsf/7756aedc25e6d81285256324005ac76c/5e2f855ea18ff802852576e3007c34f2?OpenDocument</a></p> <p>There is something going on that I don't understand. If someone could explain this to me I would appreciate it.</p> <p>Here is the code for the data source and the fields in the tab panel</p> <pre><code>&lt;xp:dominoDocument var="document2" action="createDocument" formName="software" ignoreRequestParams="true"&gt; &lt;/xp:dominoDocument&gt; &lt;xp:tabbedPanel id="tabbedPanel1"&gt; &lt;xp:tabPanel id="tabPanel1" label="Checklist Items"&gt; &lt;xp:checkBoxGroup id="checkBoxGroup1" layout="pageDirection" value="#{document1.checklist}"&gt; &lt;xp:selectItems&gt; &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:var dbName = new Array("",""); var Rep = @Unique(@DbColumn(dbName,"checklistitems",3)); Rep}]]&gt;&lt;/xp:this.value&gt; &lt;/xp:selectItems&gt; &lt;/xp:checkBoxGroup&gt; &lt;/xp:tabPanel&gt; &lt;xp:tabPanel label="Software" id="tabPanel2"&gt; &lt;xp:button value="Edit Software list" id="button1"&gt; &lt;xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="panelsoft"&gt; &lt;xp:this.action&gt; &lt;xp:changeDocumentMode mode="edit" var="document2"&gt; &lt;/xp:changeDocumentMode&gt; &lt;/xp:this.action&gt;&lt;/xp:eventHandler&gt;&lt;/xp:button&gt; &lt;xp:button value="Save Software list" id="button2"&gt; &lt;xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="panelsoft"&gt; &lt;xp:this.action&gt; &lt;xp:actionGroup&gt; &lt;xp:modifyField name="uid" value="#{javascript:document1.getDocument().getUniversalID()}" var="document2"&gt; &lt;/xp:modifyField&gt; &lt;xp:executeScript script="#{javascript:document2.save()}"&gt; &lt;/xp:executeScript&gt;&lt;/xp:actionGroup&gt; &lt;/xp:this.action&gt; &lt;/xp:eventHandler&gt; &lt;/xp:button&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:panel id="panelsoft"&gt;&lt;xp:table rendered="#{javascript:document2.isEditable()}"&gt;&lt;xp:tr&gt;&lt;xp:td&gt;&lt;xp:br&gt;&lt;/xp:br&gt; Software Name &lt;/xp:td&gt; &lt;xp:td&gt; &lt;xp:inputText id="inputText1" style="width:300px" value="#{document2.Softwarename}"&gt; &lt;/xp:inputText&gt;&lt;/xp:td&gt; &lt;/xp:tr&gt; &lt;xp:tr&gt; &lt;xp:td&gt;&lt;/xp:td&gt; &lt;xp:td&gt;&lt;/xp:td&gt; &lt;/xp:tr&gt; &lt;/xp:table&gt; &lt;xp:viewPanel rows="30" id="viewPanel1"&gt; &lt;xp:this.facets&gt; &lt;xp:pager partialRefresh="true" layout="Previous Group Next" xp:key="headerPager" id="pager1"&gt; &lt;/xp:pager&gt; &lt;/xp:this.facets&gt; &lt;xp:this.data&gt; &lt;xp:dominoView var="view2" viewName="CustomSoftware" categoryFilter="#{javascript:document1.getDocument().getUniversalID()}"&gt; &lt;/xp:dominoView&gt; &lt;/xp:this.data&gt; &lt;xp:viewColumn columnName="uid" id="viewColumn1"&gt; &lt;xp:viewColumnHeader value="uid" id="viewColumnHeader1"&gt; &lt;/xp:viewColumnHeader&gt; &lt;/xp:viewColumn&gt; &lt;xp:viewColumn columnName="Softwarename" id="viewColumn2"&gt; &lt;xp:viewColumnHeader value="Software Name" id="viewColumnHeader2"&gt; &lt;/xp:viewColumnHeader&gt; &lt;/xp:viewColumn&gt; &lt;xp:viewColumn columnName="comments" id="viewColumn3"&gt; &lt;xp:viewColumnHeader value="Comments" id="viewColumnHeader3"&gt; &lt;/xp:viewColumnHeader&gt; &lt;/xp:viewColumn&gt; &lt;/xp:viewPanel&gt; &lt;/xp:panel&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:panel&gt; &lt;/xp:panel&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;/xp:tabPanel&gt; &lt;/xp:tabbedPanel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload