Difference between revisions of "Template: GetMaxReleaseDate"
From Genesys Documentation
Line 1: | Line 1: | ||
<includeonly><!-- Finding the MAX ReleaseDate and passing that and ComponentId to formatting template --> | <includeonly><!-- Finding the MAX ReleaseDate and passing that and ComponentId to formatting template --> | ||
− | + | {{#cargo_query: | |
tables=ComponentRN,Component | tables=ComponentRN,Component | ||
|join on=ComponentRN.ComponentId HOLDS Component.Id | |join on=ComponentRN.ComponentId HOLDS Component.Id | ||
|fields=ComponentRN.ComponentId=ComponentId,MAX(ReleaseDate)=ReleaseDate | |fields=ComponentRN.ComponentId=ComponentId,MAX(ReleaseDate)=ReleaseDate | ||
− | |where= | + | |where=PrivateEditionReleaseDate IS NULL AND ComponentId HOLDS '{{{ComponentId|}}}' AND ReleaseDate IS NOT NULL AND ComponentRN._pageNamespace="0" |
|format=template | |format=template | ||
|template=GetReleaseDetails | |template=GetReleaseDetails | ||
|named args=yes | |named args=yes | ||
− | }}-- | + | }}<!-- |
TEST:{{#cargo_query: | TEST:{{#cargo_query: | ||
tables=ComponentRN,ComponentRN__DeploymentTypeId=DepId | tables=ComponentRN,ComponentRN__DeploymentTypeId=DepId | ||
Line 19: | Line 19: | ||
|template=GetReleaseDetails | |template=GetReleaseDetails | ||
|named args=yes | |named args=yes | ||
− | }}</includeonly><noinclude>[[Category:RNAutomtion]]</noinclude> | + | }}--></includeonly><noinclude>[[Category:RNAutomtion]]</noinclude> |
+ | |||
+ | {{#cargo_query: | ||
+ | tables=ComponentRN,ComponentRN__DeploymentTypeId=DepId,ComponentRN__ComponentId=CompId | ||
+ | |fields=ComponentRN.ComponentId=ComponentId,MAX(ReleaseDate)=ReleaseDate | ||
+ | |join on=ComponentRN._ID=DepId._rowID,DepId._rowID=CompId._rowID | ||
+ | |where=CompId._value="acaca529-aedd-4820-8557-4966ab8490db" AND DepId._value='5439f1be-1868-4091-b058-1667389b6ce1' OR DepId._value='ec194bf2-b79a-436d-8ff6-eaff94d9f43a' AND ReleaseDate IS NOT NULL AND ComponentRN._pageNamespace="0" | ||
+ | }} | ||
<!-- | <!-- | ||
Revision as of 13:27, April 29, 2022
ComponentId | ReleaseDate |
---|---|
ec530cff-8e23-4848-bd34-cd7a16967102 | 2024-05-01 |