Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Adobe LiveCycle - table with null values

Avatar

Level 2

SAP를 사용할 때 인쇄 편집을 위해 Adobe liveCycle을 사용합니다.

 

user00799_0-1674714959917.png

 

 

LiveCycle 인쇄물 'PO' 편집 화면입니다. XML 데이터를 연결하여 바인딩합니다.

바인딩 결과는 인쇄된 페이지에서 볼 수 있습니다.

 

제가 출력한 화면은 아래와 같습니다.

화면의 21번은 하위 항목이 있는 항목입니다.

항목 22 및 23은 항목 21의 하위 범주입니다.

user00799_1-1674714960114.png

 

 

그래서 출력물 'PO'의 항목 테이블에 하위 항목을 표시하고 싶습니다.

user00799_2-1674714960116.png

 

 

하지만 JavaScript를 사용하지 않기 때문에 간단한 데이터 바인딩만 가능합니다.

현재 제 기술로는 데이터가 정상적으로 테이블에 출력되지 않습니다.

 

* 빈 값에 null 값이 있는지도 명확하지 않습니다. 그냥 추측입니다.

 

다음과 같이 설정하고 싶습니다.

1. Null 값을 대체하기 위해 Null 값의 경우 "-" 표시

2. 행을 연결하여 해당 값이 있는 행에 'true'를 표시합니다.

 

유사한 커뮤니티 문서( https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/null-values-not-displayin... )를 찾았지만 JavaScript를 사용하지 않습니다.

 

나를 도울 수 있는 사람이 있습니까?

1 Accepted Solution

Avatar

Correct answer by
Level 2

I apply your script but, it has still don't work.

 

But, Now I have resolved this matter! Thank you for letting me know . 

 

4 Replies

Avatar

Level 6

To put - in place of null value, you need to check the field data in javascript.

if(field.rawValue == null || field.rawValue == "null"){

field.rawValue == "-";

}

 

Similarly, you can concatenate any value with the existing data in any field.

 

field.rawValue = field.rawValue + " cancatenatedValue";

Avatar

Correct answer by
Level 2

I apply your script but, it has still don't work.

 

But, Now I have resolved this matter! Thank you for letting me know . 

 

Avatar

Level 2

이제 기본 텍스트(Type? Boolean?) 'true'를 변경하고 싶습니다.

 

example, 'Kit' or 'O' instead of 'true'

 

이 질문에 대해 알고 있다면 대답해 주시겠습니까?

user00799_0-1674801180650.png

 

Avatar

Level 6

if(field.rawValue == "true"){

field.rawValue = "Kit";

}