Home Applications NavMethodsForIndexedProperties

NavMethodsForIndexedProperties

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
222
Views
21
IPM installs
0
2
Details
Releases (2)
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.102 Jul, 2020
Category
Developer Environment
Works with
CachéEnsembleInterSystems IRISInterSystems IRIS for Health
First published
17 Jun, 2020
Last edited
06 Jul, 2020
Last checked by moderator
26 Nov, 2024Works