Jump to content

Cstricker

Members
  • Content Count

    7
  • Joined

  • Last visited

Everything posted by Cstricker

  1. In my case it was more a SQL syntax issue. I have been writing SQL for a long time, 20 years. Using Caspio's triggers are a very small subset of SQL obviously but I was getting caught up in their syntax. When I thought about it in terms of SQL I figured it out. The group by groups all the inserted rows, by a particular value, in this case the header id and the sum agregate sums them which is exactly how you would do it in just plain SQL. Previously I was not grouping but when I used the group by it worked.
  2. How is using Count() going to give me a SUM()? I am not really understanding your directions. I am needing the SUM of the cost of the rows in the #inserted table in a trigger. There will be multiple rows in the #Inserted table.
  3. I have attached some images and an explaination of each.
  4. I am trying to craft a trigger that will sum inserted rows (multiple rows) and put the total in another table. I cannot seem to find a way to select multiple rows from the #inserted table though. To explain further, I have three tables, Master, Details, Totals. When a new row is inserted into the master table an insert trigger fires on the master table and several detail rows are copied from a template table into the detail table, where each row contains a price and quantity. The price and quantity are multiplied to create a total for each row through a formula field in the details t
  5. If I was showing the data page for the updated totals table by itself I suspect it would show the new data when the datapage loads but the data page for the totals as well as the two grids of items is deployed within a web page that has 9 other data pages embedded within it so I have to reload the entire web page to see the total update when the grid items are modified. The data pages within the web page do not update automatically when the data table behind them is updated through a trigger. That is why I am looking for the ajax events to detect an update in one datapage and when the event i
  6. So it seems I can use this but sporadically. The issue I have is that I am embedding 9 data pages on one web page. I should, theoretically be able to get the BeforeFormSubmit, DataPageReady, and FormSubmitted event from any of the datapages in the web page. But I seem to only be able to attach and listen to one of the datapages, and not all of them. As well, I think I need the FormSubmitted event rather than the BeforeFormSubmit. If you could guide me in the correct direction there it would be helpful. And finally related to this same topic, once I get the FormSubmitted or Befor
  7. I have an web page that displays 9 caspio data pages. All of the 9 data pages can be updated at any time. The caspio pages are displayed across 3 tabs on the web page. Because an update on any of the pages would trigger a reload of the web page I incorporated some java script and tables and triggers to determine which of the data pages/tables was updated last and depending on the last datapage updated the javascript would make which ever tab containing the last updated data page visible when the page was reloaded. As well there is additional javascript to completely disable all input when
×
×
  • Create New...