I have an interactive report in JMP, and I want to save it so that when I reopen it, all the filters and settings are preserved. Currently, I find that I need to reapply the local filters near the charts every time I reopen the report. How can I save the report in a way that retains all the filters and settings when I reopen it?
Local Here(
(table1 = New Table("Big Class",
Add Rows(40),
Compress File When Saved(1),
New Script(
["en" => "Distribution",
"ja" => "一変量の分布",
"x-id" => "S_Distribution_Scp",
"zh-CN" => "分布"],
Distribution(
Continuous Distribution(Column(:weight)),
Nominal Distribution(Column(:age))
)
),
New Script(
["en" => "Bivariate",
"ja" => "二変量の関係(二変量)",
"x-id" => "S_Bivariate_Scp",
"zh-CN" => "二元"],
Bivariate(Y(:weight), X(:height), Fit Line)
),
New Script(
["en" => "Oneway",
"ja" => "二変量の関係(一元配置)",
"x-id" => "S_Oneway_Scp",
"zh-CN" => "单因子"],
Oneway(Y(:height), X(:sex), Means(1), Mean Diamonds(1))
),
New Script(
["en" => "Logistic",
"ja" => "二変量の関係(ロジスティック)",
"x-id" => "S_Logistic_Scp",
"zh-CN" => "Logistic"],
Logistic(Y(:age), X(:weight))
),
New Script(
["en" => "Contingency",
"ja" => "二変量の関係(分割表)",
"x-id" => "S_Contingency_Scp",
"zh-CN" => "列联"],
Contingency(
Y(:age),
X(:sex),
Crosstabs(
Count(1),
Total %(1),
Col %(1),
Row %(1),
Expected(0),
Deviation(0),
"Cell Chi^2"n(0)
)
)
),
New Script(
["en" => "Fit Model",
"ja" => "モデルのあてはめ",
"x-id" => "S_Fit_Model_Scp",
"zh-CN" => "拟合模型"],
Fit Model(
Y(:weight),
Effects(:age, :sex, :height),
Personality("Standard Least Squares"),
Run(
:weight << {Plot Actual by Predicted(1),
Plot Residual by Predicted(1), Plot Effect Leverage(1)}
)
)
),
New Script(
["en" => "Set Sex Value Labels",
"ja" => "性別に値ラベルをセット",
"x-id" => "S_Set_Sex_Value_Labels_Scp",
"zh-CN" => "设置性别值标签"],
Column("sex") << ValueLabels({"M", "F"}, {"Male", "Female"});
Column("sex") << UseValueLabels;
),
New Script(
["en" => "Set Age Value Labels",
"ja" => "年齢に値ラベルをセット",
"x-id" => "S_Set_Age_Value_Labels_Scp",
"zh-CN" => "设置年龄值标签"],
Column("age") << ValueLabels(
{12, 13, 14, 15, 16, 17},
{"Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen"
}
);
Column("age") << UseValueLabels;
),
New Script(
["en" => "Graph Builder Smoother Line",
"ja" => "グラフビルダー 平滑線",
"x-id" => "S_Big_Class_Graph_Builder_Smoother_Line_Scp",
"zh-CN" => "图形生成器: 平滑线"],
Graph Builder(
Show Control Panel(0),
Variables(X(:height), Y(:weight), Overlay(:sex)),
Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
)
),
New Script(
["en" => "Graph Builder Line and Bar Charts",
"ja" => "グラフビルダー 折れ線・棒",
"x-id" => "S_Big_Class_Graph_Builder_Line_and_Bar_Chart_Scp",
"zh-CN" => "图形生成器: 线图和条形图"],
Graph Builder(
Show Control Panel(0),
Variables(
X(:age, Size(15, 20)),
Y(:height, Size(38, 36)),
Y(:weight)
),
Elements(
Position(1, 1),
Line(X, Y, Legend(1), Row order(0), Summary Statistic("Mean"))
),
Elements(
Position(1, 2),
Bar(
X,
Y,
Legend(2),
Bar Style("Side by side"),
Summary Statistic("Mean")
)
)
)
),
New Script(
["en" => "Graph Builder Line Chart",
"ja" => "グラフビルダー 折れ線",
"x-id" => "S_Big_Class_Graph_Builder_Line_Chart_Scp",
"zh-CN" => "图形生成器: 线图"],
Graph Builder(
Show Control Panel(0),
Variables(X(:age), Y(:height), Overlay(:sex)),
Elements(
Line(X, Y, Legend(3), Row order(0), Summary Statistic("Mean")),
Points(X, Y, Legend(4), Jitter(1))
),
SendToReport(
Dispatch({}, "400", ScaleBox,
{Legend Model(
4,
Base(0, 0, 0),
Base(1, 0, 1),
Properties(0, {Marker("Plus")}),
Properties(1, {Marker("Square")})
)}
)
)
)
),
New Script(
["en" => "Graph Builder Heatmap",
"ja" => "グラフビルダー ヒートマップ",
"x-id" => "S_Big_Class_Graph_Builder_Heat_Map_Scp",
"zh-CN" => "图形生成器: 热图"],
Graph Builder(
Show Control Panel(0),
Variables(X(:age), Y(:sex)),
Elements(Heatmap(X, Y, Legend(2)))
)
),
New Script(
["en" => "JMP Application: Six Quality Graphs",
"ja" => "JMPアプリケーション: 品質を表す6つのグラフ",
"x-id" => "S_Big_Class_JMP_Application_Capability_2_Scp",
"zh-CN" => "JMP 应用程序: 六个质量图形"],
JMP App(
Set Name("Application"),
Set Description("Description"),
Auto Launch(1),
Snap To Grid(1),
Show Grid(1),
Show Properties(1),
Show Sources(0),
Group By Category(1),
Dashboard Mode(0),
Parameters,
Tables(
DataTable1 = GuiTable(
Set Path("$SAMPLE_DATA/Big Class.jmp"),
Set Label("DataTable1"),
Set Location("Current Data Table"),
Set Invisible(0)
)
),
Script(JSL Quote(// This script is executed when the application is run.
// Named objects have been created for the application modules
// (for example, "Module1") and the pre-defined object
// "thisApplication" refers to the application object itself.
// Variables and functions declared here are scoped to the
// Application namespace.
) ),
Allocate(
Module1 = Plan(
PreAllocate,
Script(JSL Quote(// This script is executed when a new module instance is
// created. The pre-defined object "thisModuleInstance" refers
// to the instance object, but other objects such as boxes and
// scripts have not yet been created. Variables declared here are
// scoped to the ModuleInstance namespace.
// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);
thisModuleInstance << Create Objects;
// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").
) ),
Allocate(
Outline1 = Outline Box("");
List1 = V List Box();
Report2 = Platform(
DataTable1,
Control Chart(
Sample Size(5),
KSigma(3),
Chart Col(:height, XBar, R),
SendToReport(
Dispatch({"XBar of height"},
"Control Chart Limits frame", FrameBox,
{Frame Size(64, 208)}
),
Dispatch({"R of height"},
"Control Chart Limits frame", FrameBox,
{Frame Size(64, 208)}
)
)
)
);
Report3 = Platform(
DataTable1,
Control Chart(
Sample Size(5),
KSigma(3),
Chart Col(
:height,
XBar(Box Plots(1), Connect Points(0))
),
SendToReport(
Dispatch({"XBar of height"},
"Variables Control Chart of XBar",
FrameBox,
{Frame Size(313, 162),
DispatchSeg(
Box Plot Seg(1),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(2),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(3),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(4),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(5),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(6),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(7),
{Confidence Diamond(1),
Line Color("Light Gray")}
),
DispatchSeg(
Box Plot Seg(8),
{Confidence Diamond(1),
Line Color("Light Gray")}
)}
),
Dispatch({"XBar of height"},
"Control Chart Limits frame", FrameBox,
{Frame Size(64, 162)}
)
)
)
);
Report1 = Platform(
DataTable1,
Distribution(
Continuous Distribution(
Column(:height),
Quantiles(0),
Summary Statistics(0),
Outlier Box Plot(0),
Normal Quantile Plot(1),
Capability Analysis(
LSL(55),
USL(70),
Target(63)
)
)
)
);
),
Organize(
Reparent(Outline1(Report1));
Reparent(List1(Report3));
Reparent(List1(Report2));
Reparent(Outline1(List1));
Relocate(Outline1(0, 0));
),
Initialize(
Outline1 << Background Color(2147483647);
Outline1 << Border(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Outline1 << Enabled(1);
Outline1 << Horizontal Alignment("Default");
Outline1 << Margin(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Outline1 << Padding(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Outline1 << Text Color(2147483647);
Outline1 << UI Only(0);
Outline1 << Vertical Alignment("Default");
Outline1 << Visibility("Visible");
Outline1 << Set Min Size(1139, 1030);
Outline1 << Set Max Size(1139, 1030);
Outline1 << Set Stretch({"Neutral", "Neutral"});
Outline1 << Set Title("Six Quality Graphs");
Outline1 << SetHorizontal(1);
Outline1 << SetOpen(1);
Outline1 << Outline Close Orientation("Auto");
Outline1 << Set Allow Title Wrapping(1);
Outline1 << Set Base Font("Title");
Outline1 << Set Font Scale(1);
List1 << Background Color(2147483647);
List1 << Border({Left(0), Top(0), Right(0), Bottom(0)});
List1 << Enabled(1);
List1 << Horizontal Alignment("Default");
List1 << Margin({Left(0), Top(0), Right(0), Bottom(0)});
List1 << Padding({Left(0), Top(0), Right(0), Bottom(0)});
List1 << Text Color(2147483647);
List1 << UI Only(0);
List1 << Vertical Alignment("Default");
List1 << Visibility("Visible");
List1 << Set Min Size(501, 985);
List1 << Set Max Size(501, 985);
List1 << Set Stretch({"Neutral", "Neutral"});
List1 << set horizontal(0);
Report2 << Background Color(2147483647);
Report2 << Border(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report2 << Enabled(1);
Report2 << Horizontal Alignment("Default");
Report2 << Margin(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report2 << Padding(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report2 << Text Color(2147483647);
Report2 << UI Only(0);
Report2 << Vertical Alignment("Default");
Report2 << Visibility("Visible");
Report2 << Set Min Size(481, 642);
Report2 << Set Max Size(481, 642);
Report2 << Set Stretch({"Neutral", "Neutral"});
Report2 << set horizontal(0);
Report3 << Background Color(2147483647);
Report3 << Border(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report3 << Enabled(1);
Report3 << Horizontal Alignment("Default");
Report3 << Margin(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report3 << Padding(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report3 << Text Color(2147483647);
Report3 << UI Only(0);
Report3 << Vertical Alignment("Default");
Report3 << Visibility("Visible");
Report3 << Set Min Size(481, 303);
Report3 << Set Max Size(481, 303);
Report3 << Set Stretch({"Neutral", "Neutral"});
Report3 << set horizontal(0);
Report1 << Background Color(2147483647);
Report1 << Border(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report1 << Enabled(1);
Report1 << Horizontal Alignment("Default");
Report1 << Margin(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report1 << Padding(
{Left(0), Top(0), Right(0), Bottom(0)}
);
Report1 << Text Color(2147483647);
Report1 << UI Only(0);
Report1 << Vertical Alignment("Default");
Report1 << Visibility("Visible");
Report1 << Set Min Size(585, 699);
Report1 << Set Max Size(585, 699);
Report1 << Set Stretch({"Neutral", "Neutral"});
Report1 << set horizontal(0);
)
)
),
Initialize(
Module1 << Auto Launch(1);
Module1 << Set Module Type("Report");
Module1 << Set Window Title("^TABLENAME - ^APPNAME");
)
) << Run
),
New Column(
["en" => "name", "ja" => "名前", "x-id" => "S_name_Col", "zh-CN" => "姓名"],
Character,
"Nominal",
Set Property(
"Notes",
["en" => "...usually used as a label variable in plots",
"ja" => "散布図のラベル変数として使用する。",
"x-id" => "S_usually_used_as_a_label_variable_Not",
"zh-CN" => "...通常用作图中的标签变量"]
),
Set Values(
{"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES",
"ROBERT", "BARBARA", "ALICE", "SUSAN", "JOHN", "JOE", "MICHAEL",
"DAVID", "JUDY", "ELIZABETH", "LESLIE", "CAROL", "PATTY",
"FREDERICK", "ALFRED", "HENRY", "LEWIS", "EDWARD", "CHRIS",
"JEFFREY", "MARY", "AMY", "ROBERT", "WILLIAM", "CLAY", "MARK",
"DANNY", "MARTHA", "MARION", "PHILLIP", "LINDA", "KIRK", "LAWRENCE"}
),
Set Display Width(0)
),
New Column(
["en" => "age", "ja" => "年齢", "x-id" => "S_age_Col", "zh-CN" => "年龄"],
Numeric,
"Ordinal",
Format("Fixed Dec", 5, 0),
Set Property(
"Notes",
["en" => "Explore data adventurously",
"ja" => "年齢別にデータを探索する。",
"x-id" => "S_Explore_data_adventurously_Not",
"zh-CN" => "大胆地探究数据"]
),
Set Values(
[12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14,
14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15,
16, 16, 16, 17, 17, 17]
),
Set Display Width(0)
),
New Column(
["en" => "sex", "ja" => "性別", "x-id" => "S_sex_Col", "zh-CN" => "性别"],
Character(1),
"Nominal",
Set Property(
"Notes",
["en" => "Explore data adventurously",
"ja" => "性別でデータを探索する。",
"x-id" => "S_Explore_data_adventurously_2_Not",
"zh-CN" => "大胆地探究数据"]
),
Set Values(
{"F", "F", "F", "F", "F", "M", "M", "M", "F", "F", "F", "M", "M",
"M", "M", "F", "F", "F", "F", "F", "M", "M", "M", "M", "M", "M", "M",
"F", "F", "M", "M", "M", "M", "M", "F", "F", "M", "F", "M", "M"}
),
Set Display Width(0)
),
New Column(
["en" => "height",
"ja" => "身長(インチ)",
"x-id" => "S_height_Col",
"zh-CN" => "身高"],
Numeric,
"Continuous",
Format("Fixed Dec", 5, 0),
Set Property(
"Notes",
["en" => "Explore data adventurously",
"ja" => "データを探索する。二変量の関係のXに指定する。",
"x-id" => "S_Explore_data_adventurously_3_Not",
"zh-CN" => "大胆地探究数据"]
),
Set Values(
[59, 61, 55, 66, 52, 60, 61, 51, 60, 61, 56, 65, 63, 58, 59, 61, 62,
65, 63, 62, 63, 64, 65, 64, 68, 64, 69, 62, 64, 67, 65, 66, 62, 66,
65, 60, 68, 62, 68, 70]
),
Set Display Width(0)
),
New Column(
["en" => "weight",
"ja" => "体重(ポンド)",
"x-id" => "S_Big_Class_weight_Col",
"zh-CN" => "体重"],
Numeric,
"Continuous",
Format("Fixed Dec", 5, 0),
Set Property(
"Notes",
["en" => "Explore data adventurously",
"ja" => "データを探索する。二変量の関係のYに指定する。",
"x-id" => "S_Explore_data_adventurously_4_Not",
"zh-CN" => "大胆地探究数据"]
),
Set Values(
[95, 123, 74, 145, 64, 84, 128, 79, 112, 107, 67, 98, 105, 95, 79,
81, 91, 142, 84, 85, 93, 99, 119, 92, 112, 99, 113, 92, 112, 128,
111, 105, 104, 106, 112, 115, 128, 116, 134, 172]
),
Set Display Width(0)
),
Set Label Columns(:name)
)) << Run Formulas;
table1 << Graph Builder(
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8))),
Local Data Filter(Add Filter(columns(:sex), Where(:sex == "M")))
);
)
table1 << Graph Builder(
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8))),
Local Data Filter(Add Filter(columns(:sex), Where(:sex == "M")))
);
Using a local data filter- like Jarmo does - is much better than using a global data filter. One of the benefits: the settings get saved with the plot.
Besides saving the report as a rpt file, please consider saving the report as a script to the data table
'
var data = div.getElementsByClassName("video-js");
var script = document.createElement('script');
script.src = "https://players.brightcove.net/" + data_account + "/" + data_palyer + "_default/index.min.js";
for(var i=0;i< data.length;i++){
videodata.push(data[i]);
}
}
}
for(var i=0;i< videodata.length;i++){
document.getElementsByClassName('lia-vid-container')[i].innerHTML = videodata[i].outerHTML;
document.body.appendChild(script);
}
}
catch(e){
}
/* Re compile html */
$compile(rootElement.querySelectorAll('div.lia-message-body-content')[0])($scope);
}
if (code_l.toLowerCase() != newBody.getAttribute("slang").toLowerCase()) {
/* Adding Translation flag */
var tr_obj = $filter('filter')($scope.sourceLangList, function (obj_l) {
return obj_l.code.toLowerCase() === newBody.getAttribute("slang").toLowerCase()
});
if (tr_obj.length > 0) {
tr_text = "This post originally written in lilicon-trans-text has been computer translated for you. When you reply, it will also be translated back to lilicon-trans-text.".replace(/lilicon-trans-text/g, tr_obj[0].title);
try {
if ($scope.wootMessages[$rootScope.profLang] != undefined) {
tr_text = $scope.wootMessages[$rootScope.profLang].replace(/lilicon-trans-text/g, tr_obj[0].title);
}
} catch (e) {
}
} else {
//tr_text = "This message was translated for your convenience!";
tr_text = "This message was translated for your convenience!";
}
try {
if (!document.getElementById("tr-msz-" + value)) {
var tr_para = document.createElement("P");
tr_para.setAttribute("id", "tr-msz-" + value);
tr_para.setAttribute("class", "tr-msz");
tr_para.style.textAlign = 'justify';
var tr_fTag = document.createElement("IMG");
tr_fTag.setAttribute("class", "tFlag");
tr_fTag.setAttribute("src", "/html/assets/lingoTrFlag.PNG");
tr_fTag.style.marginRight = "5px";
tr_fTag.style.height = "14px";
tr_para.appendChild(tr_fTag);
var tr_textNode = document.createTextNode(tr_text);
tr_para.appendChild(tr_textNode);
/* Woot message only for multi source */
if(rootElement.querySelector(".lia-quilt-forum-message")){
rootElement.querySelector(".lia-quilt-forum-message").appendChild(tr_para);
} else if(rootElement.querySelector(".lia-message-view-blog-topic-message")) {
rootElement.querySelector(".lia-message-view-blog-topic-message").appendChild(tr_para);
} else if(rootElement.querySelector(".lia-quilt-blog-reply-message")){
rootElement.querySelector(".lia-quilt-blog-reply-message").appendChild(tr_para);
} else if(rootElement.querySelector(".lia-quilt-tkb-message")){
rootElement.querySelector(".lia-quilt-tkb-message").appendChild(tr_para);
} else if(rootElement.querySelector(".lia-quilt-tkb-reply-message")){
rootElement.querySelector(".lia-quilt-tkb-reply-message").insertBefore(tr_para,rootElement.querySelector(".lia-quilt-row.lia-quilt-row-footer"));
} else if(rootElement.querySelector(".lia-quilt-idea-message")){
rootElement.querySelector(".lia-quilt-idea-message").appendChild(tr_para);
}else if(rootElement.querySelector(".lia-quilt-column-alley-left")){
rootElement.querySelector(".lia-quilt-column-alley-left").appendChild(tr_para);
}
else {
if (rootElement.querySelectorAll('div.lia-quilt-row-footer').length > 0) {
rootElement.querySelectorAll('div.lia-quilt-row-footer')[0].appendChild(tr_para);
} else {
rootElement.querySelectorAll('div.lia-quilt-column-message-footer')[0].appendChild(tr_para);
}
}
}
} catch (e) {
}
}
} else {
/* Do not display button for same language */
// syncList.remove(value);
var index = $scope.syncList.indexOf(value);
if (index > -1) {
$scope.syncList.splice(index, 1);
}
}
}
}
}
}
angular.forEach(mszList_l, function (value) {
if (document.querySelectorAll('div.lia-js-data-messageUid-' + value).length > 0) {
var rootElements = document.querySelectorAll('div.lia-js-data-messageUid-' + value);
}else if(document.querySelectorAll('.lia-occasion-message-view .lia-component-occasion-message-view').length >0){
var rootElements = document.querySelectorAll('.lia-occasion-message-view .lia-component-occasion-message-view')[0].querySelectorAll('.lia-occasion-description')[0];
}else {
var rootElements = document.querySelectorAll('div.message-uid-' + value);
}
angular.forEach(rootElements, function (rootElement) {
if (value == '803385' && "ForumTopicPage" == "TkbArticlePage") {
rootElement = document.querySelector('.lia-thread-topic');
}
/* V1.1 Remove from UI */
if (document.getElementById("tr-msz-" + value)) {
document.getElementById("tr-msz-" + value).remove();
}
if (document.getElementById("tr-sync-" + value)) {
document.getElementById("tr-sync-" + value).remove();
}
/* XPath expression for subject and Body */
var lingoRBExp = "//lingo-body[@id = " + "'lingo-body-" + value + "'" + "]";
lingoRSExp = "//lingo-sub[@id = " + "'lingo-sub-" + value + "'" + "]";
/* Get translated subject of the message */
lingoRSXML = doc.evaluate(lingoRSExp, doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < lingoRSXML.snapshotLength; i++) {
/* Replace Reply/Comment subject with transalted subject */
var newSub = lingoRSXML.snapshotItem(i);
/*** START : extracting subject from source if selected language and source language is same **/
var sub_L = "";
if (newSub.getAttribute("slang").toLowerCase() == code_l.toLowerCase()) {
if (value == '803385') {
sub_L = decodeURIComponent($scope.sourceContent[value].subject);
}
else{
sub_L = decodeURIComponent($scope.sourceContent[value].subject);
}
} else {
sub_L = newSub.innerHTML;
}
/*** End : extracting subject from source if selected language and source language is same **/
/* This code is placed to remove the extra meta tag adding in the UI*/
try{
sub_L = sub_L.replace('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />','');
}
catch(e){
}
// if($scope.viewTrContentOnly || (newSub.getAttribute("slang").toLowerCase() != code_l.toLowerCase())) {
if ($scope.viewTrContentOnly) {
if ("ForumTopicPage" == "IdeaPage") {
if (value == '803385') {
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
document.querySelector('.MessageSubject .lia-message-subject').innerHTML = sub_L;
}
}
}
if ("ForumTopicPage" == "TkbArticlePage") {
if (value == '803385') {
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
var subTkbElement = document.querySelector('.lia-thread-subject');
if(subTkbElement){
document.querySelector('.lia-thread-subject').innerHTML = sub_L;
}
}
}
}
else if ("ForumTopicPage" == "BlogArticlePage") {
if (value == '803385') {
try {
if((sub_L != "") && (sub_L!= undefined) && (sub_L != "undefined")){
var subElement = rootElement.querySelector('.lia-blog-article-page-article-subject');
if(subElement) {
subElement.innerText = sub_L;
}
}
} catch (e) {
}
/* var subElement = rootElement.querySelectorAll('.lia-blog-article-page-article-subject');
for (var subI = 0; subI < subElement.length; subI++) {
if((sub_L != "") && (sub_L!= undefined) && (sub_L != "undefined")){
subElement[subI].innerHTML = sub_L;
}
} */
}
else {
try {
// rootElement.querySelectorAll('.lia-blog-article-page-article-subject').innerHTML= sub_L;
/** var subElement = rootElement.querySelectorAll('.lia-blog-article-page-article-subject');
for (var j = 0; j < subElement.length; j++) {
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
subElement[j].innerHTML = sub_L;
}
} **/
} catch (e) {
}
}
}
else {
if (value == '803385') {
try{
/* Start: This code is written by iTalent as part of iTrack LILICON - 98 */
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
if(document.querySelectorAll('.lia-quilt-forum-topic-page').length > 0){
if(rootElement.querySelector('div.lia-message-subject').querySelector('h5')){
rootElement.querySelector('div.lia-message-subject').querySelector('h5').innerText = decodeURIComponent(sub_L);
} else {
rootElement.querySelector('.MessageSubject .lia-message-subject').innerText = sub_L;
}
} else {
rootElement.querySelector('.MessageSubject .lia-message-subject').innerText = sub_L;
}
}
/* End: This code is written by iTalent as part of iTrack LILICON - 98 */
}
catch(e){
console.log("subject not available for second time. error details: " + e);
}
} else {
try {
/* Start: This code is written by iTalent as part of LILICON - 98 reported by Ian */
if ("ForumTopicPage" == "IdeaPage") {
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
document.querySelector('.lia-js-data-messageUid-'+ value).querySelector('.MessageSubject .lia-message-subject').innerText = sub_L;
}
}
else{
if( (sub_L != "") && (sub_L != undefined) && (sub_L != "undefined") ){
rootElement.querySelector('.MessageSubject .lia-message-subject').innerText = sub_L;
/* End: This code is written as part of LILICON - 98 reported by Ian */
}
}
} catch (e) {
console.log("Reply subject not available. error details: " + e);
}
}
}
// Label translation
var labelEle = document.querySelector("#labelsForMessage");
if (!labelEle) {
labelEle = document.querySelector(".LabelsList");
}
if (labelEle) {
var listContains = labelEle.querySelector('.label');
if (listContains) {
/* Commenting this code as bussiness want to point search with source language label */
// var tagHLink = labelEle.querySelectorAll(".label")[0].querySelector(".label-link").href.split("label-name")[0];
var lingoLabelExp = "//lingo-label/text()";
trLabels = [];
trLabelsHtml = "";
/* Get translated labels of the message */
lingoLXML = doc.evaluate(lingoLabelExp, doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
/* try{
for(var j=0;j,';
}
trLabelsHtml = trLabelsHtml+'