cancel
Showing results for 
Search instead for 
Did you mean: 

SetSystemMessage HelpContent and HelpURL

alexander_nosov
Explorer
0 Kudos
276

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

View Entire Topic
alexander_nosov
Explorer
0 Kudos

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.