ORACLE APEX 5.0 Region Source query with html -
the query works in apex 4.2 in 5.0 receive error message in line 1
query cannot parsed within builder. if believe query syntactically correct, check ''generic columns'' checkbox below region source proceed without parsing. ora-00919: invalid function
select '<a href="f? p='||&app_id.||':203:'||&session.||'::::p203_ano,p203_id_prj:'||ano||',3">'|| ano||'</a>' ano, 1 id_prj, to_char(muni) "muni", to_char("inscritos",'999g999g999g999g999g999g990') "inscritos", to_char("instituições",'999g999g999g999g999g999g990') "instituições", to_char("turmas",'999g999g999g999g999g999g990') "turmas", to_char("beneficiários",'999g999g999g999g999g999g990') "beneficiários" , to_char("participantes",'999g999g999g999g999g999g990') "participantes" v_mostra_acu_muni_enr ano < (select extract(year (select current_timestamp dual)) dual)
can me?
looking @ error, says
ora-00919: invalid function
, after looking @ code, first line of to_char doesnt have enough parameters, while next columns using to_char functions though satisfies parameter requirement of function, throw error because of double qoutation marks you've used.
use single qoutation marks enclose string/s.
try this:
select '<a href="f? p='||&app_id.||':203:'||&session.||'::::p203_ano,p203_id_prj:'||ano||',3">'|| ano||'</a>' ano, 1 id_prj, muni, to_char('inscritos','999g999g999g999g999g999g990') "inscritos", to_char('instituições','999g999g999g999g999g999g990') "instituições", to_char('turmas','999g999g999g999g999g999g990') "turmas", to_char('beneficiários','999g999g999g999g999g999g990') "beneficiários" , to_char('participantes','999g999g999g999g999g999g990') "participantes" v_mostra_acu_muni_enr ano < (select extract(year (select current_timestamp dual)) dual)
Comments
Post a Comment