Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not quite sure what you really mean by an "alphabetical pager", but I assume you might be looking for some kind of alphabetical navigator like we have it in the personal NAB inside the Notes client, right?</p> <p>If so you're not really looking for a pager but for an alphabetical view filter. Here's one way to get there:</p> <ul> <li>create a panel, give it a distinctive ID like "viewContainer" or something. Put your view panel into the panel; of course the view's main sorting order must be alphabetical</li> <li>create a 2nd panel above "viewContainer", no ID necessary here</li> <li><p>put a repeat inside this new panel and bind it to a new JavaScript array, like that:</p> <p>new Array("a", "b", "c", ... , "x", "y", "z");</p></li> <li><p>enter a collection name for the repeat, like "letter"</p></li> <li>put a link control inside the repeat. The link's label will be computed to the repeat's collection name, i.e. "letter".</li> <li><p>assign an onclick event to the link setting a sessionScope variable to the current collection name's value, like that:</p> <p>sessionScope.filter = letter;</p></li> <li><p>set the event's refresh mode to partial so that it refreshes your viewContainer panel</p></li> <li><p>highlight your view control inside the viewContainer. In its data properties look for the property field labelled "Filter by column value" and make it computed. Enter this code:</p> <p>sessionScope.filter;</p></li> </ul> <p>That's it.</p> <p><strong>Edit:</strong> of course you can build the repeat's datasource array dynamically from the view itself. So, instead of building that static a-to-z array you could also use something like this:</p> <pre><code>@Unique(@Left(@DbColumn(@DbName(), "yourLookupView", viewColNumber), 1)); </code></pre> <p>That should return an array only containing those letters that really are in your view.</p> <p>Also you could another static link control outside the repeat resetting the filter to show all entries. It would be built like the repeated link with the onclick event calling this code:</p> <pre><code>sessionScope.filter=null; </code></pre> <p>Enjoy!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload