Condition Filter - Code/Widget For Portal?

JDX7913
Tera Guru

I was wondering if it is possible to replicate the "condition" filter selector of the platform side onto a widget for the portal?

I want this:

find_real_file.png

To be on a widget for the portal. Is it even possible? 

1 ACCEPTED SOLUTION

Yeah np 🙂

I was able to find the actual widget that displays the conditional builder.

 

So the widgets go like this for anyone who is looking for something similar:

  1. Data Table from URL Definition
  2. Data Table
  3. Filter Breadcrumbs
  4. SN Desktop Filter <-- This widget contains the code for the conditional builder. 

 

Either way, thx for the initial help @patricklatella 

View solution in original post

7 REPLIES 7

patricklatella
Mega Sage

Is the goal to show the widget when the condition is met?  Or literally to have the condition builder shown in the widget to be used to filter a list or something similar?

@patricklatella The ladder, so to have the user use the condition builder to build out the query that they want, etc. 

Ah...OK.  What's the purpose of the widget?  Is it something like a simple list type or something more elaborate?  If you want to allow users to filter a list of records you could use the "Data Table from URL Definition" widget displayed on the "lf" page (with whatever modifications you want).  This provides a condition builder to the user.

find_real_file.png

@patricklatella I see, however, when I try to drill down the widget (as it is an embedded widget within another widget).

I am unable to find the HTML that displays the conditional builder. I would like to know how they are doing it, in case, for example, if I want to change the color of "AND" from light blue to gray or change the wording of "All of these conditions must be met".

I see that the embedded widget within "Data Table from URL Definition" is "Data Table" and the "data.filter" is the variable that holds the encoded query from the conditional builder. However, nothing in the HTML points to the actual conditional builder.