Thank U Rashed,
Can u just explain about ADO and how can i use the sql statement in CAL coding. Is it possible to get connection string directly from Navision itself. if its possible please pate sample code here.
With Regards,
Michael S.
And yes you can create the connection string from NAV. Almost all the info is available in session table. I'm assuming you are running on sql. The only you need is a separate login and pw which you can create in a setup table.
Ahmed Rashed Amini
Independent Consultant/Developer
Comments
RIS Plus, LLC
MVP - Business Apps
did you try this:
MyTable.SETFILTER(Field1, Value1);
MyTable.SETFILTER(Field2, Value2);
works great for me...
Denis Petrov.
The main request Michael posted was the word "or"
The code
means field1=value1 and field2=value2.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Field1=Value1 and Field2=Value2
Field1=Value1 and Fields2<>Value2
Field1<>Value1 and Field2=Value2
At each stage can copy to a temporary table/buffer and present this
But all depends on your requirements and objectives.
Apologies if I've missed the point
He can also use ADO and run the sql statement.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Can u just explain about ADO and how can i use the sql statement in CAL coding. Is it possible to get connection string directly from Navision itself. if its possible please pate sample code here.
With Regards,
Michael S.
viewtopic.php?f=5&t=23038&hilit=recordset
And yes you can create the connection string from NAV. Almost all the info is available in session table. I'm assuming you are running on sql. The only you need is a separate login and pw which you can create in a setup table.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n