Wednesday 15 August 2018

Raw text in oaf

Raw text in oaf

Oracle Apps Framework developers, who need more of HTML functionality must use the rawText bean. E.g. formatted Text bean won’t support the use of HTML tables or HTML links; hence OAF developers have to use either table Layout and link beans or use just the rawText bean. Raw text items have many advantages as compared to the message text input bean or message styled text bean. For Example, if we Some data in database has multiple spaces between words. But when that is rendered on page using message styled text, the multiple spaces between the words are trimmed to single space by default. But you want the number of spaces to be retained as it is so we will use the field raw text field to display these kinds of data in the OAF page. Here below I will share the sample code of Raw text in oaf.
Example 2:- You have a varchar data which has some delimiter in between. When displaying it in page, you want the data to appear in multiple lines based on delimiter. ex: abc-deft-lmnop  should come in 3 lines so in this case we again will use the raw text in oaf page.

 Raw text in oaf

Use OARawTextBean (item style : rawText). rawText bean renders the data as html code. hence your data can containg html tags in between to server your purpose.
 

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *