简体   繁体   中英

How do you reference value of column from a different column attributes page in Oracle Apex?

I am in a report page in APEX. I went to the report attributes page and inside that are columns which each have their own column attributes. I needed to know how to use the value of one column while I am in a separate column's attribute page. With the picture attached, I try to do above using #COLUMNNAME# to get the value, but the correct value is not being used. You use hashtags to reference column values in the column formatting section. 我在哪里尝试使用列值。

  1. Javascript/Dynamic Action:

     $('.dis_flag:contains(disabled="true")').parents('td[headers="DIS"]').siblings('td[headers="PHONE"]').children('input:text').attr('disabled', true); 

where:

DIS - alias of my column, indicating disable editing or no (if disable it contains value disabled="true" . But it can have any another value). dis_flag - class name, i added for this column in "Column Formatting" -> "CSS Class". I added this class to refer this value more easy. PHONE - alias of column, that must be disabled.

You can add this javascript code to the

  • "Page Load" Dynamic Action
  • "Page Attributes" -> "JavaScript" -> "Execute when Page Loads".

    1. Report template. Making your own report template is more difficult, and hard to explain in two words. Just go to the templates list, find report template named Two Column Portlet, type Named Column (row template) and maybe you will understand what i mean.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM