Skip to content

Commit

Permalink
Fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWunderlich committed Jan 15, 2015
1 parent 6800deb commit 69750a8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions QVC_Source/Qvc_Calendar.qvs
Expand Up @@ -136,14 +136,15 @@ LOAD
AutoNumber(MonthStart(Date),'$(_f_MonthSerial)') as $(_f_MonthSerial),
AutoNumber(QuarterStart(Date),'$(_f_QuarterSerial)') as $(_f_QuarterSerial),
AutoNumber(weekyear(Date) &'|' & week(Date),'$(_f_WeekSerial)') as $(_f_WeekSerial)
$(Include=$(Qvc.Global.Extension.Directory)\$(Qvc.Calendar.v.ExtFields));
$(_qvctemp.v.IncludeExtension);

;
LOAD date('$(_startDate)' + recno() - 1) as Date
AUTOGENERATE date('$(_endDate)') - date('$(_startDate)') + 1
;

SET _concatenate=;
SET _qvctemp.v.IncludeExtension=;
///$tab Calendar Set Variables
IF $(Qvc.Calendar.v.CreateSetVariables) THEN // If SA variables requested,

Expand Down Expand Up @@ -196,7 +197,15 @@ MapSubString('_qvctemp.Calendar.EscapeCharsMap',
;

// Create a convienence variable we will use to form the variables
SET _qvctemp.vMaxModifier = 'Max({1<_Qvc.DummyField=@(_Qvc.Calendar.v.SelectedFieldList_$(_fieldPrefix))>}';
SET _qvctemp.vMaxModifier = 'Max({1<_Qvc.DummyField=@(_Qvc.Calendar.v.SelectedFieldList_$(_fieldPrefix))>}';

IF '$(Qvc.Global.v.QlikProduct)' = 'VIEW' OR len('$(Qvc.Global.Extension.Directory)')> 0 THEN
LET _qvctemp.v.IncludeExtension = replace(
'@(Include=@(Qvc.Global.Extension.Directory)\@(Qvc.Calendar.v.ExtSetVariables))'
,'@','$');
ELSE
SET _qvctemp.v.IncludeExtension=;
ENDIF

REM Create the Set Analysis variables;

Expand Down Expand Up @@ -340,7 +349,7 @@ MapSubString('_qvctemp.Calendar.EscapeCharsMap',
);

// Include possible extension to create additional Set variables.
$(Include=$(Qvc.Global.Extension.Directory)\$(Qvc.Calendar.v.ExtSetVariables));
$(_qvctemp.v.IncludeExtension);

SET _vClearFieldList=;
SET _qvctemp.vMaxModifier=;
Expand Down

0 comments on commit 69750a8

Please sign in to comment.