Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.8.

Syntax

admProjectProperties(pkey)

...

Excerpt

Returns the project properties.

Parameters

Parameter name

Type

Required

Description

 pkeystringyesProject key.

Return type

Project

The properties of the project.

The returned properties keys are:

KeyDescription
keyProject key (for completitude, it's the same as the one given as parameter).
nameName of the project.
descriptionDescription of the project.
projecttypeProject type key.
leadLead.
urlURL of the project.
unassignedByDefault'True'/'false', depending of the assignment option.
avatarIdAvatar id, zero if no avatar.
categoryProject category name.

Example

Code Block
JProject prj = admProjectProperties("T3");

string msg1 = "Project description is:"  + prj["description"] + "; category is:" + prj["category"];
string msg2 = "This project belongs to:" + prj["lead"];
number avatarId = prj["avatarId"];
string projectType = prj["projecttype"];

...