简体   繁体   English

需要帮助为Jenzabar CX建立menuopt文件

[英]Need help building a menuopt file for Jenzabar CX

I'm not sure if anyone out here uses Jenzabar & ACE reporting, but the question is specific to that as far as I know. 我不确定是否有人在使用Jenzabar和ACE报告,但是据我所知,这个问题是特定的。

I'm building an ACE report and the menuopt file for it has to be modified to lookup values for a parameter based on several specific conditions. 我正在构建ACE报告,并且必须根据几个特定条件将它的menuopt文件修改为查找参数值。

The portion of the menuopt file I have now is: 我现在拥有的menuopt文件的一部分是:

LU7 = crs_rec.title1, optional;

PA7: optional,
    comments = "Enter a course number - leave blank if for all"
    default = "",
    lookup LU7 joining *crs_rec.crs_no,
 upshift,
    length = 10;

I'm looking to modify the lookup so that it only lists courses that can be found by this SQL statement: 我正在尝试修改查找,以便它仅列出可以通过此SQL语句找到的课程:

SELECT DISTINCT  crs_no 
FROM    crs_rec 
WHERE      dept IN (   SELECT  dept 
        FROM  dept_table 
        WHERE div IN ('CCE','HLTH'));

If anyone is familiar with using Jenzabar CX & ACE reporting, any help would be appreciated. 如果有人熟悉使用Jenzabar CX和ACE报告,将不胜感激。

Thanks 谢谢

I got this answer from someone on a Jenzabar listserv.... 我从Jenzabar Listserv上的某个人那里得到了这个答案。


Sometimes you can get the same effect by limiting it based on other params. 有时,通过基于其他参数对其进行限制,可以获得相同的效果。 For example: 例如:

LU6 = cat_table.txt;
PA6: optional,
    comments = "COMMENT_CAT_TBCODE",
    lookup LU6 joining *cat_table.cat,
    upshift,
    length = 4;

LU7 = crs_rec.title1, optional;
LU7B = crs_rec.dept, optional,
    qualifier = "#XXXX,YYYY,ZZZZ,DDDD,EEEE";
LU7C = crs_rec.cat, optional,
    qualifier = "field:PA6";

PA7: optional,
    comments = "COMMENT_CRS_NO - COMMENT_BLANK_ALL"
    default = "",
    lookup LU7,LU7B,LU7C joining *crs_rec.crs_no,
    upshift,
    length = 10;

This would show only the courses in departments XXXX,YYYY,ZZZZ,DDDD, and EEEE in the catalog entered as param PA6. 这将仅在输入为参数PA6的目录中显示XXXX,YYYY,ZZZZ,DDDD和EEEE部门中的课程。 (the catalog param is basically the only way of doing the "distinct" for the crs_no in the menuopt). (目录参数基本上是对menuopt中的crs_no进行“区别”的唯一方法)。 You cannot do the dept in div thing unless you make dept another parameter in which case you could limit the dept selection with a div qualifier and change the LU7B to reference field:xxxx (the param for the dept). 除非您为dept设置另一个参数,否则您不能在div中执行dept,在这种情况下,您可以使用div限定符限制dept的选择,并将LU7B更改为reference field:xxxx(dept的参数)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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