Updated 073 JCB Fields Type Extended (markdown)
parent
76ec5bf5af
commit
6bbcd3e1dc
@ -79,23 +79,21 @@ We are able to target the admin area with this kind of button. If we have a butt
|
|||||||
|
|
||||||
[00:20:36](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m36s)
|
[00:20:36](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m36s)
|
||||||
|
|
||||||
This table value is a mandatory value. Because it gives us a dynamic value which we can use in in many places including here. A 'List' button gets added to a page as well. If we look back here at this implementation, here is a 'List' again but this isn't even in the view. This is in the List View. So you can have a filter dynamically in place for this again in the batch as well if you select batch. [00:21:16](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m16s) There is also one available to select so all of these fields are still using the information that we give here.>>>>
|
This table value is a mandatory value. Because it gives us a dynamic value which we can use in in many places including here. A 'List' button gets added to a page as well. If we look back here at this implementation, here is a 'List' again but this isn't even in the view. This is in the List View. So you can have a filter dynamically in place for this again in the batch as well if you select batch. [00:21:16](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m16s) There is also one available to select so all of these fields are still using the information that we give here.
|
||||||
|
|
||||||
So if you don't have this information then some of these Fields functions will just Disappear It will Most probably not break But it will not be there so if you to see the fields filtering option is not working then it's because of these settings that are not right
|
So if you don't have this information then some of these Fields functions will just disappear. It will most probably not break but it will not be there so if you to see the fields filtering option is not working then it is because of these settings that are not right.
|
||||||
|
|
||||||
### How it adds the Drop Down
|
### How it adds the Drop Down
|
||||||
|
|
||||||
[00:21:27](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m47s)
|
[00:21:27](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h21m47s)
|
||||||
|
|
||||||
Now to give you a perspective on how it adds that This little Drop down here how does it do that Well in the code again if we go to that View Which is the plural preachers And we scroll down We have a Function Called here it is Filter [00:22:20](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h22m20s) Ok so we go up And we see There's a preachers one Import data What is the buttons filters.
|
Now to give you a perspective on how it adds that Drop Down. In the code we can go to that View which is 'Sermons'. Here is `loadfieldtype['Preachers']` [00:23:43](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=74&t=137s&t=00h23m43s) and it `getsoptions`. So this is really targeting this 'Options' area. It calls that function and if we have values it adds them into the filter(`addfilter`) And it checks are we doing `badge` and if this can create, edit or validates. ('Yes') Then it adds it to the batch as well. [00:24:15](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m15s) So we are falling back on the field type get options even in your filter. That's why we have the filters easily integrated and it's the value is still using the values that you placed in the field. That's how we get this value.
|
||||||
|
|
||||||
I should be looking at Sermons So here we have a load field type [00:23:43](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=74&t=137s&t=00h23m43s) Preachers And it basically gets options see So this is really targeting This Options area this get options it's calling that function And Then if we have values it actually adds them into the filter And it checks are we doing badge and if this can create can edit validates Yes then it adds it to the batch as well [00:24:15](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m15s) So We are falling back onto the field type get options even in your filter And so That's why we have the filters easily integrated and it's the value is still use Using The Values that you placed in the field So That's how we get this value that's how we get that value Yeah that's basically it.
|
|
||||||
|
|
||||||
### The Component Name
|
### The Component Name
|
||||||
|
|
||||||
[00:24:46](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m46s)
|
[00:24:46](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h24m46s)
|
||||||
|
|
||||||
Ok next We have the components name now the reason why these can be dynamic Is because The table as well as the component name It is possible for you to reuse fields in different admin views and different components and then that can be dynamically update it And it should just work when you want to have a relationship from one Table into another component altogether Then you have to hard code [00:25:21](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h25m21s) Component a So let's say you have component a where you have a view adminView where this field is used And you want to take the data From That View Into another Component altogether Then you have to add component a's Static name in here and not the placeholder ok that's enough of that there has been discussions on forums about this so you could search up and find answers I suppose
|
Next we have the components name. The reason why these can not be dynamic is because the table as well as the component name because it is possible for you to reuse fields in different admin views and different components and then that can be dynamically updated and it should just work. When you want to have a relationship between one table to another component altogether then you have to hard code component 'A'[00:25:21](https://www.youtube.com/watch?v=91iIAuHZj38&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h25m21s). So let's say you have component 'A' where you have a view 'adminView' where this field is used and you want to take the data from that view into another component altogether, then you have to add component A's static name in here and not the placeholder. There has been discussions on forums about this so you could search up and find answers.>>>>
|
||||||
|
|
||||||
### Field Value and a Key Field Value
|
### Field Value and a Key Field Value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user