Jump to content
  • 0

Passing parameter in relational database



I have two tables linked in a relational database: Clients and Appointment.  After finding the Client and displaying same, a javascript routine in the header of the Search Results screen calculates the category to assign to the appointment and puts this in a variable called 'pcategory'.  I am trying to pass this variable via a query string to the Add datapage for Appointments:  ....URL?Category=[@pcategory].  In the Add datapage, there is a field 'Category' which is configured as 'hidden' and is set 'on load' to receive [@Category].  However, I cannot seem to get it to receive the value in the variable 'pcategory'.  Testing with alert(pcategory) in the same html block as the query string shows that 'pcategory' does contain the value to be passed!  What am I doing wrong?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...