Help get this topic noticed by sharing it on Twitter, Facebook, or email.

BUG. CoT 8.7.10/Unlimited/touch UI/c#/.Net 4.6 $app.touch.show ignores filter when page is filtered by url query parameter

How to replicate the bug:

1.- Create Northwind app (c#, spa, touch UI)
2.- Add Customers and Orders to Model
3.- In Orders/Actions/ag1(grid) add:
CommandName = Custom
CommandArgument = EditCustomer
HeaderText = Edit Customer Data
4.- In Orders/BusinessRules add:
CommandName = Custom
CommandArgument = EditCustomer
Type = JavaScript
Phase = Execute
Script =

$app.touch.show({
controller: 'Customers'
,startCommand: 'Select'
,startArgument: 'editForm1'
,filter: [
{ name: 'CustomerID', value: $row.CustomerID }
]
})

5.- Generate and run
6.- Click on Orders menu option
7.- Select "Edit Customer Data" for any row
8.- Correct customer form is rendered
9.- Now, change url to:
http://localhost:xxxx/pages/orders?ShipCity=Lyon

10.- Only those orders shipped to Lyon should appear
11.- Select "Edit Customer Data" for any row
12.- CustomerID filter is ignored, the first available customer is rendered instead

Best regards,

Roberto
2 people have
this problem
+1
Reply