Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 如何在TCC输出中添加行号列?_Xml_Row Number_Taleo_Taleo Connect Client - Fatal编程技术网

Xml 如何在TCC输出中添加行号列?

Xml 如何在TCC输出中添加行号列?,xml,row-number,taleo,taleo-connect-client,Xml,Row Number,Taleo,Taleo Connect Client,如何在Taleo Connect客户端提取脚本中添加行号列? 我正在使用下面的XML,但我面临一些问题 <quer:projections alias="RCL_NP_all" xmlns:quer="http://www.taleo.com/ws/integration/query"> <quer:projection> <quer:field path="no"/> </quer:projection> <quer:projection

如何在Taleo Connect客户端提取脚本中添加行号列? 我正在使用下面的XML,但我面临一些问题

<quer:projections alias="RCL_NP_all" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:projection>
<quer:field path="no"/>
</quer:projection>
<quer:projection alias="rowIndex">
<quer:customValue>
<quer:expression>rowNum</quer:expression>
</quer:customValue>
</quer:projection>
</quer:projections>

行号

我提到的这个链接:

要在导出中添加行号,可以使用以下复杂投影:

<quer:projection alias="RowIndex" xmlns:quer="http://www.taleo.com/ws/integration/query">
     <quer:customValue>
         <quer:expression>rowNum</quer:expression>
     </quer:customValue>
</quer:projection>
笔记
  • 如果在高级选项中启用了“防止重复”,则删除的行将增加行索引,即使在结果文件中看不到它们

您好,史蒂文,如果根据某种逻辑需要添加行号,您还有其他疑问吗?如何添加行号?如下图所示示例RowNumber候选人编号薪资类型金额1 123年度奖金10000 2 123登录奖金120001 132年度奖金8000如果您尝试重置对于每个候选人,我不知道如何做到这一点。你可能需要问一个单独的问题。
<quer:projection alias="RowIndex" xmlns:quer="http://www.taleo.com/ws/integration/query">
     <quer:customValue>
         <quer:expression>rowNum</quer:expression>
     </quer:customValue>
</quer:projection>
<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" projectedClass="Candidate" locale="en" mode="CSV" csvheader="true" largegraph="true" preventDuplicates="false" xmlns:quer="http://www.taleo.com/ws/integration/query">
  <quer:subQueries/>
  <quer:projections>
    <quer:projection alias="RowIndex">
     <quer:customValue>
         <quer:expression>rowNum</quer:expression>
     </quer:customValue>
    </quer:projection>
    <quer:projection>
      <quer:field path="FirstName"/>
    </quer:projection>
    <quer:projection>
      <quer:field path="LastName"/>
    </quer:projection>
  </quer:projections>
  <quer:projectionFilterings/>
  <quer:filterings/>
  <quer:sortings/>
  <quer:sortingFilterings/>
  <quer:groupings/>
  <quer:joinings/>
</quer:query>
RowIndex,FirstName,LastName
1,John,Lee
2,Adam,Jackson
3,Jane,Doe