XPages....Is it Possible to Perform a Partial Refresh on Multiple Elements?

I’m trying to do a partial refresh on multiple elements. I can’t figure out how to accomplish this. When I click on the “Select Element” button, the title clearly says “select one or more elements from the page…”, but there is no way to do this.

Subject: Solution - Refresh more than one target ID

This thread was the first hit with Google but it seems the solution is not posted here.

Solution:

http://www.timtripcony.com/blog.nsf/d6plinks/TTRY-84B6VP

Subject: yes and no

we have fixed that text in 8.5.1, it was a bug that it says you can multi-select there.

But you can refresh multiple elements on the page by placing them in a panel, and refreshing the panel (be sure to give the panel an id (name) so you can choose it in the dialog as the control to refresh.

Subject: It sounds like one can’t do ad-hoc partial refresh…

  • By this I mean have an XPage with fields grouped logically for the application, using various container controls, but have some individual fields within that logical grouping use partial refresh, while other fields do not.- Maureen’s response that one must put all partial refresh-able fields in a panel, then select that panel’s ID, appears to explicitly indicate that ad-hoc partial update is currently impossible. That means if one wants ad-hoc partial update, then one must code their own AJAX just like days of yore.

  • Is the above accurate, or am I reading things incorrectly again?

  • I ask because I’m web-enabling an R6 application using R8, and if I have to code my own AJAX to do what I want, it would save a lot of time to know that now, rather than after I spend a bunch of time on something that will never work.

  • Thanks for your time…

Subject: You’re right, this is a fairly significant XPages limitation.

And it sounds like in 8.5.1 it’s not any better (other than clarifying that you really can’t do this).

Yes, this would mean your controls all need to be contiguous, and be inside a panel. This means you might be adding panels for no reason other than to group stuff together for partial refresh. Of course, you can always fall back to a a larger panel (or other container).

But if your controls are on separate sides of the screen, or top-and-bottom, then you’re probably stuck with a full-page refresh.

Hopefully this is a target for 8.5.2…

Subject: Whelp at least I know up front … Thanks Eric!

Subject: XPages partial refresh multiple items…

I just ran into this issue. This is a bummer that you won’t be able to select refresh multiple items for a partial refresh.

My items are definitely on different parts of the page so putting them in one container isn’t going to be possible.

I put in my vote for make this work like it appears to in 8.5 not just one item that we are probably going to get in 8.5.1

Subject: XPages partial refresh multiple items in 8.5.1 ???

I am trying to achieve the same thing. Need to be able to partially refresh multiple items.

Anyone know if this is something that can be done in 8.5.1???

Thank you.

Regards,

Melissa

Subject: Still not possible as far as I can tell

We’re on 8.5.2 and there’s no way I can see to do it. Might there be a workaround?

clem

Subject: Search the 'net…

  • I believe Jeremy Hodge (XPages Blog) has a post over there somewhere that explains how to do this. In essence a partial refresh invokes a specific function on the globlal XSP object, and one may simply code that call where-ever they like, and as many times as they like. So if clicking a radio button should update three random fields, one would put three XSP.magicPartialMethod calls in the client-side code for that radio button and it works.

  • I don’t recall what magicPartialRefresh is, nor do I have a link, or I’d provide more info.

  • And sadly at this exact instant the XPages Blog won’t load. (pouty face) Hope Jeremy knows about … I don’t know how to contact him directly.

Hope this helps…