Skip to content

Commit

Permalink
Merge pull request #569 from GordonSmith/IDE-1143-V9_ECLWATCH
Browse files Browse the repository at this point in the history
IDE-1143 Switch to v9 ECL Watch for embedded views

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Oct 22, 2024
2 parents 128187d + 30b5089 commit 7554759
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions eclide/ResultView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,30 @@ const std::_tstring ECLWatchStr()
std::_tstring str = CString(GetIConfig(QUERYBUILDER_CFG)->Get(GLOBAL_SERVER_ECLWATCH));
if (str.length() == 0) {
str = static_cast<const TCHAR*>(CString(GetIConfig(QUERYBUILDER_CFG)->Get(GLOBAL_SERVER_WORKUNIT)));
boost::algorithm::ireplace_first(str, _T("/WsWorkunits"), _T("/esp/files/stub.htm"));
boost::algorithm::ireplace_first(str, _T("/WsWorkunits"), _T("/esp/files/index.html"));
}
return str;
}

const TCHAR * GetFramedWorkUnitEclWatchURL(Dali::IWorkunit *wu, CString &url)
{
//tp://IP:PORT?inner=/WsWorkunits/WUInfo?Wuid=W20050302-182157
//http://192.168.1.201:8010/esp/files/stub.htm?Widget=HPCCPlatformWidget#/stub/ECL/Workunits/W20140410-041544/Summary - TODO New EclWatch does not support this fully...
//http://localhost:8010/esp/files/index.html#/workunits/W20241018-162657
std::_tstring str = ECLWatchStr();
url = str.c_str();
url += _T("?Wuid=");
url += _T("#/workunits/");
url += wu->GetWuid();
url += "&Widget=WUDetailsWidget";
url = url.Trim();
return url;
}

const TCHAR * GetWorkUnitEclWatchURL(Dali::IWorkunit *wu, CString &url)
{
//http://192.168.1.201:8010/esp/files/stub.htm?Wuid=W20140410-041422&Widget=WUDetailsWidget
//http://localhost:8010/esp/files/index.html#/workunits/W20241018-162657?fullscreen=1
std::_tstring str = ECLWatchStr();
url = str.c_str();
url += _T("?Widget=WUDetailsWidget&Wuid=");
url += _T("#/workunits/");
url += wu->GetWuid();
url += _T("?fullscreen=1");
url = url.Trim();
return url;
}
Expand All @@ -80,22 +79,10 @@ const TCHAR * GetGraphEclWatchURL(Dali::IWorkunit *wu, CString &url)
{
std::_tstring str = ECLWatchStr();
url = str.c_str();
url += _T("?Widget=GraphsWUWidget&Wuid=");
url += _T("#/workunits/");
url += wu->GetWuid();
url = url.Trim();
return url;
}

const TCHAR * GetResultEclWatchURL(Dali::IWorkunit *wu, CString &url, int sequence)
{
//http://10.150.64.208:8010/WsWorkunits/WUResult?Wuid=W20041006-101104&Sequence=0
//http://192.168.1.201:8010/esp/files/stub.htm?Wuid=W20140410-041422&Sequence=0&Widget=ResultWidget
std::_tstring str = ECLWatchStr();
url = str.c_str();
url += _T("?Widget=ResultWidget&Wuid=");
url += wu->GetWuid();
url += _T("&Sequence=");
url += boost::lexical_cast<std::_tstring>(sequence).c_str();
url += _T("/metrics");
url += _T("?fullscreen=1");
url = url.Trim();
return url;
}
Expand Down

0 comments on commit 7554759

Please sign in to comment.