BI Publisher (MOSC)

MOSC Banner

Store value of xdofx:Instr() in a variable

edited Sep 26, 2019 5:00AM in BI Publisher (MOSC) 8 commentsAnswered
Hi,
In a BI Publisher .rtf template I can print the position of chr(10) in a string with:
<?xdofx:Instr( String_With_CRLF,  CHR(10), 1)?>

Now I need that value in substr() or in a variable that can be uses in substr() but that seems to be impossible?

<?xdofx:Instr( String_With_CRLF,  CHR(10), 1)?>  -> Returns a value

<?xdoxslt:set_variable($_XDOCTX, 'crlf_pos', 1+(xdofx:Instr(String_With_CRLF,  CHR(10), 1))?>  -> Returns nothing
<?xdofx:set_variable($_XDOCTX, 'crlf_pos', 1+(xdofx:Instr(String_With_CRLF,  CHR(10), 1))?>  -> Returns nothing
<?xdofx:set_variable($_XDOCTX, 'crlf_pos', 1+(Instr(String_With_CRLF,  CHR(10), 1))?>  -> Returns nothing

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center