COGNOS 11-用于查询计算的手动输入列

问题描述

我正在尝试在COGNOS 11中的 列表 添加一列,以便在其中可以手动输入查询计算所需的数据。
因此,第一列是基于查询/过滤器从数据库提取的数据,我想在该列旁边添加一列以输入值。接下来,右边的列将是对2列执行的查询计算。

样品:
[第1栏] [第2栏] [第3栏]
[从数据库提取数据] [手动输入] [查询计算]

我已经阅读了用户指南,但是找不到有关如何执行此操作的任何指示。我已经尝试实现文本提示,但也收到错误。任何帮助表示赞赏。

解决方法

您要寻找的是一个参数。在报告页面上添加文本框提示控件,允许用户输入值,然后单击<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".TopLevelActivity"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/listOfGoods" android:layout_width="409dp" android:layout_height="729dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" tools:listitem="@layout/rv_item" /> </androidx.constraintlayout.widget.ConstraintLayout> 按钮。您可以使用查询表达式在第2列的每一行中显示该值

Finish

或者不显示值,只需对第3列执行计算。

如果我误会了,并且希望用户在每行上输入一个任意值,那就是Excel,而不是Cognos。