We are using a SendKeys for a Tree.
We are not sure about the problema we get; some keys working but we need to Expand the Tree as a default when page open.
The Page is a ListPart, and the Tree has 3 levels.
We are using this simple code (below), but we already tried to check which is really the Expand and we cannot find a solution for this: Open the Master Page, which cal a trigger to populate the records in the ListPart as a Tree, ans we need the Expand as default, ie open all the Tree as default.
OnOpenPage()
KWGenSetup.GET;
KWGenSetup.CALCFIELDS(KWGenSetup."Enology Report Image");
KWGenSetup.CALCFIELDS(KWGenSetup."Enology Document Image");
ViewType:=TRUE;
FilterSel:=FALSE;
WhatTransferTo:=1;
GetEntriesData(FALSE,WhatTransferTo);
// SendKeys
IF (ISCLEAR(WshShell)) THEN
CREATE(WshShell,TRUE,TRUE);
WshShell.SendKeys('+{F2}E{ENTER}');
CLEAR(WshShell);
Tks in advance for any help from you.
*This post is locked for comments