Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the mode of Editbox from read mode to edit mode in Xpage?
    primarykey
    data
    text
    <p>Actually, I have set true to the property- <strong>Read-Only</strong> in <code>Xpage</code> for a particular field. </p> <p>And I have tried to change its mode to edit in client side javascript. But I am not able to change.<br> I used the following code... </p> <pre><code>document.getElementById("#{id:read}").readOnly=false; </code></pre> <p>and also </p> <pre><code>dojo.attr("#{id:read}","readOnly",false); </code></pre> <p>Both are failed...</p> <pre><code>(@Trim) Also in Server side Javascript XSP Code is: &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoParseOnLoad="true" dojoTheme="true"&gt; &lt;xp:this.resources&gt; &lt;xp:dojoModule name="dijit.Dialog"&gt;&lt;/xp:dojoModule&gt; &lt;/xp:this.resources&gt; &lt;div id="dojoTest" dojoType="dijit.Dialog"&gt; &lt;xp:inputText id="field" defaultValue="Hello" readonly="true"&gt;&lt;/xp:inputText&gt; &lt;xp:button value="Label" id="button1"&gt; &lt;xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="field"&gt; &lt;xp:this.action&gt; &lt;![CDATA[{javascript:getComponent("field").setReadonly(false);}]]&gt;&lt;/xp:this.action&gt; &lt;/xp:eventHandler&gt;&lt;/xp:button&gt; &lt;xp:br&gt;&lt;/xp:br&gt;&lt;/div&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:br&gt;&lt;/xp:br&gt; &lt;xp:button value="Show Popup" id="button2"&gt; &lt;xp:eventHandler event="onclick" submit="false"&gt; &lt;xp:this.script&gt;&lt;![CDATA[dijit.byId("dojoTest").show();]]&gt; &lt;/xp:this.script&gt; &lt;/xp:eventHandler&gt;&lt;/xp:button&gt; &lt;/xp:view&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.
    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