How to make two dropdowns work simultaneously in a winform? - winforms

I have 2 dropdown lists in a windows form. First - ProjectName and Second - PartName. When i choose the projectname projectname_selectedIndexChanged is called and it displays the corresponding parts in that project. but when i choose the part no and set the selected item in projectname to that of the selected part, projectname_selectedIndexChanged sub is triggered again. What is a better way to go about this task?

Related

How to dynamically add a new form step to react multi-page form for each selected item on the first page?

I need a bit of direction. I'm working on an application with React, Typescript, and Material UI. I've created a simple modal. The first page contains an MUI DataGrid with checkSelection enabled. The User can select as many options as appear on the table.
Now, for each selection, the User will then have a new form step to complete. So, if the User selects 5 items from the table, they will then see 5 corresponding steps. The form steps are tied to the selection. So, if the first selection is a menu item, for example, then the next step in the form will be about that menu item, with fields to add to that item.
I've been searching for a similar solution and haven't found one. I'm hoping that someone can point me in the right direction or has some sources they can recommend.
Much appreciated.

Combobox in Form Header to search customer stops working when i close the program and reopen

I create the combobox and choose the 3rd option (to choose from a list on my form). The form was based on the customerT (patientT in this case). I tried several different ways the last of which was to create a query with the patientT and a FullNameQ i created to combine last names and first names. the combo box searches great either way til i close access and re open. then i get the error in the pic attached. pic of form with error message
I have also tried creating a search form and using the wildcard function in the query but everytime i enter the formula in the criteria, Access changes LIKE to ALIKE. Is it supposed to do that? i watched 3 diff videos to copy how they created a search form. I dont see their formula adding the A when they click off the field or hit enter.

How to append a datasource in Google App Maker in realtime and on clientside?

I have an Accordion widget that is connected to a datasource 'Projects'. I have a list of all the projects and their details. However, each record in the projects datasource has a string field called "Project Type" which can contain one type or several types (seperated by commas), for e.g "Field,Qual,Quant" etc.
The challenge I am facing is that I want to create another accordion that contains rows depending on the number of types of project. For example if ProjectID P23 has project type as "Field,Qual,Quant", then when I click on the accordion for Project P23 it must expand further accordion widgets based on the number of projects types, in this case, 3 more rows should be visible.
What I am thinking is that whenever I click on a Project row, it should create a datasource with 3 records depending on the number of project types. Then I can bind this data source to the subsequent accordion. However, the problem with that this will become a server-side call and cannot work synchronously. I want to do this on an onClick event of the first accordion so that results should be instant. And whenever the accordion closes, the datasource should get empty, so for any other project, it should be a dynamic process.
Any leads would be greatly appreciated.
P.S. I know App Maker is getting decommissioned.

Changing multiple dropdowns option with one dropdown in angularjs

I am learning angularjs and stuck at a situation where i want to bind the selected dropdown option to model/controller object. what i am trying to do is, All three dropdowns should show same option which is choosen in App1, later each dropdown can be changed depending on the usecase, want to save the clicks for user.
All three dropdown shows same option by assigning same ng-model as given for App1 dropdown, which works fine but the problem is what if the user changes any/all of the three dropdowns, i want to capture the one with option y and p choosen in an obect/array.
Any help is much appreciated.

Opening Button to open form based on combo box selection

I currently have a MS Access database of members.
I have a form that has a combo box which is populated with just the first and last names of members. (using a test database for now)
What im struggling with is how do i create a button that opens another form i have created but using the selection in the dropdown box to populate the fields in the newly opened form.
When a user from the dropdown box is selected an open is clicked i want it to open the profile form populated with their details.
pictures and access files can be found on my ftp server:
ftp://ftp.legends-gym.co.uk
User: ftpuser#legends-gym.co.uk
Pass: ftpuser
Regards
I can't access ftp site from work so can't see what you've got thus far however, the key bits you want to look at here are:
Add a button to the form and the On Click Event to open your profile form. Something along the lines of docmd.openform "frmProfile", acNormal
You need something to pass the member you've selected in the combo box to the profile form. One way might be to use OpenArgs so have a look at that
You then could use the passed variable in OpenArgs to select the data you want to fill out your profile form.
EDIT...
OK, I've had a look at the file now. Here is what you need to do to fix your problems (and a couple of extra bits which aren't causing an issue but will improve the look and feel).
On the Format of the Home form and the Member Search form, set Navigation Buttons and Record Selector to false. - This removes the unnecessary elements for a "single" form, you're not looking at records.
On the member search form, remove the binding to the members table. - You don't need to bind this form, as the recordsource of the combo is pulling the data required separately. if you look at your form before you change it, you'll notice you've got 1 of 10 records...
Also, remove the filter criteria and set filter on load to No - You were filtering the wrong form.
On the combo box, remove the after update event. - I'm not sure what that was trying to do but its completely unnecessary.
On the command button, add an onclick event which has the following code DoCmd.OpenForm "Profile", acNormal, , "ID = " & Me.Combo361 & ""
Save everything and enjoy. :)
You weren't far wrong with the filter, but it's actually a WHERE clause when opening another form - sorry, my bad misdirection. What you were doing was filtering the original form - ie the member search form. Also, you don't need to put ' quotes around the ID, it's a number not a string.
If you have problems I can probably host this fixed version somewhere for you to download.

Resources