Hi Dojo,
I am trying to use protocol.ShowInformationMessage(); but it doesn't seem to be working.
The DataMiner version is 10.4.12.0 and it is being triggered by a Context Menu, which should work according to this documentation:
https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Scripting.SLProtocol.ShowInformationMessage.html?q=ShowInformationMessage
Are you please able to advise?
Hi Carys,
If Sebastians suggestion doesn't work, could you please provide the code you are executing?
Thanks Sebastian and Edib! I have tried adding row="true" but now the QAction doesn't seem to be running at all?
The QAction holds the Context Menu information and also sends a post request, do you think this could be a reason why ShowInformationMessage() isn't working?
Hi Carys,
if adding row="true" makes your QAction not run you should remove it, Sebastian was wondering if the QAction was being triggered at all.
Regarding the fact that QAction sends post request:
This is most likely the reason, if the flow goes User Interaction -> QAction starts -> Request is sent(through protocol) -> QAction continues -> ShowInformationMessage() is called, it won't work. Reason for that is that QAction was not triggered directly by user interaction, at least not the second time.
Can you move your ShowInformationMessage before the post request is sent in order to verify the theory and if it works we can figure out a workaround.
Ah that makes sense thank you!
I tried adding it before the post request but it still doesn't work. I've also tried adding it to a QAction that is triggered by a button but that didn't work either, which seems strange
Hi Carys,
Is the QAction doing something else besides the ShowInformationMessage()? If so, is that other code being executed?
If no other code is being executed, maybe you are missing row="true" option in the QAction.