Jump to content

ezIQchad

Caspio Guru
  • Content Count

    238
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by ezIQchad

  1. I can successfully send Notification emails to multiple recipients - though I've never used parameters. Can you confirm there are semi-colons after BOTH emails? I see using one text field to accept multiple emails as potentially problematic as there wouldn't be a way to ensure proper email format. Maybe use multiple Virtual Fields set as Email, then use Javascript to combine multiple emails into one text field, so you can ensure proper email format and semi-colon usage. This may never work with Paremeters - you may have to loop through auto-submitting data pages to accomplish this.
  2. Did you try a grid edit? On the Search and Report Wizard - Results Page Editing Options
  3. Use a cascading text field and hide it with getElementsByTagName rather than document.getElementById('someID') (since you know cascading text fields' IDs contain variables, you can't use this to hide them) use document.getElementsByTagName('input')[0] ([0] represents the first input, [1] represents the second, and so-forth)
  4. On the element "table[data-cb-name="cbTable"]" there are two styles you can remove box-shadow: rgb(0, 0, 0) 0px 0px 0px 6px and margin: 10px 80px 80px If you can't find where these styles originate from in Caspio Styles, add to "user-defined styles" CSS table[data-cb-name="cbTable"] { box-shadow: none; margin: 0 auto; }
  5. Your ID "doneCheck" gets repeated every line so your script doesn't know which RecordStatus to update. Add a parameter to your ID so the IDs are different every line, you'll also need to use an HTML Block so you can modify the ID <input id="doneCheck[@RecordID]" type="checkbox" onclick="done();"> <script> function done() { if (document.getElementById('doneCheck[@RecordID]').checked) { document.getElementById("customHtmlBlock[@RecordID]").value="In Approval"; } } </script> All that being said, you might not be able to accomplish this unless each record is "editable". Typically reports display results that are not editable. Caspio does offer a "grid edit" option, but I haven't played with that much Hope This helps
  6. Found a solution http://www.useragentstring.com/
  7. I have trouble with the onsubmit function in Caspio. Maybe try onfocus or onenter on the element you want the values to go in to; so this script runs prior to Submit. A good tip for building and testing js is to drop in alerts document.getElementById("caspioform").onsubmit= alert('hi'); or document.getElementById("ElementToReplace").onenter = alert('hi'); or if (name_type = "Muscle Group") { alert('name_type is Muscle Group'); var Work_nameSubmit = muscleG; } Hope this helps
  8. Hello, Does anybody know how to decipher the [@cbUserAgentString] parameter? Specifically, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36 Can anybody tell me what browser this would be?
  9. Parent and Child are two different web pages. Parent - lead-info-center.html (excuse my lack of code box, I wanted to highlight things to help explain) ------------------------------------------------------- <body onload="setIframeSource()"> <div id="frmSummary1" class="licFr"> <div class="divHeader"> <h2>Summary</h2> <a onclick="window.ifrLeadSummary.location.href = 'lic-leadSummary.html'"></a><!-- refresh button --> </div> <div id="ifrDiv"> <iframe name="ifrLeadSummary" class="licIframe" id="ifrLeadSummary"></iframe> </div> </div> <script> //set iframe source function setIframeSource() { varLeadID = getQueryVariable("LeadID"); document.getElementById('ifrLeadSummary').src = 'lic-leadSummary.html?LeadID='+varLeadID; } </script> ------------------------------ child - lic-leadSummary.html ------------------------------- <body> <div id="ifr" class="ifrContent"> <script type="application/javascript" src="https://b5.caspio.com/scripts/e1.js"></script> <script type="application/javascript">try{f_cbload("***","http:");}catch(v_e){;}</script> </div> </body> ------------------------------- The child is basically an html file with only the Caspio Deploy code. If you want a param to come from another iframe, you'll need some way to set the variable. The example you provided loads an entire second page, but your question seems like you want it all on one page. The code above using a URL Query Variable (web-page.html?variable=value) from the page load, but you can get the value of an element and add it to the setIframeSource script. maybe something like... <script> //on click, set iframe source document.getElementById('buttonID').onclick = function () { var pSearch = document.getElementById('searchElementID').value; document.getElementById('ifrLeadSummary').src = 'child.html?filterField=' + pSearch; } </script> ********************* To Build and Test, use alert(someVar); or alert('step1'); throughout your code. It allows you to see what values your variables are set at,,,, and where your code is breaking (when I'm writing something new that is proving challenging, I'll put alert('step[X]'); after every line to dial it in)
  10. Try: clientweb = document.getElementsByName("InsertRecordCustomer_URL")[0].value;
  11. ezIQchad

    Ajax Table Refresh

    Have you tried two DataPages? A search page and a results page? http://howto.caspio.com/tech-tips-and-articles/parameters/how-to-separate-search-page-and-results-page-into-two-different-webpages/ You mention AJAX could do what you need... why doesn't that work?
  12. All(most) external styles will over-rule Caspio styles. As to how to fix your wordpress styling that's messing it up... Find a scenario where it's not working. Use the code-inspector. (found in Chrome by right-clicking > inspect. IDK how in other browsers, Google it) search for id="CalendarToolBox" Look at the active styles to see why it's not showing... be aware, I doubt you'll find a style for "#CalendarToolBox", but maybe some encompassing "div" style that is hiding things. If this only is a problem on the phone or tablet, try shrinking your screen to try to get the same behavior. - if you get the same behavior on any small screen that tells you that the CSS hiding your calPop is in the media queries section If you only see this on a phone, it could be a tough find, as IDK how to use a code inspector on a phone. WORKAROUND Try playing with HTML 5 input type dates... document.getElementById('InsertRecorddate').type = 'date'; Research It: http://www.w3schools.com/html/html_form_input_types.asp Try It: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_date Input Type: date The <input type="date"> is used for input fields that should contain a date. Depending on browser support, a date picker can show up in the input field. Example <form> Birthday: <input type="date" name="bday"> </form> Think Easy
  13. Append the following query to the link that opens this page ?CPIsortType=asc&CPIorderby=FIELD_NAME Use the DatePage wizard to sort DESCENDING on PrimaryID and limit records returned. Then sort using a URL query with the above code.
  14. Hi, I would like the top 100 newest records (could be filtered by date or PrimaryID, as primary ID is sequential) to be sorted by Name. I can easily get the 100 newest records if I sort by PrimaryID or Date and return only 100 records, but then the records are sorted by PrimaryID, I'd like to sort them by name. Basically create a dataset filtered by sorted data, then sort the display using a different field. Any Ideas? Thanks
  15. I'd like to be able to reference multiple fields in my dropdowns too. Anything change with this? or anybody have a good workaround? Adding a concatenated field to a table is baddddddddddddddddd design from a data structure standpoint, and convoluted from a development standpoint, as adding an extra fields to your tables for every scenario in which multiple fields are needed in a dropdown is beyond time-consuming.
  16. I think the external file at https://b5.caspio.com/scripts/e1.js contributes. Even though that's small it has to look to a library that would help Caspio build the tables. The URL is straight off of their servers and seemingly could serve some things directly. ** I don't know at all. Just applying what I do understand to this scenario.
  17. From my understand of what support told me, no.
  18. Hi All, I had a great conversation with Caspio support a few weeks ago that helped my significantly reduce the amount of data that my app uses. Here are the cliff notes. To see how much data your pages use, paste the URL from the deploy menu into a new web browser, and use a development tool or web inspector to investigate. (in Chrome press F12, and click the Network tab) Records per page is a big factor in data usage... nearly a linear relationship. Ajax is a big load up front, but will help if you encounter many "paging" actions... long reports. Happy Building
  19. Yep, Set up an AutoSubmit [http://forums.caspio.com/index.php/topic/4314-js-auto-submit-a-datapage/] DataPage that fires after logging in... Then simply create a report DataPage to display the data however you want.
  20. Nice work, that isn't simple js. Most users my friend.
  21. Ohhhh, I didn't think about that. IDK if that can be worked around.
  22. Now, I understand what you meant by You mean it won't always be in the same position, relative to counting the number of elements. You could fix that if you put yes, on top and make it always show,,, even if there aren't records in yes. This hides the checkbox next to "no", and if you put yes there, you can get what you're after. tr[data-cb-name="group1"]:nth-child(2) input[type="checkbox"] { display: none; } I think this might require jQuery
  23. I have modal type behavior in iframes. You can see it in action to see if it's what you're after. http://eziq.us/plan-free
  24. If you try this and it works for the test (like create a fake email address that's name@domain.com) You could build some script that will change @ to @ before the link is clicked
×
×
  • Create New...