Jump to content

Andrew

Caspio Ninja
  • Content Count

    59
  • Joined

  • Last visited

  • Days Won

    4

Andrew last won the day on October 16

Andrew had the most liked content!

1 Follower

About Andrew

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello @kpcollier To implement such a workflow you need to adjust the trigger to be able to check whether the needed field was changed. Check the print screens with examples here - https://dropmefiles.com/Qt9eW
  2. Hello @kpcollier Am i right that you insert the data into the Tech_Schedule_Table on Update action in Work_Order_Table? Also, as I understood, you want to insert the particular set of dates only once to avoid duplicates. Looking forward to your reply.
  3. You can use cascading with list-box. To implement the multi-select use this code in the header of the datapage: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { document.querySelector('select[name="name_of_your_select_field"]').setAttribute('multiple', 'multiple'); }); </script> You can check the name of select using the DevTools of a browser you use.
  4. Hello @kpcollier You can implement a similar workflow if you create datapages "on the fly". It can be done if your datapages use AJAX. All datapages are AJAX by default. First of all, you should create a wrapper div where you will load a new step datapage. On each step of submission, you need to define the custom event to clear wrapper and load new datapage. This event should be fired on click of next/prev buttons. Example of the function: function createPage() { var dataPage = document.createElement('script'); dataPage.src = 'https://your_domen.caspio.com/dp/your_app_key/emb?param1=' + val1 + '&param2=' + val2; document.getElementById('wrapper').appendChild(dataPage); }
  5. Hello @kpcollier I think that the better idea will be to use Cascading to restrict the amount of values you get in multi-select list box. You can check this article to get familiar with this feature - https://howto.caspio.com/datapages/datapage-components/cascading-elements/ You can use virtual field to define to category. Then you may use this field as the parent field to get appropriate set of options in multi-select list box.
  6. @rgiljohann You may use the iframe deployment to make sure that you choose appropriate chart. Use this code with the Iframe deployment: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { console.log(event.detail.appKey); var chart = Highcharts.charts[0]; console.log(chart); chart.update( { plotOptions: { series: { pointWidth: 20, cursor: 'pointer', point: { events: { click: function () { window.parent.location.href = 'https://hhaclaims.weebly.com/inpatient-referral-sources.html?HHAIPName=' + this.name; } } } } }, } ); }); </script>
  7. Also, you can check this article - https://howto.caspio.com/release-notes/caspio-bridge-13-0/13-0-impacted-areas/ It has some interesting info related to the dispatching of events when some particular datapage is ready. Here is the example from the article. <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { if (event.detail.appKey == 'MY_DATAPAGE_APPKEY') { //do something } else if (event.detail.appKey == 'MY_WEB_FORM_APPKEY') { //do something } }); </script> Maybe it will be helpful in future.
  8. @rgiljohann The issue is not related to the "id" You need to choose the appropriate chart from the "Charts" variable. Try to use this code: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { var chart = Highcharts.charts[6]; chart.update( { plotOptions: { series: { pointWidth: 50, cursor: 'pointer', point: { events: { click: function () { location.href = 'https://hhaclaims.weebly.com/inpatient-referral-sources.html?HHAIPName=' + this.name; } } } } }, } ); }); </script>
  9. Hello @rgiljohann Can you specify which chart do you want to use with the code? Looking forward to your reply.
  10. Hi @Perzival Unfortunately, it is not possible to use bootstrap classes because Caspio classes has more weight. However, you can use native Caspio styles to get needed layout. Check the Style section and try to create and adjust new one. You can find all the options related to colors of result set in the Results Page -> Table Layout Here you can find all the information related to Caspio Styles - https://howto.caspio.com/styles/
  11. @kpcollier I mean that you may have the same set of fields in both "Work Order Form" and "Client Table" tables. In this case, you can use Trigger to copy values in appropriate fields.
  12. Hello @rgiljohann Here is the example of the code you may use with Column chart to implement redirection: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { var chart = Highcharts.charts[0]; console.log(chart); chart.update( { plotOptions: { series: { pointWidth: 20, cursor: 'pointer', point: { events: { click: function () { location.href = 'https://en.wikipedia.org/wiki/' + this.name; } } } } }, } ); }); </script> Insert this code into the Header of your chart datapage. Do not forget to disable the HTML editor.
  13. Hello @kpcollier It is not possible to implement such a workflow on the trigger level because triggers have no tools to define the exact part you need to save in separate field. I can suggest you to split the Work Order submission form. In this case, it will be possible to implement such a trigger without any difficulties.
  14. Hello @Perzival Can you specify the type of a DataPage you try to use with Bootstrap styles?
  15. Andrew

    Pass Parameter

    Hi there! I need help with the following case. I have two chart Datapages deployed on a single web-page. Chart + Report Datapage with Search form above the report; Chart Datapage; In my first Datapage I have a Listbox type of form element with multi-select option enabled. I pass a parameter (on exit) for this field. Finally, I want to receive this parameter on the second Datapage to filter the data based on multiple parameters within single search field. My second Datapage does not show any data as soon as I try to select more than one criteria in the Listbox from 1st Datapage. Any help would be appreciated.
×
×
  • Create New...