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

Latest build broke my app with "can't set visibility after creation" error

$
0
0
SmartClient Version: v9.1p_2014-03-08/LGPL Development Only (built 2014-03-08)

As of the version above up until the latest nightly (from 3/11) my application can no longer start up successfully.

I get the following exception:

Code:

10:14:59.895 [ERROR] [com.hp.cp.pm.gwt.linker.PMLinker] Client uncaught exception

com.google.gwt.event.shared.UmbrellaException: Exception caught: Cannot change configuration property 'visibility' to hidden now that component minibarScrollLeft has been created.
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.fireEvent(DashboardItemRibbon.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    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:242)
    at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.smartgwt.client.widgets.layout.HLayout.create(HLayout.java)
    at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:456)
    at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1378)
    at com.hp.cp.pm.gwt.ui.client.ui.BottomBarViewImpl.<init>(BottomBarViewImpl.java:95)
    at com.hp.cp.pm.gwt.ui.client.ClientFactoryImpl.getBottomBarView(ClientFactoryImpl.java:255)
    at com.hp.cp.pm.gwt.ui.client.activity.BottomBarPresenter.getView(BottomBarPresenter.java:279)
    at com.hp.cp.pm.gwt.ui.client.ui.MainApplicationUi.<init>(MainApplicationUi.java:95)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1$1.onSuccess(ProductionManager.java:323)
    at com.google.gwt.core.client.GWT.runAsync(GWT.java:255)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1.onSuccess(ProductionManager.java:319)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1.onSuccess(ProductionManager.java:1)
    at com.hp.cp.pm.gwt.ui.client.rpc.UUIDClientImpl$1.onSuccess(UUIDClientImpl.java:61)
    at com.hp.cp.pm.gwt.ui.client.rpc.UUIDClientImpl$1.onSuccess(UUIDClientImpl.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:258)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
    at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    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:242)
    at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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(Unknown Source)
Caused by: java.lang.IllegalStateException: Cannot change configuration property 'visibility' to hidden now that component minibarScrollLeft has been created.
    at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:728)
    at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:716)
    at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:740)
    at com.smartgwt.client.widgets.Canvas.setVisibility(Canvas.java:4859)
    at com.smartgwt.client.widgets.Canvas.setVisible(Canvas.java:8537)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.layout(DashboardItemRibbon.java:291)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.layoutChildren(DashboardItemRibbon.java:283)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.resetChildWidgets(DashboardItemRibbon.java:209)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.access$0(DashboardItemRibbon.java:200)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon$1.onResized(DashboardItemRibbon.java:55)
    at com.smartgwt.client.widgets.events.ResizedEvent.dispatch(ResizedEvent.java:110)
    at com.smartgwt.client.widgets.events.ResizedEvent.dispatch(ResizedEvent.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.hp.cp.pm.gwt.ui.client.ui.DashboardItemRibbon.fireEvent(DashboardItemRibbon.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    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:242)
    at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.smartgwt.client.widgets.layout.HLayout.create(HLayout.java)
    at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:456)
    at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1378)
    at com.hp.cp.pm.gwt.ui.client.ui.BottomBarViewImpl.<init>(BottomBarViewImpl.java:95)
    at com.hp.cp.pm.gwt.ui.client.ClientFactoryImpl.getBottomBarView(ClientFactoryImpl.java:255)
    at com.hp.cp.pm.gwt.ui.client.activity.BottomBarPresenter.getView(BottomBarPresenter.java:279)
    at com.hp.cp.pm.gwt.ui.client.ui.MainApplicationUi.<init>(MainApplicationUi.java:95)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1$1.onSuccess(ProductionManager.java:323)
    at com.google.gwt.core.client.GWT.runAsync(GWT.java:255)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1.onSuccess(ProductionManager.java:319)
    at com.hp.cp.pm.gwt.ui.client.ProductionManager$6$1.onSuccess(ProductionManager.java:1)
    at com.hp.cp.pm.gwt.ui.client.rpc.UUIDClientImpl$1.onSuccess(UUIDClientImpl.java:61)
    at com.hp.cp.pm.gwt.ui.client.rpc.UUIDClientImpl$1.onSuccess(UUIDClientImpl.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:258)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
    at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
    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:242)
    at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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(Unknown Source)

The point in my code that is causing the exception is a call to:
Code:

myButton.setVisible(showShow);
Which is trying to dynamically change the visibility of a control based upon changes in conditions in the client.

The last version that actually worked was:
SmartClient Version: v9.1p_2014-03-07/LGPL Development Only (built 2014-03-07)

TileGrid Event Handling and Custom Tiles

$
0
0
I'm having problems with getting the tile grid event handlers to work. I'm using custom tile constructor approach supplying a custom tile implementation which is derived from a dynamic form showing a couple of (editable) canvas items that show images, text items and so on.
However, this is the way that I initialize the tile grid
Code:


private TileGrid folderGrid = null;
public LibraryItemPageProvider() {
                folderGrid =  new TileGrid();
                folderGrid.setDataSource(ResourceDS.getInstance());
                folderGrid.setWidth100();
                folderGrid.setAutoHeight();
                folderGrid.setOverflow(Overflow.VISIBLE);

                folderGrid.setTileConstructor(FolderTile.class.getName());
               
                folderGrid.addSelectionChangedHandler(new SelectionChangedHandler() {                       
                        @Override
                        public void onSelectionChanged(SelectionChangedEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getState());
                        }
                });
               
                folderGrid.addRecordClickHandler(new RecordClickHandler() {
                        @Override
                        public void onRecordClick(RecordClickEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getViewer().getID());
                        }
                });
               
                folderGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
                       
                        @Override
                        public void onRecordDoubleClick(RecordDoubleClickEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getViewer().getID());
                        }
                });
        }

The TileGrid is rendered properly but while the double click handler behaves as expected, I will not get any record click or selection changed events when (single) clicking on the tiles.

Are there any known limitations on event handling when using custom tiles?
If so, what is the recommended approach for proper event handling in this case?

( Btw. If I replace the custom tiles with more primitive DetailViewerFields everything is working as expected).

Further, I tested with the custom tiles sample from the 4.1p showcase using the following adaptation
Code:

public Canvas getViewPanel() {
        GWT.create(AnimalTileMetaFactory.class);
       
        TileGrid tileGrid = new TileGrid();
        tileGrid.setTileWidth(250); 
        tileGrid.setTileHeight(150);
        tileGrid.setHeight100(); 
        tileGrid.setWidth100();
        tileGrid.setDataSource(AnimalXmlDS.getInstance());
        tileGrid.setAutoFetchData(true);
        tileGrid.setTileConstructor(AnimalTile.class.getName());
               
                tileGrid.addSelectionChangedHandler(new SelectionChangedHandler() {                       
                        @Override
                        public void onSelectionChanged(SelectionChangedEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getState());
                        }
                });
               
               
                tileGrid.addRecordClickHandler(new RecordClickHandler() {
                       
                        @Override
                        public void onRecordClick(RecordClickEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getViewer().getID());
                        }
                });
               
                tileGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
                       
                        @Override
                        public void onRecordDoubleClick(RecordDoubleClickEvent event) {
                                SC.say(event.toDebugString() + ":" + event.getViewer().getID());
                        }
                });
        return tileGrid;
    }

However, same result....

I hope, this information is somewhat sufficient for you. Any help is appreciated!

p.s. running GWT2.6, SmartGwt 4.1p with FF23.01

xml remote datasource

$
0
0
Hi,

I am new to Visual Builder and trying to configure an xml datasource. I am running a different webapp in another port in my localhost and trying to access the xml response that requires basic auth.
I tried supplying the username and password in the url itself
http://username:passowrd@localhost:8090/. But Visual Builder came up with a 401 response.

Please let me know how to configure basic auth info from visual builder.
I am using SmartClient v9.1.

thanks,
svidya

Change Skin elements (e.g Edges)

$
0
0
i want to change the skin elements :

C:\Users\media\workspace\ProjectTest\war\com.media .project.medistart\sc\skins\Graphite\images\Scroll bar

when i edit them in paint and replace them and run the app in eclipse nothing has changed but why?


can I replace the images in the smartgwt-skins.jar?

Oracle Timestamp / Json conversion

$
0
0
Hi,

I'm currently using SmartGWT 4.1p.
I'm facing a json conversion issue of database TIMESTAMP fields that leads to exceptions and unresponsive UI.

My data source definition:
Code:

<DataSource
    ID="reg_classification"
        serverType="sql"
        tableName="REG_CLASSIFICATION"
>
    <fields>
            <field name="ID" type="sequence" sequenceName="SQ_REG_CLASSIFICATION" hidden="true" primaryKey="true"/>
            <field name="REGULATION_ID" type="integer" foreignKey="reg_regulation.ID"/>
            <field name="REGULATION_NAME" includeFrom="reg_regulation.NAME"/>
            <field name="CREATED" type="creatorTimestamp" title="$date"/>
            <field name="CREATED_BY" type="integer" foreignKey="operator.ID"/>
            <field name="REASON" type="text" />
            <field name="NB_PROCESSED" type="integer"/>
            <field name="NB_QUALIFIED" type="integer"/>
            <field name="NB_DISQUALIFIED" type="integer"/>
            <field name="NB_PAPERSEARCH" type="integer"/>
    </fields>
   
    <operationBindings>
            <operationBinding operationType="fetch" operationId="allCustomerClassifications" dropExtraFields="false">
                    <selectClause>$defaultSelectClause, d.UPDATED, d.UPDATED_BY, a.NAME as RESULT</selectClause>
                    <tableClause>$defaultTableClause, REG_DECISION d, REG_STATUS a</tableClause>
                    <whereClause>$defaultWhereClause
                            and d.CLASSIFICATION_ID = REG_CLASSIFICATION.ID
                            and d.CUSTOMER_ID = $criteria.CUSTOMER_ID
                            and d.STATUS_ID = a.ID
                    </whereClause>
            </operationBinding>
    </operationBindings>
</DataSource>

Note that in allCustomerClassifications binding, I'm fetching data from columns that are not defined nor referenced in the the DS fields (d.UPDATED). That makes a difference, because TIMESTAMP fields defined in the DS don't suffer this problem.
The query runs normally, referring to server logs:

Code:

=== 2014-03-13 08:50:29,656 [0-15] DEBUG SQLDataSource - [builtinApplication.allCustomerClassifications] JDBC driver windowed select rows 0->75, result size 75. Query: SELECT REG_CLASSIFICATION.CREATED, REG_CLASSIFICATION.CREATED_BY, REG_CLASSIFICATION.ID, REG_CLASSIFICATION.NB_DISQUALIFIED, REG_CLASSIFICATION.NB_PAPERSEARCH, REG_CLASSIFICATION.NB_PROCESSED, REG_CLASSIFICATION.NB_QUALIFIED, REG_CLASSIFICATION.REASON, REG_CLASSIFICATION.REGULATION_ID, REG_REGULATION.NAME AS REGULATION_NAME, d.UPDATED, d.UPDATED_BY, a.NAME as RESULT FROM REG_REGULATION, REG_CLASSIFICATION, REG_DECISION d, REG_STATUS a WHERE ('1'='1')
                            and d.CLASSIFICATION_ID = REG_CLASSIFICATION.ID
                            and d.CUSTOMER_ID = '12590'
                            and d.STATUS_ID = a.ID
                    AND REG_CLASSIFICATION.REGULATION_ID = REG_REGULATION.ID ORDER BY REG_CLASSIFICATION.CREATED DESC
=== 2014-03-13 08:50:29,662 [0-15] DEBUG SQLDataSource - [builtinApplication.allCustomerClassifications] Using paging strategy 'jdbcScroll' - scrolling to absolute position 1
=== 2014-03-13 08:50:29,663 [0-15] DEBUG SQLDataSource - [builtinApplication.allCustomerClassifications] Scrolling / positioning took 1ms
=== 2014-03-13 08:50:29,664 [0-15] INFO  DSResponse - [builtinApplication.allCustomerClassifications] DSResponse: List with 1 items

On client side, I never get any result and grid get stuck in loading. I get the following exception:
Code:

[ERROR] [application] - 08:50:29.725:TMR8:WARN:ResultSet:isc_ResultSet_15 (created by: (cacheAllData fetch)):Bad data returned, ignoring: "//isc_RPCResponseStart-->[{"affectedRows":0,"data":[{"NB_PAPERSEARCH":0,"REGULATION_ID":3,"CREATED_BY":2,"RESULT":"Specified US Person","NB_PROCESSED":1,"UPDATED_BY":2,"REGULATION_NAME":"FATCA for Companies","UPDATED":2014-03-13 08:46:36.94,"ID":8,"CREATED":"$$DATESTAMP$$:1394696796000","NB_QUALIFIED":1,"NB_DISQUALIFIED":0}],"endRow":1,"invalidateCache":false,"isDSResponse":true,"operationType":"fetch","queueStatus":0,"startRow":0,"status":0,"totalRows":1},{"affectedRows":0,"data":[{"NAME":"(System)","DESCRIPTION":"This is the main internal system operator.","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"(System)","CREATED":"$$DATESTAMP$$:1394092605272","ENABLED":true,"LOGIN":"(SYSTEM)","LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394092605272","ID":1,"BUNIT_ID":1,"ACTIVE":1},{"NAME":"(Master)","DESCRIPTION":"This in the main system administrator.","CONNECTED":true,"APPROVED":true,"BUNIT_NAME":"(System)","CREATED":"$$DATESTAMP$$:1394092605279","ENABLED":true,"CREATED_BY":1,"LAST_LOGIN":"$$DATESTAMP$$:1394696568514","LOGIN":"(MASTER)","UPDATED_BY":1,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394092605279","ID":2,"BUNIT_ID":1,"ACTIVE":1,"LOCKED":false},{"NAME":"xxx","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"(System)","CREATED":"$$DATESTAMP$$:1394093488000","SECURITY_LEVEL_ID":1,"ENABLED":true,"CREATED_BY":2,"LAST_LOGIN":"$$DATESTAMP$$:1394524864967","LOGIN":"xxx","UPDATED_BY":2,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394093488000","ID":113,"SECURITY_LEVEL_NAME":"(System)","BUNIT_ID":1,"ACTIVE":1,"LOCKED":false},{"NAME":"xxx","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"(System)","CREATED":"$$DATESTAMP$$:1394445699000","SECURITY_LEVEL_ID":1,"ENABLED":true,"CREATED_BY":2,"LAST_LOGIN":"$$DATESTAMP$$:1394616270000","LOGIN":"xxx","UPDATED_BY":2,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394616661000","ID":114,"SECURITY_LEVEL_NAME":"(System)","BUNIT_ID":1,"ACTIVE":1,"LOCKED":false},{"NAME":"XXXTestAudit","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"(System)","CREATED":"$$DATESTAMP$$:1394450994000","SECURITY_LEVEL_ID":1,"ENABLED":true,"CREATED_BY":113,"LAST_LOGIN":"$$DATESTAMP$$:1394455857865","LOGIN":"XXXTestAudit","UPDATED_BY":113,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394455747000","ID":115,"SECURITY_LEVEL_NAME":"(System)","BUNIT_ID":1,"ACTIVE":1,"LOCKED":false},{"NAME":"xxx","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"Default","CREATED":"$$DATESTAMP$$:1394553242000","SECURITY_LEVEL_ID":1,"ENABLED":true,"CREATED_BY":2,"LAST_LOGIN":"$$DATESTAMP$$:1394553828493","LOGIN":"paa","UPDATED_BY":2,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394553609000","ID":116,"EMAIL":"xxx@xxx.com","SECURITY_LEVEL_NAME":"(System)","DEPARTMENT":"IT","BUNIT_ID":219,"ACTIVE":1,"LOCKED":false},{"NAME":"Guest","DESCRIPTION":"This in the guest operator. To be used for testing only.","CONNECTED":false,"APPROVED":true,"BUNIT_NAME":"Default","CREATED":"$$DATESTAMP$$:1394619816612","ENABLED":true,"CREATED_BY":1,"LAST_LOGIN":"$$DATESTAMP$$:1394640019104","LOGIN":"Guest","UPDATED_BY":1,"LANGUAGE_CODE":"en","UPDATED":"$$DATESTAMP$$:1394619816612","ID":118,"BUNIT_ID":222,"ACTIVE":1,"LOCKED":false}],"endRow":7,"invalidateCache":false,"isDSResponse":true,"operationType":"fetch","queueStatus":0,"startRow":0,"status":0,"totalRows":7}]//isc_RPCResponseEnd"
I copied and pasted json in a validator that pointed to the problem:
Code:

Parse error on line 12:
...    "UPDATED": 2014-03-1308: 46: 36.94,
-----------------------^
Expecting '}', ',', ']'

A sample row that shows better the conversion problem happening only on the joined table field (UPDATED), not on the source table field defined in DS (CREATED):
Code:

"data": [
        {
            "NB_PAPERSEARCH": 0,
            "REGULATION_ID": 3,
            "CREATED_BY": 2,
            "RESULT": "Specified US Person",
            "NB_PROCESSED": 1,
            "UPDATED_BY": 2,
            "REGULATION_NAME": "FATCA for Companies",
            "UPDATED": 2014-03-1308: 46: 36.94,
            "ID": 8,
            "CREATED": "$$DATESTAMP$$:1394696796000",
            "NB_QUALIFIED": 1,
            "NB_DISQUALIFIED": 0
        }
    ]

This problem doesn't show up in MS Sql Server (fields defined as DATETIME).
For now, the workaround I found is to cast the value with CAST(d.UPDATED as DATE) or TO_DATE(TO_CHAR(d.UPDATED,'YYYY-MM-DD'),'YYYY-MM-DD')

Regards

New Tab no Close Icon on Tablet

$
0
0
Using SmartClient v9.0p_2013-11-29

I have a tab set and dynamically create a new tab using addTab with the canClose attribute set. On PC my tabs show the cross icon to close the tab but on a tablet such as iPad running iOS7 using Chrome or Safari I get no close icon on the tab.

Am I missing something? Is this a bug?

Thanks

Steven

Sample for declarative grouping and sums still using old approach?

$
0
0
Hi Isomorphic,

I have the need to COUNT(*) from entries and I'm looking for the best way to do so.
I read about "declarative grouping and sums" in your latest blog post (http://blog.isomorphic.com/new-smart...ures/#grouping), which links to this sample: sql_dynamic_reporting

To me, the sample looks like it worked that way also in 4.0p and does not use the new features.

Is this true, and if so, could you adapt it?

Best regards,
Blama

List Grid Refresh issue on Save

$
0
0
1. Version v8.2p_2012-03-22 (2012-03-22)

2. IE8 or above

I have a list grid that has to be refreshed automatically on saving data from the form. On saving all edits I am doing a markForRedaw() on the list grid and the same works fine.

I have validators defined for some of the fields in the form. When any of the validators fail on save, after correcting the validation error and when I click save on the form, the markForRedraw() is being called but the list grid data is not refreshed. Later when I so a single click on the row the data refreshes and I can see the new edits.

tabset issue using android tablet

$
0
0
SmartClient v91p_2013-03-04/PowerEdition
Chrome 31.0.1650.59
Android OS 4.2.2

When I initially load a page with two tabs that contain HTMLPane's, the first tab's content appears as expected. When I switch to the second tab, I see content from the first, then the second appears. Then, when I switch back to the first, the second tab's content remains.

Attached is an example using smartclient's index.html and license.html files as the contents of the two tabs.

Attached Files
File Type: html android_tab_test.html (1.7 KB)

DateTimeItem picker selects wrong date for time 00:00

$
0
0
Version: "v9.0_2013-07-03/LGPL Development Only"
Browser: Firefox 26.0

Basically, when a DateTimeItem has a value with time 00:00 and the user clicks on the DateTimeItem picker, the picker automatically selects the day prior.

Steps to reproduce:
1) On a DateTimeItem, click on the Date picker and select a date with time 00:00 (e.g. March 13, 00:00)
2) The time for the field will display the correct date/time
3) Click the picker again and you'll see that the day prior is now selected (e.g. March 12, 00:00)
4) Click on apply, and now the date will be the day prior
5) Repeat steps 3-4 multiple times and the date will keep travelling backwards

Expected:
The picker should not set the date to the one before. If I choose March 13, 00:00 and click on the picker again, it should preselect March 13, 00:00. Not March 12, 00:00.

---------------------------

This issue also translates over to the setDefaultChooserDate() functionality. If I set the default date as March 13, 00:00 and select the date picker, the preselected date will not be March 13, 00:00 as I expect but rather March 12, 00:00.

Please, any advice on how to work around this issue in the meantime or perhaps an estimate of when this might be resolved would be amazing.

Thanks!

---------------
Edit: The same issue occurs for the DateTime picker for ListGrids.

FilterBuilder input fields disabled

$
0
0
Hello,
I want to use filter builder component for editing a preconstructed AdvancedCriteria in a modal dialog.
Code:

Dialog d = WidgetFactory.createModalWindowDialog("slk", true, "Criteria");
final FilterBuilder filterBuilder = new FilterBuilder();
filterBuilder.setDataSource(LibraryItem.beanfactory.getBeanDataSource());
filterBuilder.setTopOperatorOptions(OperatorId.OR, OperatorId.AND);
filterBuilder.setWidth100();
filterBuilder.setHeight100();
PageConfig pcfg = new PageConfig(event.getRecord());
AdvancedCriteria asCriteria = pcfg.asCriteria();
                                       
d.addItem(filterBuilder);

filterBuilder.setCriteria(asCriteria);
                                       
d.show();

Unfortunately, there are no editable input fields rendered for the (nested) criterions but only StaticTextItems. Amongst other things like datasource fieldtype, name, title and the like all my datasource fields are
Code:

field.setValidOperators(
    OperatorId.CONTAINS,
    OperatorId.NOT_CONTAINS,
    OperatorId.STARTS_WITH,
    OperatorId.ENDS_WITH,
    OperatorId.EQUALS,
    OperatorId.NOT_EQUAL,
    OperatorId.IS_NULL,
    OperatorId.NOT_NULL);
               
    field.setRequired(true);
    field.setCanEdit(true);
    field.setCanFilter(true);
    field.setCanSave(true);

I do not use CustomTypes.

So, what am I missing here? I expected the FilterBuilder's DynamicFilterForm to render filter input fields according to the datasource field type for all data source fields with (at least) canFilter:true. Any help is appreciated. Thank you.

p.s. forgot to mention. Running with SmartGWT 4.1p, GWT 2.6 and FF23

Tooltips for TileGrid Images

$
0
0
Hi,

Is there a way to show a tooltip when hovering the mouse over a tilegrid image? We are using SmartClient v8.3p_2013-08-15/PowerEdition.

Thanks!

What is the life cycle of a DSGenerator?

$
0
0
If you have a DynamicDSGenerator, what is the life expectancy of that object? Is it one instance per call, or do instances get cached?

Problem with form scrolling

$
0
0
Hi,
I'm using SmartGWT 4.0p-20140221.
I've have a form with different fields. When I scroll vertically the fields and labels are getting stretched vertically and they appear like bar codes. After few seconds the look normal. Please see the attached screen shots.

Is there something I need to do to prevent this or fix this?

Thanks.

Attached Images
File Type: png FormScrollProblem1.PNG (16.7 KB)
File Type: png FormScrollProblem2.PNG (12.9 KB)

Which layout to add one component at lower-bottom corner of the browser

$
0
0
I use SmartGWT 4.0 power edition. I need to add one component at lower-bottom corner of the browser.

Here is HTML code. How can I use SmartGWT to achieve this.

<!DOCTYPE html>
<html>
<head>
<style>
#item {
position:fixed;
bottom:0;
right:0;
width: 50%
}
</style>
</head>
<body>
<div id="item">For absolutely positioned elements, the bottom property sets the bottom edge of an element to a unit above/below the bottom edge of its containing element.</div>
</body>
</html>

smartgwt.mobile integration with titanium

$
0
0
hi,

read the user_guide.html in the smartgwt.mobile sdk.

we can build native app by phonegap for smartgwt.mobile's showcase code.

now i have some trouble with the integration with titanium.

in sdk's guide point "To build a native SmartGWT.mobile app which can be distributed via Apple's App Store or Google Play, it is easiest to use a packaging technology such as PhoneGap / Apache Cordova or Titanium."

does anonther document for build native app by titanium?

best regards

Filterbuilder in nested DataSource field

$
0
0
Hi there,

We're using SmartClient Version: v9.0p_2013-07-14/LGPL Development Only (built 2013-07-14). We're testing the filterBuilder feature in our project and everything works fine when filtering simple fields. We have full support for AdvancedCriteria in the back-end. But when selecting a field that is a nested DataSource declared as this:

VehiculeDS.java

Code:

...

// Brand
DataSourceField brand = new DataSourceField();
brand.setName("brand");
brand.setTitle(locale.brand());
brand.setTypeAsDataSource(BrandDS.getInstance());

// other vehicule data
...

the filterBuilder doesn't show any textfield to write a value. I've tried to specify the valid operators but no success. In the Listgrid we're accessing the value via field.setDataPath() and works fine. Even the header filters work fine in this field using simple or advanced criteria. Any hint on this?

Best regards and thanks for you help

AnimationCallback not firing

$
0
0
I have a piece of code like so

Code:

            innerLayout.animateHide(AnimationEffect.FADE, new AnimationCallback() {
                @Override
                public void execute(boolean b) {
                    // some callback code
                    }
                }
            });

innerLayout is a VLayout, when the hide occurs, the callback is not getting fired, I am running Smart GWT 4.0 build date 2013-12-23.

I've just tried upgrading to the latest 4.1 build, I get the same issue here.

ListGrid - selectAllRecords when group by

$
0
0
Hi!

Use ListGrid
setSelectionAppearance(SelectionAppearance.CHECKBO X);

When call selectAllRecords() and ListGrid don't have Group by all OK, but when I have group by checkbox in Header dosn't change.

Using DataSource xml definition

$
0
0
Hi I've been experimenting with SmartGWTEE's ComponentXML -> AddingHandlers example and have been trying to load a DataSource with test data.

Modifications to EntryPoint:
Code:

import java.util.logging.Logger;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.data.DataSource;

public class AddingHandlers implements EntryPoint {
        private final Logger log = Logger.getLogger("AddingHandlers");

        @Override
        public void onModuleLoad() {

                String dsID = "supplyItem";
                DataSource.load(dsID, null, false);
                if (DataSource.get(dsID) == null) {
                        log.info("DataSource with ID: " + dsID + " not found");
                }
        }
}

Modifications to supplyItem.data.xml
Code:

<DataSource
    ID="supplyItem"
    dataURL="/ds/supplyItem.data.xml"
    recordXPath="//supplyItem"
    clientOnly="true"
>
...other stuff is the same

The DataSourceLoader responds with JavaScript definition of the DataSource, but I get:
"DataSource with ID: supplyItem not found".

Am I just using these API's incorrectly?
Can a DataSource XML definition work without a 'serverType'?

In the source code of the EE Showcase the supplyItem seems to be bound to a hibernate back end. I was hoping to get around copying the server code from the showcase and working with XML data for prototyping purposes.

SmartClient: v9.0p_2014-03-04/EVAL Deployment
GWT: 2.5.1
Viewing all 4756 articles
Browse latest View live