I need to make some percentage fields, but I cannot make them like I need.
In total there will be 5 fields, with user input data format XXX%.
The first issue it that the fileds in total should sum 100% else an error message should appear.
The second issue, has to do with field format. The user should input 5 and the field should make it 005%.
Accordingly, user input 10 -> 010% and finally 100 -> 100%
Of course, the maximum input number should be the "100".
Any help?!?
Thank you in advance!
I assume the sum field total is calculated automatically using the calculate event, in that case you can use Javascript to display an error if all the field are filled and the total is not equal to 100.
For the dislpay, you need to use patterns, see documentation at : http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000490.html
For data validation, you can use validate event on the fields or manually check the value on the exit event of the field.
Related
I added a custom parameter to my transactions. I am receiving data as when I go to Reports> Realtime>View user snapshot and click on an event I can see the parameter name and a value which is good. I can also see the value when I go to Reports>Engagement>Events and chose and event and select my parameter in the 'Events in last 30 minutes tab'. The issue comes when I go to Explore and make a Free Form with my parameter as a row or column as the column would simply show '(not set)' even though I know it is set from the before views that I mentioned
Thank you
You will see a value of “not set” for a custom dimension during the first 48 hours after you create the custom dimension.
When I apply #formatNumber('00%') for a field in create form, ex.20%, the real value saved in model is 20 instead of 0.2 which is expected.
I have a field in create form, it's for a ratio in percentage, for that field I set value as #widget.datasource.ratio#formatNumber('00%'), this forces user to input a percentage and show value in percentage, however I find that the real value saved in model is number before percentage, ex. when user input 20%, a number 20 saved in databased instead of 20%.
So far, it looks that #formatNumber('00%') in percentage mode can only be used in read mode to show a number in percentage, ex. for a number 0.2 in databased, it can be shown as 20% in a table when that transformer is applied.
How can I use a #formatNumber to force percentage input and save the real number/value in databased? or is there a best practice for this scenario.
Thanks in advance.
you can with a series of transformations change the value of the input before the creation of records.
on the submit button of the form in "onClick" make a custom action :
widget.root.descendants.Field.value = ((parseFloat(widget.root.descendants.Field.value.toString().replace("%","")))/100).toString()+"%";
widget.datasource.createItem();
Replace all "Field" by the input name.
I need to make a search form where I need a range slider so a user could choose price_from and price_to. Something like this
What is the best way to implement it?
The only I have found is range type field
It is pretty close to what I need, but it has only one value while I need two values (price_from and price_to)
You are are correct to assume that you need two values (min and max). When I encountered a similar problem, I created two hidden fields for the same purpose.
To fill those hidden fields with values, I used a JS library that rendered the widget and stored the user's input in the hidden form fields:
https://refreshless.com/nouislider/
I am having a field named rpc in my elasticsearch database and I am displaying it using Kibana. When I search in search bar of kibana like:
rpc:*
It display all the values of rpc field but I want to have only those value to be displayed which are unique.
I have been playing around with Kibana4 since a couple of weeks now. I find it intuitive and simple and the experience has been great till now. Following your question, I tried getting unique results via a Data Table visualization. Why? Because I personally find it easier to understand. Following are the steps:
1. Get unique count
Create the visualization (Visualize -> Data Table). First lets get
the count of how many unique entries we have for a particular field
(We will use this in the later part for verification). I'm using
clientip.raw but as I see, it will work just fine with any friendly
field name too.
2. Set the aggregation right
Set you aggregation back to count and have a Split Rows as follows. Not doing this will give you count 1 for each field value (since it is looking for unique counts) when you populate the table. Noteworthy part is setting the Top field to 0. Because Kibana won't let you enter anything else than a digit (Obviously!). This was the tricky part. Hit Apply and you'll get the results. Unique field values and the count of each of them.
3. Verification:
Going to the last page of the table, we see there are exactly 543 results. This is how I know it works.
What Next?
You save this visualization and add it to a Dashboard. There you can always check the request, query, response and other stats.
Just an addition to the above mathakoot answer.
For the user of newer version (which do not allow bucket size of 0 anymore) just set a value greater than the maximum number of result
And report the value in the Options>Per Page field
I am using Kibana 6 so the UI looks a bit different than the older answers here.
Here is what worked for me
Create a visualization from your query, I used a line graph type (don't think it matters)
Under Data, set metrics aggregation = "Unique Count" and set field to your field.
Set x-axis aggregation = "Terms" and set field to your field.
Set Size > your number of records
Under Metrics and Axes, disable drawing of the graph, circles, and labels (this really helps the UI not lag)
Run query and then click "Inspect" and download CSV
Data
Metrics & Axes
I wanted to achieve something similar but I'm stuck with Kibana 3.1.
I simply added a panel of type "TERMS" and configured its Field = User-agent and left everything else on default values. This gave me a nice bar chart with one bar for each User-agent.
being a newbie to SSRS, I am trying to figure out the following:
say for instance I have a dataset which does a :
SELECT [cols...] from [some view]
I want to be able to further filter this based on parameters given from an ASP.NET site (I am using the AJAX control toolkit for the report viewer). There could be x amount of parameters and potentially can be filtered on 1 or more columns.
First question is, how would I filter the dataset and pass along the parameters along with which field the filter should apply to? I may have [col1] and I want to filter it with x values.
Second question Is, I want to be able to group the results per page based upon a column. So for each grouped result set, I want them to be displayed per page (per group per page).
Then on the headers of the page, I want it to display what the page grouping is. How would I do this?
In terms of what have I tried - nothing as I DO NOT KNOW HOW, it is why I am asking the question here to see what the experts (you) can suggest and guide me.
thank you!
To do this you can create Parameters in SSRS, they do not need to be in your query or anything. Then, go to your tablix and click either ROW or column depending on the filter type and set it show/hide visibility. For example I have a report that has personal information, so i have true/false parameter that hides/shows those columns, similar I have one that hides/shows any row with a -1 for the total paid.