Home Applications NavMethodsForIndexedProperties

NavMethodsForIndexedProperties

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
0
0 reviews
0
Awards
212
Views
21
IPM installs
0
2
Details
Releases
Reviews
Issues
Pull requests  (1)
Articles  (1)
Navigation methods for InterSystems Objects Indexed properties

What's new in this version

  • Rename zpm name package.

Navigation methods for InterSystems Objects Indexed properties

The project creates auto-generated methods for non-unique indices.

Creates the following methods:

  • IndexNameOpen(val)
  • IndexNameFirst(val)
  • IndexNameLast(val)
  • IndexNameNext(val)
  • IndexNamePrevious(val)

Examples

  • set person = ##class(samples.Person).NameIndexOpen(“Daniel”)
  • SET person = person.NameIndexFirst(“Daniel”)
  • SET person = person.NameIndexLast(“Daniel”)
  • SET person = person.NameIndexNext(“Daniel”)
  • SET person = person.NameIndexPrevious(“Daniel”)
set person = ##class(samples.Person).PhoneIndexOpen("880-555-4323")
While $IsObject(person) {
    write !, person.Name
    set person = person.PhoneIndexNext("880-555-4323")
}

Install:

  1. USER> zpm
  2. zpm: USER>install bondar-nav
  3. Add to persistent classes Extends bondar.indexnav.IndexNav

Example:

Class samples.Person Extends (%Persistent, bondar.indexnav.IndexNav, %Populate)
  1. Compile the project
Made with
Install
zpm install bondar-nav download archive
Version
1.0.106 Jul, 2020
Category
Developer Environment
Works with
CachéEnsembleInterSystems IRISInterSystems IRIS for Health
First published
17 Jun, 2020
Last checked by moderator
27 Jun, 2023Works