I have a dialogflow intent which includes different parameters.Shown as below:
1.png
I set generic "number" for all number parameters such as "Years to Average Principal" and generic "percentage" for all percentage parameters.Like this:
2.png
When I say something like "Change vacancy rate to 56%" or "change Years to Average Principal to 5", it works well.But when I say a sentence which includes two or more parameters with same type, it sets the first value for all parameters.I used the "Change depreciation percentage to 30% and down payment to 45%" phrase and the result is following images:
3.png
4.png
As I have to use only one intent and one action,would you please help me what should I do to have separate values for different parameters?
I hope I could make it clear. Thanks in advance,
Good try using the "is list" setting for a parameter! Unfortunately, you only set it for one of the parameters, so it treated that as the list and then used the first matching value for the other parameters since both matched the rule for percentage. If one was for percentage and the other for currency, it might have worked better, but probably not.
Two (untested) thoughts about how to get this to work (and it is a good attempt to solve the problem of entering multiple values at a time):
You can try to see if setting all the other parameters as lists will work as well. But this still might have the problem of setting one parameter to a number and the other to a percentage.
Look into Developer Composite Entities. This will let you create a composite entity that contains both the name and value and treat it as a single Entity. Then you can specify, in your sample phrase, that you will accept a list of these Entities.
Related
I was trying to enable multi-select for Owner in Employee Time Activities and wanted to try based on below article.
https://asiablog.acumatica.com/2018/01/multi-select-selector.html
Then override view like below:
https://asiablog.acumatica.com/2017/11/sql-in-operator-in-bql.html
However, after I added ValidateValue = false in field:
I am getting this error.
I looked at the custom attribute and I don't think it could be replaced with anything keeping the same implementation.
So, is there any other way I can accomplish multi select feature to allow display Employee Time Activities for selected employees at once besides the ideas mentioned above?
Thanks.
Your primary issue is that DimensionSelector is different than Selector.
Secondary thing to keep in mind that when you do Multiselector you would need to update the field that holds the values to have a longer length. The way a multiselector works is that it stored the saved values as a ; (semicolon) separated string. so if the field was 10 long you would want to expand to whatever you expect the max number of selected values would be, e.g. 40 would be 480, 40x10 + 40x2, 10 being the original size, 2 being a semicolon and space. (hope that makes sense :) )
Next you would have to update all the functional business logic to then parse that string and loop each, in this case, employee for the functions.
I am speaking very generically here. So not sure what you're actually attempting to do here, but one would assume that if you were selecting multiple employees you would want records to reflect accordingly.
So I am looking to write a function code that will assign different values to different answers.
I.E if someone responds with a "strongly agree" I need a 4 value assigned but if they responded "agree somewhat" I need a 3 assigned.
I imagine this uses a combo of IF, OR and AND functions but I am unsure
Create a lookup table (on right in photo) to store your mappings. Then use a VLOOKUP to convert your string input to a score output. See photo below with setup & usecase
I've been trying to figure this out for the past two hours. I need to create a nested IF statement based on this info. Here's the question:
Incentive: A dollar amount which is based on a percentage discount of the house price as indicated on the Data section of the spreadsheet. It's given only to selected customers complying with any of these conditions:
The house located in New Jersey, zone 2 and is a multiple dwelling.
The house located in California, zone1.
The house located in Florida, single unit.
And here's an image of the Excel provided:
This is what I currently have:
=IF(OR((B10="New Jersey", C10="2", D10="Multiple"), (B10="California", C10="1")), ($B$4*E10), "No"
Any help is appreciated. Thanks in advance!
=IF(OR(AND(B10="New Jersey", --N(C10)=2, D10="Multiple"), AND(B10="California", --N(C10)="1"),AND(B10="Florida", D10="Single")), ($B$4*E10), "No")
You need to:
include a ANDstructure
get the right datatype for your C column (is it number, or is it text)
As previously stated, the error lies in your logic structure. Try the below formula:
=IFERROR(IF(OR(AND($B10="New Jersey",TEXT($C10,"#")=2,$D10="Multiple"),AND($B10="California",TEXT($C10,"#")=1),AND($B10="Florida",$D10="Single")),$B$4*$E10,"No"),"Error!")
We start with the OR function inside the IF function because we want to check if any of the following conditions are true. We follow that with three separate AND functions, each one testing your parameters. Should one of these AND functions return true for each statement within it, you will get $B$4*$E10 as your value; otherwise, we return No. I chose to wrap this all up in an IFERROR so that you can capture any potential errors (should they occur).
Also, I handled for the potential "number-formatted-as-text" issue by converting it to a number within the calculation.
Hello i'm having problems with getting this to work. What i'm trying to do is when you insert a set of measurements i want excel to show the ( In this case products) which are closest to those measurements.
here is a picture:
The result i'm trying to reach is when you type in the measurements you get product(s) and the manufacturer which are closest to those measurements.
Any help is greatly appreciated.
In essence, what you are after is an index+match function. It will allow you to find a value in one list, given a corresponding variable. In this case, given a measurement, it will find a manufacturer and product combo in your list.
Your problem is that you will need to adapt your data to allow for this. For example, you need to decide whether you only want the closest match for measurements or if you need the closest match that is greater than the measurement you provide.
It is also possible that you'll need to split your measurement column into two different columns (unless all you need is the total area irrespective of individual lengths).
You could potentially avoid the index+match by using conditional formatting, but that would still require the data manipulation.
Given the information you provided, the answer will never be much more informative than this. But this should get you started and the following steps can be made easier with help from google.
I would like to randomly display one of the last seven entries from a particular channel. I tried using offset="" but that happens to be exactly the opposite of what I need. I also considered using a date option: only show entries after a certain date, but that would only last for a while before it had to be modified.
Any serious suggestions will be seriously considered.
Thanks.
There's really no great way to do this natively with expressionengine.
Check out the AB entry ids addon. here's a specific example that should be what you're looking for: http://www.addonbakery.com/docs/ab-entry-ids.html
Just add orderby="random" to the nested channel entries tag pair and limit the entry ids query to 7.
http://devot-ee.com/add-ons/ab-entry-ids