Jump to content

DesiLogi

Caspio Rockstar
  • Content Count

    270
  • Joined

  • Last visited

  • Days Won

    21

DesiLogi last won the day on January 13

DesiLogi had the most liked content!

About DesiLogi

  • Rank
    Advanced Member

Recent Profile Visitors

2,273 profile views
  1. Just figured this out, if anyone needs it. Was simpler than I thought, just remove the button's onclick fucntion lines: <script type="text/javascript"> var width = 1100; var v_href= "http://127.0.0.1:9090/shortcuts/universal-item-search2?"; parent.$.fancybox.open({ closeBtn:false, openEffect : 'none', closeEffect : 'none', modal:true, type:'iframe', autoSize:true, width:width, href:v_href }); </script>
  2. Hello, I can't figure out the right syntax for this jquery code to run automatically after submission/update. It runs now (in the datapage footer) when the Submit button is clicked (it opens a FancyBox) but I need it to run after submission by a slight delay. The reason is that on Submit table A runs a trigger that updates table B and the FancyBox (opens another datapage in an iFrame) uses table B. Sometimes the FancyBox opens too fast, before the trigger has updated table B, and so it doesn't show the latest value. I figure if the code that opens the fancybox runs in the
  3. I figured this out, if anyone else needs it. Basically, I have a button that uses the class to call the fancybox code but also an onclick that calls the submit code separately. This way both of the functions work in sequence. Here's the button: <button class="cbpop btaction" href="#" data-width="1100" data-href="../shortcuts/universal-item-search" onclick="myFunction()"><i class="fa fa-search fa-lg"></i></button> And here's the script in the datapage footer. I have the Destination set to 'Same Form.' Note that the code opens the fancybox in the parent as th
  4. Actually, I have a button that runs a version of the above code to open the fancybox. All I need to do now is make the form submit/update after the the fancybox is initiated (or before but I think that'll end the code running so the fancybox won't initiate). Does anyone know how/where to put code into this to submit the form? <script> $('.cbpop').each(function(index, el){ var width = 450; var v_href= $(el).attr('href'); var v_keyword= document.getElementsByName("EditRecordKeyword")[0].value; var v_key= "?key="; var v_urlend = v_key + v_keyword; if (v_href=="#") { v_href=$(el).attr
  5. Hi, I have a Details (or single record update, haven't decided yet) form that, when updated, I need to open a fancybox that brings up another web page. The Details/Single-Rec-Update form would ideally be set to 'Same Form' for destination but I think I need to use Message in order to put code in. The below code is taken from what I'd been using with a button to open the fancybox but with the data-href put in (whereas the button would put that in before). Does anyone know what mods need to be done to this code for it to work (open a fancy box with a new web page after submission/upda
  6. Hello, I've got a Single Record Update datapage that has a number of cascading dropdowns. I need to check 2 values (one a table's field and the other a virtual field) and if they're not equal then make the cascading drop down values null or blank. I can get this to work for a regular text field but not cascading dropdowns. The code so far is: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { var x = document.querySelector('[name*=cbParamVirtual1]').value; var y = document.getElementById("EditRecordProjectID").value; var xclear =
  7. Hi NiceDuck, Sorry about the late reply--for some reason I haven't been getting notifications when an thread is updated. Thanks re the tips--I ended up having to use a separate field for the table to get the local computer's date/time, and then use that in the trigger. When I tried GetSysDate I often would get a UTC date that was not the same as my user's date (I have users in the U.S., Australia, and the U.K. so it's literally all over the map). I put some code in the footer to get the local date/time, if anyone needs it: <SCRIPT LANGUAGE="JavaScript"> /* Declara
  8. Hi Vitalikssssss, Sorry it took so long to reply--I stopped getting notifications for thread updates for some reason. Many thanks for posting this code- I have to use drop downs for data choice reasons so I'll give this a shot. Very much appreciate it! Best, Kevin
  9. Hi SinJunYoung, Many thanks for that tip- I did not catch that as an option for the Search/Filter date. It works really nicely except for one thing-I need the user to be able to change the week they want to Search/Filter by so the date needs a Begin/End criteria that's visible. I just need the current date to open by default so they don't have to enter it in themselves (bad design if they did). Here's some js I put together to get the Sunday before the current date and then add 6 days to it for the following Saturday, and then to put that into the Date Criteria for Begin and End d
  10. I don't know if this is possible but I need to set Search date criteria Begin and End dates as weekly blocks (current week), by default. Meaning, the 'Begin Date' of the criteria has a default of the Sunday before (or on) the current date and the 'End Date' has a default of the Saturday after (or on) the current date. I'm using a Pivot Table to show totals over a workweek period, using a 'ServiceDate' date field for the columns. The user needs to see just the current week (7 days) so I have 'ServiceDate' in the Search or Filter section, with criteria for 'Begin Date' and 'End Date.' The
  11. Hi, I don't know if this is possible but I need to set Search date criteria Begin and End dates as weekly blocks (current week), by default. Meaning, the 'Begin Date' of the criteria has a default of the Sunday before (or on) the current date and the 'End Date' has a default of the Saturday after (or on) the current date. I'm using a Pivot Table to show totals over a workweek period, using a 'ServiceDate' date field for the columns. The user needs to see just the current week (7 days) so I have 'ServiceDate' in the Search or Filter section, with criteria for 'Begin Date' and 'End D
  12. Hi, I don't know if this is possible but I need to set Search date criteria Begin and End dates as weekly blocks (current week), by default. Meaning, the 'Begin Date' of the criteria has a default of the Sunday before (or on) the current date and the 'End Date' has a default of the Saturday after (or on) the current date. I'm using a Pivot Table to show totals over a workweek period, using a 'ServiceDate' date field for the columns. The user needs to see just the current week (7 days) so I have 'ServiceDate' in the Search or Filter section, with criteria for 'Begin Date' and 'End D
  13. Hi Telly, Just saw you'd answered this (I'm not getting notifications for some reason). I will check it out and thank you.
  14. Got it figured out, after all. If anyone needs this solution. On the Calendar's Detail page, change the line: document.getElementsByName('Submit')[0].onmouseover = function(){ to document.getElementsByName('Mod0EditRecord')[0].onmouseover = function(){ And also change document.getElementById('InsertRecordTasksTimeline_CalDate').value = date + " " + ampm; to document.getElementById('EditRecordTasksTimeline_CalDate').value = date + " " + ampm; This will find the Update button by name and use it to run the code above in the footer. This will giv
  15. Hi, I took some code from one of Caspio's demo apps (an appointment scheduler) to create a Time Picker on a Submission form. This works great, allowing far more detailed calendar scheduling than just using the date without a time. The issue is when the user needs to edit the date/time from the Calendar, in Details view. The code doesn't work in this case. I've changed the 'InsertRecord' part to 'EditRecord' but that doesn't seem to make a difference. Is there some difference to calling the code from the Update button vs a Submission button? Any help would be greatly appreciated. Bel
×
×
  • Create New...