oracle - #APP_IMAGES# not woking in Javascript function in Oracle APEX 18.2
问题描述
I need to map an ISO country code in the data, to an associated flag icon in javascript.
However, this syntax isn't working. How do I use #APP_IMAGES# in a javascript function to get a handle to an image.
var country = {
"id": isoCode,
"name": covidData[i].COUNTRY_ALTERNATIVE_NAME,
"value": 50, // not used, dummy value
"status": covidData[i].STATUS,
"fill": chartColors.general,
"longitude": covidData[i].LONGITUDE,
"latitude": covidData[i].LATITUDE,
"covax": covidData[i].COVAX_SUPPLY,
"covax_approved": covidData[i].COVAX_APPROVED,
"mah": covidData[i].MAH,
"drug_product_supply": covidData[i].DRUG_PRODUCT_SUPPLY,
"drug_substance_supply": covidData[i].DRUG_SUBSTANCE_SUPPLY,
"packing_release" : covidData[i].PACKING_RELEASE,
"ema": covidData[i].EMA_FLAG,
"flag": "#APP_IMAGES#" + isoCode + ".png"
};
The focus is on this:
"flag": "#APP_IMAGES#" + isoCode + ".png"
I have tried "&AP_IMAGES.", and just a console log of this is giving me:
ariel/r/149/files/static/v289/
解决方案
I believe the correct syntax is &APP_IMAGES.
. Where is your JavaScript code? If it's in an external file, the substitution will not be made.
推荐阅读
- azure-logic-apps - Azure 文件系统连接器
- python - TF2.2:从 tensorflow_hub 加载保存的模型失败,出现 `AttributeError: '_UserObject' object has no attribute 'summary'`
- java - 以最快的方式在 csv 中写入 100,000 行
- python - 在字符串中查找子字符串并返回其索引?
- python - 熊猫:过滤大日期框并在两个不同的目录中写入 to_csv?
- html - Bootstrap - 使用 box-shadow 和溢出的组合:隐藏
- javascript - req.file 未填充,但 req.body 正在使用 multer
- typescript - 构造函数作为参数:将类的泛型推断为函数
- r - 'R' geom_jitter() 混合来自两个因子类别的符号
- html - 我的 html 代码在一些在线编辑器(如 codepen)中没有任何空格