weixin_39611725
2020-12-02 10:31 阅读 1

Can we get any row data of tableofcontents ?

Now we can get the row data which by below script
var PageNo=getFieldByKeyField( "tableofcontents", "Page number", "Content Key", "$D{tableofcontents.Content Key}" ); Can we get any row in tableofcontents as don't know the Content Key of the row? Exa the third or 15th row . best regards, jeff

该提问来源于开源项目:fralx/LimeReport

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

11条回答 默认 最新

  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    I will think about it :)

    点赞 评论 复制链接分享
  • weixin_39611725 weixin_39611725 2020-12-02 10:31

    if we can get the data information of any row then we can get page range of any index easy in script. Exa: A 1 --- 44(B start page number-1) B 45----68(C Start page number -1) C 69------ . . . :)

    点赞 评论 复制链接分享
  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    I have added getFieldByRowIndex() in the new feature branch "field_by_rowIndex"

    点赞 评论 复制链接分享
  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    I have merged it to develop :)

    点赞 评论 复制链接分享
  • weixin_39611725 weixin_39611725 2020-12-02 10:31

    hi i try to build it and found a error tim 20190219085307

    点赞 评论 复制链接分享
  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    Sorry, I have forgotten to push changes :)

    点赞 评论 复制链接分享
  • weixin_39611725 weixin_39611725 2020-12-02 10:31

    Hi Fralx The build problem is gone . But i use it in script as below: PageNo=getFieldByRowIndex("$D{tableofcontents.Page number}","3")

    i got the result is "undefined" i want to get the Page number of 3 row in tableofcontens.

    点赞 评论 复制链接分享
  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    Hi! You have to use PageNo=getFieldByRowIndex("tableofcontents.Page number","3")

    点赞 评论 复制链接分享
  • weixin_39611725 weixin_39611725 2020-12-02 10:31

    :) yes , now i got it as per your explanation. Many thanks for your work! this to be closed.

    点赞 评论 复制链接分享
  • weixin_39824529 weixin_39824529 2020-12-02 10:31

    Look $D{tableofcontents.Page number} is the same getField("tableofcontents.Page number") it return the value

    点赞 评论 复制链接分享
  • weixin_39611725 weixin_39611725 2020-12-02 10:31

    Look $D{tableofcontents.Page number} is the same getField("tableofcontents.Page number") it return the value

    ok。 Noted。 Thank you!

    点赞 评论 复制链接分享

相关推荐