Passing Selected Item & Input Value from Angular UI Bootstrap Dialog - angularjs

I'm trying to add an input field along with a drop down in an Angular Bootstrap Dialog box and am just not getting it. When a certain item is selected from the drop down an input field will display where the user will enter in the amount. For now I want to just try passing the value from the input box back from boostrap.dialog.js to postReasonsController.js. The reasons are pulling from one table and the input value will be stored in a separate table along with the selected reason id. This is an inherited project that I did not create so I'm a bit of a newb learning off the side of my desk.
EDIT
I've added sample code to plnkr http://plnkr.co/edit/oJdax2LhlKWxSpRkH0fq?p=preview. In the sample code I ended up using
vm.currentTransaction.ReasonDiscrepencyAmount = document.getElementById('amount').value;
Which works there as well as when running it locally. However, adding the same in my actual code it doesn't work. I'm not sure why it works in my sample code but not in my application.
Can anyone see what the issue is?

Related

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.

Is there any way of showing options as selected when the initial values for a Select of mode multiple is being used in ANTD 4?

I am working on a form which helps to update user information. The information is coming from an API call and I have ensured that the form loads only after data is returned from the API.
Everything else is good but for 1 issue, I am using a mode="multiple" for the team in which the user is working.
I am able to show the initial values in the form field but I am not able to show them as selected in the Select menu dropdown.
How do I accomplish that?

Issue in automating table data filling in firefox using webdriver

Objective:
This is data driven approach. I am trying to get data from sheet to be entered in table in a web application. Now in the table there are fields as below:
Textfield (To enter name), Datatype drop-down (To select data type), Length field(to enter the length), Status field (Isactive or not)
Now here there is a dynamic logic as for only “String” datatype the “Length” field would appear else in default table “Length” field/column is not shown because for other data types there is static length value provided.
Now when automating I am getting data in sequence from sheet and setting that in table. Switching over the fields is done by using “Tab” mechanism.
Issue:
The only issue in this whole process is that while selecting “String” data-type from drop-down and after that tab is applied. At this point the “Length” field is supposed to appear for which data can be entered from the sheet but here at only tabbing/loosing focus from one field to another is not revealing the hidden “Length” field.
And at this point automation gets stuck up. Manually selecting the drop-down shows the “Length” field but when same is done manually using tab, the “Length” field does not show up.
It would be of really great help if anyone can please suggest on above issue.
Hoping to hear soon from someone. Thanks for your efforts in advance.
Manually selecting the drop-down shows the “Length” field but when
same is done manually using tab, the “Length” field does not show up.
Seems selenium isn't setting focus to the same object/element that you are. How are you using selenium to tab between fields? Do you have to tab to this element, or can you have selenium select it directly? Also, it would help us if you shared the selenium code and html.

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.

Show a single item of sample data in SketchFlow running project

I am building a prototype in SketchFlow using a sample data set. When I run the project I can see lists of values no problem but anywhere I have used details mode to display a single record the running project is blank. The data is displayed within Expression Blend (it picks the first record in the set) - the only thing I can think of is that the binding needs to refer to a specific record but I can't see where to set that.
I found the example in this tutorial works fine:
http://blogs.msdn.com/canux/archive/2009/06/29/mini-tutorial-blend-3-visual-data-binding.aspx
Create your sample data source
Click on the 'list' mode button above the data source (in the 'data' tab)
Drag field(s) onto a list view for the list selection
Click the 'details' mode button above the data source (in the 'data' tab)
Drag the other field(s) onto the area where you want to display the details
Voila! it works! Or, at least it works on my box ; )
OK, I found a clunky answer. You can put a linked master control on the page with the relevant default value and then collapse it so it's not visible. Does the job but not particularly elegant.

Resources