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



Oct 31, 2012, 12:23 AM
9 Posts

Repeat Control Hide/Display Data Row

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
This seems like something very easy to accomplish...
 
In a repeat control I am hiding a row 'computedfield' using a variable of viewScope.put,  all my fields are in the same panel.  The row hides fine when I click on the link, but when I try to unhide the row after hiding it I get the error "No Element to submit with ID....".
 
This must be something obvious that I am doing to cause this error.  
 
Any thoughts would be greatly appreciated. 
 
Thanks. 
Oct 31, 2012, 6:50 AM
129 Posts
Re: Repeat Control Hide/Display Data Row
When you hide an item server side, the item that's refreshed/hidden isn't rendered to the browser. That's the reason you get an error.
 
What I tend to do is to wrap the item that should be hidden with a xp:panel or xp:div. Refresh the wrapper. Then the item is hidden/shown, and the refresh can run.
 
If the repeat control isn't big, you could skip the wrapper, and just refresh the repeat. 
Oct 31, 2012, 12:46 PM
9 Posts
Perfect!
I refreshed the repeat panel and that worked perfectly!   Thanks for your help.
 

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