Hello, I am trying to open the LInks Page via C/AL code. I was using below code to open it but it's not consistent and doesn't always work. Basically, the links page is opened depending on the value of a checkbox and is triggered by the on validate event of the checkbox. Below is my current code on validate:
IF ISCLEAR(WSHShell) THEN
CREATE(WSHShell,FALSE,TRUE);
Window.OPEN('Links Page Opening...\\' + STRSUBSTNO(txtMsg,AddTxt));
WSHShell.SendKeys('^l'); //simulate CTRL L - this is the one that opens the link page
SLEEP(7000); //to give the windows message a little bit of time to pop up a message for user
Window.CLOSE;
Any suggestion on a better way to open the links page?
*This post is locked for comments
I have the same question (0)