Jump to content

Search the Community

Showing results for tags 'query string values'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location


Interests

Found 2 results

  1. I want to call a datapage URL with query parameters then have an HTML Block Link "pass through" those parameters via the URL call to my second datapage. 1) Call Tabular Rpt datapage to list (all) items from a table (caspio URL with parameters: WID=User ID, LBE=Email) from CMS (Wix) - these are current user id fields and NOT part of a table yet - URL (from CMS): https://caspioacct.caspio.com/dp/appid1?WID=" + userId + '&LBE=' + userEmail (works fine) 2) Have that Rpt datapage (in Details Page Fields) present an HTML Block with a Link to call a Submission Form datapage to create an entry in a different table (caspio URL with parameters: WID=User ID, LBE=Email, UniqueID=caspio primary key from first table, ItemName=caspio ItemName from first table) - https://caspioacct.caspio.com/dp/appid2?WID=HelpMe&LBE=HelpMeAgain!&UniqueID=[@field:TableID]&ItemName=[@field:ItemName] - the last two fields are part of the main table and work fine - no problem (works fine) - BUT the first two fields are managed externally in the CMS and are not part of Caspio environment (except via URL parameters from the initial call) Note: I had this junk working with Authentication fields before having the bright idea to move user management to the CMS. When I try to add fields to the Link, my only options are Data Source Fields (table) or System Parameters but these are neither at the time of the call. I tried adding two "temp" fields to the original table and loading the External parameters but they're empty when I make the call. I might also be able to create a "temp" table for the fields I need but that seems unnecessary. Is there anything like a "global" variable I can store something in before I put it in the table? OF course, it needs to be accessible by the second datapage. Any other workaround approaches from those more experienced? Please help (and pardon the ramblings of a noob).
  2. Hello. I have a submission form with a popup link. The form has a Job dropdown element that is being used as a parameter to pass to the popup. When a Job is selected from the dropdown and the popup link is clicked, a List Report pops up and shows records related to the Job that was selected. This works great. However, I need an element in the form to be cascading, and the Job dropdown has to be the parent field for this. When I enable the cascading feature, my popup stops working. I get an Uncaught TypeError of null, stating that the parameter field name cannot be found. So, Job can be found before it is made a parent field for a cascading element, but once it is made the parent field, it stops working. Here is my code. <script> var fieldName = "Job"; // The name of your table field. var paramName = "Job"; // The name of your parameter /* No modifications necessary beyond this line */ var inputField = document.querySelector('[action*="[@cbAppKey]"] #InsertRecord' + fieldName); var linkToChild = document.querySelector('[action*="[@cbAppKey]"] #linkToChild'); var baseUrl = linkToChild.href; //do not touch var moddedUrl = baseUrl; //do not touch function updateLink() { moddedUrl = `${baseUrl}?${paramName}=${this.value}` } ['change', 'keydown','keyup'].forEach( function(e) { inputField.addEventListener(e, updateLink); }); inputField.dispatchEvent(new Event('change')); linkToChild.onclick = function() { window.open(moddedUrl, '', 'resizable=no,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no'); return false; } </script> Any help would be appreciated. This is maddening me, haha.
×
×
  • Create New...