Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockRowRepeatParamParserパラメータのremoveTagについて #9

Open
kamisono-bb opened this issue Oct 13, 2014 · 0 comments
Open
Labels

Comments

@kamisono-bb
Copy link
Contributor

GoogleGroupより転記
https://groups.google.com/forum/#!topic/excella/ZOzHCv2tQyo

テンプレートファイル内に$BR[]を定義し、removeTag=trueを指定した場合の挙動としては、リファレンス内の説明にあります通り、行削除ではなくブランクになる認識でおります。
しかし、下記に示します方法で実行した場合には、removeTag=trueにしていたのにも関わらず、行が削除されてしまいました。

対応方法案:

BlockRowRepeatParamParser.javaの153行目で、データがない場合、処理をスキップしているのが原因のようです。
お急ぎ修正が必要でしたら、下記のように修正することで、設定が有効にできそうです。

BlockRowParamParser.java:L150
// パラメータ名に対応するデータ取得
Object[] paramInfos = getParamData( paramInfo, brTagName);
if ( paramInfos == null) {
// XXX *** ↓修正箇所↓ ***
boolean removeTag = false;
if ( paramDef.containsKey( PARAM_REMOVE_TAG)) {
removeTag = Boolean.valueOf( paramDef.get( PARAM_REMOVE_TAG));
}
// タグ除去
if ( removeTag) {
tagCell.setCellType( Cell.CELL_TYPE_BLANK);
}
// XXX *** ↑修正箇所↑ ***
return parsedReportInfo;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants