Skip to main content
Solved

Read Only MultiLine custom field


Forum|alt.badge.img+10
  • Sidekick (Customer)
  • 51 replies

I have a read only multiline  text field (4000). The  query to show data in this screen is something like this

 

select listagg(t.CF$_field1 || ' - ' || t.CF$_field2, CHR(13)) within group(order by cf$_part_no, cf$_site)
 from table_clv t

This will show field value in a each separate line if I copy the result to notepad++, however the custom field on the screen does not show in separate lines

Notepad++

1233 - some test
1265 - adfadf
 

Ifs shows below

 

Is there any way to solve this problem?

Best answer by bhavesh

I have just got this resolved using

 

select listagg(t.CF$_field1 || ' - ' || t.CF$_field2 || CHR(13), CHR(10)) within group(order by cf$_part_no, cf$_site) from table_clv t

 

 

View original
Did this topic help you find an answer to your question?

5 replies

eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 677 replies
  • May 15, 2020

bhavesh,

You might try chr(10) in stead of chr(13).

if that doesn’t work try chr(10) || chr(13)

Steve


Forum|alt.badge.img+10
  • Author
  • Sidekick (Customer)
  • 51 replies
  • May 18, 2020

I have tried both char(10) and char(13) plus concatenated both, but still IFS textbox does not show seem to show line feed and carried returns.


Forum|alt.badge.img+10
  • Author
  • Sidekick (Customer)
  • 51 replies
  • Answer
  • May 18, 2020

I have just got this resolved using

 

select listagg(t.CF$_field1 || ' - ' || t.CF$_field2 || CHR(13), CHR(10)) within group(order by cf$_part_no, cf$_site) from table_clv t

 

 


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 677 replies
  • May 18, 2020

Good to know that it works like that. I have never used listagg before, but can see its value.

Thanks,

Steve


Forum|alt.badge.img+12
  • Hero (Employee)
  • 132 replies
  • May 18, 2020

Used it on an information card on the customer, seeing the companies where the customer is active for.

Select LISTAGG( COMPANY ||' - '|| COMPANY_SITE_API.Get_Description(COMPANY),' # ') WITHIN GROUP( ORDER BY t.COMPANY) COMPANY

from IFSAPP.IDENTITY_INVOICE_INFO t

where t.IDENTITY = :CUSTOMER_ID and PARTY_TYPE = 'Customer'


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings