Quantcast
Viewing all 4756 articles
Browse latest View live

Finished app not working on IE9 or 10

Versions (Power Edition):
Code:

<smartgwt.version>5.1-d20140907-SNAPSHOT</smartgwt.version>
<gwt.version>2.6.1</gwt.version>
<spring.version>3.2.4.RELEASE</spring.version>

On IE11, it works. On Firefox, it works. On Chrome, it works.

On IE9 and IE10, after login, the user just gets a blank white page. The only difference I can point out is in the developer console. When I open the developer console on IE 9, I get this:
Code:

10:05:38.206:WARN:Log:New Class ID: 'Window' collides with ID of existing object with value '[object Window]'.  Existing object will be replaced.
This conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.
10:05:38.257:WARN:Log:New Class ID: 'Selection' collides with ID of existing object with value '[object Selection]'.  Existing object will be replaced.
This conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.
10:05:43.178:TMR0:WARN:Log:Uncaught exception escaped: com.google.gwt.core.client.JavaScriptException
(ReferenceError)
 description: 'console' is undefined
 number: -2146823279
 __gwt$exception: <skipped>: 'console' is undefined

On the browsers that work, I simply get:
Code:

09:46:26.066:INFO:Log:initialized
09:46:29.571:INFO:Log:isc.Page is loaded

I can't imagine its a bug or problem with such recent versions of IE. Any ideas?

What has happened to the indentation and newlines in load_skin.js and skin_styles.css

Hi,

Trying to upgrade from 5.0 from 0517 to 0803. I notice, however, that all newlines and indentations seem to have been removed from the files mentioned above.

Is this intentional?? I have a custom skin that puts stuff on top of Enterprise and this makes it very very hard to get my customisations in, not to mention making it near impossible to read at all.

mouse hover not work between -90 and 0 degree after setPieStartAngle(-90)

I am using SmartClient Version: v10.0p_2015-05-01/EVAL Deployment (expires 2015.06.30_04.46.48) and FireFox ESR 24.3.0.

I want to change the starting position of data label to -90 degree or 270 degree which is north direction from PIE chart.

So, I tested using SimpleChart.java in the EE sample.

I added the following codes in the sample.

chart.setShowValueOnHover(true);
chart.setPieStartAngle(-90);

However, when hovering mouse between -90 and 0 degree, 'showing value on hover' does not work.

Please refer to the attachments.

Attached Images
Image may be NSFW.
Clik here to view.
File Type: png
not_work.png (29.3 KB)
Image may be NSFW.
Clik here to view.
File Type: png
work.png (34.3 KB)

Compilation error saying ...source level is at least 1.8 in GWT 2.7.0

Hi

When I compiled my Project, I encountered a problem saying that "Syntax error, type annotations are available only when source level is at least 1.8"

This error is coming for using @Nullable in source code in client side in my application.


import org.eclipse.jdt.annotation.Nullable;

valuesManager.saveData(new DSCallback() {
@Override
public void execute(@Nullable DSResponse response, Object rawData, DSRequest request) {

}
});

There is no problem when i build my application using same code.
Problems come when i am going to compile my application.

I have already set my project compilation level to 1.8. But this did not solve my problem.

In any situation I can not avoid this annotations in my source code.
I have to use this code as it is a client request.

My working environment is

java 1.8.0_40 (64 bit)
GWT 2.7.0
SmartClient Version: v8.3_2012-11-20/PowerEdition Deployment (built 2012-11-20)
STS Eclipse Luna SR1 (4.4.1)


Please advise.

Regards

DEV

Add record in listGrid using variable

I am adding record in grid using startEditingNew method as below.

var COLUMN_NAME = {

name : "user_name",
lastname : "user_surname",
age : "user_age"
};

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

addDataToGrid : function (name, lastname, age){

MyGrid_Grid.startEditingNew({

COLUMN_NAME.name: name,
COLUMN_NAME.lastname: lastname,
COLUMN_NAME.age: age
});
}

But, my above function raise error and does not add record to grid. If I use "user_name" string instead of "COLUMN_NAME.name" , It works fine.

How can I use variable as column name??

Thanks in advance

Import from excel?

What is the recommended approach to import data from an excel sheet?
Should I use an external library or is there some smartGWT component for this?

Using smartgwt 5.0p power.

DataSource.audit and update operation which affects no rows

SmartClient Version: v10.0p_2015-08-06/Enterprise Deployment (built 2015-08-06)

Hello, I have an update operation with allowMultiUpdate=true, which in some cases affects no rows.
The DataSource has the audit feature enabled, and it is inserting always one record, when multiple records are updated, and even if no update is actually performed:

Code:

2015-08-06 16:54:17,476 INFO  SQLDriver [builtinApplication.creaLotto] Executing SQL update on 'dbJpcEP': UPDATE DBSALES.JF_MOVIMENTI SET EXPORTED_TS=TO_DATE('2015-08-06 16:54:17','YYYY-MM-DD HH24:MI:SS') WHERE ((JF_MOVIMENTI.PAYMENT_DATE >= TO_DATE('2015-07-01 00:00:00','YYYY-MM-DD HH24:MI:SS') AND JF_MOVIMENTI.PAYMENT_DATE <= TO_DATE('2015-07-31 00:00:00','YYYY-MM-DD HH24:MI:SS') AND JF_MOVIMENTI.PAYMENT_DATE IS NOT NULL) AND (JF_MOVIMENTI.EXPORTED_TS IS NULL) AND (JF_MOVIMENTI.FL_SCART = 'F' AND JF_MOVIMENTI.FL_SCART IS NOT NULL))
2015-08-06 16:54:17,480 WARN  SQLDataSource [builtinApplication.creaLotto] update operation affected no rows
2015-08-06 16:54:17,481 DEBUG AuditDSGenerator [builtinApplication.creaLotto] AUDIT_JF_MOVIMENTI is an audit DataSource, processing
2015-08-06 16:54:17,481 DEBUG PoolableDataSourceFactory [builtinApplication.creaLotto] Created DataSource 5220 of type 'JF_MOVIMENTI' and assigned it to thread http-bio-8444-exec-9
2015-08-06 16:54:17,482 DEBUG PoolableDataSourceFactory [builtinApplication.creaLotto] Created DataSource 5221 of type 'AUDIT_JF_MOVIMENTI' and assigned it to thread http-bio-8444-exec-9
2015-08-06 16:54:17,482 DEBUG PoolableDataSourceFactory [builtinApplication.creaLotto] Created DataSource 5221 of type 'AUDIT_JF_MOVIMENTI' and assigned it to thread http-bio-8444-exec-9
2015-08-06 16:54:17,482 WARN  DataSource [builtinApplication.creaLotto] When saving the audit record, getDataMap() returned null for DataSource JF_MOVIMENTI
2015-08-06 16:54:17,482 INFO  SQLDataSource [builtinApplication.creaLotto, builtinApplication.null] Performing add operation with
        criteria: {AUDIT_MODIFIER:"cbosticco",AUDIT_OPERATIONTYPE:"update",AUDIT_CHANGETIME:new Date(1438872857482)}        values: {AUDIT_MODIFIER:"cbosticco",AUDIT_OPERATIONTYPE:"update",AUDIT_CHANGETIME:new Date(1438872857482)}
2015-08-06 16:54:17,483 DEBUG SQLValuesClause [builtinApplication.creaLotto, builtinApplication.null] Sequences: {ID_REC=SEQUENCE_ID_REC, AUDIT_REVISION=AUDIT_JF_MOVIM_AUDIT_REVISION}
2015-08-06 16:54:17,483 DEBUG SQLDriver [builtinApplication.creaLotto, builtinApplication.null] About to execute SQL update in 'dbJpcEP' using connection'1186605796'
2015-08-06 16:54:17,483 INFO  SQLDriver [builtinApplication.creaLotto, builtinApplication.null] Executing SQL update on 'dbJpcEP': INSERT INTO DBSALES.AUDIT_JF_MOVIMENTI (AUDIT_CHANGETIME, AUDIT_MODIFIER, AUDIT_OPERATIONTYPE, ID_REC, AUDIT_REVISION) VALUES (TO_DATE('2015-08-06 16:54:17','YYYY-MM-DD HH24:MI:SS'), 'cbosticco', 'update', DBSALES.SEQUENCE_ID_REC.NextVal, DBSALES.AUDIT_JF_MOVIM_AUDIT_REVISION.NextVal)


Also, on the same table, I'm doing multiple inserts with a single dsRequest.execute(), like this:
Code:

            List<Map> records = ...;
....
                DSRequest addRecords = new DSRequest("JF_MOVIMENTI", DataSource.OP_ADD, rpcManager);
                addRecords.setValues(records);
                dsResponses.add(addRecords.execute());

and I've noticed that only one record is inserted in the audit table.

Are those ways of inserting/updating multiple records supported by the audit feature, or I have to make a dsRequest.execute for each record?

How to expand the treegrid after invalidateCache

I have a TreeGrid where I call openAll() in the fetchData's DSCallback to open all the nodes.
I call invalidateCache(), which refreshes the tree. However, the tree is now collapsed. How do I expand it again?

When a listgrid field truncates text, use ellipsis?

When a listgrid field truncates the text, how can I show ellipsis at the end of the truncated text?

ComboBoxItem doesn't allow value selection but retrieves data from the DataSource

Need help with this correct usage of ComboBoxItem with a custom RPC based DataSource.

Code:

ComboBoxItem itemName = new WNGComboBoxItem();
itemName.setOptionDataSource(extendedGwtRpcDataSource);

The executeFetch() method of extendedGwtRpcDataSource retrieves
the data from the server, creates ListGridRecord[] and sets the
data using response.setData().
When we click on the ComboBoxItem, it retrieves the data and
populates the values correctly. However, when we select a value
from the dropdown, that value is not selected (the selected value
is always the last entry of the valueMap).

We have 5 such ComboBoxItems on this screen and interesting thing
is that we see this behavior only for 2 of them.
We have tried setAddUnknownValues(false); and it doesn't seem to help.

The logic was initially developed in smartgwt 2.3(? LGPL) version and it works fine with that smartgwt.jar file. When we use smartgwtpower.jar we see this behavior.

Using v10.0p_2015-05-03/PowerEdition Deployment (built 2015-05-03)

How to avoid dropdown to show diff colors for odd and even rows?

I'm new in SGWT, I'm trying to convert existing code that works with SmartClient Version: v8.2p_2012-07-26/Enterprise Deployment (built 2012-07-26) to SmartClient Version: v10.0p_2015-06-03/Enterprise Deployment (built 2015-06-03). With new version, odd rows in dropdowns have foreground color white while even rows are black. Since background is also black, all even rows just invisible. In old version all rows are white on black an thus perfectly visible. All *.css files are the same in the proprietary code for old & new cases.
How can I show all rows white or how can I change background color using v10.0p?
This is licensed version for a major bank.
Thank you in advance.

ListGrid - Expand components - Set Height and Width dynamically

SmartClient Version: v10.0p_2015-06-10/PowerEdition Deployment (built 2015-06-10)

Browser Version : IE 11.0.9600.17843

How to set the nested grid height and width (inner grid) based on the no. of records displayed in the inner grid.

PLease refer the attachment

Attached Images
Image may be NSFW.
Clik here to view.
File Type: png
Nestedgrid.png (20.1 KB)

canExpandRecords and hover bug

SmartClient Version: v10.0p_2015-08-06/Enterprise Development Only (built 2015-08-06)

Chrome on OSX

please modify the #customExpansionComponent sample like this:

Code:

isc.ListGrid.create({
    ID: "categoryList",
    width:"100%", height:500,
    drawAheadRatio: 4,
    dataSource: supplyCategory,
    fields:[
      {
        name:"categoryName", canHover:true, showHover:true,
        hoverHTML:function (record, value, rowNum, colNum, grid){
          return 'yup'
        }
      }
    ],
    autoFetchData: true,
    canExpandRecords: true,

    getExpansionComponent : function (record) {

        var countryGrid = isc.ListGrid.create({
            height: 224,
            cellheight: 22,
            dataSource: supplyItem,
            canEdit: true,
            modalEditing: true,
            editEvent: "click",
            listEndEditAction: "next",
            autoSaveEdits: false
        });
        countryGrid.fetchRelatedData(record, supplyCategory);

        var hLayout = isc.HLayout.create({
            align: "center",
            members: [

                isc.IButton.create({
                    title: "Save",
                    click: function () {
                        countryGrid.saveAllEdits();
                    }
                }),
                isc.IButton.create({
                    title: "Discard",
                    click : function () {
                        countryGrid.discardAllEdits();
                    }
                }),
                isc.IButton.create({
                    title: "Close",
                    click : function () {
                        categoryList.collapseRecord(record);
                    }
                })
            ]
        });

        var layout = isc.VLayout.create({
            padding: 5,
            members: [ countryGrid, hLayout ]
        });

        return layout;
    }

});

if you expand a record, and then hover above the expansionField (on the left of the countryGrid), and then move to the right, above the countryGrid, you'll see the hover of the categoryList grid.

ListGrid alignment problem in IE11

We are experiencing a strange problem here.
We use ListGrid to display table data. The data rows display fine in Chrome and Firefox. However, in IE11 we see that only when a specific columns data is longer than the column width, the data is wrapped around (we haven't specified anything specific to this column to display the data wrapped or otherwise). Please see the attached image. When we highlight the row, that highlighted row appears to spill over to next row only when the value in a specific column has overflowed.

In the attached image, please see there are 8 columns. 7th column data is wrapped around (value being "0 No Response") and you may observe that the 2nd highlighted row is spilling over to the next row. When we examine the http element of that column, we are relying on the default CSS as shown below.

<td width="97" height="22" align="left" class="cellSelectedOver" style="overflow: hidden; padding-top: 0px; padding-bottom: 0px; white-space: nowrap;" unselectable="on">0 No Response</td>

Appreciate any suggestions on how to handle this for IE11.

Attached Images
Image may be NSFW.
Clik here to view.
File Type: png
row_alignment_problem_masked.png (12.7 KB)

how to debug the client before onModuleLoad()?

SmartClient Version: v9.1p_2014-10-20/PowerEdition Deployment (built 2014-10-20)
GWT 2.6.1
IE-11

I'm having difficulty debugging my app on the client when it goes through it's init process. With FF and Chrome, the app loads fine. With IE, the app seems to hang before onModuleLoad() is called in MainEntryPoint.java.

The first line I have in onModuleLoad() is SC.showConsole(); which does not get called because IE seems to hang before it reaches onModuleLoad().

Do you have any suggestions as to how to debug this issue on the client? I cannot even get the Developer's Console to appear?

ListGrid record move up/down problem

Version: smartgwt-power-5.0-p20150731
On version 4.1, we had ListGrid subclass with move up/down buttons (created by overriding createRecordComponent) to allow users to reorder rows.

Our code was for move up was:
Code:

        private void moveUp(ListGridRecord record) {
                RecordList rs = getRecordList();
                int index = getRecordIndex(record);

                if (index > 0) {
                        rs.removeAt(index);
                        rs.addAt(record, index - 1);
                }
        }

With 5.0-p20150731, this code starts a indefinite 100% cpu use with the calls:
isc_c_Timer__fireTimeout
isc_c_Class_fireCallback
isc_c_Canvas_clearRedrawQueue
isc_c_Canvas_clearDestroyQueue

We managed to work that around at the cost of some flicker effect, with:
Code:

        private void moveUp(final ListGridRecord record) {
                final RecordList rs = getRecordList();
                final int index = getRecordIndex(record);

                if (index > 0) {
                        rs.removeAt(index);
                        Scheduler.get().scheduleDeferred(new Command() {
                                @Override
                                public void execute() {
                                        rs.addAt(record, index - 1);
                                }
                        });
                }
        }

We'd like to use our previous code to avoid the flicker. Is there anything wrong with it that could cause the issue?

Errors seen when emulating (phonegap packaged) app on Android

Hi,

I see the following error messages in logcat when running an app that I packaged with phonegap. I am trying to run this on an android emulator. I get a blank white screen on the emulator.

I was able to get a simple hello world type app to launch on the emulator. So I think I am following the process of building and packaging correctly.

I am using SmartGwt Pro 5.0p.


Error message saying that it could not open the data source files listed in my application html file
Code:

Unable to open asset URL: file:///android_asset/www/myapp/sc/DataSourceLoader?dataSource=uid,profile
A number of these messages
Code:

glUtilsParamSize: unknow param 0x00000b44

**** ERROR unknown type 0x0 (glSizeof, 72)

Possible bug report [Menu with flat DataSource and initialCriteria]

Hi,

I'm using "v10.0p_2015-07-06" and have observed that when initialising a Menu with a DataSource and 'initialCriteria' specified it does not work,

I've examined the issue and have traced the issue to the initWidget method of the Menu class which looks like:

Code:

    if (this.dataSource != null && !this.hasFlatDataSource()) {
    //if (this.dataSource != null && isc.ResultTree) {

        var criteria = this.initialCriteria || this.criteria;
        ....
        var tree = this.createResultTree(criteria ...
    } else if (this.dataSource != null) {
        ....
        ds.fetchData(null, {caller:this, methodName:"flatDataLoaded"}, requestProperties);
    }

In 'else if' case it seems that 'null' is being passed to fetchData. I am fairly sure we should be passing initialCriteria so that the behaviour of initialCriteria is consistent with its documentation.

Just reporting the problem here so you can validate and include it in the next release.

Problem report - ListGrid with canExpandRecords=true and Simplicity Skin

The problem can be reproduced in the Isomorphic showcase samples. It can only be reproduced if using Simplicity Skin and a ListGrid configured to support expanding rows).

The problem does not appear when using other skins (tested using Enterprise and EnterpriseBlue). It also only seems to affect Internet Explorer (version 11 tested only).

Steps:
1. Navigate to the fetch sample and select Simplicity skin if not already chosen: http://www.smartclient.com/?skin=Sim...tchOperationFS
2. Add the property 'canExpandRecords' and set to true:
Code:

isc.ListGrid.create({
    ID:"dsListGrid",
    width: "100%",
    height: "100%",
    minFieldWidth:80,
    autoFetchData: true,
    canExpandRecords: true,
    dataSource: "supplyItem"
});

3. Click 'Run'
4. Scrolling via the mouse scroll wheel works as expected.
5. Scrolling by selecting and dragging the scroll bar track-piece causes the entire scrollbar to disappear.
6. Scrolling via the scroll wheel continues to work, but the vertical scroll bar is entirely corrupted and can no longer be selected or used with the mouse.

Tested on:
IE 11.0.9600.17914 (affected)
FireFox 39.0.3 (not affected)
Chrome 44.0.2403.130 m (not affected)

Screenshot (IE 11) attached. https://www.evernote.com/l/AA3NGNFbg...pkMB/image.png


Unfortunately, the app is set to go into production soon at a licensed customer where IE is the target browser. Would really appreciate if Isomorphic could help out on this one.

I'll continue my own investigation in the meantime. I have identified that the disappearance is triggered by the next server call to get further paged data.

setCanEdit timing issue fetchMissingValue

There is a timing issue with setCanEdit when the formItem should fetch missing values.
If the formItem requires to fetch the missing display value of a record value, from the optionDataSource. It will display a loading value message in the textitem (if configured). This option disables the formItem so it can't be edited by the user, this is all cool and nice. But if you set the formItem to canEdit=false using setCanEdit(false) during this fetch, it does not work because the last known canEdit is overwritten again with the remembered canEdit (_explicitCanEdit) when the response of the display value returns.

@See:
ISC_Forms@24748
ISC_Forms@24791
Viewing all 4756 articles
Browse latest View live