How can I have a field control2 which depends on another field control1? That is, when I fill control1, control2 gets filled with the same value.
If you want 'control2' to have the same value as 'control1', you should go to the control settings of 'control2' under the Formulas tab and write the following in the Calculated Value field:
$control1
Take a look at this section of the wiki for further information
Related
Since I'm new to this technology (Coach UI) I wanted to know an information, is it possible to delete a column based on the user's choice?
That is, I have a modal that contains the column fields and if I choose to hide a column it hides it dynamically.
Thank you in advance for the reply, I have been on this problem for 2 days :(
Configurations of Controls in BPM can be either provided with values or bound to a variable.
Binding configuration item to a variable will give you the ability to change it dynamically, by changing the value of that variable.
For your request, you can click on the purple icon next to Columns (image bellow) to switch to binding mode, then select a varible of type TableColumn (This BO is available in the UI Toolkit itself, open the BO to check the documentation).
I am using delphi 2007.
I want to show the user defined value for one of the TWWDBgrid** field.
For eg: I want to show GENERAL in the DB grid for the database value 1
Can anybody help?
You could imbed a TwwDBComboBox into the TwwDBGrid within its ControlType property.
Drop a TwwDBCombo onto the same form as the Twwdbgrid. Select the Items property which will initially show "<0 Items>" (ignore the 3 Items shown in the image - I got lazy!).
Check the "Map Displayed Value to Stored Value". This is most important as it displays the grid. Add the values as shown. You only mention one value but maybe there are more values than just '1' on the database.
Then select the ControlType property of your TwwDBGrid.
Select the relevant database field from the list (I have not included the image), select the "Edit Control" tab, select "CustomEdit" from the "Control Type" drop down and in "Control Name", select the TwwDBCombo control you created above.
This approach will allow the user to change the field value using a drop down. If you don't want the user to change the value, then just check the Read-Only property of the DBCombo.
how to implement a state change in TFS 2012, when any fields are changed in that work item type.
I have a task work item type which is set to "proposed". When the field/fields are changed in task work item, state should be changed to "Active" automatically.
You need to customize the work item definition and add a rule to the field. Refer to this link for details: Working with Field Rules and Assign Conditional-Based Values and Rules
Depending on the data type of a field, you can set various
restrictions on what data can be entered into that field. For example,
you can define a default value, restrict what values users can
specify, and restrict who can update the value of the field. You may
want to apply a rule to a work item field for one or more of the
following reasons:
Specify the tooltip text that appears when a user hovers over a field in a work item form.
Require the value of a string field to match a pattern.
Make a field required or read-only, or make sure that it does not contain the same value as another field.
Clear a field, or restrict further modifications of a field.
Restrict who can modify the field.
Apply a rule to a field when the value of another field has changed or is assigned a specific value.
Update:
For System fields, there is some restriction for them. Refer to this link for details: Q: What rules can be applied to System fields?
Q: What rules can be applied to System fields? A: System fields have
Sytem.Name reference names, for example System.Title and System.State.
TFS restricts customization of these fields, except for these
instances: HELPTEXT rule can be assigned to all fields. READONLY rule
can be assigned to the State and Reason fields. Most rules can be
assigned to the Title, Assigned To, Description or Changed By System
fields.
That means, you cannot apply the rule to change the state in your case.
I'm trying to add a button to an existing form (BankAccountTable). I want to add a button to run an outside process with the value of one of the form fields as a parameter.
The value is being read using this code:
str value = element.design().controlName("FieldName").valueStr();
However when I click the button Dynamics displays what fields must be filled in. This doesn't happen if the click method doesn't reference the form fields (i.e. info("click");).
How can I:
Read the value of a field without triggering form validation?
and/or
Have a button (or command buttton) that doesn't trigger form validation?
The second question, how to avoid validation, is easy: set the button attribute SaveRecord to No.
You should rarely need to access the control value directly. A better option is usually to access the bound field directly: table.FieldName.
If the control is not bound to a field, then change the AutoDeclation attribute to Yes and access the control directly: fieldName.text(). The methods text, realValue or selection is a better choice than valueStr.
Can we change the value of the inputHidden field "javax.faces.viewState" before the page render.
For the field
The value should be changed to a different length value. Can this be done by using a custom viewHandler?
Can we achieve this by extending the class to ResponseWriter.
The field is rendered by the ResponseStateManager that you obtain from the current render kit.
If you look up its API you'll see that you can't just override the field's value. You have to replace the entire thing! Since state saving is quite complex (think about both server and client algos), I would think twice about attempting this.
An alternative is using a Servlet filter to capture the entire response. The hidden field's name is standardized and you could search and replace on it. For a postback you could use the same filter to restore the param.