on 2020 Apr 11 9:27 AM
Hello experts,
does anyone know, how can I use the parameters HelpContent and HelpURL of the Application.StatusBar.SetSystemMessage method to display custom Information in the Help column of the System Messages Log?
If I pass only the HelpContent, the column remains empty:
Application.StatusBar.SetSystemMessage("Test Message", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success, HelpContent: "Test");
If I pass a URL, I get a COM exception:
Application.StatusBar.SetSystemMessage("Test Message", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success, HelpContent: "Test", HelpURL: "http://google.de");
"Status Bar - Help file type not supported".
If I pass a URL with a reference to an existing SAP help file, I get another COM Exception:
Application.StatusBar.SetSystemMessage("Test Message", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success, HelpContent: "Test", HelpURL: "file:///C:/ProgramData/SAP/SAP%20Business%20One/Help/SAP%20Business%20One/EN/SBO_Help/4510023dcf465d7ae10000000a11466f.html");
"Status Bar - Help link not supported".
I don't actually need a real help file, that will be opened, I just need a hyperlink there to be able to process a click on it. I would really appreciate, if you can help me.
Best regards,
Alexander
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
After lots of tries and tests I've found a solution. The URL must contain just a path to a local .html file. Even if the file doesn't exist, it works:
Application.StatusBar.SetSystemMessage("Test Message", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success, HelpContent: "Test", HelpURL: "X:/NotExistingFolder/not_existing_file.html");
Hope, this will save other developers time, if one need to implement this functionality.
Best regards,
Alexander.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
8 | |
8 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.