Date is coming Automatically in both fields, can't give date range

Discussion in 'Tally Developer' started by Rahul Das, Dec 23, 2021.

    
  1. Rahul Das

    Rahul Das New Member


    Date is coming Automatically in both fields, can't give date range,
    can you please help

    [#menu: gateway of tally]
    Add: Top Button : test Sale

    [Button: test Sale]
    Title: test Sale
    Key:f7
    Action: Alter: First TDL Report

    [Report : First TDL Report]
    Form : First TDL Form

    [Form : First TDL Form]
    On : Form Accept: Yes: Call:hooman
    Parts : First TDL Part
    [Part : First TDL Part]
    Lines : First TDL Line,second,third

    [Line : First TDL Line]
    Field : short prompt,SDate
    Local: field: short prompt : Set as: "Start Date"

    [Line : second]
    Field : short prompt,edithed
    Local: field: short prompt : Set as: "End Date"
    ;;Local :field: short Date field: Set as: 010121

    [Line : third]
    Field : short prompt,Amnt
    Local: field: short prompt : Set as: "Amount"

    [Field : SDate]

    Use: Short Date Field
    Set as: $$SVFromDate
    Set Always: Yes
    Storage: SDate


    [Field : edithed]
    Set as: $$SVToDate
    Use: short Date Field
    Set Always: Yes
    Storage: edith

    [Field : Amnt]
    Set as: $Amnt
    Use: Number Field
    Set Always: Yes
    Storage: Amnt

    [System:UDF]
    SDate:Date:20003
    EDith:Date:20003
    Amnt:Number:1000


    [Function: Hooman]
    00 : OPEN FILE : "d:\tests.txt" : Text : Write : ASCII
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    remove SET AS to $$value
     


  3. Rahul Das

    Rahul Das New Member


    Dear Sir,
    Thank you for the reply,
    It did not work,
    can you please help me identify my mistake.
     


  4. Rahul Das

    Rahul Das New Member


    [Line : third]
    Field : short prompt,Amnt
    Local: field: short prompt : Set as: "Amount"

    [Field : SDate]
    Use:short Date field
    Set as: $$Value
    Storage : SDate


    [Field : edithed]
    Use: short Date field
    Set as: $$Value
    Storage: edith

    [Field : Amnt]
    Use: Number Field
    Storage: Amnt

    [System:UDF]

    EDith:Date:1001
    Amnt:Number:1001
    SDate:Date:1001
     


  5. Rahul Das

    Rahul Das New Member


    It is solved now,
    it seemed under system UDF i need to assign a new var after the datatype

    [System:UDF]

    EDith: Date:1001
    Amnt: Number:1002
    SDate: Date:1003
     


Share This Page