Set Default Shape Scheme Spotfire - shapes

When using the "Shape by Column Values" in spotfire it assigns different default shapes for columns values.
If you change the default assigned shapes THEN switch columns THEN go back to the original column the new shapes I have picked have reverted to the original default assigned shapes.
Is there somewhere I can pre select the default shapes of these column values?
This is a problem because I am switching back and forth with a document property dropdown menu.
Thanks for any help

Related

Is there a way to display a different graph only when you select a graph variable?

first, i wanna show only pie graph.
and only if i select one of the pie graph fragments, I'd like to show the corresponding bar graph value.
Is there a way?
In QlikView
Open the chart preferences
Add the calculation condition = GetSelectedCount(FieldName) = 1 (More about GetSelectedCount function)
Open Error Messages
Select Calculation condition unfulfilled
Enter the message. It can be a plain text or expression/calculation
Now if nothing is selected in Director field (or more than one value is selected) the error message will be shown
If only one value is selected then the chart will be calculated
In Qlik Sense
In the chart properties expand Data handling and add the condition in Calculation condition and the message in Displayed message (as in QV the message can be plain text or calculation)
Nothing is selected (or more than one is selected) and the message is shown
Only one value is selected and the chart is calculated

Add header row to listbox

I am using listboxes to display data in userforms in word. However I am not able to set header captions or figure out how to make it possible to click on the header to sort by that column.
GUI.Search_ListBox.Clear
GUI.Search_ListBox.ColumnCount = 5 ' Columns
GUI.Search_ListBox.ColumnWidths = "120;80;70;120;300"
GUI.Search_ListBox.ColumnHeads = True
'GUI.Search_ListBox.RowSource = "Hello;gkjfl;hsjgh;hdfjhgkj;fdjghjkdf" 'here it fails!!!
With VBA, simply set the ListBox.ColumnHeads Property to True.
Alternatively, you can also change the setting in the ActiveX control's Properties dialog:
If the button is disabled on the ribbon, you'll have to enter first.
More Information:
ListBox.ColumnHeads Property (Access)
EDIT:
You need to specify the headings in the rowsource:
Column headings are enabled and either field captions, field names, or the first row of data items are used as column headings.
I just create another list box and place it right above the primary listbox, make it flat etc. Then use the header row as the row source. That way any calculations made in the header row shows on the form as well.

Setting shape position to book layout in vba

I want to use a word macro to set the position of the shapes in the document to book layout (see screenshot). But I can't find any reference which member I need to set for this (probably because my word is in german and this is called differently in the macro).
Can anyone tell me how to set the horizontal layout of a shape to book layout in vba?
[update] The following did the trick:
Shape.Left = -999994
Shape.LeftRelative = -999999
Shape.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
In the most recent versions of Word the macro recorder gives no help for graphical objects. The next best thing you can do is to look at the properties available for the object in the Object Browser (F2).
If a graphical object has "text wrap" formatting then it belongs to the Shapes collection, so the list you need to look up is that of the Shape object.
In there you'll find the property RelativeHorizontalPosition, which takes a member of the WdRelativeHorizontalPosition enumeration. Looking at that list there are a number of options, none of which has "book" in it.
So the next step is to insert and format a Shape with the desired positioning. Then in the Immediate Window (Ctrl+G) you can type:
?ActiveDocument.Shapes(1).RelativeHorizontalPosition
Then press Enter. This will print a number that corresponds to the list of Enumeration members.
You can also test the effect of the various members by assigning them in the Immediate Window:
ActiveDocument.Shapes(1).RelativeHorizontalPosition = wdRelativeHorizontalPositionOuterMarginArea
Press Enter.
What you'll see is that there is not an enumeration member for every option in the dialog box. And that various positioning options in the dialog box correspond to a single enumeration member.
For your specific question, wdRelativeHorizontalPositionInnerMarginArea corresponds to the dialog box option you indicate.
ActiveDocument.Shapes(1).RelativeHorizontalPosition = wdRelativeHorizontalPositionInnerMarginArea
Besides the above, you need to use the LeftRelative and Left properties, as well. Take a look at those settings in the Immediate Window after using the dialog box and play with them, putting the image on odd/even pages.If it disappears - it's off visible portion of the page, which you can see in Reading View. In a nutshell, you need the NEGATIVE numbers to lock the image to the margin or page side. Positive numbers position it absolutely.

Add some (Master) Shapes to another (Master) Shape in Microsoft Visio 2013 x64 when add a (Master) Shape to the Page

I want to create a new Master Shape in the Microsoft Visio 2013 x64 like the Class Master Shape in the UML Class Stencil.
When add the Class Master Shape to a page, it appends two Member and one Separator Master Shapes in itself automatically. Furthermore, can add more Member and Separator Master Shapes in it.
I was thinking that it adds other Master Shapes in itself by some written VBA codes; however, when I checked the file of the UML Class (Metric) Stencil in the following full path, I got that it uses no VBA codes, not at all.
D:\Program Files\Microsoft Office\Office15\Visio Content\1033\USTRME_M.VSSX
The file extension is "Visio Stencil (.vssx)" instead of "Visio Macro-Enabled Stencil (.vssm)"; so, it can't have VBA codes.
I know that I can do something by adding some new Rows in the Actions Section of the ShapeSheet; however, it doesn't exist any action Rows to add fresh Member and Separator Master Shapes for Class Shape.
Figure 1 - Separator Shape with two additional options in the Context Menu and without any related rows in the ShapeSheet
Figure 2 - Display a Bar to insert Separator Shape
Figure 3 - Member Shape with two additional options in the Context Menu and without any related rows in the ShapeSheet
Figure 4 - Display a Bar to insert Member Shape
When I do RMB click on a Class Shape that is placed in the page, it has two new options in the Context Menu:
Show Template Parameter
Show Stereotype
And I see related Actions' Section Rows for them.
Figure 5 - Class Shape with two additional options in the Context Menu and related rows in the ShapeSheet
When I do RMB click on the Member and Separator Shapes in added Class Shape, can see "Insert "Member/Separator" before/after"; however, when I add Member and Separator Master Shapes on the page directly (not in the Class Shape), when I do RMB click on them, can't see extra options in the Context Menu.
Figure 6 - Separator Shape with no additional options in the Context Menu
Figure 7 - Member Shape with no additional options in the Context Menu
I checked their ShapeSheet and can't find any related rows for above-mentioned actions.
Now, my question is that how can I create a new Master Shape with the ability to accept some other Master Shapes without any VBA codes like Class Shape in the UML Class Stencil that is created by Microsoft?
This feature is called "List" (structured diagram) in Visio (was introduced in Visio 2010). To allow this sort of functionality (allow some shape to "accept" others similarly to "class" shape), you need to declare the shape to be a "list", by setting the user property User.msvStructureType="List" in it's shape sheet. To declare type of items it should accept, you also need to set the cell User.msvSDListItemMaster = USE("Your item's master name"). Means, you can just draw a plain rectangle (for example) and then convert it into a "List" by adding these two user properties. There are more options available for lists/container (such as margins, behavior, etc).
The MSDN article describing this functionality in details: http://blogs.msdn.com/b/visio/archive/2010/01/12/custom-containers-lists-and-callouts-in-visio-2010.aspx

Pie Chart in QlikView - Controlling Colors

I have a calculated dimension that yields following values: 'N', 'P', 'K'.
On top of that is an expresion. Also I am using PIE CHART to represent the data.
The numbers are calculated ok. I need help in selecting colors for the dimension values. There are predefined colors that each dimension values needs to have. How can I imprement that? In "Expression" Tab -> "Background Color" I can't reference the dimension, since it it a calculated dimension.
I appreciate the constructive feedback.
With some chart types comes a 'Colors' tab in the chart properties window. If you go to that tab you will be presented with numerous color options for your different dimensions (calculated or not):
Change the colors to your liking and watch the Pie Chart update.
Check the 'Persistent Colors' checkbox to keep colors assigned to dimensional values.