how to check an empty field using Enable Rules in visual ribbon editor - dynamics-crm-2011

I'm trying to change my button Enable rules according to value rule using visual ribbon editor.
The rule is - if the field is empty the button will be disabled, I insert my data to visual ribbon editor like this :
Enable Rules -
field: myFieldName
value:"" //I tried Null instead of "", it didn't work
default:false
Invert result:true
the output now is: buttons act the same if the field is empty or not...
Am i missing something ?

It should would with null instead of Null
https://ribbonworkbench.uservoice.com/knowledgebase/articles/121427-enable-disable-a-ribbon-button-dynamically-based-o

Related

Xpages - Custom property using method binding option is not showing the content

I have a custom control with around 20 custom properties. However, some of these properties need to contain code logic. This is fine, as I create the property as Type: javax.faces.el.MethodBinding and Editor: Method Binding Editor which works fine.
However, once I close the editor, click somewhere else, then click back to the custom properties of my custom control, the code has disappeared. If I look at the source code however, the logic is visible. Its a little frustrating, as whenever I want to use the editor, I need to copy my code from the source and paste back into the editor (to help with formatting, showing errors as I type etc)
Has anyone else come across this and know how to fix it, or is this just another quirk of designer?
This image shows the empty property
This image shows the property has logic in the source code

Why can't Acumatica find a view?

I created a DAC extension mapped to an extension table off of SOShipment. I have two custom fields in the extension table that I'd like to add to the Sales Orders entry form, specifically the grid in the Shipments tab. When I go to the layout editor for this form and select the Grid: ShipmentList under the Shipments tab, there are no fields in the Add Data Fields tab on the right. Also, I see a yellow circle with this error in several places:
The "ShipmentList" view is not found. Try to publish the customization project.
I published the customization project, but the error persists. To my knowledge, we haven't done any customization that would've touched the ShipmentList view. What is the issue here and how do I resolve it?
Since you are trying to add those Custom fields to the Grid: ShipmentList(which primary DAC is SOOrderShipment), make sure you add the Custom Fields to the Correct DAC extension, the correct DAC extension should be for SOOrderShipment.
(You have to rename the DataView because in base code, this Dataview is named shipmentList. However, the editor Tool when generating Customization Script for that screen is assigning ShipmentList(Capital S) to Datamember instead of correct Dataview name. )
So, then Go to Section Screen, Select SO301000 screen, select the Grid(ShipmentList) under the Shipments Tab, select Action->Edit ASPX, then locate on DataMember="ShipmentList" (with Capital S) and replace it for DataMember="shipmentList" (lowercase s). Then click on "Generate Customization Script" and publish your Customization.
After publishing, go to SO30100 Screen, select correct Grid and you will be able to see new Custom Fields and the warning message gone.

Confused about setup type

I have my setup type dialog looking like this :
The top option is a custom one I added.
So in my next button push event, I have this :
So what I would now like to do is load up the custom setup dialog, but those features should be enabled / disabled depending on what was selected.
OR
If completer or first custom option is selected, I want to open a dialog conditionally.
Is this possible?
You can do the following:
Note the 'value' attribute of your new radio button (by default it should be '3')
Add the appropriate events with the condition _IsSetupTypeMin = "value"
Here is an example showing how to define the 'Next' button behavior to do the following:
When selecting 'typical' it will select the proj_files feature and
proceed to the ReadyToInstall dialog
When selecting 'custom' it would
go to the CustomSetup dialog
When selecting the special option it
will add feature2 and remove the proj_files feature, then proceed to
the CustomSetup dialog.

How to validate CheckBox in Kentico 8.2?

I am working in Kentico 8.2, and I want the user to have to accept all of the terms and conditions. For this, I am using a check box. If that check box is unchecked then user will not be able to submit the form.
This is not achievable through Kentico help which says that I can achieve it by making the check box multiple choice. I have done this and it works but I want the check box's own validation to work.
I cannot attach a picture here otherwise I would show you guys what I have done so far.
If anyone has a solution then please help.
Do you use the basic Kentico forms module?
You can use Validation on a field.
in the Forms module:
new field "conditions"
check "Required"
default value unchecked
Validation "Add validation rule"
select General condition
Enter text > press edit and in the code tab add the following macro:
{%conditions.Value == 1%}
add an error message
dont forget to press Apply and save the field
This worked in my sample.

How to disable group of text field in cq5 dialog using script

I have group of text field in a cq dialog. i want disable without using for loop in js. Is it possible to disable findByType("textfield").disable like this code so that all the text field in that dialog will be disabled
I don't think you can achieve it in a single statement. However, you can use the CQ.Ext.each to loop over the collection of textfield and then disable them.
Assuming you have the handle of the parent container such as dialog / panel (in this case a dialog), the code would be as follows.
CQ.Ext.each(dialog.findByType("textfield"), function() {
this.setDisabled(true);
});

Resources