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



Jun 22, 2012, 4:08 PM
7 Posts

Dynamic editable box creation

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: javascript
  • Replies: 1
 
 

can some one share the code to create an editable box on a button click event in XPages. What method do we use to create a core control in javascript(client side or serverside).

Its very urgent please help

Jun 22, 2012, 8:27 PM
126 Posts
Re: Dynamic editable box creation
 If you want to creat X number of edit boxes use client side script like the answer posted here (2nd answer):
 
 http://stackoverflow.com/questions/5656392/how-to-create-input-type-text-dynamically
 
If you have an XPages input field with event handlers or converters etc. and you just want to make it appear on a button click. You can create it and set its "rendered"  propery to false and then use server side script to set it to true like below:
 
getComponent(controlID).setRendered(true);
 
 this will make it appear on the page when button is clicked

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