본문 바로가기
728x90
728x90

document properties5

spotfire) input field이용해서 calculated column 변경하기 spotfire를 쓰다보면 calulated column을 내가 원하는 값을 넣어 수정하면서 data를 보고 싶을때가 있을것이다 이때 이기능을 활용할 수 있다 이는 filter와는 다른 기능이다 calculated column을 만들때 하나의 변수를 추가해 생성할 것이고 이변수를 수정하도록 구현할 것이다 document properties와 input field를 사용할 것이다 data는 아래와 같은 data를 사용할것이다 아래와 같이 var1이라는 real type을 갖는 변수를 하나 만들어 줄것이다 다음 text area를 만들고 그안에 input field를 만들것이다연필 표시를 눌러준다input field를 만들어준다해당 input filed에 아까만들었던 var1을 연결해준다이제 이 input .. 2024. 6. 22.
spotfire ) filter 적용된 value 가져오기 (how to get filter value) 사용할 data table 여기서 col2에 필터를 걸고 필터건 값을 document properties에 저장해 보겠습니다. filter 값을 넣을 document properties를 하나 만들어 줍니다. 다음으로 ironpython script를 하나 만들어줍니다. from Spotfire.Dxp.Application.Filters import ListBoxFilter #get a reference to a listbox filt=Document.FilteringSchemes[0][myDataTable][myDataTable.Columns["col2"]].As[ListBoxFilter]() #to get the active filtering reference: #filt = Document.Filt.. 2022. 12. 13.
spotfire ) 두 개의 table이 relation이 된 것처럼 한 개의 table에 filter를 했을 때 다른 table에서 두 테이블의 공통된 data만 filter 시키기 feat. ironpython, data function (서로 다른 table 공통 filtering) 두개의 data table이 relation된 것처럼, 하나의 data table에서 filter를 시켰을때 서로 공통되는 column을 기준으로 filter된 table에 남아있는 값을 다른 table에서 filter되도록 하기입니다... 말이 어려운데 그림으로 한번 설명하겠습니다. example) 좌측 우측 2개의 table이 있습니다 여기서 좌측을 df1, 우측을 df2라 하겠습니다. 여기서 col1과 col4는 df에 따라 column이름은 다르지만 같은 column입니다. df2에 filter를 먹였을때 남아 있는 col4의 값만 df1에도 같이 나타나도록 구현하는 것입니다. 여기서 df2의 col5에 APPLE만 필터를 한다면 df2에는 col4에 A,B만 남으므로 df1에도 col1에 A,B.. 2022. 12. 4.
spotfire ) ironpython list box filter 적용 시키기 in spotfire 안녕하세요 이번엔 spotfier에서 ironpython을 이용해 입력받은 값으로 list check filter를 적용시키는 것을 기록하려고 합니다. data는 iris data를 사용하겠습니다. Species column에 filter를 적용해 보겠습니다. 먼저 입력받은 값을 저장할 document properties를 만들어주겠습니다. 이름은 filter.name으로 하겠습니다. 이 document properties에 값을 넣어줄 input field를 만들어 주겠습니다. text area를 만들고 input field를 만들고 해당 input field에 filter.name document properties를 연결해주겠습니다. 그리고 filter가제대로 먹히는지 보기위해 Species col.. 2022. 10. 8.
728x90
728x90