Use dropdown list to trigger operation to different controller - angularjs

I would like to use angularjs to create a table with a drop down list contains different operation and one cloumn of checked box. Once checked box is selected, different operation
The table is pretty much like airflow tables with variables. once secret_password box is selected based on "Withselected" tab execute different operation.
However should I created the table?

Related

Filemaker dropdown not working

I've created a dropdown box in layout mode of filemaker and specified a field to pull in. However the box is remaining blank and not pulling in any of the information from the field in the table. What can have been missed for this to happen?
Most probably it is the problem with the value list set up or the relationship you are using to pull in the data for your drop-down.
If you are using a value list from a related data, place a portal based on the same relationship on the same layout and see if data comes through. If it does not - resolve your relationship first.
If you are pulling all values from a field in the same table, make sure in the value list setup you select the same relationship as the one the layout based on, the target field is selected and "Include all values" option is checked

Combobox displays the wrong content

I'm using Access. I'm programming in vba.
When I first load my form a combobox displays content from the wrong column. If I go into design view and come back to form view, the combobox then displays content from the correct column. I have looked at the format strings, but they specify the correct column. I've tried to bind the correct column. I've tried to requery the combobox.
In the application a procedure references a service and a task. We have a table where a service was requested for a particular patient. A patient can request up to three distinct services. Those services each have a task associated with them. The user selects a patient. The patient has an associated patient request id. This id is used in a query to select the requested services. The user then selects a procedure or a service and task to select a unique row in the table.
The combobox for selecting the procedure is the one having problem.
When a procedure is selected, 1) the appropriate ids for the service and task table are saved in a text field, 2) the appropriate columns in the service and task comboboxes are bound, then 3) the ids in the text fields are assigned as the indexes of the service and task comboboxes.
When a service and subsequent task are selected, the procedure id is saved to a text box, the appropriate column is bound, and the index is assigned to the procedure code combobox. All of that works fine.
I do end up leaving the columns bound. I tried to set them to zero after processing, but that messed up things. binding is about assigning indexes. The Format string should be controlling the content displayed in a given combobox.
How can I force the first combobox to display what it is supposed to display without cycling views?
I've tried to cycle view pro grammatically, but it generates errors when you try to do it with me.
After additional testing, I believe that the column binding is causing the problem. Weird things have happened due to column bindings. I had set them to 0 to eliminate those problems, but the id assignment has me binding the comboboxes again.
David Locke

Multiple Drop Down in Form. How to manage in db tables

I am creating an application for import export system.
In this application I have many forms.
Now let's talk about a single form.
I have 8 drop downs in this form.
To allow admin to add new values to each drop down i had to create table for each drop down so that it has all the values admin has defined.
I want to know is there an alter native of this problem because I see in the application there are nearly 35 different drop downs and I don't want to create 35 tables and forms then CRUD for every dropdown.
How can I manage it in an optimized and simple way?
I have found a solution to this problem with this methodoly
Table : dropdown
Columns : id , dropdown_name
Table : dropdown_fields
Columns : id , field_name , dropdown_id
This will i will create two cruds one for dropdown labels. In this admin will define crud title or name and nothing more.
In the second one admin will first select dropdown name from a dropdown coming from database table dropdown and then he will have a single field field_name to define.
And in the form where i have required these drop downs i can play with ids. Done it!

Adding an order for a customer selected from a list view in Access

I followed this great guide to help me add a search feature to my Access database:
http://www.techrepublic.com/blog/howdoi/how-do-i-populate-an-access-list-control-with-the-results-of-a-dynamic-search/108
At the end it says:
"If you’re building a quote or order, use the list control’s Click or Double Click event to copy record(s) to a temporary table. It’s easy to implement using a fixed query for each search task."
I have managed to display all search results in a list box and I would like to be able to click on a customer to highlight them, and then press a button to add an order to the selected customer. I've been thinking how I could do it and I really can't get my head around it.
Any help would be appreciated.
It depends on how you build your database. My guess is that one easy way would be:
Create a table with customers;
Create an "Order" table with orders where you link the customers through a foreign key
You load the customers in a listbox. While making the name visible, it is actually the ID that you retrieve when clicking the listbox. You can configure this via the wizard in the design view of a table. You can make other forms appear by events on the listbox (eg. on click).
If you managed to retrieve the ID of the customer, and you have the data related to the order (data that can easily be extracted from form objects and loaded into variables ) what you need is an insert statement and insert the values in the "Order" tabel (including the customer ID, which is linked through the foreign key).
This way all order records are linked to the customer and can be queried later.
Due to my limited knowledge on your other requests, I cannot help you any further on the rest of your database design.
I hope that my reply could help you and that I understood your question correctly.
You can access info from a listbox via:
List.Value
Or if it is not the first column then:
List.Column(0,0)
0 being the column and row references.
You may also consider using a listview over a listbox and then you can access the relevant parts of a listview control with the following code:
ListView.SelectedItem
Or if it is not the first column then:
ListView.SelectedItem.SubItems(3)
3 being the column reference

make field a dropdown in access 2007

I'm creating a HR database in access 2007
I have a main table of employee info and several tables that relate to that table ( education for example) that list the acceptable elements that can populate that cell in that row
When i create a form it was created as just a plain text field which is constrained but I wanted to create a dropdown that had just the data that they are allowed to enter to avoid confusion.
You should be able to right-click the text box and select Change To -> Combo Box.
If you are not familiar with creating controls, it is best to use the wizards. Select a combobox from the toolbox and add it to your form, you will be guided through creating the type of combo that you want.
You should also examine the relationships you have created.

Resources