persistent class Ens.Config.Credentials
extends %Persistent, %XML.Adaptor
Contains the authorization information needed to use a remote system.
parameter DOMAIN = "Ensemble";
Use our own domain for localization
property BusinessPartner
as %String(CAPTION="@Ensemble:BusinessPartner@BusinessPartner",MAXLEN=255,XMLPROJECTION="ATTRIBUTE");
Name of Business Partner Profile associated with this item.
property Password
as %CSP.Util.Passwd(CAPTION="@Ensemble:Password@Password",MAXLEN="",XMLPROJECTION="ATTRIBUTE") [ SqlFieldName = PasswordObject ];
property PasswordSQL
as %String(MAXLEN="",XMLPROJECTION="NONE") [ Calculated,SqlFieldName = Password ];
property SystemName
as %String(CAPTION="@Ensemble:SystemNameID@ID",XMLPROJECTION="ATTRIBUTE");
property Username
as %String(CAPTION="@Ensemble:Username@Username",MAXLEN=3640873,XMLPROJECTION="ATTRIBUTE");
query List()
SQL Query
:
Select ID, %Truncate(Username, 3640820) As Username,'xxx' as Password, BusinessPartner from Ens_Config.Credentials
index (SystemName on SystemName) [IdKey,PrimaryKey];
trigger OnDelete
(BEFORE event DELETE)