Skip to main content
Question

Can Code Pages Reference Table Values?

  • May 14, 2023
  • 0 replies
  • 388 views

Forum|alt.badge.img+9

I am exploring Code Pages, doing some general learning about them and what you can do with them.  I am wondering if Code Pages can display a value(s) from a specific table in the app based on a query formula or some kind of lookup value.  Can this be done?  If so, how?  



------------------------------
James Carr
------------------------------
This topic has been closed for replies.

JimHarrison
Forum|alt.badge.img+18
  • Registered
  • May 15, 2023

Hello James,

Yes there is an App that has examples.  https://resources.quickbase.com/db/bq8kmgrcq/72b77352-3b9d-495e-932f-1cd9f1b15fa3



------------------------------
Jim Harrison
transparency = knowledge + understanding : The Scrum Dudes
------------------------------

James,
Here are a couple of links that might be helpful in understanding how to use code pages:
https://helpv2.quickbase.com/hc/en-us/articles/4570389110036
https://community.quickbase.com/blogs/evan-martinez1/2021/07/09/alternatives-to-common-javascript-insertion-techni
https://helpv2.quickbase.com/hc/en-us/articles/4418310927892
Neil



------------------------------
Neil Schneider
------------------------------

  • Registered
  • May 17, 2023

i'm pretty sure you can. If you have it on your table via lookup or query formula, you can put that as a variable (in a formula url field) that will go into the url that the code page will pick up.

you can see it in action on this page

https://resources.quickbase.com/db/bq8meiyhh?a=dr&key=22



------------------------------
Tim D
------------------------------

Forum|alt.badge.img+9
  • Author
  • Registered
  • May 21, 2023

I wanted to follow up and say that I have the foundation for what I am looking for. Jim and Neil, the links you gave were excellent resources but, being a novice to HTML and JavaScript, I still had to go to Google and YouTube for a little more. Tim, your answer was more like what I was looking for, except I see that you don't have to just pass an URL to the code page. You can pass other values as well.  I came up with a simple block of html to suit my needs, while I expand my knowledge for more capabilities. 

For anyone looking for an answer to this same question, I recommend searching for how to pass parameters with html or with javascript, as well as how to use parameters passed to your page (no need to specify quickbase code page in your search).  Google and YouTube were my friends for this. Then I referenced the links Jim and Neil posted to see if I could follow the code I saw as I learned what parts I needed for my own purposes. The examples on that resources quickbase app had more code than necessary for the type of solutions I needed.

Thank you, again, gentlemen. I appreciate your answers.



------------------------------
James Carr
------------------------------