Quantcast
Channel: SmartClient Forums
Viewing all 4756 articles
Browse latest View live

Converting Maven project to GWT Multi Module project

$
0
0
Hi, I am new to GWT and Smart GWT. How can I convert multi Maven module project to GWT/SmartGWT Project.

Please point me to correct forum if this is not correct forum for this.

ViewState fires changes at the initialization

$
0
0
I tried to initialize a list grid with a view state I saved before. Problem is, the list grid immediately fires changed events (e.g. fieldStateChanged, viewStateChanged and groupStateChanged), which shouldn't happen, innit?

The definition of the listgrid is currently this:
Code:

isc.ListGrid.create({
        "fieldStateChanged" : function ()
        {
                console.log('Field state changed')
        },
        "groupStateChanged" : function ()
        {
                console.log('Group state changed')
        },
        "fields" :
        [
                {
                        "name" : "field"
                }
        ],
        "viewState" :
        {
                field :
                [
                        {
                                name:"field",
                                width:80
                        }
                ]
        },
})

Best Regards

Error coming in SmartGWT EE trial while using PDF export feature

$
0
0
I am evaluating the trial version of SmartGWT EE for our web application. I am getting an error while using the PDF export feature of SmartGWT EE. The same configuration is working for sample test application but in main application it seems that it is not able to read project.properties and server.properties while server.properties is available in classes directory. The complete Error stack trace is below.


ISC: Configuring log4j from: file:/D:/iiss_source/Tomcat7/webapps/iiss/WEB-INF/classes/log4j.isc.config.xml
=== 2014-12-11 21:26:09,788 [c-19] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2014-12-11 21:26:09,793 [c-19] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2014-12-11 21:26:09,905 [c-19] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/D:/iiss_source/Tomcat7/webapps/iiss/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2014-12-11 21:26:09,906 [c-19] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2014-12-11 21:26:09,906 [c-19] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2014-12-11 21:26:09,910 [c-19] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/D:/iiss_source/Tomcat7/webapps/iiss/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2014-12-11 21:26:09,910 [c-19] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2014-12-11 21:26:09,911 [c-19] INFO ConfigLoader - Unable to locate server.properties in CLASSPATH
=== 2014-12-11 21:26:09,916 [c-19] INFO ConfigLoader - Attempting to load server.properties from __USE_CONTAINER__/WEB-INF/classes
=== 2014-12-11 21:26:09,916 [c-19] INFO ConfigLoader - Unable to locate server.properties in __USE_CONTAINER__/WEB-INF/classes
=== 2014-12-11 21:26:09,916 [c-19] INFO ConfigLoader - Attempting to load server.properties from __USE_CONTAINER__/isomorphicConfig
=== 2014-12-11 21:26:09,916 [c-19] INFO ConfigLoader - Unable to locate server.properties in __USE_CONTAINER__/isomorphicConfig
=== 2014-12-11 21:26:09,916 [c-19] INFO ConfigLoader - Unable to load server.properties
=== 2014-12-11 21:26:09,919 [c-19] INFO Logger - Logging system started.
=== 2014-12-11 21:26:09,920 [c-19] ERROR ISCInit - Can't find marker file for webRoot: D:/iiss_source/Tomcat7/webapps/iiss/isomorphic for configured/autodetected webRoot - if you moved the 'isomorphic' directory, please set isomorphicPathRootRelative in server.properties to the new location and restart the servlet engine.
=== 2014-12-11 21:26:09,921 [c-19] INFO ISCInit - WebRoot auto-detection failed - using container IO
=== 2014-12-11 21:26:09,921 [c-19] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v10.0p_2014-11-23/EVAL Deployment 2014-11-23) - Initialization Complete
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: host:localhost:8080
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: user-agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: accept-language:en-US,en;q=0.5
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: accept-encoding:gzip, deflate
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: referer:http://localhost:8080/iiss/
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: cookie:GLog=%7B%0D%20%20%20%20trackRPC%3Afalse%0D%7D
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: connection:keep-alive
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: content-type:application/x-www-form-urlencoded
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - Header Name:Value pair: content-length:11457
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - session exists: null
=== 2014-12-11 21:26:10,158 [c-19] DEBUG IDACall - remote user: null
=== 2014-12-11 21:26:10,178 [c-19] DEBUG ConfigParser - Matched var name: debug
=== 2014-12-11 21:26:10,179 [c-19] DEBUG ConfigParser - value after substitution: true
=== 2014-12-11 21:26:10,182 [c-19] INFO RequestContext - URL: '/iiss/iiss/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0': Moz (Gecko) with Accept-Encoding header
=== 2014-12-11 21:26:10,228 [c-19] DEBUG XML - Parsed XML from (in memory stream): 4ms
=== 2014-12-11 21:26:10,335 [c-19] DEBUG ConfigParser - Matched var name: isomorphicDir
=== 2014-12-11 21:26:10,336 [c-19] DEBUG ConfigParser - Matched var name: isomorphicPathRootRelative
=== 2014-12-11 21:26:10,336 [c-19] DEBUG ConfigParser - value after substitution: isomorphic
=== 2014-12-11 21:26:10,337 [c-19] DEBUG ConfigParser - Matched var name: webRoot
=== 2014-12-11 21:26:10,337 [c-19] DEBUG ConfigParser - value after substitution: __USE_CONTAINER__/isomorphic
=== 2014-12-11 21:26:10,337 [c-19] DEBUG ConfigParser - value after substitution: __USE_CONTAINER__/isomorphic/system/schema
Problem loading builtinTypes.xml
Exception when loading from __USE_CONTAINER__/isomorphic/system/schema/builtinTypes.xml:
java.lang.NullPointerException
at com.isomorphic.io.ISCFile.lastModified(ISCFile.java:519)
at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:140)
at com.isomorphic.xml.XML.getXMLDocument(XML.java:286)
at com.isomorphic.xml.XML.toDSRecords(XML.java:294)
at com.isomorphic.xml.XML.toDSRecords(XML.java:298)
at com.isomorphic.xml.XML.toDSRecords(XML.java:303)
at com.isomorphic.datasource.DataSource.<clinit>(DataSource.java:990)
at com.isomorphic.xml.XML.toDSRecords(XML.java:363)
at com.isomorphic.xml.XML.toDSRecords(XML.java:349)
at com.isomorphic.xml.XML.toDSRecords(XML.java:345)
at com.isomorphic.xml.XML.toDSRecords(XML.java:328)
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2325)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:333)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:313)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:129)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

=== 2014-12-11 21:26:10,403 [c-19] INFO PoolManager - SmartClient pooling started for 'transaction' objects
=== 2014-12-11 21:26:10,403 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'transaction'
=== 2014-12-11 21:26:10,406 [c-19] DEBUG ConfigParser - Matched var name: webRoot
=== 2014-12-11 21:26:10,408 [c-19] DEBUG ConfigParser - value after substitution: __USE_CONTAINER__/shared/ds
=== 2014-12-11 21:26:10,414 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'transaction' in the pooling flow
=== 2014-12-11 21:26:10,415 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'Object'
=== 2014-12-11 21:26:10,430 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource 1 of type 'Object' and assigned it to thread http-bio-8080-exec-19
=== 2014-12-11 21:26:10,430 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource 1 of type 'Object' in the pooling flow
=== 2014-12-11 21:26:10,430 [c-19] DEBUG PoolableDataSourceFactory - Activated DataSource 1 of type 'Object'
=== 2014-12-11 21:26:10,432 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'long'
=== 2014-12-11 21:26:10,432 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'long' in the pooling flow
=== 2014-12-11 21:26:10,433 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'transactionNum'
=== 2014-12-11 21:26:10,433 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'transactionNum' in the pooling flow
=== 2014-12-11 21:26:10,434 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'List'
=== 2014-12-11 21:26:10,434 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'List' in the pooling flow
=== 2014-12-11 21:26:10,434 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'elem'
=== 2014-12-11 21:26:10,435 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'elem' in the pooling flow
=== 2014-12-11 21:26:10,435 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'operations'
=== 2014-12-11 21:26:10,435 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'operations' in the pooling flow
=== 2014-12-11 21:26:10,438 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'arguments'
=== 2014-12-11 21:26:10,439 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'arguments' in the pooling flow
=== 2014-12-11 21:26:10,440 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'boolean'
=== 2014-12-11 21:26:10,441 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'boolean' in the pooling flow
=== 2014-12-11 21:26:10,441 [c-19] DEBUG ISCKeyedObjectPool - Borrowing object for 'is_ISC_RPC_DMI'
=== 2014-12-11 21:26:10,441 [c-19] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'is_ISC_RPC_DMI' in the pooling flow
=== 2014-12-11 21:26:10,443 [c-19] ERROR IDACall - com.isomorphic.servlet.IDACall top-level exception
java.lang.ClassCastException: com.isomorphic.js.JSExpression cannot be cast to java.lang.Long
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2337)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:333)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:313)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:129)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
=== 2014-12-11 21:26:10,445 [c-19] DEBUG ConfigParser - Matched var name: debug
=== 2014-12-11 21:26:10,445 [c-19] DEBUG ConfigParser - value after substitution: true




I am using :
GWT - 2.4.0
Smart GWT - 5.0p
Server - Tomcat
Browser - Firefox

Please help as we have a scheduled demo on coming Monday.

Thanks !!
Kapil

While adding columns in IE, scroll bar for column list menu goes to very top on secon

$
0
0
Be sure your post includes:

1.: v9.1p_2014-09-30/Pro Deployment (built 2014-09-30)

2. IE Version 11.0.9600.17420CO

3. Steps to reproduce -

a. Please open the following link in the above mentioned version of IE
www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html#WSDLDataSource

b. make the window small enough to ensure that when a context menu to add/remove column has a scrollbar to it.
c. Scroll to the very bottom and click on the last column name
d. Click again on the same column, you will notice on your second click scroll bar shoot to very top.

If any more information is needed please let me know.

Thanks in advance

RESTHandler - warnings

$
0
0
SmartGWT 5.0p

I see the following when accessing my RESTHandler servlet:

WARN [com.isomorphic.servlet.RequestContext]...Content type has already been set to text/html; charset=UTF-8 - setting to application/json

We define the servlet with:

defaultDataFormat = json
dynamicDataFormatParamName = theDataFormat
wrapJSONResponses = false

The calls are successful, but is there any way to fix these warnings?

GWT: Decoupling Client code dependency in Server Code

$
0
0
My requirement is to modularize existing GWT application so that whenever required Client code can be updated and just hot fix for Client jar can be done rather than complete application war deployment.


To achieve above requirement I modularize my existing Smart GWT code into Parent-Child modules where Child modules will be Server, Client and Shared Modules. Client, Server, Shared package of application will be present in Client, Server, Shared modules respectively.

I am packaging:-
Server Module in war.
Client Module in Jar,
Shared Module in jar as well as jar containing Source code.

I put dependencies relative to Shared package in Client and Server Module code as both will be accessing Shared Module codebase.

But when i am introducing Server Module's dependency in Client Module I am getting compilation errors in Server Module as this is against GWT convention wherein Client interface is extended in Server implementation.

Can you please help me out how can i introduce server dependency in client module to achieve my requirement.

Do let me know if you need my POC code for reference.

Dual Axis FacetChart with two columns

$
0
0
SmartClient Version: v9.1p_2014-08-29/Pro Deployment (built 2014-08-29)

Hi, I am trying to create a dual axis facet chart like the one in this example: http://www.smartclient.com/smartgwte...ualAxisChartMA but I would like both axis values to be displayed as columns.

I tried setting the ChartType.COLUMN on the extra axis settings but then the 2 columns are overlapping eachother. (see picture)

I would like them to be placed next to eachother, is this possible?

Attached Images
File Type: png dualAxisError.PNG (18.0 KB)

Something other than an int was returned

$
0
0
I am using smartgwt-4.1p and explorer 11. I keep getting this error only on treegrid objects. When used with ListGrid objects this call works fine. Any thoughts.

com.google.gwt.event.shared.UmbrellaException: Exception caught: Something other than an int was returned from JSNI method '@com.smartgwt.client.widgets.grid.events.DataArrivedEvent::getEndRow()': JS value of type undefined, expected int

See my call below

Code:

TreeGrid treeGrid = new TreeGrid(); ...

treeGrid.setDataFetchMode(FetchMode.BASIC);
treeGrid.setWidth100();
treeGrid.setHeight("95%");

treeGrid.addDataArrivedHandler(new DataArrivedHandler(){

                        @Override
                        public void onDataArrived(DataArrivedEvent event) {
                                counter = -1;
                                dataSize = event.getEndRow();
                               
                        }
                       
                });

STACK TRACE

com.google.gwt.event.shared.UmbrellaException: Exception caught: Something other than an int was returned from JSNI method '@com.smartgwt.client.widgets.grid.events.DataArrivedEvent::getEndRow()': JS value of type undefined, expected int
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.data.DataSource.processResponse(DataSource.java)
at com.emiracore.emdocs.client.data.ds.NavigationDataRPCDS$1.onSuccess(NavigationDataRPCDS.java:99)
at com.emiracore.emdocs.client.data.ds.NavigationDataRPCDS$1.onSuccess(NavigationDataRPCDS.java:1)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:259)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:745)

Click method ignored in FacetChart

$
0
0
We are running some code in production that used to work, but doesn't seem to work any more. We have a method that ran on click of a FacetChart bar, but the click is completely ignored in Firefox 33+, Chrome 39.0.2171.65, and IE 11.0.9600.17420.

Is this a bug, or am I doing something wrong here?

Prod SC version (where it works): v9.0p_2014-01-29/Pro Deployment (built 2014-01-29)
Dev SC version (code attached): v9.1p_2014-06-26/Pro Development Only (built 2014-06-26)

Code:

<!doctype html>
<html>
<head>
        <SCRIPT>var isomorphicDir="../../isomorphic/";</SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_History.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Core.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Foundation.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Containers.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Grids.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Forms.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_DataBinding.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Calendar.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_RichTextEditor.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_PluginBridges.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Drawing.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/system/modules/ISC_Charts.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/skins/Enterprise/load_skin.js?isc_version=v9.1p_2014-06-26.js></SCRIPT>

<body>
        <script>

var chartData = [
        {region: "West",  product: "Cars", sales: 37},
        {region: "North", product: "Cars", sales: 29},
        {region: "East",  product: "Cars", sales: 80},
        {region: "South", product: "Cars", sales: 87},
]

        isc.defineClass("DriverDrawRect","DrawRect").addProperties({
                canHover: true,
                showHover: true,
                cursor: "pointer",
                lineWidth: 1,
                rounding: 0.5,
                lineCap: "round",
        });

        isc.DriverDrawRect.create({
                ID: "barChartProperties",
                click: function() {
                                console.log("Clicked");
                        }
        });
isc.FacetChart.create({
        ID: "simpleChart",
        height: "400px",
        width: "400px",
        barProperties: barChartProperties,
        // You use facets to define the ways in which you would like the chart to
        // break down the data. In this case, our data has two dimensions: region and product.
        facets: [{
                id: "region",    // the key used for this facet in the data above
                title: "Region"  // the user-visible title you want in the chart
        },{
                id: "product",
                title: "Product"
        }],
        data: chartData,        // a reference to our data above
        valueProperty: "sales", // the property in our data that is the numerical value to chart
        chartType: "Bar",
        title: "Sales by Product and Region"  // a title for the chart as a whole
});

// Overall layout

isc.VLayout.create({
        ID: "simpleChartLayout",
        width: "100%",
        height: "100%",
        membersMargin: 20,
        members: [simpleChart]
});


                </script>
</body>
</html>

Time validation are not present

$
0
0
Hi,
we are using Smart Gwt-4.1p (23rd May 2014)
Browser: Chrome 39.0.2171.95 m, IE10 and IE11
Please go through the below link for reference:
http://www.smartclient.com/smartgwt/showcase/#form_controls_various
Issue: Time validation are not present.
Steps to reproduce:
1. Inside “Date Control” block, Relative Date are present.
2. Click on dateTime picker. Now select any date and time.
3. After selection of date and time just modify the time like (HH:MM) 54:58 or some invalid value and save. Please refer attached image “TimeValidation.png”.
4. Now you may see in the right side date time display. It’s not validating for invalid time instead of that it’s displaying something else.

Please let us know if there is any property or API to validate the time.


Thank you

Attached Images
File Type: png TimeValidation.png (21.6 KB)

ListGridField.canHilite not working

$
0
0
Be sure your post includes:

1.SmartClient Version: v10.0p_2014-10-26/LGPL Development Only (built 2014-10-26)

2. FF 24.8.0 on Gentoo linux

3.

4.

5.

6. sample code if applicable
Code:

package pl.com.tech4.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.fields.DataSourceTextField;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;

public class MainEntryPoint implements EntryPoint {
   
    public void onModuleLoad() {

        DOM.getElementById("loadingPicture").removeFromParent();
        layout();
        SC.showConsole();
    }
   
    private void layout() {
       
        final DataSource ds = new DataSource();
        DataSourceField fieldId = new DataSourceField();
        fieldId.setName("id");
        fieldId.setPrimaryKey(true);
        fieldId.setHidden(true);
        DataSourceTextField fieldCode = new DataSourceTextField();
        fieldCode.setName("code");
        DataSourceTextField fieldDescription = new DataSourceTextField();
        fieldDescription.setName("description");
        ds.setFields(fieldId, fieldCode, fieldDescription);
       
        ListGrid lg = new ListGrid();
        ListGridField lgfDescription = new ListGridField("description");
        lgfDescription.setCanHilite(false);
        lg.setFields(lgfDescription);
        lg.setDataSource(ds);
        lg.editHilites();

        lg.draw();
    }
}

This problem has been also mentioned in this unanswered post.
Thanks,
MichalG

Attached Images
File Type: png canHilite.png (7.6 KB)

problem with Dashboard

$
0
0
SmartClient Version: v10.0p_2014-12-13/EVAL Development Only (expires 2015.02.11_12.43.38) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

Hello, while trying the #portalDashboard sample I noticed in the developer console logs that it's always loading the datasource definitions with the dashboard layout:
Code:

12:03:29.428:XRP2:WARN:Log:ClassFactory.addGlobalID: ID:'supplyItem' for object '[DataSource ID:supplyItem]' collides with ID of existing object '[DataSource ID:supplyItem]'. The global reference to this object will be replaced
So I've modified the saveDashboard method like this:
Code:

    saveDashboard : function () {
        var editNodes = editPane.serializeAllEditNodes({ indent: false, serverless: true });
....

I understand that serverless:true is the correct setting if the dataSources are already available in the application (correct me if I'm wrong)

Now, if I create a new dashboard, then add 'animals', and save, the layout is saved without the datasource:
Code:

{
    dataSource:"dashboards",
    operationType:"update",
    componentId:"dashboardList",
    data:{
        id:3,
        description:"New dashboard",
        layout:"\r<ListGrid dataSource=\"animals\" autoFetchData=\"true\" ID=\"ListGrid0\" autoDraw=\"false\">\r<showFilterEditor>true</showFilterEditor>\r\r</ListGrid>\n\n\r<Portlet ID=\"Portlet0\" height=\"482\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<destroyOnClose>true</destroyOnClose>\r<title>Animals</title>\r<items><Canvas ref=\"ListGrid0\"/>\r</items>\r\r</Portlet>\n\n\r<PortalLayout ID=\"PortalLayout1\" width=\"100%\" height=\"100%\" autoDraw=\"false\">\r<portalColumns>\r<PortalColumn>\r<portalRows>\r<PortalRow>\r<portlets><Canvas ref=\"Portlet0\"/>\r</portlets>\r<autoDraw>false</autoDraw>\r<ID>PortalRow0</ID>\r\r</PortalRow>\r</portalRows>\r<ID>PortalColumn0</ID>\r</PortalColumn>\r<PortalColumn>\r<ID>PortalColumn1</ID>\r</PortalColumn>\r</portalColumns>\r<canResizePortlets>true</canResizePortlets>\r<numColumns>0</numColumns>\r\r</PortalLayout>\n\n"
    },
    textMatchStyle:"exact",
    showPrompt:true,
    oldValues:{
        id:3,
        description:"New dashboard",
        layout:"\r<ListGrid dataSource=\"animals\" autoFetchData=\"true\" ID=\"ListGrid0\" autoDraw=\"false\">\r<showFilterEditor>true</showFilterEditor>\r\r</ListGrid>\n\n\r<Portlet ID=\"Portlet0\" height=\"482\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<destroyOnClose>true</destroyOnClose>\r<title>Animals</title>\r<items><Canvas ref=\"ListGrid0\"/>\r</items>\r\r</Portlet>\n\n\r<PortalLayout ID=\"PortalLayout1\" width=\"100%\" height=\"100%\" autoDraw=\"false\">\r<portalColumns>\r<PortalColumn>\r<portalRows>\r<PortalRow>\r<portlets><Canvas ref=\"Portlet0\"/>\r</portlets>\r<autoDraw>false</autoDraw>\r<ID>PortalRow0</ID>\r\r</PortalRow>\r</portalRows>\r<ID>PortalColumn0</ID>\r</PortalColumn>\r<PortalColumn>\r<ID>PortalColumn1</ID>\r</PortalColumn>\r</portalColumns>\r<canResizePortlets>true</canResizePortlets>\r<numColumns>0</numColumns>\r\r</PortalLayout>\n\n"
    },
    requestId:"dashboards$6276",
    fallbackToEval:false,
    lastClientEventThreadCode:"MUP1",
    bypassCache:true
}

so far so good. But if I re-edit the dashboard, which gets re-loaded with this request:
Code:

{
    "actionURL":"http://localhost:8083/isomorphic/IDACall",
    "showPrompt":false,
    "transport":"xmlHttpRequest",
    "promptStyle":"cursor",
    "data":{
        "requestParams":null,
        "appID":"isc_builtin",
        "className":"builtin",
        "methodName":"xmlToJS",
        "arguments":[
            "\r<ListGrid dataSource=\"animals\" autoFetchData=\"true\" ID=\"ListGrid3\" autoDraw=\"false\">\r<showFilterEditor>true</showFilterEditor>\r\r</ListGrid>\n\n\r<Portlet ID=\"Portlet3\" height=\"482\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<destroyOnClose>true</destroyOnClose>\r<title>Animals</title>\r<items><Canvas ref=\"ListGrid3\"/>\r</items>\r\r</Portlet>\n\n\r<PortalLayout ID=\"PortalLayout3\" width=\"100%\" height=\"100%\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<portalColumns>\r<PortalColumn>\r<portalRows>\r<PortalRow>\r<portlets><Canvas ref=\"Portlet3\"/>\r</portlets>\r<autoDraw>false</autoDraw>\r<ID>PortalRow3</ID>\r\r</PortalRow>\r</portalRows>\r<ID>PortalColumn0</ID>\r</PortalColumn>\r<PortalColumn>\r<ID>PortalColumn1</ID>\r</PortalColumn>\r</portalColumns>\r<canResizePortlets>true</canResizePortlets>\r<numColumns>0</numColumns>\r\r</PortalLayout>\n\n"
        ],
        "is_ISC_RPC_DMI":true
    }
}

and this is the response:
Code:

{
    status:0,
    data:"\nisc.ListGrid.create({\n    ID:\"ListGrid3\",\n    autoDraw:false,\n    autoFetchData:true,\n    dataSource:\"animals\",\n    showFilterEditor:true\n})\n\n\n\nisc.Portlet.create({\n    ID:\"Portlet3\",\n    autoDraw:false,\n    height:482,\n    left:0,\n    top:0,\n    destroyOnClose:true,\n    title:\"Animals\",\n    items:[\n        ListGrid3\n    ]\n})\n\n\n\nisc.PortalLayout.create({\n    ID:\"PortalLayout3\",\n    autoDraw:false,\n    height:\"100%\",\n    left:0,\n    top:0,\n    width:\"100%\",\n    portalColumns:[\n        {\n            portalRows:[\n                {\n                    portlets:[\n                        Portlet3\n                    ],\n                    autoDraw:\"false\",\n                    ID:\"PortalRow3\",\n                    _constructor:\"PortalRow\"\n                }\n            ],\n            ID:\"PortalColumn0\",\n            _constructor:\"PortalColumn\"\n        },\n        {\n            ID:\"PortalColumn1\",\n            _constructor:\"PortalColumn\"\n        }\n    ],\n    canResizePortlets:true,\n    numColumns:\"0\"\n})\n\n\n"
}

and then I save it:
Code:

{
    dataSource:"dashboards",
    operationType:"update",
    componentId:"dashboardList",
    data:{
        id:5,
        description:"New dashboard",
        layout:"\r<DataSource loadParents=\"true\">\r<loadID>animals</loadID>\r</DataSource>\n\n\r<ListGrid dataSource=\"animals\" autoFetchData=\"true\" ID=\"ListGrid3\" autoDraw=\"false\">\r<showFilterEditor>true</showFilterEditor>\r</ListGrid>\n\n\r<Portlet ID=\"Portlet3\" height=\"482\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<destroyOnClose>true</destroyOnClose>\r<title>Animals</title>\r<items><Canvas ref=\"ListGrid3\"/>\r</items>\r</Portlet>\n\n\r<PortalLayout ID=\"PortalLayout3\" width=\"100%\" height=\"100%\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<portalColumns>\r<PortalColumn>\r<portalRows>\r<PortalRow height=\"482\">\r<portlets><Canvas ref=\"Portlet3\"/>\r</portlets>\r<autoDraw>false</autoDraw>\r<ID>PortalRow3</ID>\r</PortalRow>\r</portalRows>\r<autoDraw>false</autoDraw>\r<ID>PortalColumn0</ID>\r<left>0</left>\r<top>0</top>\r<height>514</height>\r</PortalColumn>\r<PortalColumn>\r<autoDraw>false</autoDraw>\r<ID>PortalColumn1</ID>\r<left>426</left>\r<top>0</top>\r<height>514</height>\r</PortalColumn>\r</portalColumns>\r<canResizePortlets>true</canResizePortlets>\r<numColumns>0</numColumns>\r</PortalLayout>\n\n"
    },
    textMatchStyle:"exact",
    showPrompt:true,
    oldValues:{
        id:5,
        description:"New dashboard",
        layout:"\r<DataSource loadParents=\"true\">\r<loadID>animals</loadID>\r</DataSource>\n\n\r<ListGrid dataSource=\"animals\" autoFetchData=\"true\" ID=\"ListGrid3\" autoDraw=\"false\">\r<showFilterEditor>true</showFilterEditor>\r</ListGrid>\n\n\r<Portlet ID=\"Portlet3\" height=\"482\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<destroyOnClose>true</destroyOnClose>\r<title>Animals</title>\r<items><Canvas ref=\"ListGrid3\"/>\r</items>\r</Portlet>\n\n\r<PortalLayout ID=\"PortalLayout3\" width=\"100%\" height=\"100%\" left=\"0\" top=\"0\" autoDraw=\"false\">\r<portalColumns>\r<PortalColumn>\r<portalRows>\r<PortalRow height=\"482\">\r<portlets><Canvas ref=\"Portlet3\"/>\r</portlets>\r<autoDraw>false</autoDraw>\r<ID>PortalRow3</ID>\r</PortalRow>\r</portalRows>\r<autoDraw>false</autoDraw>\r<ID>PortalColumn0</ID>\r<left>0</left>\r<top>0</top>\r<height>514</height>\r</PortalColumn>\r<PortalColumn>\r<autoDraw>false</autoDraw>\r<ID>PortalColumn1</ID>\r<left>426</left>\r<top>0</top>\r<height>514</height>\r</PortalColumn>\r</portalColumns>\r<canResizePortlets>true</canResizePortlets>\r<numColumns>0</numColumns>\r</PortalLayout>\n\n"
    },
    requestId:"dashboards$62733",
    fallbackToEval:false,
    lastClientEventThreadCode:"MUP9",
    bypassCache:true
}

as you see, the '<DataSource loadParents=\"true\"><loadID>animals</loadID></DataSource>' is saved with the layout.

I'm still trying to reproduce my actual - very similar - use case, where the entire dataSource definition is saved with the layout, and the listGridFields tags of all fields are duplicated for every save operation.

Focus bug on text-item with keyPressFilter

$
0
0
Hi,
We have detected a bug using TextItems with kexpress-filters.
Adding a character between existing ones th cursor jumps to the end of the textitem. I think the cursor should stay in the choosen position like it happens if you delete the keyPressFilter.


This happens with Firefox 34.0 and Chrome 39.0.2171.95 m. It doesn't happen in Internet Explorer 11.0.9600.17501. And the latest nightly build SmartClient_v100p_2014-12-13_Pro

With this code you can reproduce it:
Code:

isc.DynamicForm.create({
        "fields" : [{
                        "name" : "priceitem",
                        "title" : "price",
                        "type" : "text",
                        "keyPressFilter" : "[0-9.,]"
                }
        ],
        "values" : {
                "priceitem" : "33,00"
        }
});

Best Regards

SelectItem, clearValue() and PickList

$
0
0
SmartClient Version: v9.1p_2014-11-09/Pro Deployment (built 2014-11-09)
FF 24.8.1 ESR

Hello,
When I call SelectItem.clearValue(), the value is cleared back to the default, however, if I click on the select item to display the pick list, the previously selected items appear checked briefly before being redrawn and cleared. Is there a way I can force the pick list to redraw prior to being made visible so I do not see this flashing effect.
Thanks

Issues with ListGrid quick search at the top of the grid while working with combo Box

$
0
0
Hi Isomorphic,

I'm having issues with ListGrid quick search at the top of the grid while working with combo Box item. Below is the field declaration:

<field>
<name>currencyCode</name>
<title>Currency</title>
<defaultValue>USD</defaultValue>
<optionDataSource>currencyDS</optionDataSource>
<editorType>comboBox</editorType>
<allowEmptyValue>true</allowEmptyValue>
<autoFetchDisplayMap>true</autoFetchDisplayMap>
<editorProperties valueField ="currencyCode" displayField="currencyName"/>
<filterEditorProperties operator ="equals"/>
</field>

Problem is that, it sends currencyName and typed in value as a parameter while I want currencyCode in the backend. We're upgrading from SC 7.2 and same code worked in SC that version.

Thanks,
Santosh.

ListGrid not honoring single selection on record collapse

$
0
0
sgwt: 5.0p
sc: v10.0p_2014-11-30
ff 26

Multiple records (up to 3) are remaining selected on the list grid.
To reproduce: click the record expansion icon of a record then click the record expansion icon of another record. Repeat as necessary.

Code:

public void onModuleLoad() {
      new ListGrid() {
                private DynamicForm form;
                    @Override
                    protected Canvas getExpansionComponent(final ListGridRecord record) {
                            return new VLayout(4) {{
                                    form = new DynamicForm() {{
                                            setDataSource(new ClientOnlyDataSource(new Record[]{record}, new DataSourceTextField("id"){{
                                                        setPrimaryKey(true);
                                        }}));
                                    }};
                                    form.editRecord(record);
                                    addMember(form);
                            }};
                    }
                    {
                            setWidth100();
                            setHeight100();
                            setCanExpandRecords(true);
                            setCanExpandMultipleRecords(false);
                            addRecordCollapseHandler(new RecordCollapseHandler() {
                                @Override
                                public void onRecordCollapse(RecordCollapseEvent event) {
                                        Record record = event.getRecord();
                                        Record record0 = form.getValuesAsRecord();
                                        List<String> properties = new ArrayList<String>(Arrays.asList(record0.getAttributes()));
                                        Record.copyAttributesInto(record, record0, properties.toArray(new String[properties.size()]));
                                }
                        });
                            setFields(new ListGridField("id"));
                        ListGridRecord[] records = new ListGridRecord[5];
                            for (int i = 0; i < 5; ++i) {
                                    records[i] = new ListGridRecord();
                                    records[i].setAttribute("id", i);
                            };
                            setData(records);
                    }
        }.show();
}


Thank you.

ComboBoxItem problem on tablet

$
0
0
SmartClient_v100p_2014-12-13_Pro
Ipad Safari, IOS 8.1.1

When you select a ComboBoxItem on a tablet, the entire screen is replaced with a list of options to select from, however there is no way to enter a free text value.

The idea of using the entire screen to display a select list is good on a 4" display but it is not a pleasant user experience on a 10" screen. Especially when there are only a few values and they appear as small text items in the top left corner of the screen. I would encourage Isomorphic to review the design of SelectItem and ComboBoxItem as applied on a 10" tablet.

regards,
Andrew

Select Item

$
0
0
How to make the default value of the select item, not to be displayed in the dropdown????

Rendering Listgrid is slow with around 900 records

$
0
0
Hello there,

I am using a licence copy of SmartGWT Power 3 and testing on Firefox browser version 26.
I am trying to load data from multiple tables(5 tables) into a Listgrid which has around 900 records. But when I try to scroll the records in the browser it is slow to render and show the data,which is annoying to the users.

Below is my client side code.

Code:


public class CusNeighbourGroupView extends VLayout implements CusNeighbourGroup
{
    public CusNeighbourGroupView()
    {
        intialise();
    }

    public void intialise()
    {
        ListGridField province = new ListGridField("provincename");
        ListGridField capital = new ListGridField("capital");
        ListGridField code = new ListGridField("code");
        ListGridField telcode = new ListGridField("telcode");
        ListGridField county = new ListGridField("countyname");
        ListGridField district = new ListGridField("district");
        ListGridField city = new ListGridField("city");
        ListGridField zone = new ListGridField("zone");
        ListGridField neigbhour = new ListGridField("neigbhour");
        ListGridField taxcodecity = new ListGridField("taxcodecity");
        ListGridField fdocode = new ListGridField("fdocode");
        ListGridField countCustomer = new ListGridField("countCustomer");

        final ListGrid listGrid = new ListGrid();
        listGrid.setWidth100();
        listGrid.setHeight100();
       
       
        // listGrid.setShowAllRecords(true);

        listGrid.setDataSource(DataSource.get("neighbourDS_1"));       
        listGrid.setAutoFetchData(true);
        // listGrid.setCanMultiSort(true);

        listGrid.setFields(province, capital, code, telcode, /*taxcode,*/ county, district, city, zone, neigbhour, taxcodecity, fdocode, countCustomer);
       
        setWidth100();
        setHeight100();
        addMember(listGrid);
    }

This is the datasource which I pass to my listgrid

Code:

<DataSource ID="neighbourDS_1" serverType="sql" tableName="neighbourhood" inheritsFrom="neighbourDS">
        <fields>
                <field name="provincename" includeFrom="provinceDS.provincename" />
                <field name="capital" includeFrom="provinceDS.capital" />
                <field name="code" includeFrom="provinceDS.code" />
                <field name="telcode" includeFrom="provinceDS.telcode" />
                <field name="countyname" includeFrom="countyDS.countyname" />
                <field name="district" includeFrom="districtDS.districtname" />
                <field name="city" includeFrom="cityDS.cityname" />
                <field name="taxcodecity" includeFrom="cityDS.taxcodecity" />
                <field name="fdocode" includeFrom="cityDS.fdocode" />
                <field name="zone" includeFrom="zoneDS.zone" />
        </fields>
</DataSource>


Below is the SQL SmartWT generates for my datasource

Code:

SELECT
    *
FROM
    (
        SELECT
            *,
            ROW_NUMBER() OVER (ORDER BY id) AS rowID
        FROM
            (
                SELECT
                    TOP 100 PERCENT                neighbourhood.id,
                    neighbourhood.alternateName AS neigbhour,
                    province.provincename,
                    province.capital,
                    province.code,
                    province.telcode,
                    county.countyname,
                    district.districtname AS district,
                    city.cityname        AS city,
                    city.taxcode          AS taxcodecity,
                    city.fdocode,
                    zone.name AS zone
                FROM
                    city,
                    neighbourhood,
                    province,
                    county,
                    district,
                    zone
                WHERE
                    (
                        '1'='1')
                AND neighbourhood.zoneId = zone.id
                AND zone.cityId = city.id
                AND city.districtID = district.id
                AND district.countyID = county.id
                AND county.provinceID = province.id) x) y
WHERE
    y.rowID BETWEEN 1 AND 75

eventSnapGap in workflow calendars

$
0
0
Hello,

when we start with SmartGWT (Version 3.1) the eventSnapGap was defined in minutes. When we want that the event snaps every 15 minutes, we have to set the eventSnapGap to 15.

Now in Version 5.0, the definition of the eventSnapGap has changed. Now it is the count of pixels. When we want that the event snaps every 15 minutes, we have to set the eventSnapGap to rowHeight/2.

But, when we use the scrollToWorkday feature, the rowHeight is compute when drawing the calendar and we can't set the eventSnapGap to "15 minutes".

At the moment the eventSnapGap have to be equal to the rowHeight. Other settings produce starnge snaps.

How can we set the snap to "15 minutes" when using the scrollToWorkday feature?

Regards

Peter
Viewing all 4756 articles
Browse latest View live