Jump to content

EileenMG

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

EileenMG's Achievements

  1. A quick update... I took a completely different route to arrive at the same ultimate outcome. It took me a couple of hours (reading articles & posts) to figure out how to pull aggregate totals from one table to another but eventually it worked. So as for the table above, I deleted the whole column that I was trying to hide. I would have liked to know how to fix what I had, but for right now I don't need it. Anyway, thanks to all the previous posters for leaving breadcrumbs (and expertise!) as I keep trying to find my way.
  2. Meekee, I didn't post the code because I'm a bit embarrassed by it, lol. I don't understand much of what is in the code but I needed to base the "hide" upon an authfield, so I inserted the "if" for that instead of the if that was there (since I'm not using any edit feature on that page). Anyway, here's the code: <script> document.addEventListener('DataPageReady', function (event) { const check = document.querySelectorAll('table[data-cb-name="cbTable"] th'); if(Number([@authfield:t1_b2]) == 1){ const deleting = (...args) =>{ let label, values for(let a of args){ label = document.querySelector(`table[data-cb-name="cbTable"] th:nth-of-type(${a})`); values = document.querySelectorAll(`table[data-cb-name="cbTable"] td:nth-of-type(${a})`); label.parentElement.removeChild(label); values.forEach(el => { el.parentElement.removeChild(el); }); } } /* In below function call, just put any number of column you want to hide, but in reverse order - from highest number to the lowest */ deleting(7); } }); </script> The remaining aggregate total is the 400.00 in the upper right. It's a total that certain users don't need to see. Also, when viewed in portrait on a cellphone, it shows the Field Name as well. Any help would be so appreciated! PS How do you get that Hi EileenMG in your post with a link to me? I looked for forum instructions but didn't see any. Here also is the full result with column 7 intact.
  3. KlisaN137 Your solution that you posted on 11/4/21 worked perfectly for what I needed to do... except one small detail. The column was gone but the Agg Total for that column was still showing. Any suggestions?
  4. Thank you -- this works perfectly!! I had a momentary problem with the authfield but that was just an oversight on my part. Thank you so much!
  5. I saw your title "Destination of Link...depending on..." and got all hopeful that I could use your code to add a link to the header - but my "depending on" part is very different. All I want is the two destination links based on the number found in [@authfield:t1_b2]. 1=google.com else facebook.com like your example I thought it would be so simple but no matter what I try I can't get it to work. Help please? (yes, i'm new at this, so any help is appreciated!!)
×
×
  • Create New...