Hi All!
I have a "company" list grid and a "company relationship" tree grid. I want to implement the flow like "if user select the company on the company list will change the datasource and fetch the data for the tree grid component by matching the companyId", Now the problem I am facing is that I can fetch the corresponding company data in tree grid successfully, but when I try to open the root folder in the tree grid, it shows nothing even though it has child records. Also, I found the following message in console:
=== 2008-09-09 20:23:59,421 [or16] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{companyId:"8055505", groupId:"8055505"},
operationConfig:{dataSource:"relation", operationType:"fetch"},
appID:"builtinApplication",
operation:"relation_fetch",
oldValues:{companyId:"8055505", groupId:"8055505"}
}
=== 2008-09-09 20:23:59,436 [or16] INFO SQLDriver - [builtinApplication.relation_fetch] Executing SQL query on 'HSQLDB': SELECT relationship AS "relationship", groupId AS "groupId", capitalBase AS "capitalBase", financialExposure AS "financialExposure", transaction AS "transaction", shareholding AS "shareholding", companyId AS "companyId", companyName AS "companyName" FROM relation WHERE (companyId='8055505' AND groupId='8055505')
As you can see in the above message, the companyId that I used to fetch tree data for company list still exist in the criteria, that should be the reason why I can't retrieve the child record for the root record successfully. So how can I clear the companyId from the criteria after fetch data for tree grid successfully? so that I can retrieve the child record for the root record successfully.
Thanks in advance
Vinson
I have a "company" list grid and a "company relationship" tree grid. I want to implement the flow like "if user select the company on the company list will change the datasource and fetch the data for the tree grid component by matching the companyId", Now the problem I am facing is that I can fetch the corresponding company data in tree grid successfully, but when I try to open the root folder in the tree grid, it shows nothing even though it has child records. Also, I found the following message in console:
=== 2008-09-09 20:23:59,421 [or16] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{companyId:"8055505", groupId:"8055505"},
operationConfig:{dataSource:"relation", operationType:"fetch"},
appID:"builtinApplication",
operation:"relation_fetch",
oldValues:{companyId:"8055505", groupId:"8055505"}
}
=== 2008-09-09 20:23:59,436 [or16] INFO SQLDriver - [builtinApplication.relation_fetch] Executing SQL query on 'HSQLDB': SELECT relationship AS "relationship", groupId AS "groupId", capitalBase AS "capitalBase", financialExposure AS "financialExposure", transaction AS "transaction", shareholding AS "shareholding", companyId AS "companyId", companyName AS "companyName" FROM relation WHERE (companyId='8055505' AND groupId='8055505')
As you can see in the above message, the companyId that I used to fetch tree data for company list still exist in the criteria, that should be the reason why I can't retrieve the child record for the root record successfully. So how can I clear the companyId from the criteria after fetch data for tree grid successfully? so that I can retrieve the child record for the root record successfully.
Thanks in advance
Vinson
Comment