[英]Replace null values in Taleo-Connect-Client extract
I am extracting some values from Taleo via TCC export script and few rows in a column are blank, I want to replace the blank values with 'NULL' written. 我正在通过TCC导出脚本从Taleo中提取一些值,并且一栏中的几行是空白的,我想用写入的'NULL'替换空白值。
For example 例如
SignonBonus SignonBonus
1.20000 1.20000
2. 2。
3.30000 3.30000
4.250000 4.250000
How is this possible ? 这怎么可能 ?
I have tried the below code, I am writing Bonus amount in words so have used concatenate function. 我尝试了下面的代码,我在用单词写奖金金额,所以使用了串联功能。 but this replaceNull logic is not working, can someone suggest ? 但是这个replaceNull逻辑不起作用,有人可以建议吗?
<quer:projection alias="BonusinWords">
<quer:concatenate>
<quer:switchByCriterion>
<quer:cases>
<quer:case>
<quer:replaceNull>
<quer:field path="CurrentOffer,SignOnBonus"/>
<quer:string>Null</quer:string>
</quer:replaceNull>
</quer:case>
<quer:case>
</quer:case>
</quer:cases>
</quer:switchByCriterion>
</quer:concatenate>
</quer:projection>
Thanks alot in advance 在此先感谢
Shivam Shivam
I solved it on my own 我自己解决了
I used a notnull equation in the starting, then wrote the below logic of query. 我在开始时使用了notnull方程,然后编写了以下查询逻辑。
<quer:projection alias="BonusinWords">
<quer:switchByCriterion>
<quer:cases>
<quer:case>
<quer:notEqual>
<quer:field path="CurrentOffer,SignOnBonus"/>
<quer:string>1000000000000000000000</quer:string>
</quer:notEqual>
<quer:concatenate>
<!--Between this I wrote the logic for words!>
</quer:concatenate>
</quer:case>
</quer:cases>
</quer:switchByCriterion>
</quer:projection>
It is not exactly not null condition, but it is serving me since the bonus amount can never be this huge(or I can add more zero's in this), if you know how not null can be put in this I will try that also. 这不是完全不为null的情况,但是它为我服务,因为奖金金额永远不可能这么大(或者我可以在其中添加更多的零),如果您知道如何不能在其中添加null,我也会尝试这样做。
Thanks, 谢谢,
Shivam Shivam
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.