How do I define a property to have only two legal values (strings 'foo' or 'bar') in Protege?
Select your datatype property,
Click on "Ranges" and then from the tab "Built in datatypes" select xsd:string.
In the tab "Data range expressions" enter {"foo", "bar"}
Click "OK"
When you enter a value outside this range, some reasoners like Fact++ will show that as inconsistent, others won't.
Related
As a reviewer, I've to add an empty REVIEW column in a DOORS module. Actually I can add columns easily but they're associated to other attributes and there is no "emtpty" option to choose.
Thanks in advance!
I'm sure you want to add content to the column as a result of your review, like "OK" or "not OK".
Content is stored in attributes. So, you first have to add a new attribute on object level to the module with the desired data type (like predefined values, boolean, string or text), and then add a column to your review view which shows the new attribute.
I have a drop-down list with fixed values as i then can adjust the display name. The drop-down list is connected as an input to a "load on demand" data table via a custom query.
I would like to have a list as an input. However, I cannot manage to make it work with multiple items.
In my query i have:
WHERE b.SomeFIELD IN (?parameter)
The parameter is linked to the documentproperty where the value is set as an array. It handles a single value perfectly. Multiple values do not work. I tried:
Value 1, value 2
"value 1", "value 2"
{"value 1", "value 2"}
Any ideas how to make this work? Thanks!
Spotfire passes that "array" as a comma separated string. You need to merely set the on demand setting to the property you created versus trying to edit the SQL in the information link. '
Here's a good tutorial
"Rinka" - field type "checkbox"
"Vadybininkas" - field type "text"
I want: if "Rinka" is selected "First" when in field vadybininkas will be "Pirmas"
I want: if "Rinka" is selected "Second" when in field vadybininkas will be "Antras"
I want: if "Rinka" is selected "Third" when in field vadybininkas will be "Trečias"
My code: #If(Rinka='First'; 'Pirmas'; Rinka='Second';'Antras'; Rinka='Third';'Trecias'; NULL)
But this if statment not work I plaece this code in "Default value", but field "Vadybininkas" is still empty, what is wrong ?
Default value is only calculated ONCE when the document is opened. You need to change your field "Vadybininkas" to "Computed" and put this formula in the "Value"- Section.
In addition you need to tick the property "Refresh fields on Keyword change" for the Rinka- Field or set the "Automatically Refresh Fields"- Property of the form.
Also NULL is not defined in Notes, it will interpret NULL as a non allocated variable name which will have the default value of "" (empty string). NULL is not a defined state in Notes. Just a point but worth knowing!
I'm trying to develop a calculator type from in InfoPath where the user will be asked to end weight,height, and age. I will then take those values and use them to look up other values that are based on that number. For example if the column headers are Gender, Age, Height, L, M, and S. I want to find the 'L,M,S' values associated with that height. All values in the case are different. So if height were 45, L=-1, M=1, S=2; if height were 50, L= -2, M= 5, S=3.
In excel you a Vlookup with the syntax of :
Dim A as double
Dim Height as double
height = txtHeight.Value
A = Application.WorksheetFunction.VLookup(height, Range("C2:F652"), 2, False)
This would give you the "L" value for the row in which that height is located.
How can I do this in InfoPath? I have seen that are cascading queries you can do for dropdowns and comboboxes, but I want them to be able to type in a value, find a value on a SharePoint list based on that number and then return that number to another text box to use for my calculation.
If the values you want to look up are in a SharePoint list, then you need to create a data connection to that list. Make sure to include all the fields you need. Don't load the data connection at form load.
Let the user enter the height. Create a rule for the height field that fires when the field changes. Add an action that sets the query field for the secondary data source to the value of the height field, then query the data connection. Now the secondary data source contains the record with that height and the fields in the secondary data source contain the values. You can copy the values into text boxes on the canvas.
More details:
After you have set up a data connection to the Heights list, click the Heights field and add a rule by clicking New > Action.
Click the Add button and add an action to set a field's value.
Click the button next to the "Field" text box. If you don't see the top drop-down to select a different data source than the main data source, click the "Show Advanced View" link. Select the secondary data source for the Heights list, open the node for queryFields and the node below that and select the Height field.
Click the fx button next to the "Value" text box, then click "Insert Field or Group" and select the "height" field of the main data source.
OK out of all dialogs.
Add another rule to query for data.
Select the secondary data source to the Heights list.
Add another rule to set a field's value. For "Field" select the main data source field into which you want to copy the looked up value. For "Value" select the secondary data source and drill into the dataFields node until you see the field names. Select the desired field and OK out of all dialogs.
The rules panel should now look similar to this, but with your column names.
Test the form. Enter a valid height into the height field and click out of the field. The corresponding value from the height list will be written into the textbox. The screenshot shows the SharePoint list in the background with the item for heigt "66" highlighted. The value returned to the InfoPath text box "getV1" is from the "V1" field of the SharePoint list.
Hope that makes it clearer.
I'm using iReport 5.0.0 and JasperReports Server 5.0.0.
And my problem is: I have 2 input control, the one is Boolean Type and the other is text box, and the value of text box depend on the value of Boolean is "true" or "false. When the user select "true", I want to show "Y" in text box. and when he select "false" I want to show "N" in text box too.
Please help me to solve this problem.
Suppose your Input_Controls's IDs are
input_boolean
input_textarea
For Each input-control there will be parameters inside report, namely
$P{input_boolean} and $P{input_textarea}.
To answer your question, In 'Default Value Expression' of
$P{input_textarea} use Ternary Operator expression like this
( $P{input_boolean} ? "Y" : "N")
This will works, like charm.