Difference between revisions of "Tabulation getFilterDescriptionVisibility"
Line 15: | Line 15: | ||
Result is bool value. | Result is bool value. | ||
− | '''Examples:''' | + | '''Examples:''' <code></code> |
− | < | ||
− | |||
− | Version 5.8 | + | <code> number ReportStyleSheet_RID = 636143; |
− | </div | + | |
+ | // Convert the Report Style Sheet RID to Report Style Sheet ID | ||
+ | |||
+ | string ReportStyleSheet_GUID = getResourceGuid(ReportStyleSheet_RID); | ||
+ | |||
+ | number ReportStyleSheet_ID = getResourceIdFromGuid(ReportStyleSheet_GUID); | ||
+ | |||
+ | // Use the specified Report Style Sheet | ||
+ | |||
+ | setReportStyleSheetId(ReportStyleSheet_ID); | ||
+ | |||
+ | |||
+ | |||
+ | // add a filter | ||
+ | |||
+ | addFilter("D_Week == [201401-201452]"); | ||
+ | |||
+ | bool before = Tabulation_getTotalColumnVisibility(); | ||
+ | |||
+ | print(before); | ||
+ | |||
+ | // set hidden | ||
+ | |||
+ | Tabulation_setTotalColumnVisibility(false); | ||
+ | |||
+ | bool after = Tabulation_getTotalColumnVisibility(); | ||
+ | |||
+ | print(after); | ||
+ | |||
+ | // create cross | ||
+ | |||
+ | createCrossDiagram({"Q9d"},{"D_Week"}); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | // result : | ||
+ | |||
+ | //True | ||
+ | |||
+ | //False</code> | ||
+ | |||
+ | <code>'''Availability'''</code> | ||
+ | |||
+ | <code>Version 5.8</code> </div> |
Revision as of 08:39, 16 July 2015
Contents
Tabulation_getFilterDescriptionVisibility
get value of Show/hide of Filter
[edit]Syntax
Tabulation_getFilterDescriptionVisibility();
[edit]Arguments
none
[edit]Return value
Result is bool value.
Examples:
number ReportStyleSheet_RID = 636143;
// Convert the Report Style Sheet RID to Report Style Sheet ID
string ReportStyleSheet_GUID = getResourceGuid(ReportStyleSheet_RID);
number ReportStyleSheet_ID = getResourceIdFromGuid(ReportStyleSheet_GUID);
// Use the specified Report Style Sheet
setReportStyleSheetId(ReportStyleSheet_ID);
// add a filter
addFilter("D_Week == [201401-201452]");
bool before = Tabulation_getTotalColumnVisibility();
print(before);
// set hidden
Tabulation_setTotalColumnVisibility(false);
bool after = Tabulation_getTotalColumnVisibility();
print(after);
// create cross
createCrossDiagram({"Q9d"},{"D_Week"});
// result :
//True
//False
Availability
Version 5.8
</div>