how to customize angular2-query-builder for getting static or dynamic value - customization

on creating a rule by angular2-query-builder I want to allow users to select the static value or select that from a specific field.
how can do it?
I can add a new feather to angular2-query-builder?

Related

Display value as a link

I'm using oracle APEX 19.2.
In interactive report i have list of value in one column, so is it possible to Display value using as a link to the page and how?
Thank you in advance.
'f?p='||:APP_ID||':3(page number on which to redirect ):'||:APP_SESSION||'::::variable_name:'||variable_value
variable_name = variable on page where you want to redirect.
variable_value = value for above variable. (can be set to report column value)
You can simply add something like above in your column (SQL script) which you want to work as link. Then set column type as link under Identification. Add #COLUMN_NAME# (with hash) in link text under Link.
All of this will be available after you select respective column under that report in page designer.
To understand URL better use this.
Click on your column select type = link and change the option scape characters to no and thats it.
If you want to link outside
For the column you want to use to link outside change
Identification -> Type to Value: Link
And then it's possible to define
Link -> Target : Page n

QuickSight: How can I use ifelse() or any other alternative for multiple conditions according to input provided in the added parameter?

I get the option of ifelse() in the Functions list when I am trying to add a calculated field while editing the data, but do not get it from the 'Add' option where I get the option to Add title, Add description, Add calculated field, Add parameter. I get options like sumif, avgif, countif but there I can provide only one condition.
I want to create an ifelse(0) function with multiple conditions dependent on a parameter value which user selects from a dropdown.
If you want to add ifelse() function you have to add it at the Dataset section. it is not available in Data analysis section.
If you want to add multiple choice values in the parameter, then you have to add the list of items by
click on Add Parameter
in the "Create new parameter" dialogue box, select multiple values then write the list of items by each line in the below text area.
then click on the create.
Currently IfEsle() is not supported in analysis based on SPICE dataset. If you want to use IfElse() in analysis convert SPICE dataset to a Direct Query dataset.

In active admin is it possible to create a dynamic confirm message to a batch action?

ActiveAdmin's page says you can have a dynamic form by passing a proc http://activeadmin.info/docs/9-batch-actions.html ... I want to use a dynamic confirm message. any ideas?
For example... if i'd like to list all the selected ids in my confirm message--
or more specifically i'd like to list a column of the selected active record object.

Ember: How do I remove dynamic segements from my route if their values are null?

I have a search route with many parameters. At the moment my URL contains all of the parameters set to default values if they aren't set by the user. I want to be able to remove, add the parameters to URL depending on whether the user has selected them. For instance. If the user has selected both min and max prices and sizes it would be;
minprice/0/maxprice/5000000/minsize/0/maxsize/10000/
But if they have only selected price it would be;
minprice/0/maxprice/5000000
I have tried to use the serialize method in my search route, but that seems only to pass the dynamic segments to the router which I have defined, with the rest coming up undefined.
So how can I dynamically add/remove dynamic segments to my route?
Thanks
I ended up using a computed property on my search object. On the property I check for changes in other search properties, I then return a property called 'FullUrl' and use that in my route as a dynamic segement. This gives me complete control over the url.
On a page refresh I simply parse my computed property in order to get my search object properties and maintain state.

JasperReports: Passing in a list of lists as a datasource

I need to populate a few subreports with lists of different objects. Basically lets say i have the following:
Subreport on used Vehicles
Subreport on new Vehicles
I create a vehicle bean class with variables as strings and create getter and setter methods for the same. Then in my datasource I pass in a List<List<String>> as detailRows. detailRows contains a list for new vehicles and a list for used vehicles. So lets say, i pass detailRows in the data source.
Question is how do i pass these two lists to the two sub-reports? Can i use
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{newVehiclesList}) as a datasource for sub report 1 and
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{usedVehiclesList}) as datasource for sub report 2?
Is there anything else that needs to be done apart from what i mentioned? Do i need to create and pass any variables? Is the appropriate use of the list of lists as i have listed above or is it $F{detailRows}.get(0)?
I created a field detailRows in the main report as type list. I then pass the following to the subreport data source expression, new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{detailRows}
Is there any way i can pass the newVehiclesList from detailRows to the sub-report?
Thanks!
Selecting your SubReport you can set the property "Connection type" as "Use a data source expression" and inside the property "Data Source Expression" you set this:
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{yourFieldHere})
Where your "yourFieldHere" is a list (don't forget to set the "Field Class" inside your field properties as a java.util.List as well)
Ok, then you need create two fields with the Field Class as java.util.List, one for each list (newVehiclesList and usedVehiclesList).
Put your two SubReports wherever you want and click on each one doing the following steps:
Change the "Connection type" to "Use a datasource expression" then change the "Data Source Expression" to new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{yourField})
Done.
ps: In order to use the fields inside your newVehiclesList and usedVehiclesList you have to create them inside of their own subReports.
i was the same problems with you and i solved it using the tag List of jasper, i used datasource in my class java, for example:
parameter.put("MyList", new JRBeanCollectionDataSource(ListObjects));
in JRXML
In palete of Jasper, choose the tag LIST and drag and drop in your relatory
after choose
create new dataset
create new dataset from a connection… ...
in data adapter choose new data adapter - collection of javabeans
use a JRDatasource expression
go in lis of parameters and choose you list op objects (MyList)
now go to outline of jasper and
- dataset properties
- edit and query filter ... ...
- javabean
- search you class (I using eclipse, so it's easy to search my class)
- add fields to use