Access 2010 : Allow combox box search, but lock for edit - ms-access-2010

I'm just reacquainting myself with Access after a long absence and am getting hung up on some relatively minor things !!
I have a form designed so users can select a ReportID from a combo box and the other fields in the form populates the information. That works great, however I don't want users to be able to update the fields, it's for reference only.
If I lock the form for editing then the combo box select doesn't work - is there a way that I can have a combo box control a form, but not allow editing or updating of any other returned fields ?

Set the fields Locked property to Yes.

You have to change two properties of Combo Box under Data tab Under properties. Following are the properties to be changed:
"Limit To List" the default value for "Limit To List" is "No" change this to "Yes"
"Allow Value List Edits" the default value for "Allow Value List Edits" is "Yes" change this to "No"
After doing this modifications on the default values the user will be allowed to modify the text in the Combo Box, but when the user is leaving the Combo Box the BeforeUpdate event will be fired and the user will get an exclamation message from MS Access.
See the below given pictures for more clarity. The first picture shows the default values, second picture shows changed values and the third picture shows the message if values are edited.
Default Value [1]
![1]: https://i.stack.imgur.com/RxUUa.png
Change To [2]
![2]: https://i.stack.imgur.com/rLnSM.png
Message from MS Access [3]
![1]: https://i.stack.imgur.com/kbPmc.png
**
Kindly reply to this message if this solves your problem.
**

Make sure your combobox is unbound (not linked to a field by its ControlSource property)
position it in the form header (not the Detail section)
set the form's Filter property to the combobox using the expression builder (button with '...')
also set the form's FilterOn property to true
http://msdn.microsoft.com/en-us/library/office/ff194672%28v=office.14%29.aspx

Related

How to match specific content of a drop down in TOSCA without selecting it?

Is there a way to verify that if a drop down contains a specific option without selecting that option in TOSCA?
Yes there that is possible. I tried it with a standard HTML combobox. For that you need to scan the page. Select the combobox in question and change the quickfilter to show the items from the drop down. Check the combobox itself and one of the items below (does not matter which one):
You can ignore the message that the item is not unique - just create the module.
Once you have the module in place, you can rename the item, so that it reflects that you want to use it as a generic item. Then (in the properties tab) add a 'Configuration Parameter' and call it 'ExplicitName' and set it's value to true. This will allow to edit the name of the item in the testcase. (more details in the help of Tosca 11.1)
You can then create a testcase and use the module on it. In the testcase you can change the name of the item to the text of the drop down item you want to check for (you can also use wildcards) and then verify that it exists.

New field not visible in field group on form

I have added an extra field to a field group, which already contained 4 fields, this field group is used on the form: smmBusRelTable.
The 4 existings fields are appearing without problems, the new field isn't showing up in the form.
The field is visible.
The field exists in the field group on the form.
I have resetted my personalise screen on that form.
I can add the field through personalise, but it won't show up.
It has no CountryCode filled in.
Any ideas?
Some things to try:
Right clicking on the form and click restore.
Go to the control (group, grid, etc) you're expecting to see the fields in, and verify the DataGroup property has the correct Field Group selected. Try clearing this property, saving, then adding it back again.
The init method on the form, set the visible parameter of the field on false. That is why the field showed when i added the field group on a new form.

Wordpress Gravity Forms e-mail notification not sending checkbox values

I want to send e-mail notification to user when form is submitted. All input field values are sent, but not checkbox values. To get values from input boxes, I use {Field label: ID} , but for checkboxes it sends an empty value via e-mail.
I have 4 checkboxes and the field is called Lisad with ID 11. Shouldn't I be useing {Lisad:11} to get the value and send it via e-mail?
Check-boxes can described in one of two ways: value and checked-ness:
checkbox: A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).
Un-ticked checkboxes do not have their value sent when a form is submitted:
The HTML specification says unchecked check boxes are not successful, and thus web browsers do not send them. Unfortunately this introduces a gotcha: if an Invoice model has a paid flag, and in the form that edits a paid invoice the user unchecks its check box, no paid parameter is sent.
Ruby on Rails has a work-around for this, which you may be able to use:
To prevent this the helper generates an auxiliary hidden field before the very check box. The hidden field has the same name and its attributes mimic an unchecked check box.
This way, the client either sends only the hidden field (representing the check box is unchecked), or both fields. Since the HTML specification says key/value pairs have to be sent in the same order they appear in the form, and parameters extraction gets the last occurrence of any repeated key in the query string, that works for ordinary forms.

Something like setVisible() for Dynamics AX 2012

Is there any way to do that?
I mean, if the form fullfill specific conditions setVisible true or false to a control in the form? Or if i check a CheckBox, show some specific ComboBox?
Thanks in advance for your help
I would recommend enabling and disabling fields, rather than hiding them.
Open a Supplier, and on the Invoice and Delivery fast tab choose select the Calculate withholding tax CheckBox. This is the VendTable form.
The Calculate withholding tax control will enable and disable a second control depending upon the value selected.
The second control has it's property AutoDeclaration set to Yes, and the event that fires the change can be found on the forms VendTable data source. Find the relevant field (VendTable > Data Sources > Vend Table > Fields > TaxWithholdCalculate) and notice that the modified method has been overridden, changing the control's enabled property. It also has a visible property should you want to remove it from view.
Top Tip: In case that you are not aware, you can right click on any control on a form and choose the Personalise option from the context menu. From there is a form which contains a very useful box called System name. You can find the name of the control/table field from this.
I suggest you this solution for your second problem:
if i check a CheckBox, show some specific ComboBox?
I assume your form is complete (it has all controls needed : comboboxes, checkboxes, etc). And the controls AutoDeclaration-property is set to 'Yes'.
In the AOT expand the Form till you find the CheckBox, expand it as well
Right-click its Methods and select 'Override method' >> 'Clicked'
Finally you can add this code and save/compile the form:
myComboBox.visible(true);
It should look like:
public void clicked()
{
super();
myComboBox.visible(true);
}

Can we copy the value of one field to another in a repeating table of infopath form?

Hi guys can anyone tell me how to copy a field value in a repeating table to another field when we insert another row. It is just like amazon checkout process. In Amazon checkout process we have to click a check box when our billing address is same as our shipping address.
In this scenario am having one text box and drop down box fields in a repeating table. When am writing something in the text box and inserting another row. here come the problem I have inserted a value in the drop down box, when the value is selected in the drop down box the textbox value from the parent should be copied to the child node. This has to be done without any code behind.
Please help me regarding this issue
You could probably do this using the default value of the child node.
The default value can reference another field either on your main datasource or any secondary datasource.
I would assume that you don't want this updating when the user adds another child node. If that is the case then you will need to uncheck the "Update this value when the value of the foumlua is recalculated."

Resources