Drag and drop items in combobox - c++

How can I drag and drop items in combobox to change their order? (https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.combobox?view=winrt-19041)

How can I drag and drop items in combobox to change their order?
I'm afraid you can't implement this feature, because Combobox use ItemsPresenter to display items, but ItemsPresenter does not contains reorder feature. If you want to change items order, there only way is that change the data source's order.

Related

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.

Table Widget Needed

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.

Reposition foundation dropdown on parent div scrolling

I have a lot of dropdowns in a table using foundation, the table shows a scrollbar for a large number of rows. Each row has a column with a dropdown link, which reveals the foundation dropdown menu. If the menu is open and user scrolls, the menu stays open in the absolute position but does not stick to the dropdown link.
This probably happens because I needed to seperate the dropdown link and the hidden dropdown menu list. They are seperated only in structure because the dropdown links are in a jquery sortable table and then the opened dropdowns were having wrong positions (edge of page, etc). So now the hidden dropdown lists somewhere outside the table since they are connected with #ID to the actual links
Is there a way to reposition the openeded dropdown menu with it's link?

QTableView force one cell selection

I want the user to be able to select only one cell at time. How can I set the maximum possible selection of cells of a QTableView to 1 (c++) ?
Set selectionMode to SingleSelection and set selectionBehavior to SelectItems
tableView->setSelectionMode(QAbstractItemView::SingleSelection);
tableView->setSelectionBehavior(QAbstractItemView::SelectItems);

Adding fields to datasets through GUI in SAS EG

I would like to add a couple of fields to an existing dataset in SAS EG. Can I do this through a properties dialog, without having to write code?
If you are in Update mode (easiest way - double click on any cell, choose yes), you can right click on a column header (the variable label up top) where you want to insert the new one and select "Insert Column".
you need to open table (douple clic on it) and try to edit (double click on the row filed) -> in pop up window select to transfer table in update mode. After its done, select whole row and in right click menu u will see add or delete rows options.
p.s. you can also add coloumns via similar manipulations.