A.G.



Hi,

I have a problem with treeview and TS.
I have a treeview build on table TmpRighe .
When the user check a node the code replace the field Fl_select on table TmpRighe .
the problem is that for all pc connected on the net , everything is all right but on pc connected with Terminal services, doesn't execute replace .

please help me

thank much !
Augusta
specifically doesnĄ¯t execute Node Check method




Re: Treeview and Terminal services

dni


You may check if the user has rights to modify table TmpRighe. What version of vfp (for version 6 there are some issues with treeview fixed by sp 5).





Re: Treeview and Terminal services

A.G.

Version Vfp 8 ,

Yes the user has rights to modify table TmpRighe







Re: Treeview and Terminal services

dni

You may check first, before replace, if is not EOF() .




Re: Treeview and Terminal services

A.G.

specifically doesnĄ¯t execute Node Check method






Re: Treeview and Terminal services

dni

As I know the Node Check method is not executed if you have a empty list of node names.




Re: Treeview and Terminal services

A.G.

yes, but the same software on the same data dont't generate problem on pc connected on the net ; the problem is only on pc connected with Terminal services.





Re: Treeview and Terminal services

dni

Are ports available from server and for client You need to have some e available ports for client. Be sure is not a security issue or firewall issue. What are you using to activate TS API'S Is service available on server




Re: Treeview and Terminal services

A.G.

The strange thing is that the whole remaining part of the software works correctly (in TS also), the problem occurs exclusively on treeview.

Thans you






Re: Treeview and Terminal services

dni

It seems to be somethig wrong then with treeview. May be you need to have something like:

This.FileList = ThisForm.Filelst

in init method, can you show some code






Re: Treeview and Terminal services

A.G.

my code in NodeCheck method:

LPARAMETERS node
locate for onode_mem = node.INDEX && cerco la testata dell'ordine
if found()
nCount = node.INDEX

lValue = this.Nodes(nCount).Checked
replace fl_stampa WITH lValue IN MyRighe
SELECT myrighe
BROWSE

endif

Thankyou !!






Re: Treeview and Terminal services

dni

NodeCheck method is a method for what object (object type, name)




Re: Treeview and Terminal services

A.G.

NodeCheck method is a method for olecontrol : MsComCtlLib.Tree




Re: Treeview and Terminal services

dni

You may try to put in a init method for MsComCtlLib.Tree something like (it seems to be a small bug):

This.TreeList = ThisForm. MsComCtlLib.Tree





Re: Treeview and Terminal services

A.G.

the code you suggest me , generate (with vfp8 ) this error:

ole code 0x80020006: nome sconosciuto

thanks for your interest