스크립트/워크플로에서 다중 파일 가져오기스크립트에서 다중 파일 가져오기를 사용하는 가장 좋은 방법은 무엇입니까?
[사용자에게 설정을 편집한 후 '가져오기' 를 클릭할 수 있는 기회를 제공하고 싶습니다.]
현재 내 접근 방식:
- Pause the script till the import is ready:
- while 루프를 사용하세요
- ~을 통해 중지하다가져오기 콜백 설정
finished= 0;
mfi = Multiple File Import(
<<SET import="" callback=""></SET>
get a list of the imported data tables:<BR />via <FONT face="courier new,courier">_wfb_리스트차이프()</FONT> (from Workflow Builder):<BR />
<CODE class=" language-jsl">_wfb_ListDiff = Function( {tempOld, tempNew},
For( i = 1, i <= N Items( tempOld ), i++,
For( k = N Items( tempNew ), k >= 1, k--,
If( tempOld[i] == tempNew[k],
Remove From( tempNew, k, 1 )
)
)
);
tempNew;
);
Custom_step_tables_old = Get Data Table List();
MFI();
while(no(finished), wait());
Custom_step_tables_new = Get Data Table List();
dts = _wfb_ListDiff( Custom_step_tables_old, Custom_step_tables_new );
- if there is no data ..
이후 코드 실행을 중지하려면 다음을 확인하세요.
if (items(dts) ==0, Throw("no data"));
did you know that 멈추다() inside a Workflow step just stops the execution of the current step?
so: 던지다().
-
사용자는 다음을 통해 MFI 대화 상자를 닫을 수 있습니다.

then the while loop will run forever (or: till the user presses ESC)
-> add an on close script:
my win = mfi << createwindow;
wait(0);
current window() << on close(finished=1)
<LINGO-LABS id="lingo-labs-867950" slang="en-US" mode="UPDATE"><LINGO-LABEL>자동화 및 스크립팅</LINGO-LABEL></LINGO-LABS>Re: 스크립트/워크플로에서 다중 파일 가져오기콜백 함수에서 가져온 테이블 목록을 얻을 수 있어야 합니다. SetImportCallback 예제를 살펴보세요.
JSL이 <를 수행하면
Re: 스크립트/워크플로에서 다중 파일 가져오기안녕하세요 @크레이지_헤일스
대안으로, 가져오기 버튼의 동작을 변경했습니다.
my win[ButtonBox(8)] << set function (dts = mfi << Import Data(); wait(0); finished=1);
하지만 불행히도 원래의 가져오기도 트리거됩니다.
... 그래서 가져오기 버튼을 다른 버튼으로 바꿨습니다.
my win = mfi << createwindow;
my win[ButtonBox(8)] << sib append (Button Box ("Import +",dts = mfi << Import Data(); wait(0); my win << close window()));<BR />my win[ButtonBox(8)] << delete
어떤 예를 말씀하시는 건가요? 찾을 수가 없네요.
Re: 스크립트/워크플로에서 다중 파일 가져오기카테고리 선택기에 객체(또는 전체)가 표시되는지 확인하세요.

Re: 스크립트/워크플로에서 다중 파일 가져오기