sir,
I have uploaded my text TDL( incorporating field in stock item master and retrieving the field value. I have also shared the same in my folder.
I struggled hard to locate the part in developer.
If there is any error you may please correct me.
Regards
Giridharan Varadharajan
Superb I really love the way you are doing. Trust me that is the perfect way to learn something.
and you are doing it perfectly. Initially it looks like a hard way but in future it returns very beneficial because in coding, ultimately we have to depend on ourselves only.
The stock item master field retrieval is perfect one.
Hello Suhas,
Assignments you have to clear yourself without my help.
Many students have done it on their own.
If you clear it with my help then there is no meaning of the assignments and you will always depend on me or on someone else to solve the problem.
I can only give hints to you how to do that.
Open your Stock Item Master in Tally and carefully review the screen.
You will find the wording/headings like Name, Under Units, Opening Balance etc.
They are like part/lines in the Tally TDL
Now, go to Tally Developer and press Control +D and search for the word Unit
It will give you many files in the search result
you need to scroll for the line which read as Src/Master/StockItem something like that. Once you find that line double click it. It will open the stockitem.500 file something like that.
Now press Control +F and search for Unit that will take you to Base UOM or unit part
Now copy the part name to a new file and add your line and retrieve the storage name/udf value for the base UOM
If you face any issue, you need to review the ledger field chapter again.
You must do efforts even through it takes a long time. when all your efforts fail, contact me through TeamViewer and I will show you how to do that.
[#Part: ledcontact]
Line: ledMasterline
[Line: ledMasterline]
Field: name field,my field, fld1
;;Local : Field: name field: Set as: $$LocaleString:”Enter your name here”
;;Local : Field: name field: Skip:Yes
Local : Field: name field: Info: $$LocaleString:”Enter your name here” ;; this is the field value
[Field: my field] ;; This is the field name we can keep gap between the field name
Use: name field {Query1. here we inherit the definition which we define in local field ?}
Set as: $$Value
;;Set as: $$LocaleString:”vishal”;;this is for field not for local
;;Skip: Yes;; this attribute skip the field which we set in ledger contact
Storage: MyName ;;This is the storage name or the UDF name.
[System: UDF] ;;here we are defining that UDF(User Defined Field) an we want to store something
MyName : String :99
;;MyName is the Storage name
;;String is the datatype
;;99 is the index position
[Field: fld1] {query 2. why are we using this field ? why dont we write all these commands in the above field ?}
Use: Name Field
Set as: #myfield ;; we cant keep gap here in between field value use it for retreiving value
Set Always: Yes ;; we are telling the compiler that always refresh the code or value
A computer is not a self intelligent like a human being. It understand only its own machine language for which it is being build.
If the softwtare is build to use a code like #myfled without keeping any gap we can’t do anything. Those are the rules of the people who developed that and we have only to follow them rather then asking their justification.
IT is something like why we have 2 eyes and why we can’t have 3 or 4 eyes.
That is the human structure. Same answer for your other queries. This the code structure.
You need to follow this structure because they are the rules of the software’s architecture which are beyond our control.
[Line: LedMasterLine]
Field: Name Field, My Field, fld1
;; Local: Field : Name Field : Set as:$$LocaleString:”Enter your name here”
;; Local: Field : Name Field : Skip : Yes
Local: Field : Name Field : Info:$$LocaleString:” Enter Your Name Here”
[Field: My Field]
Use: Name Field
Set as: #MyName
Storage: MyName ;; This is the Storage name
[System: UDF]
MyName : String: 99 ;; Here MyName is the storgae name,String is datatype & 99 is index
[Field: Fld1]
Use: Name Field
Set as: #MyField
Set Always : Yes
Skip : Yes
;; Set as: $$LocaleString:”My name is Mahendra”
;; Skip: Yes
[Line : yourname]
Field : name field, Entername field, fld field
Local : Field : name field : Set as : $$LocaleString:”Enter your name”
Local : Field : name field : Skip : Yes
[Field : entername field]
Use : Name field
Set as : #entername
Storage : entername
[System : UDF]
entername:String:1000
[Field : Fld field]
Use : name field
Set as: $$LocaleString:”My Name is Vishal”
Set Always : Yes
Your codes is wrong for the field settings
Set as : #entername
A set as is needed when you want to set the field for something say use input or want to retrive a field value from another field
Here you are seeting feild value from antoehr field entername which is no where defined in your codes
So, either you have to add a new field entername somewhere in your code then store a value in that field and then retrieve the same here again
so, my suggestion is remove the set as or disable it and your code will work fine
Also you are messing things
A local string is used at the parent level
Say at the line level it will be used but here you are using it the line level and again at the field level.
There is no mean to add a localestring at a field level it is totally useless
I suggest you watch the video carefully and write your codes exactly as per the course chapter.
Sir this one and the previous one were very informative units.
Very basic information.
Here is one bug I found.
Format: “No Comma, No Zero”
No Comma is working fine
but No Zero is not working.
Please give your valuable advice.
hello sir, I have one qustion here that where those values are actually save? i.e. They are stored in some sort of database or what?
and what is the purpose of index ?
I have gone through How to store data in field. So when we save ledger along with the UDF field then where the data is actually saved? i.e is it stored in some Database or what?
[Line: ledmasterline]
Field: name field,oy field,fldl
;;Local: Field: name field: Set as: $$LocaleString:”My name is ajuu”
;;local: field: name field: skip: yes
Local: Field: name field: Info: $$LocaleString:”Enter Your Licence Number Here” ;;this is the field value …for name field
[Field: oy field] ;;this is field name … you can keep gap here
;;Use: name field ;;name field are string data types
Use: number field ;; this is a numberic data type
Set as: $$value ;; user input this is the field value for the field oy field
;; Set as: $$LocaleString:”My name is Ajju”
;;Skip: Yes
;;we will add storage facility here
Storage: my name ;;this is the storage name or the UDF Name
Format: “no comma,no zero”
[System: UDF] ;;here we are defining that UDF = User Definied Field and we wnat to store something
;;my name: String: 99
my name: Number: 12002
[Field: fldl]
Use: name field
Set as: #oyfield
Set Always: Yes
where i can get the part of stock item master in order to add new line
Giridharan Varadharajan
sir,
I have uploaded my text TDL( incorporating field in stock item master and retrieving the field value. I have also shared the same in my folder.
I struggled hard to locate the part in developer.
If there is any error you may please correct me.
Regards
Giridharan Varadharajan
Superb I really love the way you are doing. Trust me that is the perfect way to learn something.
and you are doing it perfectly. Initially it looks like a hard way but in future it returns very beneficial because in coding, ultimately we have to depend on ourselves only.
The stock item master field retrieval is perfect one.
Suhas Masaye
Sir,
I have uploded the Text file in the dropbox , I m not getting the units in the UDF.
Please check.
Hello Suhas,
Assignments you have to clear yourself without my help.
Many students have done it on their own.
If you clear it with my help then there is no meaning of the assignments and you will always depend on me or on someone else to solve the problem.
I can only give hints to you how to do that.
Open your Stock Item Master in Tally and carefully review the screen.
You will find the wording/headings like Name, Under Units, Opening Balance etc.
They are like part/lines in the Tally TDL
Now, go to Tally Developer and press Control +D and search for the word Unit
It will give you many files in the search result
you need to scroll for the line which read as Src/Master/StockItem something like that. Once you find that line double click it. It will open the stockitem.500 file something like that.
Now press Control +F and search for Unit that will take you to Base UOM or unit part
Now copy the part name to a new file and add your line and retrieve the storage name/udf value for the base UOM
If you face any issue, you need to review the ledger field chapter again.
You must do efforts even through it takes a long time. when all your efforts fail, contact me through TeamViewer and I will show you how to do that.
vishal
[#Part: ledcontact]
Line: ledMasterline
[Line: ledMasterline]
Field: name field,my field, fld1
;;Local : Field: name field: Set as: $$LocaleString:”Enter your name here”
;;Local : Field: name field: Skip:Yes
Local : Field: name field: Info: $$LocaleString:”Enter your name here” ;; this is the field value
[Field: my field] ;; This is the field name we can keep gap between the field name
Use: name field {Query1. here we inherit the definition which we define in local field ?}
Set as: $$Value
;;Set as: $$LocaleString:”vishal”;;this is for field not for local
;;Skip: Yes;; this attribute skip the field which we set in ledger contact
Storage: MyName ;;This is the storage name or the UDF name.
[System: UDF] ;;here we are defining that UDF(User Defined Field) an we want to store something
MyName : String :99
;;MyName is the Storage name
;;String is the datatype
;;99 is the index position
[Field: fld1] {query 2. why are we using this field ? why dont we write all these commands in the above field ?}
Use: Name Field
Set as: #myfield ;; we cant keep gap here in between field value use it for retreiving value
Set Always: Yes ;; we are telling the compiler that always refresh the code or value
Hello Vishal,
A computer is not a self intelligent like a human being. It understand only its own machine language for which it is being build.
If the softwtare is build to use a code like #myfled without keeping any gap we can’t do anything. Those are the rules of the people who developed that and we have only to follow them rather then asking their justification.
IT is something like why we have 2 eyes and why we can’t have 3 or 4 eyes.
That is the human structure. Same answer for your other queries. This the code structure.
You need to follow this structure because they are the rules of the software’s architecture which are beyond our control.
;; NAME : SHIV NARAYAN SHARMA
;; MAIL ID : ewsbhl@gmail.com
[#Part: LedContact]
Add: Line : LedMasterLine
[Line: LedMasterLine]
Field: Name Field, My Field, fld1
;; Local: Field : Name Field : Set as:$$LocaleString:”Enter your name here”
;; Local: Field : Name Field : Skip : Yes
Local: Field : Name Field : Info:$$LocaleString:” Enter Your Name Here”
[Field: My Field]
Use: Name Field
Set as: #MyName
Storage: MyName ;; This is the Storage name
[System: UDF]
MyName : String: 99 ;; Here MyName is the storgae name,String is datatype & 99 is index
[Field: Fld1]
Use: Name Field
Set as: #MyField
Set Always : Yes
Skip : Yes
;; Set as: $$LocaleString:”My name is Mahendra”
;; Skip: Yes
Enjoying……………. TDL
[#Part : LedContact]
Add : Line : Yourname
[Line : yourname]
Field : name field, Entername field, fld field
Local : Field : name field : Set as : $$LocaleString:”Enter your name”
Local : Field : name field : Skip : Yes
[Field : entername field]
Use : Name field
Set as : #entername
Storage : entername
[System : UDF]
entername:String:1000
[Field : Fld field]
Use : name field
Set as: $$LocaleString:”My Name is Vishal”
Set Always : Yes
Hello Vishal
Your codes is wrong for the field settings
Set as : #entername
A set as is needed when you want to set the field for something say use input or want to retrive a field value from another field
Here you are seeting feild value from antoehr field entername which is no where defined in your codes
So, either you have to add a new field entername somewhere in your code then store a value in that field and then retrieve the same here again
so, my suggestion is remove the set as or disable it and your code will work fine
Also you are messing things
A local string is used at the parent level
Say at the line level it will be used but here you are using it the line level and again at the field level.
There is no mean to add a localestring at a field level it is totally useless
I suggest you watch the video carefully and write your codes exactly as per the course chapter.
Sir this one and the previous one were very informative units.
Very basic information.
Here is one bug I found.
Format: “No Comma, No Zero”
No Comma is working fine
but No Zero is not working.
Please give your valuable advice.
Regards.
hello sir, I have one qustion here that where those values are actually save? i.e. They are stored in some sort of database or what?
and what is the purpose of index ?
I have gone through How to store data in field. So when we save ledger along with the UDF field then where the data is actually saved? i.e is it stored in some Database or what?
And what is purpose of Index
Created the customer and data has been stored in the customize field
[#Part:Led Contact]
Add: Line:ledline
Add: Line:ledline1
[Line:ledline]
Field :name field, my field,
Local :Field : name field :Info :$$LocaleString:”Transpoter name ”
[Field:my field]
Use:name field
Set as:$$value
;;Set as: “my name is Dixit”
;;Skip:Yes
Storage:myname
[Line:ledline1]
Field:number field, my field1,
Local :Field : number field :Info :$$LocaleString:”Contact Number”
[Field:my field1]
Use:number field
Set as:$$value
Storage:no
Format:”no comma, no zero”
[System :UDF]
myname :String :99
no :Number: 10000
sir is there any way to alignment this name and Contact number ??
ok
my question is why the field value appear twice in the screen, even after saving.
If you have used same index number then it will happen
You need to recheck your code.
Reviewing your own code again and again, won’t hurt you. It will make you expert.
Sir,
Please Clear me the proper concept of Index Number in defining Storage UDF.
Got everything except the concept of index numbers in UDF..I hope you will clarify it in next units..
Thank you
[# Part: ledcontact]
Add: Line: ledmasterline
[Line: ledmasterline]
Field: name field,oy field,fldl
;;Local: Field: name field: Set as: $$LocaleString:”My name is ajuu”
;;local: field: name field: skip: yes
Local: Field: name field: Info: $$LocaleString:”Enter Your Licence Number Here” ;;this is the field value …for name field
[Field: oy field] ;;this is field name … you can keep gap here
;;Use: name field ;;name field are string data types
Use: number field ;; this is a numberic data type
Set as: $$value ;; user input this is the field value for the field oy field
;; Set as: $$LocaleString:”My name is Ajju”
;;Skip: Yes
;;we will add storage facility here
Storage: my name ;;this is the storage name or the UDF Name
Format: “no comma,no zero”
[System: UDF] ;;here we are defining that UDF = User Definied Field and we wnat to store something
;;my name: String: 99
my name: Number: 12002
[Field: fldl]
Use: name field
Set as: #oyfield
Set Always: Yes