How to make a link to open request log file from OAF messagebox ?
I need to make a link to open request log file from OAF messagebox
I don't know is it even possible to call fndwrr from OAF,
so the only other option I see is to make OAM-style log viewer.
I tried this code:
String Url = "weboam/oam/log/logInfo$ftype=fnd*_webfile.request*_log$fheader=1638156698407$uid=1638156698407$target=DEV$id=867968553?event=refreshLogFile";
Url = new OAUrl(Url).createURL(pageContext.getRenderingContext());
String html = "<a target=\"_blank\" href=\""+Url+"\" >test</a>";
MessageToken [] tokens = {
new MessageToken("HTML_CONTENT", html)
};
OAException o = new OAException("XX", "GENERIC_HTML", tokens, OAException.INFORMATION, null);
pageContext.putDialogMessage(o);
This works (sort of), however, OAF removes target="_blank" (as well as any js).