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

Problem with PopUp edges in Microsoft Edge

$
0
0
Hi,

in our application we are having some display problems with pop-up edges, using Microsoft Edge browser.

For example, if we define a pop-up as follows[1], (using the edgeImage property and also having the bodyColor transparent), we have an unexpected output in Edge.

This is how the pop-up looks in Chrome[2]

This is how the pop-up looks in Microsoft Edge[3]

We can reproduce the problem with the latest version available here[4]

Thanks in advance.

[1] http://pastebin.com/86BS1Qm4
[2] http://www.screencast.com/t/5N5A2fBWI
[3] http://www.screencast.com/t/gVaW0Nn24V7o
[4] https://www.smartclient.com/builds/S...ent/10.0p/LGPL

ListGrid getCellHoverComponent overflow

$
0
0
SmartGWT version: v10.0p_2015-06-23/PowerEdition Deployment (built 2015-06-23)
GWT version: 2.5.1
Browser: IE 11

Hi Isomorphic,

We have a listGrid with an override on getCellHoverComponent, returning a new ListGrid:

Code:

@Override
protected Canvas getCellHoverComponent(Record record, Integer rowNum, Integer colNum) {
        if (hoverComponent == null) {
                hoverComponent = (ListGrid) RPCManager.createScreen("LinksDetailViewer");
        }
        hoverComponent.setHoverAutoDestroy(Boolean.FALSE);
        Criteria linksCriteria = new Criteria();
        linksCriteria.addCriteria(C.OBJECTID, record.getAttributeAsInt(C.OBJECTID));
        linksCriteria.addCriteria(C.LOGIDTO, 0);
        DSRequest requestProperties = new DSRequest(DSOperationType.FETCH);
        requestProperties.setShowPrompt(Boolean.FALSE);
        hoverComponent.fetchData(linksCriteria, new DSCallback() {
               
                @Override
                public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
                        ;
                }
        }, requestProperties);
        return hoverComponent;
}

LinksDetailViewer is:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<isomorphicXML xmlns:fmt="WEB-INF/">
        <fmt:bundle basename="com.em.teco.server.Messages" />
        <ListGrid ID="linksListGrid" dataSource="sprlinks" width="250" height="250">
                <hoverMoveWithMouse>true</hoverMoveWithMouse>
                <keepInParentRect>true</keepInParentRect>
                <fetchOperation>fetchAllowedLinksByUsergroups</fetchOperation>
                <overflow>scroll</overflow>
                <autoFitData>vertical</autoFitData>
                <emptyMessage>
                        <fmt:message key='pm.links.noinfo' />
                </emptyMessage>
                <loadingMessage>
                        <fmt:message key='pm.links.gettinginfo' />
                </loadingMessage>
                <loadingDataMessage>
                        <fmt:message key='pm.links.gettinginfo' />
                </loadingDataMessage>
                <showHeader>false</showHeader>
                <fields>
                        <ListGridField name="linkCaption" />
                        <ListGridField name="linkValue" />
                </fields>
        </ListGrid>
</isomorphicXML>

As can be seen in the attached image, sometimes the amount of records returned with the cellHoverComponent fetch, creates a listgrid that overflows from the browser window.

Is there a way to fix this keeping the getCellHoverComponent override point?

Thanks

Attached Images
File Type: png hover component.png (31.0 KB)

UnconvertableException while rendering response to UI

$
0
0
Smart client version : v10.0p_2015-06-17/Enterprise Deployment

Browser version :Firefox ESR 31.8.0 and IE v8

Details: We are setting array list of Element [org.w3c.dom.Element ]objects in DS response using DSResponse.setdata(). While rendering those responses to UI I get the following exception

[2015-08-07 23:33:38.901] DEBUG AbstractDataSource: before rpcManager.send()
[2015-08-07 23:33:38.903] DEBUG Caught exception in abstarctDatasource class message: java.lang.NullPointerException
at com.isomorphic.datasource.BasicDataSource.elementAsRecord(BasicDataSource.java:1340)
at com.isomorphic.datasource.BasicDataSource.toRecord(BasicDataSource.java:1225)
at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1184)
at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1601)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:807)
at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1409)
at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1358)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:790)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:703)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:694)
at com.isomorphic.js.JSTranslater.convertMap(JSTranslater.java:1245)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:788)
at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1409)
at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1358)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:790)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:703)
at com.isomorphic.js.JSTranslater.toJS(JSTranslater.java:665)
at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:1562)
at com.isomorphic.rpc.RPCManager.send(RPCManager.java:648)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.sendResponse(AbstractDataSource.java:505)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.executeFetch(AbstractDataSource.java:224)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.executeOperation(AbstractDataSource.java:182)
at com.sterlingcommerce.fg.ui.actions.datasource.RPCActionEnum.execute(RPCActionEnum.java:145)
at com.sterlingcommerce.fg.ui.actions.SmartClientRPCAction.handleEnumDataSourceCall(SmartClientRPCAction.java:99)
at com.sterlingcommerce.fg.ui.actions.SmartClientRPCAction.execute(SmartClientRPCAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.sterlingcommerce.fg.ui.requestProcessor.ClientSessionRequestProcessor.processActionPerform(ClientSessionRequestProcessor.java:132)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
at com.sterlingcommerce.security.struts.ParamFilter.doFilter(ParamFilter.java:24)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.security.struts.ParamFilter.doFilter(ParamFilter.java:24)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.fg.ui.filters.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:56)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.ui.dlsso.DLSSOFilter.doFilter(DLSSOFilter.java:264)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.fg.ui.filters.RequestValidator.doFilter(RequestValidator.java:103)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.ui.SecurityExtensionFilter.doFilter(SecurityExtensionFilter.java:127)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ActivityMonitorFilter.doFilter(ActivityMonitorFilter.java:319)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:768)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:544)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection$1JettyConnection.handleRequest(FlushingHttpConnection.java:152)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:959)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:406)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection.handle(FlushingHttpConnection.java:176)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.handleNewConnection(ConduitStreamListener.java:220)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.access$200(ConduitStreamListener.java:62)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener$1.run(ConduitStreamListener.java:283)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

[2015-08-07 23:33:38.903] DEBUG Caught exception in abstarctDatasource class tostrig: com.isomorphic.js.UnconvertableException: java.lang.NullPointerException
at com.isomorphic.datasource.BasicDataSource.elementAsRecord(BasicDataSource.java:1340)
at com.isomorphic.datasource.BasicDataSource.toRecord(BasicDataSource.java:1225)
at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1184)
at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1601)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:807)
at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1409)
at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1358)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:790)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:703)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:694)
at com.isomorphic.js.JSTranslater.convertMap(JSTranslater.java:1245)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:788)
at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1409)
at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1358)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:790)
at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:703)
at com.isomorphic.js.JSTranslater.toJS(JSTranslater.java:665)
at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:1562)
at com.isomorphic.rpc.RPCManager.send(RPCManager.java:648)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.sendResponse(AbstractDataSource.java:505)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.executeFetch(AbstractDataSource.java:224)
at com.sterlingcommerce.fg.ui.actions.datasource.AbstractDataSource.executeOperation(AbstractDataSource.java:182)
at com.sterlingcommerce.fg.ui.actions.datasource.RPCActionEnum.execute(RPCActionEnum.java:145)
at com.sterlingcommerce.fg.ui.actions.SmartClientRPCAction.handleEnumDataSourceCall(SmartClientRPCAction.java:99)
at com.sterlingcommerce.fg.ui.actions.SmartClientRPCAction.execute(SmartClientRPCAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.sterlingcommerce.fg.ui.requestProcessor.ClientSessionRequestProcessor.processActionPerform(ClientSessionRequestProcessor.java:132)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
at com.sterlingcommerce.security.struts.ParamFilter.doFilter(ParamFilter.java:24)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.security.struts.ParamFilter.doFilter(ParamFilter.java:24)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.fg.ui.filters.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:56)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.ui.dlsso.DLSSOFilter.doFilter(DLSSOFilter.java:264)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.fg.ui.filters.RequestValidator.doFilter(RequestValidator.java:103)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.ui.SecurityExtensionFilter.doFilter(SecurityExtensionFilter.java:127)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ActivityMonitorFilter.doFilter(ActivityMonitorFilter.java:319)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:768)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:544)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection$1JettyConnection.handleRequest(FlushingHttpConnection.java:152)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:959)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:406)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection.handle(FlushingHttpConnection.java:176)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.handleNewConnection(ConduitStreamListener.java:220)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.access$200(ConduitStreamListener.java:62)
at com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener$1.run(ConduitStreamListener.java:283)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

[2015-08-07 23:33:38.904] DEBUG Caught exception in abstarctDatasource class starck trace: [Ljava.lang.StackTraceElement;@96964e90
[2015-08-07 23:33:38.906] DEBUG RPCActionEnum.execute: Caught FileGatewayDataSourceException com.sterlingcommerce.fg.exception.FileGatewayDataSourceException: Datasource operation failed on the rpc send
[2015-08-07 23:33:38.906] DEBUG SmartClientRPCAction: handleEnumDataSourceCall actionToTake: mailbox_DS completed...

This seem to appear after we upgraded the smart client library from v82 enterprise to v10.0 enterprise. It was working fine in v82 enterprise .

Using hoverHTML for PIE chart

$
0
0
I am using SmartClient Version: v10.0p_2015-08-08/EVAL Deployment (expires 2015.10.07_15.25.25) and FireFox ESR 24.3.0.

I tried to use hoverHTML for PIE chart but it looks not supporting some charts like PIE chart. Please see the attachments.

I'd like to know if SmartGWT supports floating hover for PIE chart using a function like hoverHTML.

If not, do you have any plan to provide that kind of function?

TreeNode title disappearing

$
0
0
Using 5.0-p20150731 PowerEdition/Browser: Chrome

We have a Treenode that shows the Title and a SelectItem (or TextItem) on the children.
When we change the SelectItem and click anywhere outside, the title of this node disappears. However, the title does not disappear when we fill the TextItem.
We found the problem when we are trying to create a simple text by removing the following line:
selectItem.setAddUnknownValues(false);

Code:



        private VLayout mainLayout = new VLayout();
        private Canvas canvas = new Canvas();

        private TreeNode createNode(String name, String id, String parentId, int type) {
                TreeNode node = new TreeNode();
                node.setID(id);
                node.setAttribute("Name", name);
                node.setAttribute("VehicleBehaviorId", id);
                node.setAttribute("ActionType", type);
                node.setAttribute("ParentId", parentId);
                node.setEnabled(true);
                return node;
        }


        public Form() {
                Map<String, String> codeValueMap = new LinkedHashMap<String, String>();
                codeValueMap.put("0", "Select...");
                codeValueMap.put("1", "Option 1");
                codeValueMap.put("2", "Option 2");
               
                Tree tree = new Tree();
                tree.setModelType(TreeModelType.PARENT);
                tree.setNameProperty("Name");
                tree.setIdField("VehicleBehaviorId");
                tree.setParentIdField("ParentId");
                tree.setData(new TreeNode[] {
                                // Motor
                                createNode("Parent", "id", "1", 0),
                                createNode("Select an option here ->", "id1", "id", 1),
                                createNode("Then, click here ->", "id2", "id", 2)  });

                TreeGrid treeGrid = new TreeGrid();
                treeGrid.setWidth100();
                treeGrid.setHeight100();
                treeGrid.setEditOnFocus(true);

                TreeGridField nameField = new TreeGridField("Name");
                nameField.setWidth("60%");
               
                final TreeGridField actionField = new TreeGridField("Value");
                actionField.setWidth("40%");
                actionField.setCanEdit(true);
                actionField.setValueMap(codeValueMap);

                treeGrid.setData(tree);
                treeGrid.getTree().openAll();
                treeGrid.setFields(nameField, actionField);
                treeGrid.setEditorCustomizer(new ListGridEditorCustomizer() {
                        @Override
                        public FormItem getEditor(ListGridEditorContext context) {
                                Record rec = context.getEditedRecord();
                                int type = rec.getAttributeAsInt("ActionType");
                                switch (type) {
                                case 0:
                                        return null;
                                case 1:
                                        SelectItem selectItem = new SelectItem();
                                        selectItem.setAddUnknownValues(false);
                                        return selectItem;
                                default:
                                        return new TextItem();
                                }
                        }
                });

                canvas.setHeight100();
                canvas.addChild(treeGrid);

                mainLayout.setWidth100();
                mainLayout.setHeight100();
                mainLayout.addMember(canvas);

                this.addChild(mainLayout);
        }

ListGrid - AutoFit / ScrollBar

$
0
0
When setAutoFitData(Autofit.VERTICAL) the vertical scrollbar appears on the outside of the listgrid, and vertical scrolling does not keep the header columns visible.

Is there a way to achieve this?

Vertical ScrollBar is not allow to scroll down to view the groups in TreeGrid I.E10

$
0
0
Hi,
We are using Smart Gwt-4.1p (10th August 2015)
Browser: IE10, Screen resolution: 1280 X 1024
Attached file: TestsmartGwtProject.java (Tree Grid Code),
EmployeeXmlDS.java (Data Source), employees.data.xml (XML data)
Attached snapshot: scrolling_Issue.png
Steps for reproducing issue:
1. Create multiple child group under parent group tree.
2. Expand the parent group tree.
3. Try to scroll the scrollbar up to bottom.
Issue: Vertical Scroll bar is not allow to scroll down to view the groups in TreeGrid in I.E10.0
For example: Inside code I have provided TreeGrid height “700px” and created “31” child group for parent group (Charles Madigen). So it’s reaches up to the bottom of the height of treegrid.
Now try to scroll, user are not able to scroll till the bottom and see the 31st child.
Note: This issue won’t occur if I‘ll add “30th” child or “32nd” child.
Please let us know, how to resolve this issue.

Thanks.

Attached Images
File Type: png scrolling_Issue.png (67.2 KB)
Attached Files
File Type: xml employees.data.xml (3.7 KB)
File Type: java EmployeeXmlDS.java (1.3 KB)
File Type: java TestsmartGwtProject.java (611 Bytes)

DataSourceField Validation

$
0
0
Hi,
is there a way to get validation automatically working for datasourceFieldTypes?

I have created DS A with field b of type, which is pointing to dataSource B. In both dataSources I have validate operation. If I call validate on A, is it possible that framework will trigger validate operation also on datasource B?

Or do I need manually to create serverMethod for validate in ds A, which will trigger new validate request for ds B?

Regards
Matus

Any demo of smartGWT with mysql+hibernate?

$
0
0
Hi all,

I am new in smartGWT.

I am trying to create a testing smartGWT project with mysql+hibernate, do you have any demo project can share to me please? Thank you.

text selection on focus change with mouse click

$
0
0
Hi,

Is see an inhomogeneous behavior when editing in grid regarding text selection when an item gets the focus with the mouse:

1. When the focus is changed by clicking with the mouse in a different field of the same row that is currently being edited:
1.1 all the text in the new focused field is selected for a very short time
1.2 then the selection is removed and the cursor is kept in the position the click was done
2. When the focus is changed by clicking with the mouse in a field from a record that is not currently being edited:
2.1 the text in the new focused field is selected and selection is kept

Is this behavior intended? If so, could I force case 1 to behave in the way it does for case 2?

This can be tested in current live examples [1]

In addition, I've tried to change this behavior when editing in a DynamicForm so when focusing a field with the mouse the text gets selected.

What I wrote:
Code:

isc.DynamicForm.create({
    selectOnClick: true,
    fields: [
        {title: "Username", type: "text"  },
        {title: "Email", type: "text"}
    ]
});

What I get: selectOnClick has no effect for me, when focusing in a different field using the mouse its text remains unselected.

What I expect: text should be selected in the field that acquired the focus [2].

Both issues tested in live examples [1], version ISC_100_BRANCH_2015-07-30_1438306266_alex_apex/WWW Deployment

Regards

---
[1] http://www.smartclient.com/#massUpdateFS
[2] http://www.smartclient.com/docs/rele....selectOnClick

Simple Question using Calendar

$
0
0
Hi all,

I have a simple question that is taking me a lot of time, I cant find in API how to show the time per row something like this:
http://goo.gl/uiwvdP

I appreciate any help.
Thanks in advance


SmartClient Version: v10.0d_2014-02-13/LGPL Deployment (built 2014-02-13)

ListGrid selectItem default value

$
0
0
I have a listGrid which has a column of selectItems. The user can choose "Yes", "No" and "Complete" from the drop down. I would like to set the default value to to "No" using selectItem.setDefaultValue("No");

Here is my code that makes this column.

ListGridField listGridField = new ListGridField("");
SelectItem selectItem = new SelectItem();
selectItem.setValueMap("Yes", "No", "Complete");
selectItem.setDefaultValue("No");
listGridField.setEditorProperties(selectItem);

my problem is that only the first record is set to "No" and the rest remain blank.

Attached Images
File Type: png wizard2.png (41.2 KB)

ListGrid setEditByCell(true) EscapeKeyEditAction.CANCEL undoes the whole row of edits

$
0
0
PROBLEM: It's nice to edit cell by cell with ListGrid:setEditByCell(true). When the esc key is depressed and ListGird:setEscapeKeyEditAction(EscapeKeyEditAction.CANCEL) is set, all the edits of the row that the cell is selected is undone. A user will make several edits within a row, and the user will only wish to undo the edit of the cell selected.

SOLUTION (feature request?): Only undo the cell selected to edit and leave the other edited cells of the respective row alone
  1. if the esc key is depressed
  2. if ListGird:setEscapeKeyEditAction(EscapeKeyEditAction.CANCEL)
  3. and if ListGrid:setEditByCell(true)
Version Info
  1. SNAPSHOT_v10.1d_2015-08-10/Enterprise Deployment 2015-08-10
  2. Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:26.0) Gecko/20100101 Firefox/26.0

Basic design questions

$
0
0
1. The application I'm building pulls data from tables that include records from our entire university. I'd like to be able to limit the results to a specific department or academic program. Can I do that at the datasource level with a criteria? Is there an example of this available?

2. I'm a little unclear on how to handle one to many relationships. The application will work with student data. Each student can have multiple test results for example. When a student is selected in a list view I'd like to have the detailed view display the test results as a list. Examples would be helpful.

3. I'm intrigued by the splitPane element as a potential parent to my layout. I won't be needing 3 panes though. I am envisioning 2 panes. One with a list view and search and the second with a set of detailed tabs. Does this make sense? Or should I be looking at another layout style? Examples of recommended layouts are welcome.

Thanks
Russ Poyner

I'm working with SmartClient 10, currently SmartClient_SNAPSHOT_v101d_2015-06-02_Pro

Need solution to show the listgrid in front

$
0
0
I am new to gwt and need help in fixing this issue. I have my screen with 4 subtabs. Each tab loads the records using listgrid. once i right click and select add,edit,view options it should show the form view of the tab class. The tab's form is coming but it's hiding behind the main screen. Please see the code sample

if(displaySpecialProgram== 1){
specialproggrid = new GridWithCallback(ConstantVars.memberSpecialPrograms,new MemberSpecialProgramsDS(),"Special Programs",ConstantVars.memberSpecialPrograms){

@Override
public void setupForm() {
wnd.setIsModal(true);
wnd.setKeepInParentRect(true);
}

@Override
public void setGridFields() {

}

@Override
public boolean isEditable(Record r) {

return true;
}

@Override
public void onSave() {

MemberProfile.getInstance().getWindow().show();
MemberProfile.getInstance().getspclProgGrid().getGrid().invalidateCache();
}

@Override
public void onCancel() {

MemberProfile.getInstance().getWindow().show();
}

@Override
public void onGridEdit() {

if(SystemClientUtils.getIntegerSysVariable(SystemVariableConstants.HIDE_MEMBER_PROFILE_SPECIAL_PROGRAM)!=0)
MemberProfile.getInstance().getWindow().hide();
}

@Override
public void onGridAdd() {
if(SystemClientUtils.getIntegerSysVariable(SystemVariableConstants.HIDE_MEMBER_PROFILE_SPECIAL_PROGRAM)!=0)
MemberProfile.getInstance().getWindow().hide();
}

};
childList.add(specialproggrid);
specialProgamTab.setPane(specialproggrid);
tSet.addTab(specialProgamTab);
}


in the gridcallback class i have some code like this

@Override
protected void onAdd() {
if (SharedUtils.nonMedhokMemberOnly) {
SC.say("Cannot Add/Edit. View only mode");
return;
}
if (canAdd()) {
if (criteria.containsKey(attributeName) && !criteria.get(attributeName).equals("0")) {
viewOnly = false;
saveButton.setDisabled(false);
getForm().clearErrors(true);
getForm().editNewRecord(criteria);
onGridAdd();
showWindow();
}
}
}


private void showWindow() {
getWindow().show();
if(buttonBar == null){
buttonBar = new HLayout();
buttonBar.setWidth(getWindow().getWidth());
buttonBar.setHeight(30);
buttonBar.addMember(saveButton);
saveButton.setAlign(Alignment.CENTER);
buttonBar.addMember(cancelButton);
buttonBar.setAlign(Alignment.CENTER);
buttonBar.setParentElement(wnd);
if(c != null){
canvasLayout.addMember(buttonBar);
}else{
wnd.addItem(buttonBar);
}
}
wnd.bringToFront();
}

but still the specialprgtab form is going behind and i have to close the main screen to see it. how can i fix this issue. please send me a response asap

Does clipping work for static text area items?

$
0
0
I have a form with a read-only text area field. I want the height of the box to be the same as when it is editing (I toggle forms into edit mode via a button). When the content is larger than the height, it should clip (when read-only), but this doesn't seem to work. Can be reproduced with this example:

Code:

    isc.DynamicForm.create({
        fields: [
            { name: 'test', type: 'textarea', canEdit: false, clipStaticValue: true, defaultValue: '1\n2\n3\n4\n5\n6', height: 30, readOnlyDisplay: 'static', staticHeight: 30 }
        ]
    })

I would expect the height of the text area to be 30.

6px padding on right auto added to icons used in headers of lists

$
0
0
There is a CSS property "padding-right: 6px" when displaying only an icon in a ListGrid header field. This extra padding to the right seems to be used for a gap between the icon and title (text). I was wondering if there was a method/property to remove that padding so that the icon will look centered? Our expected result is only a single icon, center-aligned in the ListGrid header field. Currently, our icon in the header field has 6px extra padding on the right even though the title is not there. This was reproduced in the SmartClient Feature Explorer.

Note: I set title property to a string with a single space to hide the title.

1. SmartClient Version: v9.1p_2015-03-26/Pro Development Only (built 2015-03-26)
2. Browsers involved: Google Chrome Version 43.0.2357.125 (64-bit) and Firefox 37.0.1
3. Reproduced using SmartClient Feature Explorer:
http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html#listsListGridFields

Using the following code:

Code:

isc.ListGrid.create({
    ID: "countryList",
    width:500, height:224, alternateRecordStyles:true,
    fields:[
        {name:"", icon: "http://www.smartclient.com/favicon.ico", title: " " , showValueIconOnly: "true"},
        {name:"countryName", title:"Country"},
        {name:"independence", title:"Nationhood", type:"date"},
        {name:"population", title:"Population", type:"integer"},
        {name:"gdp", title:"GDP", type:"float"}
    ],
    data: countryData
})

After our app is redeployed

$
0
0
SmartGwt: 4.1
GWT: 2.6.1

After we do a re-deployment of our app on tomcat, after we have fixed bugs or added new features, some users cannot run our app without first clearing their cache.

Is this a common problem and what may be a solution.

The Error that we get is:

Server returned FAILURE with no error message performing operation 'custom'

The first thing our app does is fetches user's data using a DataSource.

Does anyone have an idea?

intermittent rcp invocation exceptions

$
0
0
Using SmartClient Version: v9.1p_2014-07-22/PowerEdition Deployment (built 2014-07-22) and Chrome version 44.0.2403.130

We keep getting intermittent rcp invocation exceptions with the following stack trace. This seems to happen very often on Chrome but IE is fine.

SEVERE: CLIENT EXCEPTION: com.google.gwt.user.client.rpc.StatusCodeException: 0
java.lang.Throwable: 0
at com.google.gwt.core.client.impl.StackTraceCreator$CollectorEmulated.$fillInStackTrace(StackTraceCreator.java:174)
at java.lang.RuntimeException.RuntimeException(RuntimeException.java:508)
at com.google.gwt.user.client.rpc.StatusCodeException.StatusCodeException(StatusCodeException.java:35)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.$onResponseReceived(RequestCallbackAdapter.java:209)
at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:258)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
at Unknown.anonymous(XMLHttpRequest.java:351)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java:189)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at Unknown.anonymous(Impl.java:70)

ISC Admin Console Issue

$
0
0
Hi,

I am using the ISC Admin Console, I input my local mysql database information and click down the Test button, the result is success.
But when I click the Save button, it fails, the message is

"Please wait for the container to reload before continuing.
Note that you may need to explicitly restart your servlet engine if you encounter difficulty accessing this database."

Attached is the capture, any one knows why please?

Attached Images
File Type: jpg ISC admin console.jpg (101.0 KB)
Viewing all 4756 articles
Browse latest View live