Currently the pivotUIOptions cols,rows and vals are made available in Delphi
- Code: Select all
function TIWCGJQPivotUIOptions.GetFixedScript(AIWCGJSonFunc: TIWCGJSonFunc; var AInsertFirst: Boolean): string;
begin
Result:= '';
if AIWCGJSonFunc.MemberName = 'onRefresh' then
begin
Result:= Format('var $ops = %s.data("pivotUIOptions");',[CGJSContainer.IDJQuery]) + CGIfDebug(sLineBreak);
Result:= Result + Format('CGSetHiddenInputVal("%s",$ops.cols.toString());',[CGJSContainer.HTMLName + InputColsSuffix]) + CGIfDebug(sLineBreak);
Result:= Result + Format('CGSetHiddenInputVal("%s",$ops.rows.toString());',[CGJSContainer.HTMLName + InputRowsSuffix]) + CGIfDebug(sLineBreak);
Result:= Result + Format('CGSetHiddenInputVal("%s",$ops.vals.toString());',[CGJSContainer.HTMLName + InputValsSuffix]) + CGIfDebug(sLineBreak);
Result:= Result + 'return true;';
end;
end;
Can you please add the selected AggregatorName and RenderName to it.
Why?
I would like to save all these (rows,cols,vals , AggregatorName and RenderName) values to next time the pivot is shown, the pivot show itself with same settings as user left it.
Eric