How can I do a combination of Match.Optional and Match.OneOf in checking data? I want the field to be optional but if assign by a data either String or Date type only? I've check the docs but didn't see a combination of it. Is it possible? Thanks!
check(input, Match.Optional(Match.OneOf(String, Date)));
Related
I'm trying to add a field on my form that suggests different ID's in the database. I'm getting the error suggest_field.ID does not support the startsWith function. Is there any way to change this so that I can use the Suggest box with numbers
Since your IDs are integers and not strings they do not have a startsWith function. You can use (#datasource.items..Id).map(String) as your suggest box options and then autocomplete would work. Just be careful with value bindings as the types will not match - you may have to ditch bindings for value and use the onAttach and onValueChange events to convert the type to/from an integer and then set your datasource item's ID value (use parseInt(string) to convert a string to a number type and use number.toString() to convert a number to a string).
I am trying to use the MessageAttributes parameter in AWS SNS POST request. This is to customize the Sender ID (by AWS.SNS.SMS.SenderID). I am trying for Germany phone number and hence is allowed to customize the Sender ID. Can any one help me with the correct syntax?
Thanks,
Subhajit
You need to send 3 key/value pairs for each attribute:
MessageAttributes.entry.${index}.Name=${attributeName}&
MessageAttributes.entry.${index}.Value.DataType=String&
MessageAttributes.entry.${index}.Value.StringValue=${attributeValue}
${index} is the numerical index of each attribute, starting with 1
On the second line you need to specify the type of the value. Most common cases are String.
The third line is the actual value. You can see more information in the link above, I have only used strings and StringValue.
All the values need to be url-encoded for obvious reasons.
I was able to solve it using the following:
MessageAttributes.entry.N.Name (key)
MessageAttributes.entry.N.Value (value)
I tried to use this:
https://{CompanyTenant}.attask-ondemand.com/attask/api/task/search?{FieldName}={FieldValue}&apiKey={APIKey}&projectID={projectID}
Get Error!
my point is to find a {taskID} that has a given {FieldValue} on the
specific {FieldName}.
Is FieldName a custom field or a system field? If it's the latter, that query should work, but if it's the former, you'll need to search for DE:{FieldName} as it's a Data Extension field.
I need to create an EDT that will use DimnesionValuesLookup.
So I've made an EDT with reference to my View that has DisplayValues for my specific dimension type, also I set formHelp property as DimnesionValuesLookup. And when I'm trying to open lookup on query search criteria I get an error:
Form should be called with parameters
I looked into the Init() method of DimnesionValuesLookup and found out that I need to pass DimensionAttribute as a record.
How can I do this?
Your comment did not answer my question, but I'm assuming you have a way to identify the name of the attribute for which you want to lookup values. Using the name you can select the DimensionAttribute record that you need to call the lookup form by using the findByName method of table DimensionAttribute. After that you can call the lookup form. Standard AX does something very similar in form DimensionValueInterval, take a look at the lookup method there.
I am using custom SPgridview with Filtering, and Sorting. In Filtering for the Query I have used has a condition as follows.
" AND SupplierActiveStatus LIKE '%{0}%'"
This has two values in DB. "Active" or "Inactive". This filter applies perfectly when you filter by Inactive. Due to "like" condition for the Active users it shows both types of uses without Filtering.
Please help me to find the correct filter expression to equal two strings.
Thanks in Advance.
Why not get rid of the LIKE and just say:
AND SupplierActiveStatus = '{0}'
Since you have only two statuses, there's no reason to match on a wildcard with LIKE