Report

定义

参数

  • 参数依赖

    SELECT 'Y' FROM DUAL WHERE NVL(:$FLEX$.p_currency_code:NULL, '#') <> 'CNY'
    
  • 级联说明

    挂报表的时候,参数设定画面有个Concatenated Description Size的栏位。

    今天朋友问起会计科目组合中某一段的Description为什么显示不全,想应该是弹性域有设置大小,于是去找。。。

    怀疑就是这个未知用途的Concatenated Description Size,查help,如下:

    Your application uses Description Size when displaying the segment value description in the flexfield window. Concatenated Description Size specifies the number of characters long a segment value description should be when a window displays it as part of a concatenateddescription for the concatenated flexfield values. Your flexfield may show fewer characters of your description than you specify if there is not enough room for it in your flexfield window. However, your flexfield does not display more characters of the description than you specify.

    可以看到这个中文被翻译成级联说明大小的栏位就是指键弹性域中的segment值的Description在弹性域组合Description中显示的长度

  • 请求日期参数转换

    fnd_conc_date.string_to_date()

值集

  • 值集引用

    引用请求参数 nvl(:\(FLEX\).p_from_ship_from:NULL, 'NULL') != 'NULL'

    引用Form界面字段 :lines.entered_cr:NULL != 'NULL'

  • 附加列

    msiv.description "item_desc" (100)

  • 键弹性域默认值

    参考Key Flexfield Routines for Special Validation

    COPY="\(PROFILES\).CUX_CST_DEFAULT_ACCOUNT_CODE\n3"

不兼容

设置请求不兼容

范围:

  • 集:对请求集中,该请求及其带出的子请求都不兼容;

  • 程序:仅对该并发请求不兼容

类型:

  • 全局:对所有该请求或子集不兼容
  • 域:同一冲突域的请求不兼容
image-20200928143632296

冲突域取值顺序

  1. 请求参数

    image-20200928143839060
  2. 配置文件 并发:冲突域

    image-20200928143923643

    定义位置:

    image-20200928144126322

  3. “标准”域:所有请求的默认值

设置

字符集

HTML输出excel乱码, 甚至空白(excel版本区别)

取消下图的勾选:

image-20200918202750401

多模板默认值

路径:系统管理员 -> 系统管理 -> 并发 -> 程序

查找对应请求,并点击更新,在"站点设置"标签,选择相应模板即可:

image-20200918203049936

输出

XML不转义

<![CDATA[ 输出内容 ]]>

RTF

科学计数法

<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?PoOrderNumber?></fo:bidi-override>

RTF合并单元格

<xsl:attribute xdofo:ctx="block" name="number-columns-spanned"><xsl:value-of select="//CELL_TO_BE_MERGED"/></xsl:attribute>

条形码

39系列字体,输出内容需用* ! 或 ()包起来才能被扫码枪识别。
使用(),可以使条形码下方仅显示原有内容

参考:https://www.idautomation.com/free-barcode-products/code39-font/

日期

RTF模板输出Excel时,日期未按指定格式显示,系版本问题
参考:Excel Outp Date Format Display Does Not Pick Up Formatting From RTF Template (Doc ID 2089844.1)

The Bi code does not actually render Excel documents from rtf templates, it generates an XHTML document, which, when Excel reads the dates from it, it will format the date to its own default.
In the 12.2 version of Oracle Applications you have the option of using an Excel template, which will render an Excel output and you then have more control over the Excel output formatting. But excel templates are not supported in the 12.1.3 version of Applications.

For now in 12.1.3 if you use Excel output with your rtf template, you will have to manually manipulate the formatting in the Excel rendered output.

HTML

科学计数法

<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<td x:str>...

Excel

日期

参考:https://docs.oracle.com/middleware/12211/bip/BIPRD/GUID-2E9599CF-7066-4181-940F-F03C09DD37B5.htm#BIPRD2781

1. 新加一列X,输入公式转换原输出值为日期: =DATEVALUE(LEFT(E8,10))
转换出错不显示#VALUE的公式: =IFERROR(DATEVALUE(AS5), "")
2. 右键新列X,设置日期格式

遇到的错误

ORA-24345

​ 打开请求参数值列表时 ORA-24345 出现截断或空读取错误

值列表内,部分值超出了值集定义的最大长度

REP-3000

image-20200928144512366

原因:VNC服务有问题

解决:设置新的VNCserver

image-20200928144612807

方法一:

  • 进入应用用户切换root用户

    su - root

    vncserver -- 查看vncserver 信息

    export DISPLAY=erp21:1

    xhost +

方法二

  • 直接应用用户进入

    image-20200928144706974
    1. 查看当前上下文DISPLAY设置

      ​ grep DISPLAY $CONTEXT_FILE

    2. 更改环境变量

      ​ export DISPLAY=erp21:0.0(此处为第一步取到的值)

    3. 启动对应端口的vnc服务

      ​ vncserver :0
      (此处值为第二步中的端口值,第一次启用此端口会提示输入两次密码)

    4. 使所有用户都能访问Xserver

      ​ xhost +
      (界面显示"access control disabled, clients can connect from any host"即为完成)

sqlloader

sqlloader请求运行报错

usdsop: exec failed during spawnsqlldr: Permission denied
usdsop cannot write to pipe

Cause: usdsop attempted to write data to another process using a pipe, but an error occurred during the write.

Action: Check the other process for abrupt termination. Check that you have sufficient resource: Broken pipe

$ORACLE_HOME/bin/sqlldr 无运行权限

posted @ 2023-07-18 17:34  水木夏  阅读(22)  评论(0编辑  收藏  举报