Skip to content

Instantly share code, notes, and snippets.

@hasokeric
Created August 30, 2023 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasokeric/254a3aa4bc48b5c343c0d3412f0b6f6b to your computer and use it in GitHub Desktop.
Save hasokeric/254a3aa4bc48b5c343c0d3412f0b6f6b to your computer and use it in GitHub Desktop.
GetNewBase UBAQ
//var x = defaultImpl.CreateEmpty(result);
//this.resultHolder.Attach(QueryResultDataSetUbaqTableset.FromDataSet(result));
ResultsUbaqRow row = (ResultsUbaqRow)result.Results.NewRow();
row.SysRowID = Guid.NewGuid();
row.Calculated_RowStatus = "Meow";
row.RowIdent = row.SysRowID.ToString();
row.RowMod = "A";
var z = ((ResultsUbaqTable)result.Results);
((ResultsUbaqTable)result.Results).Add(row);
Ice.Diagnostics.Log.WriteEntry("Inside NEWwwwwwwwwwwwwwwwwwwwww");
var ttResult = result.Results.FirstOrDefault();
if (ttResult != null)
{
ttResult.OrderRel_Company = Constants.CurrentCompany;
ttResult.Calculated_RowStatus = "UNCOMMITTED";
//ttResult.RowIdent = ttResult.SysRowID.ToString();
//ttResult.RowMod = "A";
Ice.Diagnostics.Log.WriteEntry($"RowIdent: {ttResult.RowIdent}");
}
//this.resultHolder.Attach(result);
@hasokeric
Copy link
Author

LogParams

// Logging for the time being we can remove later
foreach (var row in executionParams.ExecutionParameter)
{
  Ice.Diagnostics.Log.WriteEntry($"ParamID: {row.ParameterID} - Value: {row.ParameterValue} - IsEmpty: {row.IsEmpty} - RowMod: {row.RowMod}");
  Ice.Diagnostics.Log.WriteEntry($"Character02: {callContextBpmData.Character02}");
  Ice.Diagnostics.Log.WriteEntry($"Checkbox01: {callContextBpmData.Checkbox01}");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment