Function that will open a given submenu.
ID of the submenu that will be closed
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function that will open a given submenu.