Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    CanvasItem extra fetch on ValuesManager submit

    v8.3p_2013-01-01/PowerEdition Deployment (built 2013-01-01)

    As I can see, after ValuesManager.saveData, all CanvasItems (including IPickTreeItem) present in ValuesManager perform fetchMissingValueReply request.

    Example
    Code:
    {
        dataSource:"rubSections", 
        operationType:"fetch", 
        componentId:"isc_EtgDynamicForm_0", 
        data:{
            id:158
        }, 
        callback:{
            target:[CanvasItem ID:isc_CanvasItem_0 name:position], 
            methodName:"fetchMissingValueReply"
        }, 
        showPrompt:false, 
        oldValues:{
            id:158
        }, 
        requestId:"rubSections$6278", 
        clientContext:{
            dataValue:{
                Class:"Number", 
                formatter:"toString", 
                localeStringFormatter:"toString", 
                localeProperties:Obj
            }, 
            filterLocally:{
            }
        }, 
        fallbackToEval:false, 
        componentContext:"position", 
        bypassCache:true
    }
    I will be grateful if you can explain the reason why the things work like that, or is it a bug?

    I understand that i can get rid of an extra fetches by setFetchMissingValues(false), but auto-fetching missing values is very helpfull when form is initialized by some values.

    On the other hand, extra fetches on valuesManager.saveData seems to be totally unnecessary. Just to be clear - i'm not making any additional setValue() calls which can be the cause of fetching missing values. Maybe it's also worth mentioning that fetches occur only once per value (as it should be - that shows that FetchMissingValues mechanism works without my interference).

    So is it a bug, a feature or i messed something up?

    I can provide additional details if needed.
    Last edited by vostapenko; 5 Jan 2013, 05:43.

    #2
    A ValuesManager will take the server's response to saveData() and show the record returned by the server as the new values. This could cause fetchMissingValues fetches to be performed if the server altered or added new values.

    If that doesn't explain it, yes we'll need code we can run to see the seemingly unnecessary fetches.

    Comment


      #3
      I've made an example as small as possible and found that extra fetch is made ONLY if ValuesManager is used. Saving pure FlexibleForm doesn't force extra fetch.

      Code:
              ValuesManager vm = new ValuesManager();
      
              DynamicForm form = new DynamicForm();
              IPickTreeItem treePicker = new IPickTreeItem("department");
              treePicker.setDataSource(DataSource.get("departmentsTest"));
              treePicker.setDisplayField("name");
              treePicker.setLoadDataOnDemand(false);
              form.setDataSource(DataSource.get("usersTest"));
              vm.setDataSource(DataSource.get("usersTest"));
              form.setFields(treePicker, new TextItem("login"), new TextItem("password"), new SubmitItem());
      
              form.draw();
      
              vm.addMember(form);
              vm.editNewRecord();
      usersTest.ds.xml
      Code:
      <DataSource ID="usersTest"
                  serverType="hibernate" beanClassName="ru.eurotechnologygroup.etgcrm.server.model.UserTest"
                  schemaBean="ru.eurotechnologygroup.etgcrm.server.model.UserTest">
          <fields>
              <field name="department" foreignKey="departmentsTest.id" editorType="IPickTreeItem"/>
           </fields>
      </DataSource>
      departmentsTest.ds.xml
      Code:
      <DataSource ID="departmentsTest"
                  serverType="hibernate" beanClassName="ru.eurotechnologygroup.etgcrm.server.model.DepartmentTest"
                  schemaBean="ru.eurotechnologygroup.etgcrm.server.model.DepartmentTest">
          <fields>
              <field name="parent" foreignKey="departmentsTest.id"/>
          </fields>
      </DataSource>
      UserTest.java
      Code:
      @Entity
      @Table(name = "suser")
      public class UserTest implements Serializable
      {
          private Long id;
          private DepartmentTest department;
          private String login;
          private String password;
      
          @Id
          @GeneratedValue(strategy = GenerationType.IDENTITY)
          @Column(name = "USERID")
          public Long getId()
          {
              return id;
          }
      
          public void setId(Long id)
          {
              this.id = id;
          }
      
          @OneToOne(targetEntity = DepartmentTest.class, fetch = FetchType.LAZY)
          @JoinColumn(name = "DID")
          public DepartmentTest getDepartment()
          {
              return department;
          }
      
          public void setDepartment(DepartmentTest department)
          {
              this.department = department;
          }
      
          @Column(name = "USERLOGIN")
          public String getLogin()
          {
              return login;
          }
      
          public void setLogin(String login)
          {
              this.login = login;
          }
      
          @Column(name = "USERPASSWORD")
          public String getPassword()
          {
              return password;
          }
      
          public void setPassword(String password)
          {
              this.password = password;
          }
      }
      Department.java
      Code:
      @Entity
      @Table(name = "department")
      public class DepartmentTest implements Serializable
      {
          private Long id;
          private String name;
          private DepartmentTest parent;
      
          @Id
          @GeneratedValue(strategy = GenerationType.IDENTITY)
          @Column(name = "DID")
          public Long getId()
          {
              return id;
          }
      
          public void setId(Long id)
          {
              this.id = id;
          }
      
          @Column(name = "DNAME")
          public String getName()
          {
              return name;
          }
      
          public void setName(String name)
          {
              this.name = name;
          }
      
          @ManyToOne(targetEntity = DepartmentTest.class, fetch = FetchType.LAZY)
          @JoinColumn(name = "dparid")
          public DepartmentTest getParent()
          {
              return parent;
          }
      
          public void setParent(DepartmentTest parent)
          {
              this.parent = parent;
          }
      }
      And some logs

      1. With ValuesManager:
      Code:
      === 2013-01-06 08:56:04,460 [l0-5] INFO  RequestContext - URL: '/etgcrm.jsp', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:56:04,465 [l0-5] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init
      === 2013-01-06 08:56:04,466 [l0-5] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
      === 2013-01-06 08:56:04,466 [l0-5] DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: etgcrm/sc/
      === 2013-01-06 08:56:04,492 [l0-6] INFO  RequestContext - URL: '/etgcrm/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:56:16,515 [l0-5] INFO  RequestContext - URL: '/etgcrm/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Cookie:GLog=%7B%0D%20%20%20%20left%3A1032%2C%20%0D%20%20%20%20top%3A165%2C%20%0D%20%20%20%20width%3A632%2C%20%0D%20%20%20%20height%3A673%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20Log%3A3%2C%20%0D%20%20%20%20%20%20%20%20ListGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20TreeGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultTree%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultSet%3A3%2C%20%0D%20%20%20%20%20%20%20%20fetchTrace%3A3%2C%20%0D%20%20%20%20%20%20%20%20ComboBoxItem%3A3%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20trackRPC%3Atrue%0D%7D; JSESSIONID=fjf1aqhizb2i; isc_cState=ready
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/etgcrm.jsp?gwt.codesvr=127.0.0.1:9997
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Length:798
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - session exists: fjf1aqhizb2i
      === 2013-01-06 08:56:16,518 [l0-5] DEBUG IDACall - remote user: admin
      === 2013-01-06 08:56:16,528 [l0-5] DEBUG XML - Parsed XML from (in memory stream): 1ms
      === 2013-01-06 08:56:16,529 [l0-5] DEBUG XML - Parsed XML from C:\Users\Val\.IntelliJIdea12\system\gwt\etgcrm.etgcrm77d24fbc\etgcrm.aaba320c\run\www\etgcrm\sc\system\schema\List.ds.xml: 0ms
      === 2013-01-06 08:56:16,531 [l0-5] DEBUG RPCManager - Processing 1 requests.
      === 2013-01-06 08:56:16,541 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: {
          criteria:{
          },
          operationConfig:{
              dataSource:"departmentsTest",
              operationType:"fetch"
          },
          appID:"builtinApplication",
          operation:"departmentsTest_fetch",
          oldValues:{
          }
      }
      === 2013-01-06 08:56:16,542 [l0-5] INFO  IDACall - Performing 1 operation(s)
      === 2013-01-06 08:56:16,543 [l0-5] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
      === 2013-01-06 08:56:16,543 [l0-5] DEBUG DeclarativeSecurity - DataSource departmentsTest is not in the pre-checked list, processing...
      === 2013-01-06 08:56:16,548 [l0-5] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No userTypes defined, allowing anyone access to all operations for this application
      === 2013-01-06 08:56:16,548 [l0-5] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No public zero-argument method named '_departmentsTest_fetch' found, performing generic datasource operation
      === 2013-01-06 08:56:16,548 [l0-5] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Performing fetch operation with
      	criteria: {}	values: {}
      === 2013-01-06 08:56:16,554 [l0-5] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Started new transaction "1603918723"
      === 2013-01-06 08:56:16,554 [l0-5] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Query string: select _DepartmentTest, parent1 from ru.eurotechnologygroup.etgcrm.server.model.DepartmentTest _DepartmentTest  left outer join _DepartmentTest.parent parent1
      === 2013-01-06 08:56:16,563 [l0-5] DEBUG SQL - select department0_.DID as DID4_0_, department1_.DID as DID4_1_, department0_.DNAME as DNAME4_0_, department0_.dparid as dparid4_0_, department1_.DNAME as DNAME4_1_, department1_.dparid as dparid4_1_ from department department0_ left outer join department department1_ on department0_.dparid=department1_.DID
      === 2013-01-06 08:56:16,574 [l0-5] INFO  DSResponse - [builtinApplication.departmentsTest_fetch] DSResponse: List with 7 items
      === 2013-01-06 08:56:16,574 [l0-5] INFO  HibernateTransaction - [builtinApplication.departmentsTest_fetch] Attempting to commit 0 database update(s)
      === 2013-01-06 08:56:16,574 [l0-5] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Committing transaction "1603918723"
      === 2013-01-06 08:56:16,582 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
      === 2013-01-06 08:56:16,585 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: false
      === 2013-01-06 08:56:16,614 [l0-5] DEBUG HibernateTransaction - Closing session "1603918723"
      === 2013-01-06 08:56:16,614 [l0-5] DEBUG HibernateTransaction - Removed transaction "1603918723"
      === 2013-01-06 08:56:37,001 [l0-5] INFO  RequestContext - URL: '/etgcrm/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:56:37,001 [l0-5] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
      === 2013-01-06 08:56:37,001 [l0-5] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
      === 2013-01-06 08:56:37,001 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      === 2013-01-06 08:56:37,001 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
      === 2013-01-06 08:56:37,001 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Cookie:GLog=%7B%0D%20%20%20%20left%3A1032%2C%20%0D%20%20%20%20top%3A165%2C%20%0D%20%20%20%20width%3A632%2C%20%0D%20%20%20%20height%3A673%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20Log%3A3%2C%20%0D%20%20%20%20%20%20%20%20ListGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20TreeGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultTree%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultSet%3A3%2C%20%0D%20%20%20%20%20%20%20%20fetchTrace%3A3%2C%20%0D%20%20%20%20%20%20%20%20ComboBoxItem%3A3%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20trackRPC%3Atrue%0D%7D; JSESSIONID=fjf1aqhizb2i; isc_cState=ready
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/etgcrm.jsp?gwt.codesvr=127.0.0.1:9997
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Length:976
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - session exists: fjf1aqhizb2i
      === 2013-01-06 08:56:37,002 [l0-5] DEBUG IDACall - remote user: admin
      === 2013-01-06 08:56:37,004 [l0-5] DEBUG XML - Parsed XML from (in memory stream): 1ms
      === 2013-01-06 08:56:37,005 [l0-5] DEBUG RPCManager - Processing 1 requests.
      === 2013-01-06 08:56:37,012 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: {
          values:{
              department:2,
              login:"aaaasdddffgghh",
              password:"asdf"
          },
          operationConfig:{
              dataSource:"usersTest",
              operationType:"add"
          },
          componentId:"isc_ValuesManager_0",
          appID:"builtinApplication",
          operation:"usersTest_add",
          oldValues:{
          },
          criteria:{
          }
      }
      === 2013-01-06 08:56:37,013 [l0-5] INFO  IDACall - Performing 1 operation(s)
      === 2013-01-06 08:56:37,013 [l0-5] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
      === 2013-01-06 08:56:37,013 [l0-5] DEBUG DeclarativeSecurity - DataSource usersTest is not in the pre-checked list, processing...
      === 2013-01-06 08:56:37,013 [l0-5] DEBUG AppBase - [builtinApplication.usersTest_add] No userTypes defined, allowing anyone access to all operations for this application
      === 2013-01-06 08:56:37,013 [l0-5] DEBUG AppBase - [builtinApplication.usersTest_add] No public zero-argument method named '_usersTest_add' found, performing generic datasource operation
      === 2013-01-06 08:56:37,013 [l0-5] INFO  HibernateDataSource - [builtinApplication.usersTest_add] Performing add operation with
      	criteria: {department:2,login:"aaaasdddffgghh",password:"asdf"}	values: {department:2,login:"aaaasdddffgghh",password:"asdf"}
      === 2013-01-06 08:56:37,017 [l0-5] DEBUG HibernateTransaction - [builtinApplication.usersTest_add] Started new transaction "1284077956"
      === 2013-01-06 08:56:37,025 [l0-5] DEBUG SQL - select department0_.DID as DID4_, department0_.DNAME as DNAME4_, department0_.dparid as dparid4_ from department department0_ where department0_.DID=?
      === 2013-01-06 08:56:37,044 [l0-5] DEBUG SQL - insert into suser (DID, USERLOGIN, USERPASSWORD) values (?, ?, ?)
      === 2013-01-06 08:56:37,057 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
      === 2013-01-06 08:56:37,057 [l0-5] INFO  HibernateTransaction - Attempting to commit 1 database update(s)
      === 2013-01-06 08:56:37,057 [l0-5] DEBUG HibernateTransaction - Committing transaction "1284077956"
      === 2013-01-06 08:56:37,074 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: false
      === 2013-01-06 08:56:37,081 [l0-5] DEBUG HibernateTransaction - Closing session "1284077956"
      === 2013-01-06 08:56:37,081 [l0-5] DEBUG HibernateTransaction - Removed transaction "1284077956"
      === 2013-01-06 08:56:37,101 [l0-5] INFO  RequestContext - URL: '/etgcrm/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
      === 2013-01-06 08:56:37,101 [l0-5] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Cookie:GLog=%7B%0D%20%20%20%20left%3A1032%2C%20%0D%20%20%20%20top%3A165%2C%20%0D%20%20%20%20width%3A632%2C%20%0D%20%20%20%20height%3A673%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20Log%3A3%2C%20%0D%20%20%20%20%20%20%20%20ListGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20TreeGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultTree%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultSet%3A3%2C%20%0D%20%20%20%20%20%20%20%20fetchTrace%3A3%2C%20%0D%20%20%20%20%20%20%20%20ComboBoxItem%3A3%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20trackRPC%3Atrue%0D%7D; JSESSIONID=fjf1aqhizb2i; isc_cState=ready
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/etgcrm.jsp?gwt.codesvr=127.0.0.1:9997
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Content-Length:956
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - session exists: fjf1aqhizb2i
      === 2013-01-06 08:56:37,102 [l0-5] DEBUG IDACall - remote user: admin
      === 2013-01-06 08:56:37,105 [l0-5] DEBUG XML - Parsed XML from (in memory stream): 2ms
      === 2013-01-06 08:56:37,106 [l0-5] DEBUG RPCManager - Processing 1 requests.
      === 2013-01-06 08:56:37,110 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: {
          criteria:{
              id:2
          },
          operationConfig:{
              dataSource:"departmentsTest",
              operationType:"fetch"
          },
          componentId:"isc_DynamicForm_0",
          appID:"builtinApplication",
          operation:"departmentsTest_fetch",
          oldValues:{
              id:2
          }
      }
      === 2013-01-06 08:56:37,110 [l0-5] INFO  IDACall - Performing 1 operation(s)
      === 2013-01-06 08:56:37,111 [l0-5] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
      === 2013-01-06 08:56:37,111 [l0-5] DEBUG DeclarativeSecurity - DataSource departmentsTest is not in the pre-checked list, processing...
      === 2013-01-06 08:56:37,111 [l0-5] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No userTypes defined, allowing anyone access to all operations for this application
      === 2013-01-06 08:56:37,111 [l0-5] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No public zero-argument method named '_departmentsTest_fetch' found, performing generic datasource operation
      === 2013-01-06 08:56:37,112 [l0-5] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Performing fetch operation with
      	criteria: {id:2}	values: {id:2}
      === 2013-01-06 08:56:37,116 [l0-5] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Started new transaction "226704910"
      === 2013-01-06 08:56:37,116 [l0-5] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Query string: select _DepartmentTest, parent1 from ru.eurotechnologygroup.etgcrm.server.model.DepartmentTest _DepartmentTest  left outer join _DepartmentTest.parent parent1 where _DepartmentTest.id = :p0
      === 2013-01-06 08:56:37,124 [l0-5] DEBUG HibernateDataSource - [builtinApplication.departmentsTest_fetch] Parameter p0: 2
      === 2013-01-06 08:56:37,124 [l0-5] DEBUG SQL - select department0_.DID as DID4_0_, department1_.DID as DID4_1_, department0_.DNAME as DNAME4_0_, department0_.dparid as dparid4_0_, department1_.DNAME as DNAME4_1_, department1_.dparid as dparid4_1_ from department department0_ left outer join department department1_ on department0_.dparid=department1_.DID where department0_.DID=?
      === 2013-01-06 08:56:37,132 [l0-5] INFO  DSResponse - [builtinApplication.departmentsTest_fetch] DSResponse: List with 1 items
      === 2013-01-06 08:56:37,132 [l0-5] INFO  HibernateTransaction - [builtinApplication.departmentsTest_fetch] Attempting to commit 0 database update(s)
      === 2013-01-06 08:56:37,132 [l0-5] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Committing transaction "226704910"
      === 2013-01-06 08:56:37,140 [l0-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
      === 2013-01-06 08:56:37,142 [l0-5] DEBUG RPCManager - non-DMI response, dropExtraFields: false
      === 2013-01-06 08:56:37,147 [l0-5] DEBUG HibernateTransaction - Closing session "226704910"
      === 2013-01-06 08:56:37,147 [l0-5] DEBUG HibernateTransaction - Removed transaction "226704910"
      2.Pure DynamicForm
      Code:
      === 2013-01-06 08:57:32,712 [l0-5] INFO  RequestContext - URL: '/etgcrm.jsp', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:57:32,714 [l0-5] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework initialization called from com.isomorphic.base.Init
      === 2013-01-06 08:57:32,714 [l0-5] INFO  ISCInit - Isomorphic SmartClient/SmartGWT Framework is already initialized
      === 2013-01-06 08:57:32,729 [l0-6] INFO  RequestContext - URL: '/etgcrm/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:57:39,265 [l0-6] INFO  RequestContext - URL: '/etgcrm/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:57:39,265 [l0-6] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Cookie:GLog=%7B%0D%20%20%20%20left%3A1032%2C%20%0D%20%20%20%20top%3A165%2C%20%0D%20%20%20%20width%3A632%2C%20%0D%20%20%20%20height%3A673%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20Log%3A3%2C%20%0D%20%20%20%20%20%20%20%20ListGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20TreeGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultTree%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultSet%3A3%2C%20%0D%20%20%20%20%20%20%20%20fetchTrace%3A3%2C%20%0D%20%20%20%20%20%20%20%20ComboBoxItem%3A3%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20trackRPC%3Atrue%0D%7D; JSESSIONID=fjf1aqhizb2i; isc_cState=ready
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/etgcrm.jsp?gwt.codesvr=127.0.0.1:9997
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Content-Length:798
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - session exists: fjf1aqhizb2i
      === 2013-01-06 08:57:39,266 [l0-6] DEBUG IDACall - remote user: admin
      === 2013-01-06 08:57:39,268 [l0-6] DEBUG XML - Parsed XML from (in memory stream): 1ms
      === 2013-01-06 08:57:39,270 [l0-6] DEBUG RPCManager - Processing 1 requests.
      === 2013-01-06 08:57:39,273 [l0-6] DEBUG RPCManager - Request #1 (DSRequest) payload: {
          criteria:{
          },
          operationConfig:{
              dataSource:"departmentsTest",
              operationType:"fetch"
          },
          appID:"builtinApplication",
          operation:"departmentsTest_fetch",
          oldValues:{
          }
      }
      === 2013-01-06 08:57:39,273 [l0-6] INFO  IDACall - Performing 1 operation(s)
      === 2013-01-06 08:57:39,273 [l0-6] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
      === 2013-01-06 08:57:39,273 [l0-6] DEBUG DeclarativeSecurity - DataSource departmentsTest is not in the pre-checked list, processing...
      === 2013-01-06 08:57:39,273 [l0-6] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No userTypes defined, allowing anyone access to all operations for this application
      === 2013-01-06 08:57:39,273 [l0-6] DEBUG AppBase - [builtinApplication.departmentsTest_fetch] No public zero-argument method named '_departmentsTest_fetch' found, performing generic datasource operation
      === 2013-01-06 08:57:39,274 [l0-6] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Performing fetch operation with
      	criteria: {}	values: {}
      === 2013-01-06 08:57:39,278 [l0-6] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Started new transaction "94483825"
      === 2013-01-06 08:57:39,278 [l0-6] INFO  HibernateDataSource - [builtinApplication.departmentsTest_fetch] Query string: select _DepartmentTest, parent1 from ru.eurotechnologygroup.etgcrm.server.model.DepartmentTest _DepartmentTest  left outer join _DepartmentTest.parent parent1
      === 2013-01-06 08:57:39,278 [l0-6] DEBUG SQL - select department0_.DID as DID4_0_, department1_.DID as DID4_1_, department0_.DNAME as DNAME4_0_, department0_.dparid as dparid4_0_, department1_.DNAME as DNAME4_1_, department1_.dparid as dparid4_1_ from department department0_ left outer join department department1_ on department0_.dparid=department1_.DID
      === 2013-01-06 08:57:39,285 [l0-6] INFO  DSResponse - [builtinApplication.departmentsTest_fetch] DSResponse: List with 7 items
      === 2013-01-06 08:57:39,285 [l0-6] INFO  HibernateTransaction - [builtinApplication.departmentsTest_fetch] Attempting to commit 0 database update(s)
      === 2013-01-06 08:57:39,285 [l0-6] DEBUG HibernateTransaction - [builtinApplication.departmentsTest_fetch] Committing transaction "94483825"
      === 2013-01-06 08:57:39,294 [l0-6] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
      === 2013-01-06 08:57:39,297 [l0-6] DEBUG RPCManager - non-DMI response, dropExtraFields: false
      === 2013-01-06 08:57:39,322 [l0-6] DEBUG HibernateTransaction - Closing session "94483825"
      === 2013-01-06 08:57:39,322 [l0-6] DEBUG HibernateTransaction - Removed transaction "94483825"
      === 2013-01-06 08:57:54,966 [l0-6] INFO  RequestContext - URL: '/etgcrm/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0': Moz (Gecko) with Accept-Encoding header
      === 2013-01-06 08:57:54,966 [l0-6] DEBUG IDACall - Header Name:Value pair: Host:127.0.0.1:8888
      === 2013-01-06 08:57:54,966 [l0-6] DEBUG IDACall - Header Name:Value pair: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
      === 2013-01-06 08:57:54,966 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      === 2013-01-06 08:57:54,966 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
      === 2013-01-06 08:57:54,966 [l0-6] DEBUG IDACall - Header Name:Value pair: Accept-Encoding:gzip, deflate
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Connection:keep-alive
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Cookie:GLog=%7B%0D%20%20%20%20left%3A1032%2C%20%0D%20%20%20%20top%3A165%2C%20%0D%20%20%20%20width%3A632%2C%20%0D%20%20%20%20height%3A673%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20Log%3A3%2C%20%0D%20%20%20%20%20%20%20%20ListGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20TreeGrid%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultTree%3A3%2C%20%0D%20%20%20%20%20%20%20%20ResultSet%3A3%2C%20%0D%20%20%20%20%20%20%20%20fetchTrace%3A3%2C%20%0D%20%20%20%20%20%20%20%20ComboBoxItem%3A3%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20trackRPC%3Atrue%0D%7D; JSESSIONID=fjf1aqhizb2i; isc_cState=ready
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Referer:http://127.0.0.1:8888/etgcrm.jsp?gwt.codesvr=127.0.0.1:9997
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Content-Type:application/x-www-form-urlencoded; charset=UTF-8
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Content-Length:984
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Cache-Control:no-cache
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - Header Name:Value pair: Pragma:no-cache
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - session exists: fjf1aqhizb2i
      === 2013-01-06 08:57:54,967 [l0-6] DEBUG IDACall - remote user: admin
      === 2013-01-06 08:57:54,969 [l0-6] DEBUG XML - Parsed XML from (in memory stream): 1ms
      === 2013-01-06 08:57:54,970 [l0-6] DEBUG RPCManager - Processing 1 requests.
      === 2013-01-06 08:57:54,976 [l0-6] DEBUG RPCManager - Request #1 (DSRequest) payload: {
          values:{
              department:2,
              login:"aaassddff1123",
              password:"fadfadsfasdf334"
          },
          operationConfig:{
              dataSource:"usersTest",
              operationType:"add"
          },
          componentId:"isc_DynamicForm_0",
          appID:"builtinApplication",
          operation:"usersTest_add",
          oldValues:{
          },
          criteria:{
          }
      }
      === 2013-01-06 08:57:54,976 [l0-6] INFO  IDACall - Performing 1 operation(s)
      === 2013-01-06 08:57:54,976 [l0-6] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
      === 2013-01-06 08:57:54,976 [l0-6] DEBUG DeclarativeSecurity - DataSource usersTest is not in the pre-checked list, processing...
      === 2013-01-06 08:57:54,977 [l0-6] DEBUG AppBase - [builtinApplication.usersTest_add] No userTypes defined, allowing anyone access to all operations for this application
      === 2013-01-06 08:57:54,977 [l0-6] DEBUG AppBase - [builtinApplication.usersTest_add] No public zero-argument method named '_usersTest_add' found, performing generic datasource operation
      === 2013-01-06 08:57:54,977 [l0-6] INFO  HibernateDataSource - [builtinApplication.usersTest_add] Performing add operation with
      	criteria: {department:2,login:"aaassddff1123",password:"fadfadsfasdf334"}	values: {department:2,login:"aaassddff1123",password:"fadfadsfasdf334"}
      === 2013-01-06 08:57:54,981 [l0-6] DEBUG HibernateTransaction - [builtinApplication.usersTest_add] Started new transaction "1404168243"
      === 2013-01-06 08:57:54,984 [l0-6] DEBUG SQL - select department0_.DID as DID4_, department0_.DNAME as DNAME4_, department0_.dparid as dparid4_ from department department0_ where department0_.DID=?
      === 2013-01-06 08:57:54,989 [l0-6] DEBUG SQL - insert into suser (DID, USERLOGIN, USERPASSWORD) values (?, ?, ?)
      === 2013-01-06 08:57:54,993 [l0-6] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
      === 2013-01-06 08:57:54,993 [l0-6] INFO  HibernateTransaction - Attempting to commit 1 database update(s)
      === 2013-01-06 08:57:54,993 [l0-6] DEBUG HibernateTransaction - Committing transaction "1404168243"
      === 2013-01-06 08:57:55,007 [l0-6] DEBUG RPCManager - non-DMI response, dropExtraFields: false
      === 2013-01-06 08:57:55,012 [l0-6] DEBUG HibernateTransaction - Closing session "1404168243"
      === 2013-01-06 08:57:55,012 [l0-6] DEBUG HibernateTransaction - Removed transaction "1404168243"
      logs include loading of the screen, initial fetching for IPickTreeItem and requests after hitting save button.

      I'd like to add that responses of "add" operations in both cases are equal

      ValuesManager
      Code:
      [
          {
              data:{
                  department:4, 
                  id:3150, 
                  login:"ggghhdsfghsdfhsdh", 
                  password:"sdsdsdsddss"
              }, 
              invalidateCache:false, 
              isDSResponse:true, 
              operationType:"add", 
              queueStatus:0, 
              status:0
          }
      ]
      DynamicForm
      Code:
      [
          {
              data:{
                  department:3, 
                  id:3149, 
                  login:"ghhdfjjdjd", 
                  password:"djddjjdjj"
              }, 
              invalidateCache:false, 
              isDSResponse:true, 
              operationType:"add", 
              queueStatus:0, 
              status:0
          }
      ]
      Screenshot of the application attached.

      Please, keep me in touch on this one.
      Attached Files
      Last edited by vostapenko; 5 Jan 2013, 21:06.

      Comment

      Working...
      X