분류 전체보기 73

[Sorting] List 항목별 정렬해서 보여주기

1. 버튼그룹 추가하고 변수 ListSort 추가 2. 버튼그룹 아이템별로 Value에 "{엔티티}.[속성]" 세팅 3. 버튼그룹 On Change 이벤트로 New Client Action 추가(이름은 Refresh로 변경하였음) 4. Refresh GetEmployees 추가  5. GetEmployees의 Sorting 탭에서 Add dynamic sort 기준을 ListSort로 추가. 6. 정상출력 확인 7. IsAscending이라는 로컬변수 추가하고 기본값을 True로 설정. 8. checkbox를 추가하여 변수에 IsAscending 를 세팅하고 On Change에 Refresh 액션을 추가. 9. GetEmployees 에서 sorting 수정 10. 정상출력 확인

Outsystems 2025.02.18

[Sorting] 테이블 항목별 정렬해서 보여주기

1. 헤더셀 프로퍼티에서 Sort Attribute 속성을 설정해준다.2. 테이블에 내장된 OnSort 이벤트 핸들러(New Client Action)를 정의하고, ClickedColumn이라는 Argument를 추가3. 화면의 로컬변수로 "TableSort" 추가 4. If 를 사용하여 현재 테이블 정렬이 변경되었거나 비어있는지 확인.  5. 정렬속성이 변경되지 않은 경우 오름차순에서 내림차순으로 반전. False의 경우에는 새 정렬 속성을 추가. 6. 설정된 Sorting 대로 refresh.  7. 화면 Aggregate의 Sorting 탭에서 Add dynamic sort 를 눌러 TableSort 변수가 기준이 되게 변경.  8. publish 하여 정상출력 확인

Outsystems 2025.02.18

[Pagination] 테이블과 리스트에 페이지네이션 수동으로 붙이기

우선 테이블과 리스트는 동일한 방식으로 수동으로 페이지네이션을 붙일 수 있다.여기서는 List를 예시로 작성. 1. 페이지네이션 위젯 붙이기(드래그앤드롭) 2. 로컬변수 StartIndex, MaxRecords 만들기  3. Pagination 속성에서 StartIndex, MaxRecords, TotalCount 세팅 4. 이벤트 핸들러 만들어주기.pagination속성에서 New Client Action 을 누르면 자동으로 NewStartIndex가 Input Parameter로 생성되지만 따로 만든경우 따로 추가.  5. Action Flow에서 Assign을 통해 로컬변수 StartIndex에 NewStartIndex를 할당해준다. 6. Refresh Data를 통해 GetEmployees를 새로..

Outsystems 2025.02.18

윈도우에 Grype(그라이프) 설치

하.... 윈도우에 안되는게 왤케 많아요 .. 암튼 먼저 WSL2 설치하고 Grype 설치하기로. WSL2 설치 1. powerShell을 관리자 권한으로 실행. 2. 아래 명령어 실행dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart  3. 컴퓨터 재부팅. 4. powershell에서 wsl --install 를 입력하여 Windows Subsystem for Linux 설치 (우분투로 자동설치되었음) 5. 홈브루 설치로그가 너무 길게 ..

[Block Event] 블록 내부에서 이벤트 트리거 후 부모에서 처리하기

요일 선택까지는 되지만, Screen(부모)의 Selection is: 부분에 요일이 표시되지 않는 상태.=> 블록 안에서 선택한 날짜가 변경될 때마다 트리거되는 이벤트 추가 필요 OnSelect 이벤트 추가, 이벤트 Input parameter로 Text타입의 WeekDay 추가  블록 내에서 이벤트 트리거 처리(드래그 앤 드랍)이 이벤트에는 필수 입력해야할 변수가 있으므로 선택한 요일이 될 값(NewWeekDay)을 설정. 방금 생성한 이벤트(OnSelect)가 부모에서 처리되지 않아 모듈error 발생. 이벤트가 트리거될때 실행할 클라이언트 액션 생성. 생성된 핸들러에는 이벤트가 트리거될 때 블록이 전송한 값을 저장하는 Input parameter가 있음. 액션 내부에 블록으로인해 이벤트가 트리거될..

Outsystems 2025.02.14

[Java] 28. Find the Index of the First Occurrence in a String

난이도: EASY 문제 링크: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/문제더보기Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.  Example 1:Input: haystack = "sadbutsad", needle = "sad"Output: 0Explanation: "sad" occurs at index 0 and 6.The first occurrence is at index 0, so we r..

[SQL50] 197. Rising Temperature

난이도: EASY 문제 링크: Rising Temperature - LeetCode 문제더보기Table: Weather+---------------+---------+ | Column Name   | Type    | +---------------+---------+ | id            | int     | | recordDate    | date    | | temperature   | int     | +---------------+---------+ id is the column with unique values for this table. There are no different rows with the same recordDate. This table contains informatio..

[SQL50] 1581. Customer Who Visited but Did Not Make Any Transactions

난이도: EASY 문제 링크: https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions/submissions/1539880821/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Visits +-------------+---------+ | Column Name | Type    | +-------------+---------+ | visit_id    | int     | | customer_id | int     | +-------------+---------+ visit_id is the column with unique values for this table. T..

[SQL50] 1068. Product Sales Analysis I

난이도: EASY 문제 링크 : https://leetcode.com/problems/product-sales-analysis-i/description/?envType=study-plan-v2&envId=top-sql-50 문제더보기Table: Sales +-------------+-------+ | Column Name | Type  | +-------------+-------+ | sale_id     | int   | | product_id  | int   | | year        | int   | | quantity    | int   | | price       | int   | +-------------+-------+ (sale_id, year) is the primary key (com..

[Java] 27. Remove Element

난이도: EASY문제더보기Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The order of the elements may be changed. Then return the number of elements in nums which are not equal to val. Consider the number of elements in nums which are not equal to val be k, to get accepted, you need to do the following things: Change the array nums such that the first k elem..