By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,913 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,913 IT Pros & Developers. It's quick & easy.

RowFilter Syntax on a DataView Using Stored SQL Function

P: 1
I am trying to apply a RowFilter to a DataView as follows:

Expand|Select|Wrap|Line Numbers
  1. Dim dataViews1 As DataView = New DataView(pdataTable, str, "", DataViewRowState.CurrentRows)
where str is:

Expand|Select|Wrap|Line Numbers
  1. AGENT = '00463' AND  'Protest' = (Select RtnVal = Support.dbo.fn_OAS_ProtestWithdrawFilter ('Protest', '13013', '13013', HRG_STATUS, Protest_Date, w.WD_Status, F_Sched_Date, Can_Protest, HCAD_Can_Protest, PT_Protest_Status))
I am getting a syntax error which states:

Missing operand after 'RtnVal' operator

As you can see, in order to properly filter the data I need to pass some of the row columns through the SQL stored function "Support.dbo.fn_OAS_ProtestWithdrawFilter". This function performs a test on the values passed to it and returns a value ('Protest') if the row data is protestable. Can I execute this function using the DataView functionality? If not, are there any alternatives?
Sep 13 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.