Skip to content

Commit

Permalink
Minor bug fix with save control
Browse files Browse the repository at this point in the history
  • Loading branch information
N-thony committed Aug 10, 2023
1 parent ff9a5c4 commit ccfe12c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 35 deletions.
50 changes: 25 additions & 25 deletions instat/dlgDescribeTwoVariable.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 21 additions & 10 deletions instat/dlgDescribeTwoVariable.vb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Public Class dlgDescribeTwoVariable
ucrReceiverColumnFactor.Selector = ucrSelectorDescribeTwoVar
ucrReceiverColumnFactor.SetDataType("factor")

ucrSaveTable.SetPrefix("summary_table")
'ucrSaveTable.SetPrefix("summary_table")
ucrSaveTable.SetDataFrameSelector(ucrSelectorDescribeTwoVar.ucrAvailableDataFrames)
ucrSaveTable.SetIsTextBox()

Expand Down Expand Up @@ -348,6 +348,7 @@ Public Class dlgDescribeTwoVariable

clsThreeVariableCombineFrequencyParametersFunction.SetRCommand("c")

ucrBase.clsRsyntax.ClearCodes()
ucrBase.clsRsyntax.SetBaseROperator(clsGroupByPipeOperator)
bResetSubdialog = True
End Sub
Expand All @@ -363,7 +364,7 @@ Public Class dlgDescribeTwoVariable

ucrSelectorDescribeTwoVar.AddAdditionalCodeParameterPair(clsRAnovaFunction, ucrSelectorDescribeTwoVar.GetParameter(), iAdditionalPairNo:=1)
ucrSelectorDescribeTwoVar.AddAdditionalCodeParameterPair(clsSummaryTableFunction, ucrSelectorDescribeTwoVar.GetParameter(), iAdditionalPairNo:=2)
ucrSaveTable.AddAdditionalRCode(clsGroupByPipeOperator, iAdditionalPairNo:=1)
ucrSaveTable.AddAdditionalRCode(clsJoiningPipeOperator, iAdditionalPairNo:=1)

ucrChkOmitMissing.SetRCode(clsSummaryTableFunction, bReset)
ucrReceiverFirstVars.SetRCode(clsSummaryTableFunction, bReset)
Expand All @@ -379,7 +380,7 @@ Public Class dlgDescribeTwoVariable
ucrReceiverThreeVariableThirdVariable.SetRCode(clsSummaryTableCombineFactorsFunction, bReset)
ucrPnlColumnFactor.SetRCode(clsDummyFunction, bReset)
ucrChkDisplayMargins.SetRCode(clsCombineFrequencyParametersFunction, bReset)
ucrSaveTable.SetRCode(clsJoiningPipeOperator, bReset)
ucrSaveTable.SetRCode(clsGroupByPipeOperator, bReset)
bRcodeSet = True

FillListView()
Expand Down Expand Up @@ -465,16 +466,16 @@ Public Class dlgDescribeTwoVariable
clsDummyFunction.AddParameter("checked", "skim", iPosition:=0)

ucrSaveTable.Visible = True
'ucrSaveTable.SetPrefix("summary_table")
ucrSaveTable.SetPrefix("summary_table")
ucrSaveTable.SetSaveType(RObjectTypeLabel.Summary, strRObjectFormat:=RObjectFormat.Text)
ucrSaveTable.SetAssignToIfUncheckedValue("last_summary")
ucrSaveTable.SetCheckBoxText("Save Summary")
ucrBase.clsRsyntax.SetBaseROperator(clsGroupByPipeOperator)
'clsGroupByPipeOperator.SetAssignToOutputObject(strRObjectToAssignTo:="last_summary",
' strRObjectTypeLabelToAssignTo:=RObjectTypeLabel.Summary,
' strRObjectFormatToAssignTo:=RObjectFormat.Text,
' strRDataFrameNameToAddObjectTo:=ucrSelectorDescribeTwoVar.strCurrentDataFrame,
' strObjectName:="last_summary")
clsGroupByPipeOperator.SetAssignToOutputObject(strRObjectToAssignTo:="last_summary",
strRObjectTypeLabelToAssignTo:=RObjectTypeLabel.Summary,
strRObjectFormatToAssignTo:=RObjectFormat.Text,
strRDataFrameNameToAddObjectTo:=ucrSelectorDescribeTwoVar.strCurrentDataFrame,
strObjectName:="last_summary")

ElseIf rdoTwoVariable.Checked Then
clsDummyFunction.AddParameter("checked", "customize", iPosition:=0)
Expand All @@ -492,6 +493,11 @@ Public Class dlgDescribeTwoVariable
ucrSaveTable.SetSaveType(RObjectTypeLabel.Table, strRObjectFormat:=RObjectFormat.Html)
ucrSaveTable.SetAssignToIfUncheckedValue("last_table")
ucrSaveTable.SetCheckBoxText("Save Table")
clsJoiningPipeOperator.SetAssignToOutputObject(strRObjectToAssignTo:="last_table",
strRObjectTypeLabelToAssignTo:=RObjectTypeLabel.Table,
strRObjectFormatToAssignTo:=RObjectFormat.Text,
strRDataFrameNameToAddObjectTo:=ucrSelectorDescribeTwoVar.strCurrentDataFrame,
strObjectName:="last_table")
ElseIf IsFactorByFactor() Then
ucrSaveTable.Visible = True
clsDummyFunction.AddParameter("factor_cols", "FactorVar", iPosition:=1)
Expand All @@ -500,6 +506,11 @@ Public Class dlgDescribeTwoVariable
ucrSaveTable.SetSaveType(RObjectTypeLabel.Table, strRObjectFormat:=RObjectFormat.Html)
ucrSaveTable.SetAssignToIfUncheckedValue("last_table")
ucrSaveTable.SetCheckBoxText("Save Table")
clsJoiningPipeOperator.SetAssignToOutputObject(strRObjectToAssignTo:="last_table",
strRObjectTypeLabelToAssignTo:=RObjectTypeLabel.Table,
strRObjectFormatToAssignTo:=RObjectFormat.Text,
strRDataFrameNameToAddObjectTo:=ucrSelectorDescribeTwoVar.strCurrentDataFrame,
strObjectName:="last_table")
End If
ElseIf rdoThreeVariable.Checked Then
clsDummyFunction.AddParameter("checked", "three_variable", iPosition:=0)
Expand Down Expand Up @@ -581,7 +592,7 @@ Public Class dlgDescribeTwoVariable
lblSecondType.Location = New Point(12, 33)
lblSecondBy.Visible = True
Else
ucrSaveTable.Location = New Point(10, 457)
ucrSaveTable.Location = New Point(23, 686)
ucrReceiverFirstVars.SetSingleTypeStatus(True, bIsCategoricalNumeric:=True)
lblThreeVariableCategorical.Visible = False
lblThreeVariableCategorical.Location = New Point(12, 33)
Expand Down

0 comments on commit ccfe12c

Please sign in to comment.