Hi folks,
Hope you can help me with this one,
I have an ‘Object1’ which is of ‘Numeric’ datatype and it contains a where condition.
I want to create an ‘ALL’ object where if you select the ALL value will display all the LOV’s of the ‘Object1’.
I created an object called ‘Object2’ for the ALL object,with the sql given in FAQ’s in the forum like the following,
SELECT ‘ALL’ UNION SELECT Distinct CAST(Object1 as varchar) “since Object1 is of numeric value” from table1 where condition1.
Now I also created a condition for ‘ALL’ condition just like in FAQ’s,
(@Select(Class2\Object2) IN @Prompt(‘Enter …’,‘C’,‘Class2\Object2’,MULTI,free))
OR
( ‘ALL’ IN @Prompt(‘Enter…’,‘C’,‘Class2\Object2’,MULTI,free))
Apart from doing this I am getting an error message,
Exception: DBD, [Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the varchar value ‘[ALL]’ to a column of data type int.State: 22018.
How can i resolve it?
I am using MS SQL Server as my Database or back end .
kart1981 (BOB member since 2006-10-24)