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

Are Browser scrollbars generated by SmartGWT considered a bug?


Support for Internet explorer 11.0.9600

$
0
0
Hi,

We are using 'SmartClient Version: 8.0/PowerEdition Deployment (built 2011-01-21)' for our application.

Recently, we have been testing our application in ‘Internet Explorer 11.0.9600’. But the screen layout is distorted.

Does SmartClient is supported in Internet explorer 11.0.9600

Thanks & Regards

KB

HowTo question: Resize TabSet to current tab's pane size

$
0
0
Hi Isomorphic,

I have the following use case:
  • Window (setWidth(700); setHeight(600);) containing
    • TabSet, with
      • Tab 1 (with just a DynamicForm inside)
      • Tab 2 (with just another DynamicForm inside)
      • Tab 3 (with just another DynamicForm inside)
      • Tab 4 (with just another DynamicForm inside)
    • HLayout (with just OK/Apply/Cancel buttons inside)
    • LayoutSpacer (experimenting)

So basically it is like the layout_tabs_add_remove-sample, but as the DynamicForms are different size, it's not exactly the same.

I'd like to archive the following: The window is big enough for all DynamicForms. I'd like the TabSet to be that high that the current Tab's Form is displayed, but not more and not less. Directly after the Tab's pane ends, the TabSet should also end and the buttons should be displayed.

How do I archive this? The only thing I can manage are Buttons-HLayout always at the bottom or always somewhere else, but not Buttons-HLayout directly after the TabSet and the unneeded space after the Buttons-HLayout.

I experimented with LayoutSpacer and some TabSet.setHeight(getHeight()), and reflow(), but nothing worked.

Thank you & Best regards,
Blama

ValueIcon align

$
0
0
Hi,

In new version of SmartGWT there is a change in displaying value icons.
In 4.1 there is a span but in previous versions was img.
Unfortunately with larger or different font than in showcase it doesn't look good. Browser aligns this elements in different way.

To check this out try enlarging font on showcase with Firebug or other tool and look at TreeGrid menu.
Than try changing vertical-align on image next to displayed text on this tree. With bottom instead of middle it looks more in a middle.

My question is how can I change back to display value icons as img instead of span?

In other case how can I change vertical align of this span from middle to bottom.

Best regards
Mariusz Goch

Datasource error Messages not loaded properly from the resource bundle

$
0
0
Hi All,

The below code is the field definition in the datasource
Code:


                <field name="RQ5_REQESTED_QUANTITY" type="integer" >
                        <validators>
                                <validator type="requiredIf" expression="true" >
                        <errorMessage><fmt:message key="XXXX_V_011"/></errorMessage>
                </validator>
               
                                <validator type="isInteger" expression="true" stopIfFalse="true">
                                        <!-- XXXX_V_078  Value should be an Integer  -->
                                        <errorMessage><fmt:message key="XXXX_V_078" /></errorMessage>
                                </validator>
                               

                               
                                <validator type="integerRange" min="1" expression="true" stopIfFalse="true">
                                        <!-- XXXX_V_077  Value must be greater than 0  -->
                                        <errorMessage><fmt:message key="XXXX_V_077" /></errorMessage>
                                </validator>                                       
                        </validators>
                </field>


The below is the generated script in the browser
Code:

validators:[

                {
                    expression:"true",
                    type:"requiredIf",
                    errorMessage:"Field value cannot be empty."
                },
                {
                    expression:"true",
                    stopIfFalse:true,
                    type:"isInteger",
                    errorMessage:"Value should be eithe zero or a* positive Integer"
                },
                {
                    expression:"true",
                    min:1.0,
                    stopIfFalse:true,
                    type:"integerRange",
                    errorMessage:"<fmt:message key=\"XXXX_V_077\">"
                }
            ]

As you can see above the first two messages are loaded properly from resource bundle but the last generated error message it is not loaded "<fmt:message key=\"XXXX_V_077\">"


The complete datasource file is attached.

waiting your feedback

version : SmartClient_v90p_2014-03-07_PowerEdition

Attached Files
File Type: xml VRQ5_REQUISITION_SUGGESTION.ds.xml (2.7 KB)

Japanese chars are not written correctly in textitem when using validate on change

$
0
0
SmartGWT version 3.0
Browser FF

Hiragana characters in the Japanese language are not written correctly in the text item when its validated on change using a custom validator.


----------------------------------------
To setup Japanese keyboard

1. Go to 'Region and Language'
2. Go to the 'Keyboards and Language' tab
3. Click Change keyboards...'
4. On the 'General' tab click 'Add'.
5. Navigate to Japan and select Japanese and Microsoft IME options
6. Click OK, you should have those options in your list now
7. Go to the Language bar tab in the same panel, and check 'Docked in the Taskbar' (that's where I have it)
8. The language bar lets you select Japanese language by clicking on the EN, then switch to Japanese
9. Change the keyboard input then by clicking on the capital A and changing it to Hiragana(あ)
10. You should be typing in Japan now.
11. If you load the 'Onscreen keyboard' you should be able to see where the keys are and what your keyboard is set to.

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

k + o means こ in Japanese. The character is written correctly (see 1.png) when the valid state remains true, that is, valid. However, when written causing the valid state to be false (4.png) or from false to true (2.png and 3.png), the letter don't appear correctly.

Sample code

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.form.validator.CustomV alidator;

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

DynamicForm form = new DynamicForm();

TextItem item = new TextItem();
item.setTitle("JapaneseChar");
item.setValidateOnChange(true);

CustomValidator validator = new CustomValidator()
{

@Override
protected boolean condition(Object value)
{
if(value == null || ((String)value).length() == 0 || ((String)value).length() > 10)
return false;
else
return true;
}
};
item.setValidators(validator);

form.setFields(item);
form.draw();
}

}

Please let me know if you need any more info.

This appears to be a focus issue in smartgwt. Is there a fix or workaround for this?

Attached Images
File Type: png 1.png (811 Bytes)
File Type: png 2.png (1.8 KB)
File Type: png 3.png (962 Bytes)
File Type: png 4.png (2.1 KB)

DS.XML & IN operator in the WHERE clause & Criteria

$
0
0
Good day!

Can i use Criteria() for create list of values in "WHERE value IN (value1,value2,...)" ?

I tried to use an array, but it did not give the desired effect

Code:

<whereClause>
requeststatusplanid IN ($criteria.requeststatusplanid)
</whereClause>

Thanks!

ListGrid Column Misalignment Issue

$
0
0
Hi,

We observe an misalignment between the ListGrid headers and list grid records in IE 9 with the html5 doctype declaration "<!DOCTYPE html>".

We are using SmartClient_v83p_2014-01-24_PowerEdition and IE9.

We can reproduce the issue by replacing the "Portal Animation" or "Animation Programing" Example with the following code. We also notice if records are not grouped, this issue won't happen. Thanks!

Code:

<!DOCTYPE HTML>
<HTML><HEAD><TITLE>
    SmartClient animation programming
</TITLE>
    <SCRIPT>var isomorphicDir = "../../isomorphic/"</SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_Core.js></SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
    <SCRIPT SRC=../../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
        <SCRIPT SRC=../../isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
</HEAD><BODY><SCRIPT>
isc.screenReader = true;

var testData2=[
{pk:0, orderID:8620, itemDescription:"18 inch flat panel monitor",
    category:"Hardware", shipDate:new Date(2009,11,11), quantity:2 , unitPrice:"375" },
{pk:1, orderID:629, itemDescription:"Office 'Productivity' & Suite",
    category:"Hardware", shipDate:new Date(2009,12,10), quantity:15 , unitPrice:"64.99" }];

isc.DataSource.create({
    ID:"orderItemLocal2",
    clientOnly:true,
    testData:testData2,
    fields:[
        {name:"pk", type:"text", primaryKey:"true", hidden:"true"},
        {name:"orderID", type:"text", canEdit:false, title:"Order ID", pluralTitle:"Orders"},
        {name:"itemDescription", type:"text", title:"Description"},
        {name:"category", type:"text", title:"Category"},
        {name:"shipDate", type:"date", title:"Ship Date"},
        {name:"quantity", type:"integer", title:"Quantity"},
        {name:"unitPrice", type:"text", title:"Price"}
    ]
});
               
isc.ListGrid.create({
    ID: "companyList",
    width:600, height: 400,
    autoFetchData:true,
    dataSource:orderItemLocal2,
        showFilterEditor: true,
        groupByField: "category",
    fields:[
        {name:"orderID"},
        {name:"itemDescription"},
        {name:"category"},
        {name:"shipDate"},     
        {name:"quantity"},
        {name:"unitPrice"}
    ]
});
</SCRIPT></BODY></HTML>


TreeGrid styling on drag and drop to change baseStyle

$
0
0
Hello All,

I am experience some strange behavior when attempting to style a row in a tree grid when a user is attempting to drop a record.

I am on the newest nightly build using a slightly outdated firefox

1. SmartGWT 4.1p 2014-03-16

2. firefox 24.3.0 ESR (FF 27.0.1 does not seem to be supported for dev mode)


I think I have followed various instructions on this forum on how to go about doing so.

1) I created a standalone module that changes the background color via assigning a new base style in by overriding getBaseStyle.
2) I also added drop move, drop out and drop over handlers.

What seems to happen is that the new basestyle does get assigned when the mouse enters a row, but when the user leaves the initial row and moves to another row, the previous drop row's basestyle does not seem to reset until the drop has been completed. This creates the visual affect where multiple rows get styled as the user makes their way to the final drop row.

In the screen shot, this is seen when multiple rows get the aqua background color. Here, I tried to drag the tree node "Olivier Hebert" onto "Kay Monroe"

What am I doing incorrectly? I would like only Kay Monroe to remain styled with the revised basestyle

I also noticed that onDropOver and onDropOut did not get called until I released the mouse to finish the drop. Perhaps I am misusing them, and I should use something else?

Code:

public class TreeDragHighlightDropSample implements EntryPoint {

        public static final TreeNode[] employeeData = new TreeNode[] {
                        new EmployeeTreeNode("4", "1", "Charles Madigen", "Chief Operating Officer", true),
                        new EmployeeTreeNode("188", "4", "Rogine Leger", "Mgr Syst P P", true),
                        new EmployeeTreeNode("262", "188", "Jacques Desautels", "Line Wrker A", false),
                        new EmployeeTreeNode("261", "188", "Kay Monroe", "Stn Opr", false),
                        new EmployeeTreeNode("260", "188", "Francine Dugas", "Fire Sec Off", false),
                        new EmployeeTreeNode("259", "188", "Jacques Leblanc", "Purch Clk", false),
                        new EmployeeTreeNode("258", "188", "Ren Xian", "Mobile Eq Opr", false),
                        new EmployeeTreeNode("257", "188", "Olivier Hebert", "Met Read/Coll", false)};

        public void onModuleLoad() {

                VLayout layout = new VLayout();
                DynamicForm form = new DynamicForm();
                final TextAreaItem textArea = new TextAreaItem();
                textArea.setShowTitle(false);
                textArea.setWidth(500);
                textArea.setHeight(300);
                textArea.setValue("events will be tracked here");
                form.setItems(textArea);
                layout.addMember(form);

                Tree employeeTree = new Tree();
                employeeTree.setModelType(TreeModelType.PARENT);
                employeeTree.setRootValue(1);
                employeeTree.setNameProperty("Name");
                employeeTree.setIdField("EmployeeId");
                employeeTree.setParentIdField("ReportsTo");
                employeeTree.setOpenProperty("isOpen");
                employeeTree.setDefaultIsFolder(true);

                employeeTree.setData(employeeData);

                TreeGridField nameField = new TreeGridField("Name");

                final TreeGrid employeeTreeGrid = new TreeGrid() {

                        protected String getBaseStyle(ListGridRecord record, int rowNum, int colNum) {
                                String baseStyle = super.getBaseStyle(record, rowNum, colNum);
                                Canvas dragTarget = EventHandler.getDragTarget();
                                boolean dragging = dragTarget != null;

                                if (dragTarget == this) {
                                        Record[] dragRecords = getDragData();
                                        if (dragRecords != null && dragRecords.length == 1) {

                                                if (dragRecords[0].getAttributeAsString("EmployeeId").equals(
                                                                record.getAttributeAsString("EmployeeId"))) {
                                                        // in the event of a single click, sometimes we get a drag event that seems to start
                                                        // if the drag data is the same as the record beign dropped on, use the base style
                                                        return baseStyle;
                                                }
                                        }
                                }

                                TreeNode dropFolder = getDropFolder();
                                if (dragging && dropFolder != null && record != null) {
                                        int dropIndex = getRecordIndex(dropFolder);
                                        int recIndex = getRecordIndex(record);
                                        if (dropIndex == recIndex) {
                                                textArea.setValue(textArea.getValueAsString() + "\nsetting drop style on rowNum: " + rowNum + " colNum: " + colNum);
                                               
                                                return "myTreeCellDrop";
                                        }
                                }
                                return baseStyle;
                        }
                };

                employeeTreeGrid.setWidth(500);
                employeeTreeGrid.setHeight(400);
                employeeTreeGrid.setIconSize(0);
                employeeTreeGrid.setShowDropLines(false);
                employeeTreeGrid.setCanDropOnLeaves(true);
                employeeTreeGrid.setBaseStyle("myTreeCell");
                employeeTreeGrid.setSelectionType(SelectionStyle.SINGLE);

                employeeTreeGrid.setCanReorderRecords(true);
                employeeTreeGrid.setCanAcceptDroppedRecords(true);
                employeeTreeGrid.setShowOpenIcons(false);
                employeeTreeGrid.setDropIconSuffix("into");
                employeeTreeGrid.setClosedIconSuffix("");
                employeeTreeGrid.setData(employeeTree);
                employeeTreeGrid.setFields(nameField);

                employeeTreeGrid.addDropOutHandler(new DropOutHandler() {

                        @Override
                        public void onDropOut(DropOutEvent event) {

                                int rowNum = employeeTreeGrid.getRecordIndex(employeeTreeGrid.getDropFolder());
                                textArea.setValue(textArea.getValueAsString() + "\n  onDropOut: " + rowNum);
                                if (rowNum >= 0) {

                                        employeeTreeGrid.refreshRow(rowNum);
                                }
                        }
                });

                employeeTreeGrid.addDropOverHandler(new DropOverHandler() {

                        @Override
                        public void onDropOver(DropOverEvent event) {

                                int rowNum = employeeTreeGrid.getRecordIndex(employeeTreeGrid.getDropFolder());
                                textArea.setValue(textArea.getValueAsString() + "\n  onDropOver: " + rowNum);
                                if (rowNum >= 0) {

                                        employeeTreeGrid.refreshRow(rowNum);
                                }
                        }
                });

                employeeTreeGrid.addDropMoveHandler(new DropMoveHandler() {

                        @Override
                        public void onDropMove(DropMoveEvent event) {

                                int rowNum = employeeTreeGrid.getRecordIndex(employeeTreeGrid.getDropFolder());
                                textArea.setValue(textArea.getValueAsString() + "\n  onDropMove: " + rowNum);
                                if (rowNum >= 0) {
                                        employeeTreeGrid.refreshRow(rowNum);
                                }
                        }
                });

                layout.addMember(employeeTreeGrid);
               
               
               
                layout.draw();
        }

        public static class EmployeeTreeNode extends TreeNode {

                public EmployeeTreeNode(String employeeId, String reportsTo, String name, String job, boolean isOpen) {
                        setAttribute("EmployeeId", employeeId);
                        setAttribute("ReportsTo", reportsTo);
                        setAttribute("Name", name);
                        setAttribute("Job", job);
                        setAttribute("isOpen", isOpen);
                }
        }

}

I attempt to track the sequence of events in a text area. Its contents during a sample run:
Code:

events will be tracked here
  onDropOver: 7
  onDropMove: 7
  onDropMove: 6
setting drop style on rowNum: 6 colNum: 0
setting drop style on rowNum: 6 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 5
setting drop style on rowNum: 5 colNum: 0
setting drop style on rowNum: 5 colNum: 0
  onDropMove: 5
setting drop style on rowNum: 5 colNum: 0
setting drop style on rowNum: 5 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 4
setting drop style on rowNum: 4 colNum: 0
setting drop style on rowNum: 4 colNum: 0
  onDropMove: 4
setting drop style on rowNum: 4 colNum: 0
setting drop style on rowNum: 4 colNum: 0
  onDropMove: 4
setting drop style on rowNum: 4 colNum: 0
setting drop style on rowNum: 4 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 1
setting drop style on rowNum: 1 colNum: 0
setting drop style on rowNum: 1 colNum: 0
  onDropMove: 3
setting drop style on rowNum: 3 colNum: 0
setting drop style on rowNum: 3 colNum: 0
  onDropMove: 3
setting drop style on rowNum: 3 colNum: 0
setting drop style on rowNum: 3 colNum: 0
  onDropMove: 3
setting drop style on rowNum: 3 colNum: 0
setting drop style on rowNum: 3 colNum: 0
  onDropMove: 3
setting drop style on rowNum: 3 colNum: 0
setting drop style on rowNum: 3 colNum: 0
  onDropMove: 3
setting drop style on rowNum: 3 colNum: 0
setting drop style on rowNum: 3 colNum: 0
  onDropOut: 3
setting drop style on rowNum: 3 colNum: 0

the css though i'm not sure if the issue is here"
Code:


.myTreeCell,
.myTreeCellDark,
.myTreeCellOver,
.myTreeCellOverDark,
.myTreeCellSelected,
.myTreeCellSelectedDark,
.myTreeCellSelectedOver,
.myTreeCellSelectedOverDark,
.myTreeCellDisabled,
.myTreeCellDisabledDark  {
        border-top:1px solid black;
        background-color: transparent;
}


.myTreeCellDrop,
.myTreeCellDropDark,
.myTreeCellDropOver,
.myTreeCellDropOverDark,
.myTreeCellDropSelected,
.myTreeCellDropSelectedDark,
.myTreeCellDropSelectedOver,
.myTreeCellDropSelectedOverDark,
.myTreeCellDropDisabled,
.myTreeCellDropDisabledDark  {
        border-top:1px solid black;
        background-color: aqua;
}

A related question:
Is there a way to prevent Rogine Leger from getting styled?

Thank you for taking the time. I've spent a few days on this and I feel like I am missing something.

Attached Images
File Type: png treegrid-drop-styling.png (18.8 KB)

Issue with 'dateIsWorkday' function

$
0
0
Issue with 'dateIsWorkday' function. It happens in all browser with v10.0d 2014-03-16 (in February versions at least it happens too)

Steps to reproduce:

1) Unrar the following file:
https://mega.co.nz/#!0QBA1QhJ!t4Q3r66rMvj7scFQkTarwj5rPJYNHomvPkVNt5j NlhU
inside:
smartclientSDK\isomorphic\system\reference

2) Start server and open:
http://localhost:8080/isomorphic/system/reference/IssueCalendar.html

3) If you go to day view, you can see that the first cell is grey. It should be white (as it is in week view)

As you can see in "ob-calendar/ob-resourcescalendar-widget.js" the function dateIsWorkday is always returning true.


Here it is a video showing how the issue is reproduced and some tests with 'dateIsWorkday ' function : http://screencast.com/t/ouyZVAYz8

Thanks and regards.

STATUS_MAX_POST_SIZE_EXCEEDED warning

$
0
0
SmartClient Version: SNAPSHOT_v9.1d_2014-01-24/Enterprise Deployment (built 2014-01-24)
FireFox 26


One of our testers received the following warning message when clicking on a tab as part of test case execution:

"The server did not receive the data that was sent to it.

Please see the documentation for
isc.RPCResponse.STATUS_MAX_POST_SIZE_EXCEEDED
"

We have only seen this warning come up once and have not been able to reproduce it again.

Neither the client or server isomorphic 4.1d javadocs for RPCResponse have any information on this warning.

Can you give me any information on the cause of this warning?

Thks

How to create, retrieve, update and delete data from MySql database table using Java

$
0
0
I am a newbie in Smart Client Forum.

I need a full working example codes for the following functionalities :

Could anyone please guide me how to display data from a mysql database table using Java GUI and allow for insert, update, retrieve and delete functions.

Whether this can be done ?

Thanks in advance.

does it work in asp.net?

$
0
0
Hi...

First "SMART CLIENT" is very good.
So we are trying to buy "SMART CLIENT".

First I want to say I'm sorry.
Because my English is not great.
So I'm sorry about that.

Before that I want to make sure that this works in ASP.NET.
Does it work in ASP.NET?

And I wonder if you can get support for Korean.

I hope to answer by e-mail.

Thank you for reading.

SmartGWT 4.1 - issue with rotated Draw Items inside DrawPane

$
0
0
Hi all,

I'm new to the forums as well as quite new to development, but here we go.

A short summary of my issue is that onClick (and not only) handler isn't working correctly on a shape if this has a rotation applied.
onClick handler fires when the mouse is over the initial representation of the shape (at 0 degrees rotation) and not on the new one involving rotation.

How to reproduce:
- SmartGWT version used is 4.1 LGPL edition (SNAPSHOT_v9.1d_2014-01-19/LGPL Development Only (built 2014-01-19))
- Browsers are FF 27.0.1 and IE10

- create a DrawPane
- create a DrawRect rectangle and add click handler
- rotate the rectangle by an angle (45)
- try to click on the shape on any of the corners after rotation = it won't work
- try to click on the same shape's "old" corners = it will work.


Code is pretty simple. Added the onClick handler on the rectangle with a popup message when it fires.
To make it even more clear I used different mouse cursors when over the shape and also the canDrag(true) so you can see that the shape can be moved on the screen by dragging the initial representation (when mouse is outside the shape).

Code:

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.types.Cursor;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.drawing.DrawPane;
import com.smartgwt.client.widgets.drawing.DrawRect;
import com.smartgwt.client.widgets.drawing.events.ClickEvent;
import com.smartgwt.client.widgets.drawing.events.ClickHandler;

public class HMIDesignerUI2 implements EntryPoint {

        /**
        * This is the entry point method.
        */
        public void onModuleLoad() {
                DrawPane drawingArea = new DrawPane();
                drawingArea.setWidth(1000);
                drawingArea.setHeight(600);
                drawingArea.setBackgroundColor("#CCCCCC");
                drawingArea.setCanDrag(true);
                drawingArea.setCursor(Cursor.AUTO);
                drawingArea.draw();
               
                DrawRect rectangle = new DrawRect();
                rectangle.setWidth(150);
                rectangle.setHeight(100);
                rectangle.setTop(50);
                rectangle.setLeft(50);
                rectangle.setCursor(Cursor.MOVE);
                rectangle.setLineWidth(3);
                rectangle.setFillColor("red");
                rectangle.setDrawPane(drawingArea);
                rectangle.rotateTo(45);
                rectangle.setCanDrag(true);
                rectangle.addClickHandler(new ClickHandler() {
                       
                        @Override
                        public void onClick(ClickEvent event) {
                                SC.say("Clicked the rectangle");
                        }
                });
                rectangle.draw();
        }
}

In conclusion, is this a bug or is it something I'm doing wrong here?

Thanks a lot for the input!

P.S.: I hope my "not so good" English isn't making this topic a mess :)



LE: sorry for this topic but it can be ignored. Downloaded the latest version and it seems it is working (don't know why it didn't cross my mind so far, such a simple solution to try). Sorry again!

Clear cache with new versions

$
0
0
Every time I deploy a new version of my code, I have to let the users clear their browsers cache.

But is this really necessary? Would not something like the following work?

Code:

<script type="text/javascript" language="javascript" src="zedes2/sc/initsc.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Core.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Foundation.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Containers.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Grids.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Forms.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_RichTextEditor.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_Calendar.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/modules/ISC_DataBinding.js?version=1.2.8"></script>
        <script type="text/javascript" language="javascript" src="zedes2/sc/skins/EnterpriseBlue/load_skin.js?version=1.2.8"></script>

<script src="zedes2/sc/DataSourceLoader?version=1.2.8&dataSource=schuelerSimple"></script>

I put the version of my application in every javascript/css file. Even the DataSourceLoader.

This seems to work. Am I missing something?
Would this prevent the users to have to clear their cache when a new version is deployed?

Using smartGWT 4.1p power.

Attempt to convert instance of class java.lang.Integer to a JavaScript object failed.

$
0
0
Bizarre error being thrown by the latest 4.1p build available via maven plugin

Code:

08:56:19,109 WARNING [GSUIEntryPoint] (default task-5) Uncaught Client Exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: Attempt to convert instance of class java.lang.Integer to a JavaScript object failed. Object is part of a request being serialized for transmission to the server. See SmartClient documentation of RPCRequest.data for a table of Java types that can be converted automatically.
        at Unknown.ad(StackTraceCreator.java:180)        at Unknown.Zb(StackTraceCreator.java:518)        at Unknown.dc(Throwable.java:62)        at Unknown.gg(UmbrellaException.java:71)        at Unknown.jg(UmbrellaException.java:26)        at Unknown.Cf(UmbrellaException.java:90)        at Unknown.i_(Widget.java:129)        at Unknown.s_(Widget.java:127)        at Unknown.anonymous(Canvas.java:7453)        at Unknown.Ec(Impl.java:290)        at Unknown.Ic(Impl.java:347)        at Unknown.anonymous(Impl.java:93)Caused by: java.lang.UnsupportedOperationException: Attempt to convert instance of class java.lang.Integer to a JavaScript object failed. Object is part of a request being serialized for transmission to the server. See SmartClient documentation of RPCRequest.data for a table of Java types that can be converted automatically.
        at Unknown.ad(StackTraceCreator.java:180)        at Unknown.Zb(StackTraceCreator.java:518)        at Unknown.Yb(Throwable.java:56)        at Unknown.ac(Exception.java:29)        at Unknown.cc(RuntimeException.java:29)        at Unknown.bGd(UnsupportedOperationException.java:29)        at Unknown.yBb(JSOHelper.java:957)        at Unknown.anonymous(SmartGwtEntryPoint.java:105)        at Unknown.x7(DataSource.java:3643)        at Unknown.d3b(AbstractModuleController.java:405)        at Unknown.Umd(AbstractModuleWindow.java:125)        at Unknown.PMb(MovedEvent.java:109)        at Unknown.Mf(GwtEvent.java:76)        at Unknown.Cf(HandlerManager.java:127)        ... 6 more

SmartGwt 4.1 and setAllowFilterExpressions

$
0
0
Hello,

I experience some difficulties filtering on the grid using regular expression (using setAllowFilterExpressions). I was perfectly working with smartgwt 3.x.

I managed to reproduce the bug using sample code provided by isomorphic:
- I downloaded the latest version of smartgwt (2014-03-16).
- I resused the sample "ds-jpa" found in the folder "samples".
- I only added the following line: countryGrid.setAllowFilterExpressions(true);

Find below the full version of the code and the full stack trace. In attachment, find also a screenshot of the bug, when I filtered the grid with the character u.

Can you help me out activating the expression filtering?

Thank you for your help

Regards,

Samuel

Version: Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-03-16/PowerEdition Deployment 2014-03-16)

Browser: Internet Explorer 10

Here is the code
Code:

package com.smartgwt.sample.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.core.KeyIdentifier;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.ListGridEditEvent;
import com.smartgwt.client.util.PageKeyHandler;
import com.smartgwt.client.util.Page;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.grid.events.EditorEnterEvent;
import com.smartgwt.client.widgets.grid.events.EditorEnterHandler;
import com.smartgwt.client.widgets.grid.events.SelectionChangedHandler;
import com.smartgwt.client.widgets.grid.events.SelectionEvent;
import com.smartgwt.client.widgets.layout.VStack;

public class JPADS implements EntryPoint {
    /**
    * Creates a new instance of JPADS
    */
    public JPADS() {
    }

    /**
    * The entry point method, called automatically by loading a module
    * that declares an implementing class as an entry-point
    */
    public void onModuleLoad() {
                KeyIdentifier debugKey = new KeyIdentifier();
                debugKey.setCtrlKey(true);
                debugKey.setKeyName("D");

                Page.registerKey(debugKey, new PageKeyHandler() {
                        public void execute(String keyName) {
                                SC.showConsole();
                        }
                });

        VStack vStack = new VStack();
        vStack.setLeft(175);
        vStack.setTop(75);
        vStack.setWidth("70%");
        vStack.setMembersMargin(20);

        final DataSource countryDS = DataSource.get("country_DataSource");

        final ListGrid countryGrid = new ListGrid();
        countryGrid.setWidth(700);
        countryGrid.setHeight(224);
        countryGrid.setAlternateRecordStyles(true);
        countryGrid.setDataSource(countryDS);
        countryGrid.setAutoFetchData(true);
        countryGrid.setShowFilterEditor(true);
        countryGrid.setCanEdit(true);
        countryGrid.setEditEvent(ListGridEditEvent.CLICK);
        countryGrid.setCanRemoveRecords(true);

        countryGrid.setAllowFilterExpressions(true);

       
        ListGridField countryCode = new ListGridField("countryCode", "Code", 50);
        ListGridField countryName = new ListGridField("countryName", "Country");

        countryGrid.setFields(countryCode, countryName);

        IButton newCountryButton = new IButton("New country");
        newCountryButton.addClickHandler(new ClickHandler()
        {
            public void onClick (ClickEvent event)
            {
                countryGrid.startEditingNew();
            }
        });

        DataSource cityDS = DataSource.get("city_DataSource");
        final ListGrid cityGrid = new ListGrid();
        cityGrid.setWidth(700);
        cityGrid.setHeight(224);
        cityGrid.setAlternateRecordStyles(true);
        cityGrid.setDataSource(cityDS);
        cityGrid.setAutoFetchData(false);
        cityGrid.setShowFilterEditor(true);
        cityGrid.setCanEdit(true);
        cityGrid.setEditEvent(ListGridEditEvent.CLICK);
        cityGrid.setCanRemoveRecords(true);

        ListGridField cityName = new ListGridField("cityName", "City");

        cityGrid.setFields(cityName);

        IButton newCityButton = new IButton("New city");
        newCityButton.addClickHandler(new ClickHandler()
        {
            public void onClick (ClickEvent event)
            {
                ListGridRecord record = countryGrid.getSelectedRecord();
                if (record != null) {
                    cityGrid.startEditingNew();
                }
                else {
                    SC.warn("Select country first.");
                }
            }
        });

        countryGrid.addSelectionChangedHandler(new SelectionChangedHandler()
        {
            public void onSelectionChanged (SelectionEvent event)
            {
                if (event.getState()) {
                    ListGridRecord record = countryGrid.getSelectedRecord();
                    if (record != null) {
                        cityGrid.fetchRelatedData(record, countryDS);
                    }
                }
            }
        });

        cityGrid.addEditorEnterHandler(new EditorEnterHandler()
        {
            public void onEditorEnter (EditorEnterEvent event)
            {
                cityGrid.setEditValue(event.getRowNum(), "countryId",
                                      countryGrid.getSelectedRecord().getAttribute("countryId"));
            }
        });

        vStack.addMember(newCountryButton);
        vStack.addMember(countryGrid);
        vStack.addMember(newCityButton);
        vStack.addMember(cityGrid);

        vStack.draw();

        countryGrid.getResultSet().setUseClientFiltering(Boolean.FALSE);
        countryGrid.getResultSet().setUseClientSorting(Boolean.FALSE);
    }
}

Here is the full Stack trace.
Code:

[Server@13336e4]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@13336e4]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@13336e4]: Startup sequence initiated from main() method
[Server@13336e4]: Could not load properties from file
[Server@13336e4]: Using cli/default properties only
[Server@13336e4]: Initiating startup sequence...
[Server@13336e4]: Server socket opened successfully in 0 ms.
log4j:WARN No appenders could be found for logger (hsqldb.db.HSQLDB44CB5696AB.ENGINE).
log4j:WARN Please initialize the log4j system properly.
[Server@13336e4]: Database [index=0, id=0, db=file:C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\WEB-INF\db\hsqldb\isomorphic, alias=isomorphic] opened sucessfully in 1890 ms.
[Server@13336e4]: Startup sequence completed in 1890 ms.
[Server@13336e4]: 2014-03-18 15:48:07.259 HSQLDB server 2.2.9 is online on port 9001
[Server@13336e4]: To close normally, connect and execute SHUTDOWN SQL
[Server@13336e4]: From command line, use [Ctrl]+[C] to abort abruptly
ISC: Configuring log4j from: file:/C:/Users/sboclinville/Documents/dvp/workspaces/eclipseAVRSWorkspace-NEW/ds-jpaNEW/war/WEB-INF/classes/log4j.isc.config.xml
=== 2014-03-18 15:48:07,759 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2014-03-18 15:48:07,775 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Users/sboclinville/Documents/dvp/workspaces/eclipseAVRSWorkspace-NEW/ds-jpaNEW/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Users/sboclinville/Documents/dvp/workspaces/eclipseAVRSWorkspace-NEW/ds-jpaNEW/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2014-03-18 15:48:07,899 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Users/sboclinville/Documents/dvp/workspaces/eclipseAVRSWorkspace-NEW/ds-jpaNEW/war/WEB-INF/classes/server.properties
=== 2014-03-18 15:48:07,899 [main] INFO  Logger - Logging system started.
=== 2014-03-18 15:48:07,915 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war
=== 2014-03-18 15:48:07,915 [main] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-03-16/PowerEdition Deployment 2014-03-16) - Initialization Complete
=== 2014-03-18 15:48:33,345 [l0-0] INFO  Compression - /JPADS_js/JPADS_js.nocache.js: 7353 -> 2852 bytes
=== 2014-03-18 15:48:33,345 [l0-0] DEBUG ServletTools - setting cookie 'isc_cState' to: 'ready'
=== 2014-03-18 15:48:33,345 [l0-2] INFO  RequestContext - URL: '/JPADS_js/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:48:33,549 [l0-0] INFO  Compression - /JPADS_js/sc/modules/ISC_Core.js: 914557 -> 239843 bytes
=== 2014-03-18 15:48:33,798 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\JPADS_js\sc\system\schema\builtinTypes.xml: 15ms
=== 2014-03-18 15:48:33,923 [l0-2] INFO  PoolManager - SmartClient pooling started for 'simpleTypes' objects
=== 2014-03-18 15:48:34,173 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\ds\country_DataSource.ds.xml: 0ms
=== 2014-03-18 15:48:34,173 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\JPADS_js\sc\system\schema\DataSource.ds.xml: 0ms
=== 2014-03-18 15:48:34,235 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\JPADS_js\sc\system\schema\DataSourceField.ds.xml: 0ms
=== 2014-03-18 15:48:34,297 [l0-2] DEBUG EMF - Initializing default EMF provider: com.isomorphic.jpa.EMFProviderLMT
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Instantiating class com.smartgwt.sample.server.Country
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Generating data source 'Country_JPA' for class com.smartgwt.sample.server.Country
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Generating field 'countryCode' of type java.lang.String
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, extIsUnique=false, name=countryCode, length=255, extPrecision=0, canEdit=true, required=true, type=text}
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Generating field 'countryName' of type java.lang.String
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, extIsUnique=false, name=countryName, length=255, extPrecision=0, canEdit=true, required=true, type=text}
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Generating field 'countryId' of type java.lang.Long
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, hidden=true, primaryKey=true, extIsUnique=false, name=countryId, length=255, extPrecision=0, canEdit=false, required=false, type=sequence}
=== 2014-03-18 15:48:36,435 [l0-2] DEBUG DataSourceLoader - For DataSource 'country_DataSource', got instanceId 6
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\ds\city_DataSource.ds.xml: 0ms
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Instantiating class com.smartgwt.sample.server.City
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Generating data source 'City_JPA' for class com.smartgwt.sample.server.City
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Generating field 'cityId' of type java.lang.Long
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, hidden=true, primaryKey=true, extIsUnique=false, name=cityId, length=255, extPrecision=0, canEdit=false, required=false, type=sequence}
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Generating field 'countryId' of type java.lang.Long
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, extIsUnique=false, name=countryId, length=255, extPrecision=0, canEdit=true, required=true, type=integer}
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Generating field 'cityName' of type java.lang.String
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Singular field configuration generated: {extScale=0, extIsUnique=false, name=cityName, length=255, extPrecision=0, canEdit=true, required=true, type=text}
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Generating field 'country' of type com.smartgwt.sample.server.Country
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG JPA2DSGenerator - Property with reference to another entity skipped: {name=country, type=any}
=== 2014-03-18 15:48:36,436 [l0-2] DEBUG DataSourceLoader - For DataSource 'city_DataSource', got instanceId 7
=== 2014-03-18 15:48:45,515 [l0-2] INFO  RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Accept-Language:en-US,en;q=0.5
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: DNT:1
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/JPADS.html?gwt.codesvr=127.0.0.1:9997
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Cookie:isc_cState=ready; JSESSIONID=x2mce8hszas9
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Content-Length:1032
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - session exists: x2mce8hszas9
=== 2014-03-18 15:48:45,515 [l0-2] DEBUG IDACall - remote user: null
=== 2014-03-18 15:48:45,547 [l0-0] INFO  RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:48:45,563 [l0-2] DEBUG XML - Parsed XML from (in memory stream): 0ms
=== 2014-03-18 15:48:45,563 [l0-2] DEBUG XML - Parsed XML from C:\Users\sboclinville\Documents\dvp\workspaces\eclipseAVRSWorkspace-NEW\ds-jpaNEW\war\JPADS_js\sc\system\schema\List.ds.xml: 0ms
=== 2014-03-18 15:48:45,563 [l0-2] DEBUG RPCManager - Processing 1 requests.
=== 2014-03-18 15:48:45,578 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
    },
    operationConfig:{
        dataSource:"country_DataSource",
        operationType:"fetch",
        textMatchStyle:"substring"
    },
    startRow:0,
    endRow:75,
    componentId:"isc_ListGrid_0",
    appID:"builtinApplication",
    operation:"country_DataSource_fetch",
    oldValues:{
    }
}
=== 2014-03-18 15:48:45,578 [l0-2] INFO  IDACall - Performing 1 operation(s)
=== 2014-03-18 15:48:45,578 [l0-2] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2014-03-18 15:48:45,578 [l0-2] DEBUG DeclarativeSecurity - DataSource country_DataSource is not in the pre-checked list, processing...
=== 2014-03-18 15:48:45,594 [l0-2] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2014-03-18 15:48:45,594 [l0-2] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
=== 2014-03-18 15:48:45,594 [l0-2] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
=== 2014-03-18 15:48:45,625 [l0-2] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPA2DataSource' with a 'com.isomorphic.jpa.JPA2DataSource'
=== 2014-03-18 15:48:45,625 [l0-2] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
=== 2014-03-18 15:48:45,625 [l0-2] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country
Hibernate:
    select
        count(country0_.countryId) as col_0_0_
    from
        Country country0_
Hibernate:
    select
        country0_.countryId as countryId1_,
        country0_.countryCode as countryC2_1_,
        country0_.countryName as countryN3_1_
    from
        Country country0_ limit ?
=== 2014-03-18 15:48:46,514 [l0-2] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 4 items
=== 2014-03-18 15:48:46,530 [l0-2] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2014-03-18 15:48:46,530 [l0-2] DEBUG JPADataSource - Committing current transaction.
=== 2014-03-18 15:48:47,124 [l0-2] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2014-03-18 15:48:47,124 [l0-2] DEBUG JPADataSource - Releasing entity manager.
=== 2014-03-18 15:48:47,124 [l0-2] INFO  Compression - /JPADS_js/sc/IDACall: 417 -> 244 bytes
=== 2014-03-18 15:50:27,466 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:50:27,466 [l0-3] DEBUG DataSourceLoader - For DataSource 'country_DataSource', got instanceId 6
=== 2014-03-18 15:50:27,481 [l0-3] DEBUG DataSourceLoader - For DataSource 'city_DataSource', got instanceId 7
=== 2014-03-18 15:50:27,560 [l0-3] INFO  Compression - /JPADS_js/sc/modules/ISC_Core.js: 914557 -> 239843 bytes
=== 2014-03-18 15:50:35,329 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Language:en-US,en;q=0.5
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: DNT:1
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/JPADS.html?gwt.codesvr=127.0.0.1:9997
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Cookie:isc_cState=ready; JSESSIONID=x2mce8hszas9
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Length:1032
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - session exists: x2mce8hszas9
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG IDACall - remote user: null
=== 2014-03-18 15:50:35,329 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 0ms
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG RPCManager - Processing 1 requests.
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
    },
    operationConfig:{
        dataSource:"country_DataSource",
        operationType:"fetch",
        textMatchStyle:"substring"
    },
    startRow:0,
    endRow:75,
    componentId:"isc_ListGrid_0",
    appID:"builtinApplication",
    operation:"country_DataSource_fetch",
    oldValues:{
    }
}
=== 2014-03-18 15:50:35,345 [l0-3] INFO  IDACall - Performing 1 operation(s)
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG DeclarativeSecurity - DataSource country_DataSource is not in the pre-checked list, processing...
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPA2DataSource' with a 'com.isomorphic.jpa.JPA2DataSource'
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
=== 2014-03-18 15:50:35,345 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country
Hibernate:
    select
        count(country0_.countryId) as col_0_0_
    from
        Country country0_
Hibernate:
    select
        country0_.countryId as countryId1_,
        country0_.countryCode as countryC2_1_,
        country0_.countryName as countryN3_1_
    from
        Country country0_ limit ?
=== 2014-03-18 15:50:35,346 [l0-3] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 4 items
=== 2014-03-18 15:50:35,346 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2014-03-18 15:50:35,346 [l0-3] DEBUG JPADataSource - Committing current transaction.
=== 2014-03-18 15:50:35,346 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2014-03-18 15:50:35,346 [l0-3] DEBUG JPADataSource - Releasing entity manager.
=== 2014-03-18 15:50:35,346 [l0-3] INFO  Compression - /JPADS_js/sc/IDACall: 417 -> 244 bytes
=== 2014-03-18 15:51:05,064 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/skins/Enterprise/images/ListGrid/sort_ascending.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:51:05,318 [l0-3] INFO  Download - done streaming: C:/Users/sboclinville/Documents/dvp/workspaces/eclipseAVRSWorkspace-NEW/ds-jpaNEW/war/JPADS_js/sc/skins/Enterprise/images/ListGrid/sort_ascending.png
=== 2014-03-18 15:51:05,409 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Language:en-US,en;q=0.5
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: DNT:1
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/JPADS.html?gwt.codesvr=127.0.0.1:9997
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Cookie:isc_cState=ready; JSESSIONID=x2mce8hszas9
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Length:1125
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - session exists: x2mce8hszas9
=== 2014-03-18 15:51:05,409 [l0-3] DEBUG IDACall - remote user: null
=== 2014-03-18 15:51:05,424 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 15ms
=== 2014-03-18 15:51:05,424 [l0-3] DEBUG RPCManager - Processing 1 requests.
=== 2014-03-18 15:51:05,424 [l0-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
    },
    operationConfig:{
        dataSource:"country_DataSource",
        operationType:"fetch",
        textMatchStyle:"substring"
    },
    startRow:0,
    endRow:75,
    sortBy:[
        "countryName"
    ],
    componentId:"isc_ListGrid_0",
    appID:"builtinApplication",
    operation:"country_DataSource_fetch",
    oldValues:{
    }
}
=== 2014-03-18 15:51:05,424 [l0-3] INFO  IDACall - Performing 1 operation(s)
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG DeclarativeSecurity - DataSource country_DataSource is not in the pre-checked list, processing...
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPA2DataSource' with a 'com.isomorphic.jpa.JPA2DataSource'
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
=== 2014-03-18 15:51:05,487 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country  order by _Country.countryName
Hibernate:
    select
        count(country0_.countryId) as col_0_0_
    from
        Country country0_
Hibernate:
    select
        country0_.countryId as countryId1_,
        country0_.countryCode as countryC2_1_,
        country0_.countryName as countryN3_1_
    from
        Country country0_
    order by
        country0_.countryName limit ?
=== 2014-03-18 15:51:05,502 [l0-3] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 4 items
=== 2014-03-18 15:51:05,502 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2014-03-18 15:51:05,502 [l0-3] DEBUG JPADataSource - Committing current transaction.
=== 2014-03-18 15:51:05,502 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2014-03-18 15:51:05,502 [l0-3] DEBUG JPADataSource - Releasing entity manager.
=== 2014-03-18 15:51:05,502 [l0-3] INFO  Compression - /JPADS_js/sc/IDACall: 417 -> 245 bytes
=== 2014-03-18 15:51:09,084 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Language:en-US,en;q=0.5
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: DNT:1
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/JPADS.html?gwt.codesvr=127.0.0.1:9997
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Cookie:isc_cState=ready; JSESSIONID=x2mce8hszas9
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Length:1887
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - session exists: x2mce8hszas9
=== 2014-03-18 15:51:09,084 [l0-3] DEBUG IDACall - remote user: null
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 1ms
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG RPCManager - Processing 1 requests.
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
        operator:"and",
        _constructor:"AdvancedCriteria",
        criteria:[
            {
                fieldName:"countryCode",
                operator:"iContainsPattern",
                value:"l",
                _constructor:"AdvancedCriteria"
            }
        ]
    },
    operationConfig:{
        dataSource:"country_DataSource",
        operationType:"fetch",
        textMatchStyle:"substring"
    },
    startRow:0,
    endRow:75,
    sortBy:[
        "countryName"
    ],
    componentId:"isc_ListGrid_0",
    appID:"builtinApplication",
    operation:"country_DataSource_fetch",
    oldValues:{
        operator:"and",
        _constructor:"AdvancedCriteria",
        criteria:[
            {
                fieldName:"countryCode",
                operator:"iContainsPattern",
                value:"l",
                _constructor:"AdvancedCriteria"
            }
        ]
    }
}
=== 2014-03-18 15:51:09,085 [l0-3] INFO  IDACall - Performing 1 operation(s)
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG DeclarativeSecurity - DataSource country_DataSource is not in the pre-checked list, processing...
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPA2DataSource' with a 'com.isomorphic.jpa.JPA2DataSource'
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
=== 2014-03-18 15:51:09,085 [l0-3] WARN  JPADataSource - [builtinApplication.country_DataSource_fetch] 'Other' field name: 'l' specified in criteria is not defined in data source.
Returning predicate '1=1' (always true).
=== 2014-03-18 15:51:09,085 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country  where (1=1) order by _Country.countryName
Hibernate:
    select
        count(country0_.countryId) as col_0_0_
    from
        Country country0_
    where
        1=1
Hibernate:
    select
        country0_.countryId as countryId1_,
        country0_.countryCode as countryC2_1_,
        country0_.countryName as countryN3_1_
    from
        Country country0_
    where
        1=1
    order by
        country0_.countryName limit ?
=== 2014-03-18 15:51:09,132 [l0-3] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 4 items
=== 2014-03-18 15:51:09,132 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2014-03-18 15:51:09,132 [l0-3] DEBUG JPADataSource - Committing current transaction.
=== 2014-03-18 15:51:09,132 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2014-03-18 15:51:09,132 [l0-3] DEBUG JPADataSource - Releasing entity manager.
=== 2014-03-18 15:51:09,132 [l0-3] INFO  Compression - /JPADS_js/sc/IDACall: 417 -> 245 bytes
=== 2014-03-18 15:51:13,062 [l0-3] INFO  RequestContext - URL: '/JPADS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0': Moz (Gecko) with Accept-Encoding header
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Language:en-US,en;q=0.5
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: DNT:1
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/JPADS.html?gwt.codesvr=127.0.0.1:9997
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Cookie:isc_cState=ready; JSESSIONID=x2mce8hszas9
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Content-Length:1887
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - session exists: x2mce8hszas9
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG IDACall - remote user: null
=== 2014-03-18 15:51:13,062 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 0ms
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG RPCManager - Processing 1 requests.
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
    criteria:{
        operator:"and",
        _constructor:"AdvancedCriteria",
        criteria:[
            {
                fieldName:"countryCode",
                operator:"iContainsPattern",
                value:"u",
                _constructor:"AdvancedCriteria"
            }
        ]
    },
    operationConfig:{
        dataSource:"country_DataSource",
        operationType:"fetch",
        textMatchStyle:"substring"
    },
    startRow:0,
    endRow:75,
    sortBy:[
        "countryName"
    ],
    componentId:"isc_ListGrid_0",
    appID:"builtinApplication",
    operation:"country_DataSource_fetch",
    oldValues:{
        operator:"and",
        _constructor:"AdvancedCriteria",
        criteria:[
            {
                fieldName:"countryCode",
                operator:"iContainsPattern",
                value:"u",
                _constructor:"AdvancedCriteria"
            }
        ]
    }
}
=== 2014-03-18 15:51:13,063 [l0-3] INFO  IDACall - Performing 1 operation(s)
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG DeclarativeSecurity - DataSource country_DataSource is not in the pre-checked list, processing...
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.JPA2DataSource' with a 'com.isomorphic.jpa.JPA2DataSource'
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
=== 2014-03-18 15:51:13,063 [l0-3] WARN  JPADataSource - [builtinApplication.country_DataSource_fetch] 'Other' field name: 'u' specified in criteria is not defined in data source.
Returning predicate '1=1' (always true).
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country  where (1=1) order by _Country.countryName
Hibernate:
    select
        count(country0_.countryId) as col_0_0_
    from
        Country country0_
    where
        1=1
Hibernate:
    select
        country0_.countryId as countryId1_,
        country0_.countryCode as countryC2_1_,
        country0_.countryName as countryN3_1_
    from
        Country country0_
    where
        1=1
    order by
        country0_.countryName limit ?
=== 2014-03-18 15:51:13,063 [l0-3] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 4 items
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG JPADataSource - Committing current transaction.
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
=== 2014-03-18 15:51:13,063 [l0-3] DEBUG JPADataSource - Releasing entity manager.
=== 2014-03-18 15:51:13,063 [l0-3] INFO  Compression - /JPADS_js/sc/IDACall: 417 -> 245 bytes


Attached Images
File Type: gif FilteringBug.GIF (15.1 KB)

ListGrid.getField('length') returns the number of fields instead of 'length' fiel

$
0
0
ListGrid.getField returns a field definition based on a column number of field name. The problem is that if the field is name 'length' it does not return the field definition for the 'length' field, but the size of the fields array.

This is an excerp from the beginning of the getField function:
Code:

    if (this._noNumericFields) {
        field = this.fields[id];
        if (field != null) return field;
    } else {
        // Number: assume index.
        if (isc.isA.Number(id)) return this.fields[id];
    }

In our case this._noNumericFields is true. When this function is called with 'length' as the id parameter, this is executed:

field = this.fields['length'];

This is equivalent to this.fields.length, which is the length of the fields array. Being field not null, it is returned in the next line. This could be avoided if it is checked not only if field is not null, but also if field is an object:

Code:

    if (this._noNumericFields) {
        field = this.fields[id];
        if (field != null && isc.isAn.Object(field)) return field;
    } else {
        // Number: assume index.
        if (isc.isA.Number(id)) return this.fields[id];
    }

I am working with Smartclient v10.0d_2014-02-13/LGPL Deployment.

Thanks and regards,

Different behaviour listGrid in IExplorer

$
0
0
We have a ListGrid, and have two behaviours in the same navigator IExplorer depending on which option is selected.

With document mode standard selected, we get the row grid aspect showed in Captura1.jpg, which keeps on the heigth of the row, and trim data to suspensive dots.
However:
With document mode no standard selected, we get the row grid aspect showed in Captura2.jpg, which works upside down, growing the height of the row, but keeping data visibility complete.

The same occurs in IExplorer 10 changing document mode options in similar way.

There is any way to control by code this behaviour?

Our listGrid code for what it's worth:

Code:

isc.ListGrid.create({
                autoDraw:false,
                autoFetchData:false,
                showRecordComponents: true,
                showRecordComponentsByCell: true,
                showFilterEditor:true,
                autoFitFieldWidths:false,
                wrapCells: false,
                dataSource:"ref:attevccamionalbaranesDS",
                hoverWidth:150,
                cellHeight:16,
                fixedRecordHeights:true,
                canEdit:false,
                fields:[{
                                name:"botones",
                                width:60,
                                title: " ",
                                canFilter:false
                        },{
                                name:"ALBS_ID",
                                width:80,
                                showHover:true,
                                hoverHTML: function (record, value, rowNum, colNum, grid){
                                          if ((record.IND_DECISION == "S") && (record.IND_INCIDENCIA == "S")){
                                                  return cargaCamionUIDS.getField("hover.expedicion.faltasIncidencias").title;
                                          } else  if (record.IND_DECISION == "S") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.faltas").title;
                                          } else if (record.IND_INCIDENCIA == "S") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.incidencias").title;
                                          } else if (record.ESTADO == "P") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.pantalla").title;
                                          }else {
                                                  return cargaCamionUIDS.getField("hover.expedicion.correcta").title;
                                          } 
                                }
                        },{
                                name:"IND_PARCIALES",
                                width:40
                        },{
                                name:"SERV_ID",
                                width:35
                        },{
                                name:"CLEM_ID_RMTE",
                                width:80
                        },{
                                name:"CLRG_ID_RMTE",
                                width:80
                        },{
                                name:"CLEM_ID_CONS",
                                width:80
                        },{
                                name:"CLRG_ID_CONS",
                                width:80
                        },{
                                name:"DIRECCION_CONS",
                                width:150
                        },{
                                name:"POBLACION_CONS",
                                width:120
                        },{
                                name:"PLZS_ID_ORG",
                                title:"Org",
                                width:40
                        },{
                                name:"PLZS_ID_DES",
                                title:"Des",
                                width:40
                        },{
                                name:"TOT_BULTOS_CARGA",
                                width:60
                        },{
                                name:"NUM_BULTOS_ESCANEADOS",
                                width:60
                        },{
                                name:"NUM_BULTOS_ESC_ANTES",
                                width:60
                        },{
                                name:"PESO_CARGADO",
                                width:80
                        },{
                                name:"VOLUMEN",
                                width:50
                        },{
                                name:"IND_INCIDENCIA",
                                width:40
                        },{
                                name:"IND_GENERAR_FALTA_TOTAL",
                                width:60
                }],
                getCellCSSText: function (record, rowNum, colNum) {
                          if (record.IND_DECISION == "S") {
                                  return "background-color:#ffccff;";
                          } else  if (record.IND_FALTA == "S") {
                                  return "background-color:#FFFF99;";
                          } else if (record.IND_INCIDENCIA == "S") {
                                  return "background-color:#D0A9F5;";
                          } else if (record.ESTADO == "P") {
                                  return "background-color:#99CCCC;";
                          }else {
                                  return "background-color:white;";
                          } 
                }, 
                initialSort:[{
                                        property:"IND_DECISION",
                                        direction:"descending"
                                },{
                                        property:"CLEM_ID_RMTE",
                                        direction:"ascending"
                                },{
                                        property:"IND_INCIDENCIA",
                                        direction:"descending"
                                },{
                                        property:"ALBS_ID",
                                        direction:"ascending"
          }],
          canExpandRecords: true,
          expansionMode: "related",
          detailDS:"ref:attevccamionbultosDS",
          expansionCanEdit : false
});

Thanks in advance.

We are working under:
v9.1d_2014-02-22/PowerEdition Development SC and IExplrorer 10.0.9200 navigator, Eclipse Helios and Tomcat 7.0.28

Attached Images
File Type: jpg Captura1.JPG (105.7 KB)
File Type: jpg Captura2.JPG (109.5 KB)

Show/Hide a column while loading a listGrid based on a condition

$
0
0
I want hide a column of a listgrid if a record column value doesn't meet a condition.

Columns: A, B, C
If C record value is not "1" for at least one of the last records loaded, I want hide the C column using this.hideField("C"). If at least one, I create a button in this column for the one with "1" value.

Currently I have:
Code:

...
fields: [
{name:"A"},
{name:"B"},
{name:"C",
    formatCellValue:function (value) { return '';}
},
createRecordComponent : function (record, colNum){
    var cField = this.getFieldName("colNum");
    if(cField == "C"){
          var cFieldValue = record["cField"];
          if(cFieldValue=="1"){
              var button=isc.IButton.create({...});
          }else{
              return null;
          }
    }else{
          return null;
    }
}

I am surprised to see that there is no methods to allow to hide the column after the listGrid load like onLoadComplete or fetchComplete.
I would have something like:

Code:

...
var hideCColumn = true;
this.myListGrid = isc.ListGrid.create({
...
fields: [
{name:"A"},
{name:"B"},
{name:"C",
    formatCellValue:function (value) { return '';}
},
createRecordComponent : function (record, colNum){
    var cField = this.getFieldName("colNum");
    if(cField == "C"){
          var cFieldValue = record["cField"];
          if(cFieldValue=="1"){
              hideCColumn = false;
              var button=isc.IButton.create({...});
          }else{
              return null;
          }
    }else{
          return null;
    }
},
fetchComplete: function(){  //does not exist in isomorphic
    if(hideCColumn){
          this.hideField("C");
    }
}


Do you confirm I can not do that with smartclient?

Thanks.
Viewing all 4756 articles
Browse latest View live