Different smartWindows

Flipkonijn

New Member
hello,

i have a smartbrowser thats in a smartwindow. this window is in my frame. In that frame is also a treeview. Now i want, when the value-change trigger is fired in my smartbrowse, to update my tree automatically. That is, i have a node that contains the description of a product in my browse, so when i select a product in my browse, the node name must change to the description of selected record in the browse.

I have managed to do this, but only with a button. So i select a record, click the button, and the treeview is changed. But i want to do this automatically. But is this possible.

can i code when the value changes, the smartbrowse can command the main frame he has to run the procedure refreshTree??
Do i have to put my tree also in a smartwindow, or isn t this neccesary??

please someone help me, because i cant get it to work.

Very much thanks in advance!!!
 
Sure you can do it; if it works when clicking a button after selecting a record in the browse it should also work on selecting the record itself. On Value-Changed of the browse would be a good place to do this (look for the value-changed trigger of the browse or an associated smart object procedure).

Whether or not you put your treeview in a smart window or not should not matter really; the treeview probably is not a smart object anyway. Smart objects are nothing but normal ones with a bit of extra code wrapped around it that is supposed to make your life easier...
 
Back
Top