How to Fetch Data From Current Line in Report

Discussion in 'Tally Developer' started by Himanshu-2002, Oct 11, 2020.

    
Tags:
  1. Himanshu-2002

    Himanshu-2002 Active Member


    I want to fetch data of current line when pressed enter key in report
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Explain............
     


  3. Himanshu-2002

    Himanshu-2002 Active Member


    Example:
    I created a report which contains VchDate, Ledger Name, Amount and On click (Enter) I want to fetch the current line ledger name
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You want to fetch to what ??? your report already has a LedgerName, so what is the reason for fetch...after fetching what ?? Some action??
     


  5. Himanshu-2002

    Himanshu-2002 Active Member


    Sir Example:
    In day book when we click on a Voucher It opens it in Alter Mode Right ?
    So, Similarly I want to fetch details of that Voucher and Later I will use it in different reports and Functions
     


  6. Himanshu-2002

    Himanshu-2002 Active Member


    Problem Solved!

    Example:
    Add Key At Form level
    Key: New Key

    Define Key
    [Key:New Key ]
    Key:Enter
    Action:Call: Example

    Create a collection which will the current line values

    [Collection: Example]
    Data source: Report: Current
    Fetch:partyledgername ; method names which you want to fetch

    Now Define Function
    [Function: Example]
    00: Walk Collection: Example
    05:Log:$Partyledgername
    10: End Walk
     
    love likes this.


Share This Page