FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Oct 30, 2012, 8:23 PM
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, 2: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, 8:46 AM
9 Posts
Perfect!
I refreshed the repeat panel and that worked perfectly!   Thanks for your help.
 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.