CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

BrowserScript dtnIsExpanded fails on DLL

by wieczy123 » 13 May 2014 14:05

Hi,

the following C++ code works only in exe. By deploying as DLL it fails on expanding a item:

cpp code
// Fill Tree

for(int i=0;i<10;i++) {
TIWCGJQDynaTreeNode *newitem = IWCGJQDynaTree1->Nodes->Add();
newitem->Title = "Main";

TIWCGBrowserParam *parm1 = IWCGJQDynaTree1->JQDynaTreeOptions->OnExpand->BrowserParams->Add();
parm1->ServerName = "ex_" + newitem->UniqueName;
parm1->BrowserScript = newitem->jsNodeCommand(dtnIsExpanded);

for(int j=0;j<10;j++) {
TIWCGJQDynaTreeNode *subitem = newitem->Children->Add();
subitem->Title = "Child";

TIWCGBrowserParam *parm2 = IWCGJQDynaTree1->JQDynaTreeOptions->OnExpand->BrowserParams->Add();
parm2->ServerName = "ex_" + subitem->UniqueName;
parm2->BrowserScript = subitem->jsNodeCommand(dtnIsExpanded);

for(int k=0;k<10;k++) {
TIWCGJQDynaTreeNode *subsubitem = subitem->Children->Add();
subsubitem->Title = "SubChild";
}
}
}

Here you can check this out:

http://www.cmportal01.de/cgi-bin/Tree.dll

What can I do?

best regards

Frank
wieczy123
 
Posts: 19
Joined: 06 May 2013 10:20

by Jorge Sousa » 13 May 2014 14:44

Hi Frank

Putting the browser in debug, in can see this in browser console

POST http://www.cmportal01.de/cgi-bin/Tree.d ... GJQDYNATRE…ATREE1_9_7=false&ex_IWCGJQDYNATREE1_9_8=false&ex_IWCGJQDYNATREE1_9_9=false 404 (Not Found)

But it's a strange behaviour for a 404 error, please can you post any code related to tree links?

I take the opportunity to adivse, also for future reading, how to debug an ISAPI dll, you should be able to debug the same way in C++

In delphi is run

- make sure delphi runs as admin
- start the web app / site
- In IDE menu, Run + Attach to Process, and select w3wp.exe
- a cpu window appears, hit F9, and you should be able to see some breakpoints.

i hope it helps
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by wieczy123 » 13 May 2014 15:16

Hi,

there is no other code in this little project. It's specially developed to show you this behavoir.

BTW: if the indexes only run to 5 instead of 10 it will also run as DLL.

What can I do?

best regards

Frank
wieczy123
 
Posts: 19
Joined: 06 May 2013 10:20

by Jorge Sousa » 13 May 2014 15:36

Hello

there is no other code in this little project. It's specially developed to show you this behavoir.


Send us the little project please. t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by wieczy123 » 13 May 2014 17:24

you have email at Support at cgdevtools dot com
wieczy123
 
Posts: 19
Joined: 06 May 2013 10:20

by Alexander Bulei » 14 May 2014 11:13

Hi Frank,

First, you don't need add the browser parameter for each node, it will increase the request url to Expand event.
Remove this part.

You must use the browser parameter (dtnIsExpanded), when you need it, e.g: onclick of button.


Also, you need configure IIS:

  • Increase query size limit:

    Code: Select all
    configuration/system.webServer/security/requestFiltering/requestLimits@maxQueryString to 32768

  • Increase upload limit:

    Code: Select all
    appcmd.exe set config "SiteName" /section:system.webServer/serverRuntime /uploadReadAheadSize:"1048576" /commit:apphost

Thanks.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by wieczy123 » 15 May 2014 09:21

Thank you - it runs :-)
wieczy123
 
Posts: 19
Joined: 06 May 2013 10:20


Return to JQTreeView

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.