What you’re up to is easy…
(But please share screenshots or your code to understand what we are talking about)
Let’s start with the company name listed in your query
In order to get the Company Name listed in your defoffstanceconnect query you have to add a join in your query:
In your database query builder fiirst add the deoffence table, click on the fields/columns you want to pull inside thequery
add a Join table, the Companies (the table that contains the company name), set the columns that will connect the tables
If you can’t do it, open the database builder and if you need help send me screenshots to help you
(I share screenshots of my setup with products table. Each product has a catefory id and I list it pulling it with a join from the categories table)
Amazing! I have all the CRUD functionality already in my APIs but for right now I really want to focus on when I add defoffstance for the Employee_ID and the Company_ID to be auto inputted. Do you know how I would go about doing this?
Hi Famousmag. Sorry I’m making this more confusing than it needs to be. Thanks to you my inner join’s are working and I’m displaying the correct information. The Read functionality in my CRUD works great. I am moving on to the Create part of my CRUD operation now. When I pull up my form (previous picture) I want my company_ID to be autofilled based on what company is selected, and I want my employee_id to be filled based on what employee is logged in.
You can get the security identify in any serveraction you want and use for filtering or assigning anything you want
BUT, I personally have added a security identify in the Globals in order to have it available everywhere without adding it again in any serveraction
where when I click on company WOAH, and the Offense and Defense Stance, it’ll only show Company WOAH and not SNAP. The way I have it wired right now it only works when WOAH and SNAP are the highlighted ones, not when any other company is highlighted because there isn’t information for them yet.
But I would suppose that you must define a filter IN THE YELLOW DATASOURSE like “Green.ticker == yellow.Ticker”
if you understand what I mean… otherwise you have to show me the whole workflow
Yes, except I go by company_ID. Is there a way to easily do this because right now I’m using show commands through data detail when my defoff stance data detail selects company_id.
My Company server connect is for the company list, I use data detail to display the details on the right. I then made a navbar that when clicked I use my def_off_stance server connects to display the information in yellow. I am trying to use data detail to show when buttons are clicked, but I can’t make it work. I got close and it was working when the right company was selected and I clicked the button it would display the table, but when I added another datapoint now it works for both companies and displays both at the same time. That’s no good.
You want the Yellow table to show only the records that where Employee_id == Security_Identity?
Then you have to define that filter to the yellow table datasourse when you click the navbar button.
Sorry to barge in. I would like to show you how I would go about solving this.
First off, the database is the heart of an application. That is why I always start designing the data base. In my case I would construct this as follows: