Populating a combo box in Infopath from a webservice - wcf

Aim: to create an Infopath form that displays a list of companies in a combo box and displays additional information when a company is selected.
The data will be served by a WCF webservice talking to a SQL Server backend. In theory I should be able to use a stored procedure (and associated methods in the webservice) to get a list of all the companies and their associated ids, populate the combo box in Infopath, then link the selection of the company name to its id and then pass that id on to another stored procedure to return the additional information.
However, when I try to wire up my webservice method to return all companies, I can't plug the company name field into a single combo box as the data returned is repeating.
Am I doing this wrong? Should I just use a single method that returns all company information (there's about 700 or so) and then create a filter on the company name field instead?

the combobox returns one single company id. This id can be used to search the company name in the company list returned by the webservice.
Can do without coding:
Create a rule 'CompanyIDChanged' on the combobox.
Then create an action 'Set a fields value' for this rule.
Set the form field 'CompanyName' to the value 'CompanyName' of the webservice.
Use a filter on the value to set CompanyName for the correct CompanyID. The filter should be 'CompanyID' in the combobox = 'CompanyID' in the webservice.
Regards Jack Graus

Related

SQL Server Report Builder Information in Parameter Pane

Is it possible to show additional information in the parameter pane based on the parameter the user selects? What I would like to do is allow the user to select a store from the parameter dropdown list and after the user selects the store they would be able to see the Store name, street address, city, state and zip to ensure they selected the correct store before they 'View Report'.
Generally, this is not possible, but I can propose a workaround, which is a bit silly, though.
Create a dataset which takes a Store ID as a parameter and returns the store name, address etc.
Add another several report parameters of type text that will represent the name, address etc correspondingly, and set their default values to the required fields in the dataset created in step 1.
Link the dataset's parameter to the report Parameter Store.
Once a user selects a store from the parameter dropdown, the rest parameters will be populated with the data.
Hope it hepls.

Show a column value but submit another value in Microsoft Access

I am trying to make a simple form that 'registers' users into a meeting. I'm trying to get the form to submit the meeting 'id' into the database but I wish to display a different value for the user (so that they do not stumble through meeting id's). I've added two columns to the query (meeting id and meeting information) but I am unsure how I would get the form to submit the meeting ID but display the meeting information for the current user.
EDIT: I've tried your method Chris but it doesn't seem to work.
Edits made:
http://i.stack.imgur.com/6IUuD.png
http://i.stack.imgur.com/3PTTZ.png
You need a rowsource query with TWO values because you have two columns. For example:
SELECT meeting_id, meeting_name
FROM meetings
In this case the 'bound column' property would be '1' because in the example you first select the meeting_id.
In the 'column width' property you then type "0cm;4cm". 0cm means that the first column (the IDs) will not be shown.
go to design view of the form and change the bound column to the number that represents the column you desire to have displayed. eg.
You can add the query at the Row Source as in the image a query builder will appear and you just create the query and save it.

Creating a search query in Microsoft Access to query unbound fields and subform

I cannot seem to figure this out. I have made it very far with this database but now i am at a loss. I am going to post screenshots and details below and I hope it will be enough info.
This is my main form (dashboard). It shows the status of calls my employee has received. I need to implement a search. I would like it to search by customer or part.
My Goal is to have someone enter a string in the search field and retrieve matches to display on my details from (that contains a subfrom)
This is the detail screen. It shows the customer and the part(s) on the subform. All the customer info is unbound due to the way it is handled. I have a customer master table my employee can search from and add to the call. If the customer is not in my master table he can enter one manually. The unbound boxes are tied by a CustomerID field.
These are my Relationships for the database
This is the function that matches the CustomerID to fill the unbound boxes
This is my table for the detail form
And finally my table for the subform

SL5 ComponentOne C1FlexGrid dropdowns dynamic filtering

I am using SL5 based ComponentOne's C1FlexGrid and binding data to the control at runtime. For two columns, I am populating lookup data as dropdowns in the first and second column of the control. In the first column, I am binding company information and in the second column, I am binding department information by default. There is a 1-N relation between Company and Department entities in my model (that is, for every company, there are N no of departments associated to it).
In edit mode, I want to filter out departments in the second column of the control for the selected company in the first column (that is, when I select "company 1" in the dropdown, I want to bind only those departments associated to company 1 in the second dropdown). Is
this achievable?
I have achieved this by following the suggestion mentioned in the forum post Different drop down list/combo box in the same column? .

How to validate field in InfoPath against separate SharePoint list

I have two SharePoint Lists. One is a simply a list of items with a title and description, the other is a list of requests which contain a workflow. These requests are requests for adding or updating items in list A.
I want to validate the Title field on the add new item form for the Request List. I'm wanting to check that the Title does not already exist in List A.
I know can set the properties to only allow unique values on the Title for List A but as these request are going into a separate list I am not sure how I can check to see if the item already exists in List A.
I am creating the forms for the Request List in InfoPath.
Any ideas would be great.
This is a rough idea, but you could load in List B into your data form and set a textbox to the value of the list, filtered by the title field from list A. If the field is blank then you know it doesn't exist already.
This blog can help with the loading and filtering of the list data:
http://pravahaminfo.blogspot.com/2011/05/filtering-sharepoint-list-data-using.html