Archiv der Kategorie: XSnippet

XSnippets: viewPanelHelper

I have added a new XSnippet, the viewPanelHelper. The code helps to keep the selection of the selected documents in a view panel even if pager is used or categories are expand or collapsed. It is not required to modify … Weiterlesen

Veröffentlicht unter Allgemein, Dojo Toolkit, Java Script, ServerSide JavaScript, XPages, XSnippet | Verschlagwortet mit , , , , , , , , | Schreib einen Kommentar

Quick-n-Dirty: Disable Validation for FileDownload control

If you are using the file download control,  you sooner or later want to allow your users to delete an existing file. But if you have some required fields on your XPage, a deletion is not possible because the validation … Weiterlesen

Veröffentlicht unter Java Script, ServerSide JavaScript, XPages, XSnippet | Verschlagwortet mit , , , , , | 1 Kommentar

XSnippets: Cancel a partial refresh via SSJS

With the assistance of Philippe Riand I was able to shorten the original idea of canceling a partial refresh to a single SSJS function.  By setting the HTTP header „X-XspRefreshId“ to „@none“ it is possible to get the same result … Weiterlesen

Veröffentlicht unter Allgemein, Dojo Toolkit, HTML, Java Script, Performance, Server, ServerSide JavaScript, Web, XPages, XSnippet, XSP | Verschlagwortet mit , , , , , , , , , , , , , , | 1 Kommentar

XSnippets: Fire querySave / postSave – Events

The second XSnippet I have added to the XSnippet Contest is a help to fire the querySave– and postSave-events from SSJS: Save Datasource & Fire querySave/postSave events If you only do a simple document1.save() , the events of a datasource … Weiterlesen

Veröffentlicht unter Java Script, ServerSide JavaScript, Web, XPages, XSnippet | Verschlagwortet mit , , , , , | Schreib einen Kommentar

XSnippets: XPages Localization Setter

I have submitted some XSnippets for the XSnippets-Contest. This is the first one, the XPages Localization Setter: The Snippet allows to change the language settings of a XPage „On-The-Fly“, including the used browser language, the dojo settings, the ressource files … Weiterlesen

Veröffentlicht unter Allgemein, Java, JSF, Server, Web, XPages, XSnippet | Verschlagwortet mit , , , , , , , | 3 Kommentare