Jump to content

Display list in Portal using ExecuteSQL


This topic is 4014 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am developing a Professional Development database for our school district. I have several tables with one being our STAFF (our existing staff names, positions, etc). Another being COURSES begin offered for staff to take.

 

The COURSES table has a STATUS field than is either Open or Closed. If Open, staff can sign up.

 

I would like a Portal to display the Courses Open within the Staff table, but because the Status is a calculation table, the Portal will not work.

 

So I was hoping to create a Script using ExecuteSQL to build a Virtual List to display the results in the Portal.

 

Problem is, I am new to ExecuteSQL and Virtual Lists, so I am in need of some assistance. Been looking at the web for some learning techniques, but haven't found anything yet.

Link to comment
Share on other sites

I am partially following you. You should be able to use portal filtering to only display records with an open status. I dont think you need to use ExecuteSQL to achieve what you are doing based on what you have stated.

 

I am going to assume that the calculation is based off of some kind of enrollment limit being achieved per the course?

Link to comment
Share on other sites

The Status field is based on several things. Either Date Deadline reached and/or Enrollment Cap reached.

 

If I try to make a relationship Staff::Status = Courses:Status, the relationship does nothing since the Courses:Status is a Calculation field. The relationship isn't valid and the Portal displays nothing.

 

I guess I could try a constant to constant relationship and then filter by Status.…

Link to comment
Share on other sites

This topic is 4014 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.