How to get the "Data Validation" CommandBarButton object? - excel

I need to hide the Data Validation button when user switch to particular sheet, but I cannot locate this button in Application.CommandBars.
I have tried to loop out all the CommandBar object and its control name but still not found, has anyone tried this before?

In Excel 2007, the Data Validation button is in the Ribbon UI (not command bars) - you won't be able to disable it without overwriting the existing Ribbon group (GroupDataTools). See this related SO post regarding how to overwrite existing Ribbon groups. To locate the Control IDs of menu groups in the Ribbon, you can download this list of control ids from Microsoft.

Related

Group radio buttons on Excel

I have two groups of radio buttons on the same Excel worksheet that I want them to work exclusively from each other.
I tried to search online for answers, and got to know there was GroupName Property which can be used to group the radio buttons, however, I haven't been able to locate this property.
Can anyone tell me how to find it?
There is only object positioning under the property tab of the format control window.
You need to add a group box control and then insert the radio buttons into that group box.
See here for more info: Add a group box or frame control to a worksheet
Use ActiveX controls
and in developer mode right click on RadioButton
and in properties box

CRM 2011: enable/disable a ribbon button on condition

I am new to CRM and I have an exiting ribbon button. I want to disable it on condition (Field1 is null or not).
So far, I have created an new solution and included the required entity.
Exported the solution and tried to change the configuration.xml.
I have tried to make change under . But without any luck.
Can anyone help me out with an example.
Thanks in advance.
Don't edit it by hand. Use The Visual Ribbon Editor Tool. Makes things much nicer to deal with than hand editing the xml.
If you want to setup a button to be enabled if new_field1 (capitalization matters so make sure it's correct with what your field's actual name is) is not null, here is what you would do:
Open up the ribbon editor
Conenct to your org
Select your entity with the ribbon button you want to enable/disable
Click on your button
Click the Enable Rules tab
Enter the field name exactly as it appears in the customization section of your solution within CRM in the Field text box.
Enter "null" (without the quotes) for the value. Lower case.
Skip Default (if you have some custom forms where the field does not exist, you may want to give it a default value)
Change Invert Result to true.
Click the "Save" button at the very top. (don't click the save button on the main tab of the ribbon)
Verify that it is getting deployed and published.
Test it out.
Edit: Use Ribbon Workbench For System Ribbons
I've never used it, but the Ribbon Workbench says it can customize system buttons.

Show/Hide infopath groups programmatically depending on checkbox selection

i'm new to infopath and need to ammend an existing infopath 2010 form. The users only want certain section groups to appear based on the users choice via checkboxes. Currently there are conditional rules in place for each group on the form which are working to hide/show the sections depending on whcih checkbox or checkboxes are selected.(each checkbox relates to a group). There are 19 checkboxes and related groups, the users can select 1 or more groups.
The problem is when users tick the checkbox , there is a delayed reaction seeing as there are so many condtional checks taking place on each click.The users dont like this. they would rather selct all the checkboxes they want , and then click a button to do all the work at once(instead of on each checkbox). So i've been trying to programmatically access the groups from the code behind the buttons to hide/show them depending on which checkboxes are selected. Is it even possible to set the hide/show property of a group in the code behind ?
Thanks in advance for any help
You can't show or hide sections directly with code, but you can affect data sources, which in turn can trigger rules.
See here for updating the data source programatically:
http://www.bizsupportonline.net/browserforms/programmatically-enable-disable-control-infopath-form.htm

Multiple select drop down user control or field control

I want to use multiple select drop down user control or field control on my page layout and I want to pull list items from list and show it on page layout in Sharepoint.Does anyone is having idea how to achieve this.
Thanks,
PS
In SharePoint Designer, go to:
Insert, SharePoint Controls, DataView
on the DataSource Library panel, choose a list and click "Show Data"
Drag and Drop a few fields from the Data Source Details
go to the Toolbox Tab in the same panel as Data Source Details and choose: "Data View Checkbox List"
Configure as you like
Edit based on your reply
If I understand your reply right, how about you have a Yes/No column(field) in your list named "IsVisible" with a Custom View where only items WHERE IsVisible Equals Yes on the web part and the Administrator will just edit the list and change the value for the Visible field.

How to disable field list at runtime in performancepoint?

I have a dashboard that I am displaying, and whenever my users click on a pivotchart or pivottable the field list automatically pops up. How can I prevent this from occurring?
If you wish to use ad hoc analysis tools such as pivottables and charts in a dashboard like this, the field list will always appear.
If you are able to use static data then render it out to that format and replace what you currently have with it.
Edit the chart in Dashboard Designer. In the Commands and Options dialog box select Chart Workspace in the drop down list. Once you do that, the tab Show/Hide should appear. On that tab you can clear the checkbox for the Fields List. Clear any other checkboxes in that dialog, and close the window. Click on your chart in DD and make sure the fields list (and any other dialog boxes - ie Commands and Options, Drop Zone, etc) don't appear. Publish your chart and you should be good to go.

Resources