(from row in dt
group row by a= row(“PR”).tostring.Trim, b=Row(“ir”).tostring.trim into grp=group where grp.count=1
select grp.First
).copytodatatable
I wrote this query in dt_dt1 variable
but errors coming row is not there in context, group is not there etc
is there any package need to install to use group by functions
Hi,
Can u please help me
What I am trying to do is:
for same purchase req, same suppliercode same make poto either supplier or ts
the itemof requestions need to combine
and also for different one also need to add
(From row In dtData1.AsEnumerable
Group row By a= row(“PR”).tostring.Trim, b=Row(“SCODE”).tostring.trim, c = row("MAKEPOTO").toString.Trim.ToUpper Into grp=Group
Let jir = String.Join(",",grp.Select(Function (x) x("IR")))
Let ra = New Object() {a,jir,b,c}
Select r = dtResult.Rows.Add(ra)).CopyToDataTable
Error ERROR Validation Error ) expected
; expected
Unexpected character ‘“’
Syntax error, ‘,’ expected
Unexpected character ‘”’
} expected
The name ‘From’ does not exist in the current context
The type or namespace name ‘row’ could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name ‘dt_data1’ could not be found (are you missing a using directive or an assembly reference?)
The name ‘a’ does not exist in the current context
The name ‘row’ does not exist in the current context
The name ‘Purchase’ does not exist in the current context
The name ‘Requisition’ does not exist in the current context
The name ‘b’ does not exist in the current context
The name ‘Row’ does not exist in the current context
The name ‘sode’ does not exist in the current context
The name ‘c’ does not exist in the current context
The type or namespace name ‘Into’ could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name ‘Let’ could not be found (are you missing a using directive or an assembly reference?)
Non-invocable member ‘Function’ cannot be used like a method.
The name ‘x’ does not exist in the current context
Using the generic type ‘New’ requires 1 type arguments
Non-invocable member ‘object’ cannot be used like a method.
‘Select’ is inaccessible due to its protection level
The name ‘CopyToDataTable’ does not exist in the current context
Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement comb.xaml
this type errors I was facing, any idea on this @ppr