Jump to content

jasonkaeb

Members
  • Content Count

    9
  • Joined

  • Last visited

  1. jasonkaeb

    Grid edit by default

    @MayMusic Yes, that is correct.
  2. jasonkaeb

    Grid edit by default

    @Alison Since you said it worked for you I tried a couple more things on my end. I figured out that my issue was that I had Enable sticky header row enabled. Once I disabled this it worked perfectly. Thanks so much for your help!
  3. jasonkaeb

    Grid edit by default

    @Alison Thanks for your reply. I did copy the code exactly as you have it and pasted it in the footer. The report opens correctly, but still does not open with the gred edit open. I still have the following code in the header: <style> .cbGridCtnr > .BodyCtnr > .Table{ width: 100%; } .cbGridCtnr > .HeadCtnr > .Table { width: 100%; } </style>
  4. jasonkaeb

    Grid edit by default

    @Alison Yes, I have done that.
  5. jasonkaeb

    Grid edit by default

    @Alison Thank you for your quick reply. I was doing that wrong, so thanks for pointing that out. It still does not seem to be working for me. Can you see something I have wrong below? I have added the following as a header: <style> .cbGridCtnr > .BodyCtnr > .Table{ width: 100%; } .cbGridCtnr > .HeadCtnr > .Table { width: 100%; } </style> ------------------------------------- And the following in the footer: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script> function openGridAutomatically(delay) { setTimeout( function() { var gridEditButton = $("[data-cb-name='GridEditButton']")[1]; if (gridEditButton) f_dispatchEvent(gridEditButton, "click"); }, delay ? delay : 500); } function f_dispatchEvent(v_element, v_type){ if(v_element.dispatchEvent) { //var v_e = new Event(v_type); var v_e = document.createEvent('MouseEvents'); v_e.initEvent(v_type, true, true); v_element.dispatchEvent(v_e); //new Event(v_type, {"bubbles":true, "cancelable":true}) } else if(v_element.fireEvent){ v_element.fireEvent('on' + v_type); } }; openGridAutomatically(); </script> ------------------------------ I did notice on my page that the following script is showing in plain text on my page, which means this is not working correctly: < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
  6. jasonkaeb

    Grid edit by default

    @MayMusic I have a scenario where I would like my reports page to default to grid edit, similar to what you are describing here. I have tried the code you gave me in the header of my results page but it does not seem to work. Do you know if this Javascript code that you provided here from 2016 should still work as is?
  7. Thanks for the replies on this. I was able to get this to work like you suggested. Thanks again.
  8. Thanks for the quick reply. Since I am passing parameters into a reports page on the same page I am wanting to stay away from reloading the entire page if possible. This works really well with the new Caspio AJAX loading. Do you know if there is a way to clear external parameters (or set them all to NULL) using Javascript?
  9. If I may piggy back onto this thread as I have a similar challenge. @MayMusic Is there a way to incorporate something into this button that would clear external values or parameters that are loaded into this form on load. For example, I have a search form that t I have set to pass virtual field parameters to a results page. So that the user does not have to start over with search criteria every time they modify the search I have these same parameters being received into these search / virtual fields as well. I am looking for a button or some way to clear these external parameters for the user. I know that I can add "?cbResetParam=1" to the end of the URL but this then causes my search form to quit working with my reports datapage, which is setup to receive these search criteria and reload itself on the same page. Thanks for your help.
×