Hi,
I put an object into the session properties with:
MyClass is just a testClass with a method returning a Long and expecting an argument (DSRequest):
In my template I put the following:
But I get:
So how to do this ? Call the method getLong() and give as an argument the DSRequest.
Using smartgwt 6.1p power
I put an object into the session properties with:
Code:
session.setAttribute("myObject", new MyClass());
Code:
public class MyClass { public Long getLong(DSRequest dsRequest) { return 4l; } }
Code:
<operationBinding operationType="fetch"> <whereClause><![CDATA[ employeeId = ((com.smartgwt.sample.server.MyClass)$session.get("myObject")).getLong($dsRequest) ]]></whereClause> </operationBinding>
Code:
SELECT COUNT(*) FROM employeeTable WHERE employeeId = ((com.smartgwt.sample.server.MyClass)'com.smartgwt.sample.server.MyClass@41c7d866').getLong('com.isomorphic.datasource.DSRequest@18ad63cb')
Using smartgwt 6.1p power
Comment