I'm trying to make certain pre-existing fields of the ledger mandatory. These include LED Mobile, LEDEMail, LED EmailCC. I'm trying to use the following simple code: Code: [Field: LED Mobile] Skip:No I get a TDL error stating "LED Mobile is a duplicate definition already defined in \ledger\ledgerfields/tdl (590)", which is understandable. My question is, how can I take control of already defined fields and change certain aspects of them, such as adding Skip:No ?
Thank you Sir, I investigated further and modified as the following code which now works perfect: Code: [#Field: LED Mobile] Valid: NOT $$IsEmpty:$$Value If you may please answer, is there a way to run the above code only when the Ledger Under Type (#MST Parent) is Sundry Debtor or Sundry Creditor? That is to make mobile field mandatory only when creating Sundry Debtor or Creditor ledger type.
Yes.... use formula...... If parent = $$IsBelongsTo:$$GroupSundryDebtors ............ you can get example from Developer.
Thank you! I was able to improve the code further as follows: Code: [#Field: LEDEmail] Valid: If ($$IsBelongsTo:$$GroupSundryCreditors) Then NOT $$IsEmpty:$$Value Else True I'm now trying to add Skip definition onto the field as Code: Skip: $$Owner:$$InAlterMode to prevent anyone from touching it in alteration mode after the ledger is created. However, it is not working as expected. Any guidance will be very helpful.
Thank you, Sir, for your kind help. I've published a small TDL snippet here: https://github.com/physx2494/tally-tdls that has the following function: It makes it mandatory to input the credit period and credit limit Applicable only for ledger type: Sundry debtors and sundry creditors Prevents users from changing the credit period and credit limit in alteration mode thereby preventing bypassing limits manually at the time of generating an invoice Bonus: Mandatory to input client's mobile, phone and email too
Hi Amit Ji, I am trying to implement this on Security Levels name but not success pls guide me. Valid : If ($$IsBelongsTo:$CLSName = "Entry") Then NOT $$IsEmpty:$$Value Else True Thanks in Advance. Mani
Your formula is wrong............ If $udfvalue = "thisvalue" then THIS or THAT .... that is how it goes. You cannot use the SYSTEM's funtion---- $$isBelongsto .... without altering the Function definition....... and you cannot alter that Function as it is not part of the OpenSource.
Dear Amit Sir, I am trying to Mandatory field at user. If user create under security level "Entry" then UDF Field is Mandatory to fill up other wise it is not mandatory to other user who is not under security level "Entry". request to pls give me any example command so that i try it. Thanks & Regards, Mani