Why is message box required to observe the updates in dialog's parameters?

Not applicable
10-27-2021
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If the message box is not provided then the below/next command is executed before opening the dialog.
m_Application->executeTextCommand("Commands.SetString infoStudyComments Comments");
Hence we don't see any update. Please refer to the GIF for a better understanding.
GIF: If a message box is present
void updateParameters()
{
m_Application->executeTextCommand("Commands.Start MSFNestPrepareNestCmd");
m_UserInterface->messageBox("Updating parameters...");
m_Application->executeTextCommand("Commands.SetString infoStudyComments Comments");
m_UserInterface->messageBox("Updated");
}
GIF: If a message box is not present
void updateParameters()
{
m_Application->executeTextCommand("Commands.Start MSFNestPrepareNestCmd");
m_Application->executeTextCommand("Commands.SetString infoStudyComments Comments");
}