21 thoughts on “Field and Field Value : PART II How to retrieve the Field Value by Using Field Name”
Sir,
It is not a comment, But I list out what I have understood from this video
1. To fetch and retrieve the value of Field , you have used # symbol Before the field name.
2. While fetching and retrieving the field using # symbol There should not be any gap in the field name.
3.You demonstrated fetching the field value in another field/
4. Since the first field value is $$value, in the next field what ever entered in the first field is retrieved. But when we change the value in the first field ,only previous value entered in the first field is shown in 2nd field.
5. To fix you had introduced attribute- set always: Yes. This will refresh every time when changed.
Hope I understood the essence
Regards
Giridharan Varadharajan
Yes, you got it perfectly and correct way. I am glad that you are learning it in the right way and building a strong foundation.
I really like the way you are learning and it inspires me a lot to share the knowledge.
Hello Virat,
When we learn something new, our agenda should be to be familiar ourselves with the codes and how it works.
If you try to understand it then it becomes too heavy and too confusion.
So, my suggestion is simply first write the code as per the course chapters. You don’t need to worry if you are unable to understand it cause we are not going to learn everything in some 2-5 chapters.
If the width of an entry in a table is more than the width of the table(in this case it is ledger table), Tally shrink the data to fit it. In that case many a times the entry is hard to read. For that I wrote the code to increase the width of the table. Table width is increased, but the entry within the table is still shrinked. How to unshrink it?
This is the code that I wrote to increase the width of the table :
[#Collection: List of ExtractLedgers Server]
Add:Format : “”, 35
Field:My Field] ;; This is a field name
Use: Name Field
Set as:$$Value
Field:My Field2] ;; This is a field name
Use: Name Field
in the above two fields in field1 we have used set as:$$value and in field2 we have not used set as but both are working same so what is the significance of Set as
I wrote a code and tested. It’s retrieving the data entered in the first field when i use ‘Name field’ or ‘Uni date field’, But does not work with number. What needs to be done?
In the above chapter i.e FBProfilename.txt example I wrote the code like
[Line: FB Profile]
Field: Medium Prompt, FB Profile
Local: Field:medium Prompt : Set as: “FB Profile Name:”
to get the field line as FBProfile Name: as fixed and i entered the Profile name what i want in the Blank and it is stored successfully
In this chapter you are using to insert a line that is very lengthy code i.e
Local : Field : Name Field : Info : $$Local String: “FBProfile Name”
What is the significance of using this code ?
Can you please tell me what is the difference of both codes
I think the only difference is in Fields i.e medium prompt and Name field is it correct? or anything else?
No, you are wrong!
this code is further explained in the sub sequent chapter.
So, at the moment just wirte codes get yourself familiar with the new words and move on.
in the later chapter you will be come to know why we use a local fiedl and how it is useful etc.
you will understood it by that time.
[Line: ledmasterline]
Field: oy field,Name field,fldl
Local: Field: name field: Set as: $$LocaleString:”enter you name”
;;local: field: name field: skip: yes
;;Local: Field: name field: Info: $$LocaleString:”Enter Your Name Here” ;;this is the field value …for name field
[Field: oy field] ;;this is field name … you can keep gap here
Use: name field
Set as: $$value ;; user input this is the field value for the field oy field
Set as: $$LocaleString:”write your Name”
Skip: Yes
[Field: fldl]
Use: name field
Set as: #oyfield ;;don’t keep gap here
Set Always: Yes ; we are telling the compiler that always refresh the code/value
Sir,
It is not a comment, But I list out what I have understood from this video
1. To fetch and retrieve the value of Field , you have used # symbol Before the field name.
2. While fetching and retrieving the field using # symbol There should not be any gap in the field name.
3.You demonstrated fetching the field value in another field/
4. Since the first field value is $$value, in the next field what ever entered in the first field is retrieved. But when we change the value in the first field ,only previous value entered in the first field is shown in 2nd field.
5. To fix you had introduced attribute- set always: Yes. This will refresh every time when changed.
Hope I understood the essence
Regards
Giridharan Varadharajan
Hell Giridharan,
Yes, you got it perfectly and correct way. I am glad that you are learning it in the right way and building a strong foundation.
I really like the way you are learning and it inspires me a lot to share the knowledge.
i dont know in this topic how do i know ledger code is ledcontact
what is that “ledcontact” and “ledmasterline”
can u plz tell me
Hello Virat,
When we learn something new, our agenda should be to be familiar ourselves with the codes and how it works.
If you try to understand it then it becomes too heavy and too confusion.
So, my suggestion is simply first write the code as per the course chapters. You don’t need to worry if you are unable to understand it cause we are not going to learn everything in some 2-5 chapters.
If the width of an entry in a table is more than the width of the table(in this case it is ledger table), Tally shrink the data to fit it. In that case many a times the entry is hard to read. For that I wrote the code to increase the width of the table. Table width is increased, but the entry within the table is still shrinked. How to unshrink it?
This is the code that I wrote to increase the width of the table :
[#Collection: List of ExtractLedgers Server]
Add:Format : “”, 35
Which table this belongs? Can you give me the location of this? like in Display ->Account Books-> Ledger or soemething else?
I want the exact navigation. Because every table have different names and its not possible to find out them so easily.
This table belongs to voucher entry screen.
Program executed successfully .
Field:My Field] ;; This is a field name
Use: Name Field
Set as:$$Value
Field:My Field2] ;; This is a field name
Use: Name Field
in the above two fields in field1 we have used set as:$$value and in field2 we have not used set as but both are working same so what is the significance of Set as
covered the topic
compeleted but i have to add width for area of name
Getting error in Line in fld.txt posted in my folder in drop box. Please suggest & guide me the msiatke committed.
You need to type and mention the full error description. Word by word.
Please post your full error descriptions here so that I can help you.
Never afriad to write full details. please
Dear Rana Ji,
I wrote a code and tested. It’s retrieving the data entered in the first field when i use ‘Name field’ or ‘Uni date field’, But does not work with number. What needs to be done?
leant a lot form this video.
how to fetch the field value to other field in real time fetching.
Great and thanks
In the above chapter i.e FBProfilename.txt example I wrote the code like
[Line: FB Profile]
Field: Medium Prompt, FB Profile
Local: Field:medium Prompt : Set as: “FB Profile Name:”
to get the field line as FBProfile Name: as fixed and i entered the Profile name what i want in the Blank and it is stored successfully
In this chapter you are using to insert a line that is very lengthy code i.e
Local : Field : Name Field : Info : $$Local String: “FBProfile Name”
What is the significance of using this code ?
Can you please tell me what is the difference of both codes
I think the only difference is in Fields i.e medium prompt and Name field is it correct? or anything else?
No, you are wrong!
this code is further explained in the sub sequent chapter.
So, at the moment just wirte codes get yourself familiar with the new words and move on.
in the later chapter you will be come to know why we use a local fiedl and how it is useful etc.
you will understood it by that time.
[# Part: ledcontact]
Add: Line: ledmasterline
[Line: ledmasterline]
Field: oy field,Name field,fldl
Local: Field: name field: Set as: $$LocaleString:”enter you name”
;;local: field: name field: skip: yes
;;Local: Field: name field: Info: $$LocaleString:”Enter Your Name Here” ;;this is the field value …for name field
[Field: oy field] ;;this is field name … you can keep gap here
Use: name field
Set as: $$value ;; user input this is the field value for the field oy field
Set as: $$LocaleString:”write your Name”
Skip: Yes
[Field: fldl]
Use: name field
Set as: #oyfield ;;don’t keep gap here
Set Always: Yes ; we are telling the compiler that always refresh the code/value
This is perfect but I need width automatically set in second field i type
First field e.g. i type 1st field 9 number than set width 2nd field
Not, possible
Store value in a veriable and update