Forum Discussion

JeremyCohen2's avatar
JeremyCohen2
Qrew Trainee
5 years ago

Automation or WebHook to pull all records into one table

I need to get a system in place which allows a single button press that pulls all the records with a designated box not checked into a report and changes all the dates to today.  

It would be even better if it automatically creates a CSV file from this button as well based upon the selection criteria.

I was trying to even think of where to start on something like this.  It could not be in the record itself so I was thinking a home page or maybe a code page that was linked to a button on a homepage.  

Any help would be very appreciated!

------------------------------
Thank you,

Jeremy Cohen
------------------------------

7 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    What are you trying to do with this system? Take records that are not completed yet and show them in a report so that people can then do something with them? Something similar?

    I can see a few possible ways to do this on the record itself without resorting to javascript I think, but it will depend on exactly what you want to do. Are you just wanting to see incomplete records from the previous day and have their date show as today if a checkbox isn't checked? That would be easy enough.

    How are your javascript skills? If someone helps you put in a javascript solution and it breaks in 2 months are you capable of fixing it yourself or would you need to hire someone to do that? Things to think about before moving to a coded solution. If you cannot fix it yourself then you will have some downtime which may or may not be okay in your specific case.
    • JeremyCohen2's avatar
      JeremyCohen2
      Qrew Trainee
      Thank you for the reply Austin,

      I'm not looking to do a ton and it may be able to be done in another fashion. 

      There is a table for invoices which get processed and uploaded into another system.  The issue is that when these get processed I need to record the date on all of the records that are uploaded [Change a field from blank to today].  I really need a button that pulls them to a visual place which lists the information (A report would work fine which is already filtered to show anything that has not been processed) and then press a secondary button which adds today's date to all those records.

      I have been trucking along with most of my solutions up until here, this one has me stumped.  

      I know very basic javascript but even so this would eventually become something which I will not be interacting with to that level and someone else may be taking it from there.  The more intuitive it is the better it is.


      ------------------------------
      Jeremy Cohen
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Jeremy, are you looking for the code for a button you can push which will mass update all records on the report to today's date?

        if so you can make a saved table yo table import and map the record into itself merging on Record ID. 

        Then the the url formula button code button would look like this 

        var text URL = Urlroot() & "db/" & [_DBID your Table name here] & "?act=API_RunImport&ID=10;

        "javascript:" &
        "$.get('" & 
        $URL & 
        "',function(){" &
        "location.reload(true);" &
        "});" 
        & "void(0);"




        Post back with you formula if there are any syntax errors. 

        If you have application tokens enabled you will need to add in a line

        & "apptoken=Xxxxxxxxx. "


        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        markshnier2@gmail.com
        ------------------------------