i am trying to create QB to update documents for my team which can be used on day to day work using Document Library Application.https://intuitcorp.quickbase.com/db/main?a=AppDetail&ID=293&app_name=Document%20Library
can you help me add page view count at bottom and Like and Dislike Button at top.
This can be easily achieved with the use of dandiebolt's image onload technique. Found here: https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=294
Once you get it set up, you would simply set up a bit of code that would detect what page you're on and then execute another bit of code depending on that. Found here: https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=293
Here's the logic, if on X page then use QB API to increment field page_counter by 1.
As for likes/dislikes, a simple formula URL setup as a button that uses QB API to increment/decrement field likes by 1 or -1.
Sorry that I don't have the time to actually type out all the code for you, but the logic to it all is above! Hopefully I'll get more free time later and I'll edit in actual code.
Count on Me Discography
(2) I only implemented the counting feature on the view record page but it can be applied on other pages if the workflow makes sense.
(3) Counting the number of times (a) a record is viewed, (b) liked/disliked or (c) how many times a file attachment is opened or downloaded can all be achieved using a variant of this basic technique.
(4) This code is shorter because I eliminated the intermediates promise variables and chained the promises returned by the AJAX calls together by calling *.then(...).