Insert Values in to User Defined Object

Discussion in 'Tally Developer' started by Binoy.M.E, Jan 6, 2020.

    
  1. Binoy.M.E

    Binoy.M.E New Member


    Sir, I wrote a function for inserting values into User Defined object. The function is working fine. But after inserting values it shows an error message like 'Cannot perform action.Another Company with the same name is open'. My function is the same as follows.

    [Function: FillDdataTechnician]
    Parameter : Tname :String
    Parameter : TUnder :String
    Parameter : TUID :String

    Object : Company : ##SvCurrentCompany

    010 : Set Target
    080 : Insert Collection Object : TechPartVR
    090 : Set Target : TechPartVR
    110 : Set Value : Technician : ##Tname
    120 : Set Value : TechBrnch : ##TUnder
    130 : Set Value : TechnicianID : ##TUID
    160 : Set Target..
    170 : Set Target..
    175 : Accept Alter

    Please help me to resolve the issue.


     


  2. balajimg

    balajimg Active Member


    170 u can comment and
    090 is not required i believe
     


  3. Binoy.M.E

    Binoy.M.E New Member


    As per you , i edited the function. But still error message is coming
     


  4. Anand K

    Anand K New Member


    Hi Binoy
    The Line No.160 & 170, the Syntax has to be changed to "Set Target : .." The Colon is missing after set target, so the Cursor is not coming back to Company Object.
     
    Pritam Krishna likes this.


Share This Page