Table Widget Needed - sitecore

I have a requirement to build a table widget for sitecore 8 update 5. They should be able to choose the number of columns from 1 to 6 and then edit the content of the table in experience editor.
I know tables can be created using the rich text editor but they really want this widget.
Finally my question is being new to sitecore what would be the recommended approach in building this widget? Keeping in mind they want to be able to choose the number of columns between 1 to 6 and with as many rows as they want and edit in experience editor.

I have done this in the past by using a hierarchy of child items. The data source for your Table rendering may have a field for a header or styles and its children define the rows. Rows have children to define cells. You can use edit frames with insert, delete and move up/down buttons for both rows and cells. If you need to limit columns to 6 or fewer, you may need to implement a custom button rather than use the standard insert button. The cells can then have whatever fields you need or dynamic placeholders.

Related

Oracle APEX Interactive Grid Filter on Shuttle Columns APEX 19.2

APEX Interactive Grids have a nice OOTB feature for filtering columns as long as they are represented by text areas, or text fields or selects. As soon as you change them to multi-select or shuttle they are no longer filterable with the out of the box functionality.
Is there a workaround where one could create a custom filter perhaps with a dynamic action?
I just need to search for a string in the field.
Use case is a multi-value column that holds tags and I just want to find records that contain one of the tags.
This would be handy for prototyping where you don't want to create a tags table and many-to-many mappings etc.
I'm using APEX 19.2
Thanks!
It is not possible to add a filter to a shuttle because the each row might contain more than one value (return/display value). So Apex internally won't know what to show when filtered.

Is there a way that POWERBI does not agregate all numeric data?

so, I got 3 xlsx full of data already treated, so I pretty much just got to display the data using the graphs. The problem seems to be, that Powerbi aggregates all numeric data (using: count, sum, etc.) In their community they suggest to create new measures, the thing is, in that case I HAVE TO CREATE A LOT OF MEASURES...Also, I tried to convert the data to text and even so, Powerbi counts it!!!
any help, pls?
There are several ways to tackle this:
When you pull a field into the field well for a visualisation, you can click the drop down in the field well and select "Don't summarize"
in the data model, select the column and on the ribbon select "don't summarize" as the summarization option in the Properties group.
The screenshot shows the field well option on the left and the data model options on the right, one for a numeric and one for a text field.
And, yes, you never want to use the implicit measures, i.e. the automatic calculations that Power BI creates. If you want to keep on top of what is being calculated, create your own measures, and yes, there will be many.
Edit: If by "aggregating" you are referring to the fact that text values will be grouped in a table (you don't see any duplicates), then you need to add a column with unique values to the table so all the duplicates of the text values show up. This can be done in the data source by adding an Index column, then using that Index column in the table and setting it to a very narrow with to make it invisible.

How deselect a radio button on select of another in power bi?

I have used chiclet slicer to achieve radio button,
In my case from 3 measures I have taken 3 chiclet slicers, While clicking on a single radio button it is working fine, but on selecting another how to deselect the other two radio buttons.
I have data in 3 different measures "daily", "weekly" and "monthly".
My requirement is on the select of any those rest two options should be deselected, which is the default behavior of the radio button.
Or you can suggest me if there is any other way to implement the radio button.
I've always achieved this using the standard slicer and a hidden table with the needed labels and/or values.
Create a table by using "Enter data" or by using DAX, and put in it your 3 labels "Daily","Weekly","Monthly", I will call the table "MyTable" and the column "SwitchLabel"
Create a slicer with field "SwitchLabel", in the selection control enable "single select". (you can change the orientation in the "general" section).
Create a switch measure like the one below:
SalesSwitch = SWITCH( SELECTEDVALUE('MyTable'[SwitchLabel])
,"Weekly", [WeeklySalesmeasure]
,"Daily", [DailySalesmeasure]
,[DefaultMeasure] --optional "else", if nothing matches or there are multiple selections
)
Put the "SalesSwitch" measure in the charts.
The slicer/filter on the "switch" table must be present on every page that uses the measures, otherwise (without filter), it will always fall in the default case.
One limit of this solution is that it cannot change the X axis, in fact you are just calling different measures based on the selection.
If you need to also change the X-axis use Seymour's method with buttons and bookmarks.
There are many ways to implement the same need.
Buttons + Bookmark (built-in)
Slicer + Switch (built-in)
custom visuals in the store
In general, I prefer built-in Power BI functionalities because for enterprise production solution you do not want to rely on custom tools not officially supported by the software vendor.
Therefore, if your project is a real work then my suggestion is to use the Buttons + Bookmark built-in functionality. For your case you need:
Buttons
Bookmarks
In practice, create 3 buttons: Daily, Weekly and Monthly.
Next, create a bookmark with the default view, calling it Default.
Then, update one bookmark for each of the three view. It could simply be hiding or showing a visualization in the same page. Please note that a hidden visualization will not trigger any computation when the page is opened.
Finally, set the action of clicking the button to direct the user toward the bookmark.

How to change the icons for tables displayed in Power BI Desktop field list?

I can see that some tables have different icons, and I would like to be able to decide which icons is associated to a table.
I have tried creating an empty table with just measures in it, but the icon stays the same as for regular tables. I cannot figure out why the first table called "Totals" in my example of tabular model gets a different icon in Power BI Desktop field list.
I would like to find out how Power BI Desktop decides to assign which icon to a table.
See screenshot, the green arrow is pointing to an icon that is different from all the other tables in the model.
You can make any table look like the one you have on the top:
Hide all columns in a table (right-click a field, select "Hide");
Once all columns are hidden, save pbix file, close, re-open.
Essentially, the icon changes when a table contains no visible data fields, but has DAX measures. Designers often use this trick to organize their measures in one place, instead of assigning them to many different tables.

OpenOffice Calc complex functions

I'm wanting to set up a Calc sheet that will offer me stock reorder points on items that sell at a fast rate. In other words, using =Wanted In Stock # - (cell quantity) lets me know if I need to reorder the item or not. I have set up an example of this to further explain what I'm looking for.
The cells in Red tell me how many I need to order to maintain stock on hand wanted. Cells in Yellow show me I have plenty of stock in store, thus nothing to order.
The Yellow cells are just used for show and do not need anything else. The Red cells are what I'm wanting to get complex functions/formulas for. I'm wanting to do 3 things, if at all possible:
Have the Reorder columns hidden unless the item needs to be ordered. Though this isn't essential if it cannot be done
When items need to be reordered, have the column cell show with order count and have red background. Again not essential if cannot be done
Once finished with inventory on hand and reorder cells showing, then I would like a formula to print off a sheet showing the color, item # (306, 1041, etc), order quantity with red background. Those not needing to be reordered wouldn't appear on final order sheet. This on the other hand is really what I'm looking for
Is this at all possible? Or does anyone have a better suggestion?
It sounds like this report is what you are looking for:
To do this, first arrange the data into a single table:
Then select the table (cells A1 to D9) and go to Data -> Pivot Table -> Create, pressing OK to use the current selection. Drag "Color" to Row Fields, "Item" to Column Fields, and "Reorder" to Data Fields. (For LibreOffice, if it says "Data" under Column Fields, select it and press the Delete key to remove it.) Expand "More" ("Options" in LibreOffice), uncheck Total Columns and Total Rows. Then Press OK.
To hide everything that doesn't need to be reordered, right-click on the cell that says "Sum - Reorder" and choose Filter.... Under Field Name select "Reorder". Under Condition select ">", and set value to 0. Then press OK.
To practice using pivot tables, there is an example at http://dwmallisk.blogspot.com/2015/01/using-libreoffice-calc-to-create-pivot.html.
For more complex reports, it might be helpful to link your spreadsheet to the Base component of OpenOffice.