안녕하세요 JMP 커뮤니티입니다.
각 테이블/그림에 대한 텍스트 편집 상자를 포함하여 선택한 테이블 및/또는 그림을 포함하는 저널의 생성을 스크립팅할 수 있는지 궁금합니다.
내가 하고 싶은 것의 일부를 수행하는 추가 기능을 발견했습니다. https://community.jmp.com/t5/JMP-Add-Ins/Run-All-Table-Scripts/ta-p/42863
저는 Tiled Report 옵션에만 관심이 있지만 주석을 추가하고 싶기 때문에 선택한 모든 스크립트에 대해 Text Edit 상자를 추가하고 싶습니다. 저널의 시작과 끝에 텍스트 편집 상자를 추가할 수 있었지만 모든 스크립트에 추가하는 방법을 알 수 없는 것 같습니다. 선택한 스크립트의 양은 저널에 필요한 그림의 양에 따라 변경됩니다.
필요에 따라 사용할 수 있는 Run All Table Scripts Add-in의 일부를 가져와 변경하려고 했습니다. 지금까지 성공하지 못했습니다. 저널의 모든 스크립트에 텍스트 편집 상자를 추가하는 방법에 대한 제안이 있는 사람이 있습니까?
//This script is part of the Run All Table Scripts Add-in written by nickholmes13: https://community.jmp.com/t5/JMP-Add-Ins/Run-All-Table-Scripts/ta-p/42863.
Names Default To Here( 1 );
dt = Current Data Table();
appName = "Run All Table Scripts";
If (IsEmpty(dt),
Try(dt=Open(), Show("No data table is open so the Data Table Script Runner tool could not execute."));
);
If(IsEmpty(dt),
Stop();
);
Wait(.5);
dtTitle = dt << Get Window Title();//Get title of data table
allScripts = dt <<GET table="" script="" names="">"||dtTitle||". Be aware that all table scripts will be run, even if they do not create reports. Also note that applications created in table scripts will always appear in a separate window. \!n",
<< Markup),
Panel Box ("Which table scripts would you like to run?",
V List Box(
scriptsTR = Check Box(allScripts, << Set All(1)),
),
H List Box(
Button Box("Check All", scriptsTR << Set All(1)),
Button Box ("Check None", scriptsTR << Set All(0))
),
Spacer Box(Size(0,10)),
Text Box("Report View"),
rType = Radio Box({"Detailed", "Summary"})
),
H List Box(
Button Box ("Cancel", popup << Close Window()),
Spacer Box(),
Button Box ("Run", reportView = rType << Get();
scriptsTR = scriptsTR << Get Selected();
onRun(reportView, scriptsTR);
popup << Close Window())
)
)
)
);
popup<<SET auto="" stretching=""></SET></GET>위의 링크에 제공된 추가 기능을 사용하고 변경할 수 있기를 바랍니다(잠기지 않음). 그렇지 않다면 이 글을 삭제하겠습니다. 모든 테이블 스크립트 실행에 대한 크레딧: nickholmes13.
감사합니다.
한 가지 옵션은 onRun 함수의 for 루프 내에서 else 문을 편집하는 것입니다. else 문이 어떻게 빌드/수정되었는지 확인하세요.
If(i == 1,
window = New Window(dtTitle || " Reports",
<<JOURNAL></JOURNAL>jthi 감사합니다, 이것이 내가 찾던 것입니다!