That did it –
Thanks!!!
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, March 17, 2015 3:12 PM
To: Vantage
Subject: Re: [Vantage] E10 DynamicQuery in external Application
​Looks like your Execution-filter table is not instantiated
Try adding
QeT.ExecutionFielter = new ....
Before you call the add method.​
On Tue, Mar 17, 2015 at 3:05 PM, bwalker@... [vantage] <vantage@yahoogroups.com> wrote:
Has anyone tried to use a dynamic query in an external application?
I am running into an Object Null exception and I am having a difficult time trying to decipher why.
Code:
QueryExecutionTableset qeT = new QueryExecutionTableset();
ExecutionFilterRow qeR = new ExecutionFilterRow();
qeR.DataTableID = "JobMtl";
qeR.FieldName = "JobNum";
qeR.CompOp = "=";
qeR.RValue = txtJobNum.Text;
qeR.RowMod = "A";
qeR.SysRowID = Guid.NewGuid();
qeT.ExecutionFilter.Add(qeR); <- Object reference not set to an instance of an object.