Is it possible to set an Actions Submission Criteria that prevents submission if an array parameter is empty? - palantir-foundry

If the [property] value for a submission criteria "[property] each is not null" is an empty array, the submission criteria seems to still succeed. Is there a way to have a submission criteria that prevents an Action submission if the input for an array parameter is an empty array?

Looks like what you're asking for can be achieved by doing the following:
open the "Security & Submission Criteria" tab on your Action type
add a new condition
Click on "based on parameter"
Click on the array parameter that you want to check is not empty
click on "Length of name of the parameter you just selected"
click on "Is not"
click on "Specific value" and set 0 (Note that you might have to manually write 0 in the input field even though the default value for that input field is already 0)
This will check that the lenght of your array parameter is not 0 (which means at least 1! :) )

Related

Making Access database Form more dynamic to Data Input

I'm a beginner at MS Access. and I have created a local database to work on;
what I want to do is the following:
If the textBox named "Number" starts with specific digits, the ComboBox value to be automatically determined to x value.
if we can replace the Combobox with just a label that automatically updates the value based on number textbox, It'd be better, aesthetically.
I want this field to be automatically counted from another list that is being input by the user himself. Instead of individually counting each approved case, it'll pull off the approved cases BASED on a specific response code "0".
I tried this solution and it just does NOT work.
=DCount("[Response code]","Information Subform","[Response code] = '0'")
So for example, if the user inputs data as the following, this field should return with "2" automatically instead of the user counting them manually based on Response Code = 0
I want to my list to perform the following function: if selected a specific value, change the context of a textbox. It should act as a timesaver to write a specific dialog or script for the user.

Creating a field that is partially filled and can partially be edited

I have a table with many data rows. This table contains the field "title".
Some of the data rows have already something predefined in that field and the other data rows have this field empty.
My goal is to create a form where users can do the following for every data row: If the field "title" is filled, this field can't be edit. If the field "title" is empty, the user can write something in this field.
I haven't found a solution yet. I tried with calculated fields but these can't be edited.
Also this table and form are for web access, so the possibilities are limited.
Thanks in advance.
Run embedded macro in form OnCurrent event to execute SetProperty action. Use it inside an If Then Else conditional to set Enabled property.
If IsNull(Forms!formname!controlname) Then
SetProperty
ControlName: your control name
Property: Enabled
Value: True
Else
SetProperty
ControlName: your control name
Property: Enabled
Value: False
End
This code assumes field will not have empty string. I do not allow empty strings in fields.

how to create a textbox in ssrs for user entry as a parameter

I have a report that has three params. one is dropdown. It created automatically when i supplied
name and value, Then If we select multivalue, it shows multivalue dropdownlist.
But I am not able to create a textbox. That will act as a parameter to be supplied in report.
for that I have created a parameter, set it to allow null and datatype = "text" .
parameter visibility is also visible but as a result I can see a textbox which is a disbled one.
How can this textbox be made to work?
While in the Report Parameter Properties for the text field in question, chose Allow blank value (rather than Allow null value). In the Default Values section of the properties dialog, choose Specify values, Add a blank default value.
Now you will have a working text field that the end user can type into, and you can use that value for searches in your query.
Hope this helps
To allow user to enter the parameter value manually:
Right click on the parameter and select Parameter Properties
On the Available Values tab, select None
Click OK
Now users can manually type in the parameter value.
Click to see screenshot

access 2010 expression builder

I want a text box to contain data which is a calculation based on 2 other control field values - only if it's value is null (ie the current value of the column in the database is null).
So I entered =([control1]*[Control2])/1000 in the expression builder for the default value property - however the result always shows the textbox to be empty (even tho control2 and control2 contain values).
How can I achieve this? Can such an operation only be done in code-behind ie VB??
thanks,
KS
I think you're talking about a control bound to a field in the form's record source. And when the underlying field is Null, you want the control loaded with your calculated value.
If that interpretation is correct, you can do it from the form's On Current event.
If IsNull(Me.txtYourTextBox) Then
Me.txtYourTextBox = (Nz(Me.control1) * Nz(Me.Control2)) / 1000
End If
That will load the computed value into the text box, allow the user to change its value if desired, and store the value to the bound field when the record is saved.
If the bound field is not Null, its value will be displayed in the text box without alteration by the On Current code.
Is that what you want?
To accomplish this using VBA, add a Form_Load Event. (Open the form in Design View and in Form properties click the Event tab and choose Event Procedure for "On Load" and click ...)
This example uses [TextField] to refer to the table data.
Private Sub Form_Load()
TextControl.SetFocus
If IsNull([TextField]) Then
TextControl.Text = ([Control1] * [Control2]) / 1000
End If
End Sub

Get the value of textbox after refreshing the form

I have a continuous form that has the property that has some fields.
When I click a button on the form a Requery is processed on the form which results in updated value of some textboxes (these are not enabled, i.e. read only).
What I'm trying to do is to get the value of one of the textboxes in the form after Requery.
How do I do that?
I've tried using the Current event to get the value after the requery (refresh) but it's not working. Is there any other event that can do the work?
Just use the name of the field. For example, after the requery, use msgbox [FieldName].
Thanks for your contribution..
The problem was that the value of the field I was trying to get the value of comes from adding 2 values (a + b)
and so the solution was updating the field before saving its value to a different variable...