Home › Forums › Classic DFFS › vLookup grand total and editable fields
Tagged: editable fields, grand total, vlookup
- This topic has 7 replies, 2 voices, and was last updated 4 months, 1 week ago by Hao Wang.
-
AuthorPosts
-
-
August 8, 2024 at 18:39 #37944
I am new to this, but I love DFFS.
When I enabled “Show a totals row below the vLookup child table,” there was a zero in front of the grand total instead of “Grand Total,” as I specified. Is this normal? How can I make the zero disappear? The screenshot is attached.
Secondly, may I use the vLookup to edit a few selected fields? then save the multiple updates back to the list?
Attachments:
-
August 8, 2024 at 19:43 #37949
Hi,
I’m happy to hear you like DFFS!Can you share a screenshot of the configuration for your vLookup field?
Enabling inline editing in vLookup is possible, but requires that you use Custom JS. You can find some examples here: https://spjsblog.com/2019/08/31/vlookup-inline-editing-examples/
You will find other forum threads also if you search the forum for “inline editing”.
Alexander
-
August 8, 2024 at 20:00 #37950
Thanks I will check out the posts.
Here are my config screenshots for the vlookup.
Attachments:
-
-
August 9, 2024 at 20:26 #37954
BTW, I want to build a vlookup with multiple values, for example, ID = 1 or ID =2 or ID =3, or Title in {one; two; three}. is it allowed? I could not find the config route to build a query with dynamic variables.
-
August 11, 2024 at 08:56 #37956
When you check the “Show a totals row below the vLookup child table” checkbox all columns that can be counted or summed will be included unless you exclude them in the “Special configuration” field like this:
{"showTotals":false}
You can find this configuration example by clicking the contextual help icon after the “Show a totals row below the vLookup child table” field.
To have a prefix on the sum for a column you must use the parameter “totalsPrefix” in the “Special configuration” as shown in the contextual help.
The “Grand total label” is only used when you group the vLookup table and use the “Show a grand totals row below the grouped items”.
I’m not sure I understand what you mean by “build a vLookup with multiple values”, but you can have more than two filter conditions if you use the “Write your own CAML-query” textarea to construct you own query.
You can find information on how to write a CAML-query by searching the web, but please note that it is only the Where-part that is used here – like this:
<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>The value to search for</Value></Eq></Where>
Alexander
-
August 11, 2024 at 14:38 #37958
Thank you, Alex. Your tips on “show totals” and “totalsPrefix” are correct, and they are working as expected.
I will give the CAML query a try. I want to list not only Child items but also related items, such as the Child’s cousin items. For example, if I want to book tickets on the same flight, I want to list not only my children but also their friends and cousins. It is like Column eq ‘Child’ or Column eq ‘Friends” or … As long as I can pass dynamic contents to CAML-query, it will work for me. Thanks.
By the way, when I have a child list, may I put a checkbox next to each child item so that I can select a subset of children to proceed to the next step?
I appreciate you created this tool. I hope the migration to the modern version works as well, if not better. Best.
-
August 12, 2024 at 15:07 #37959
There is no functionality built in to select multiple child items and do “something”, but you can do that using Custom JS.
If you migrate to the Modern DFFS, vLookups must be reconfigured (you cannot import the config from the Classic version) as the configuration is different. The Modern version uses REST API and not CAML queries.
Alexander
- This reply was modified 4 months, 1 week ago by Alexander Bautz.
-
August 12, 2024 at 22:06 #37965
Thank Alex. I figured.
I am new to DFFS, so I have built a separate SharePoint page to accomplish all that. In the future I will leverage DFFS styles and functions to make it nicer.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.