How to make a Pop-up table appear in Workshop Palantir Foundry? - palantir-foundry

I want a pop up to appear showing some stats on the load of a module in Workshop, Palantir. Please help how can i achieve this?

Workshop just released a new feature that allows you to set a “modal” layout component. Whereas previously you could only add a “drawer” that button now offers to add an “overlay” and in the config you can choose either the drawer or modal layout.
From there you can add widgets and otherwise build the content and then trigger it to open and close with Events, just like the drawer.

Related

Hiding a ribbon button when specific Dynamics CRM Web Resource is in context

Like most of dynamics crm programmers know, we can add "web resources that are not associated with any entity" to the sitemap. If such a customization is made, when user clicks that link, web resource will be opened and the buttons in the application ribbon will be added to the ribbon section of the dynamics crm.
What I am wondering is if there is any way I can hide this global buttons that are in the application ribbon based on the web resource on the page.
Let's say I added more than one web resources to my sitemap, namely a.htm and b.htm. Let's say I have a custom button named x in the application ribbon. Right now x is displayed both for a.htm and b.htm, but in reality I would like to hide the button when user clicks on b.htm from the sitemap.
Is there a way to accomplish that?
You could use the following (unsupported) code to hide the Ribbon button (the 'Run Workflow' button in this example):
var btnRunWorklfow=top.document.getElementById("account|NoRelationship|Form|Mscrm.Form.account.RunWorkflow-Large");
btnRunWorklfow.style.display='none';
You can also use ribbon editor available in codeplex to disable your button based on your javascript.
Refer to: http://crmvisualribbonedit.codeplex.com/
I figured there is no supported way of doing this.

grouped tab navigator as3

hi is it possible to create/ extend from tab navigator or another component to create a tab navigator where tabs are within tabs. I.e grouped. I have been trying to find some info on this but there is very little available. I have attempted to do something as follows but I cannot successfully get it to work. Any expansion or information on this would be great
Thanks
You can try Flex MenuBar with custom skin for it. Or, maybe it will be easier, you can try to write own component based on Spark ButtonBar (or TabBar) with List as suggested in Flex: Skinning menuBar - is it possible?

Flex 4 (Air) - ShowDialog-like behavior

The ShowDialog function in VB.NET allows a child window (form) to be opened in front of another without letting the user interact with the parent window until the child is closed.
To see what I'm referring to (in Windows), open up notepad, click help > about, and then click back on the main window. You'll notice that the dialog flashes and makes a noise. That happens with dialogs in a great many applications, and that is what I'm trying to achieve.
I can't seem to find any way to replicate this in Flex 4 (Air) applications. Any suggestions?
EDIT 2
Based on your comment, you then have to create a new window component(mxml component with the functionality and interface you want defined in it) and can then attach it to the click event of the link/button on the main window. And for the focus issue you can use setFocus from IFocusManager component

WinRT AppBar changing on context (or ignoring right click)?

I am porting a Desktop WPF application to WinRT and I'm facing a little issue.
I had a ItemsControl and I had a context menu on every item to delete / edit the item.
I have been told that PopupMenu are not good in WinRT and I should use a AppBar.
I think I'm doing something wrong or I misunderstood that.
I thought that I could put that options on a AppBar and when I select an element, popup the bar and click where I need.
The problem is that the AppBar will show up when I right click on any part of my app, so that buttons will show up with an item selected.
So can I change the layout of the AppBar on different contexts (because it seems that Microsoft wants us to use AppBar as context menu without context capabilities) or only show it when I want via code?
Would be good to have a TopAppBar with some App-wide options and a BottomAppBar just for ListView's item context menu.
Or maybe I'm doing all this stuff wrong and I have to use another approach to put extra options on the Listview's items.
You are thinking about this correctly. AppBar is the place where you should put all your non-essential and selection based commands.
The guidelines here and here suggest that they should be arranged as follows:
Navigation commands should be in TopAppBar
Commands related to selection should on the left side of BottomAppBar
The rest of page specific commands should be on the right side of BottomAppBar
Contextual commands should only be shown when a relevant item to that command is selected. For that purpose you should set Visibility of these commands accordingly. Also AppBar should open automatically when an item with contextual commands in it is selected. You can do that programmatically by setting its IsOpen property. You should also set it to sticky mode by via IsSticky property.
If you're using MVVM you can bind your viewmodel properties to all Button and AppBar properties mentioned above.
There's a CustomAppBar control available in WinRT XAML Toolkit. I haven't used it myself yet but it has a couple of extra features that might prove useful in your case.

Monodevelop: can't drag widgets

I am trying to use monodevelop. Just at the beginning I came across an issue:
I was following a tutorial on building a Gtk application (http://monodevelop.com/Stetic_GUI_Designer). I was trying to drag a button from the Widgets Palette. Nothing happened. I'd been trying quite a few times without any luck.
After a break I launched monodevelop again and I simply placed a button on the window of the application. After that I removed it, dragged VBox container, and placed menu bar on the window, according to the tutorial instructions. I was pleasantly surprised.
By the second try the same problem occurred - I was not able to drag any widgets. Dragging was beginning, there was a “+” sign at the cursor and then - nothing was happening. I cannot figure out what happened by the first time, what the difference was. Have anyone had a similar problem? Monodevelop looks promising, but I can't go on with it. (I tried placing 'Fixed' container on the window, with no result - I could not drag it.)
(monodevelop v. 2.4, ubuntu 11.04, Polish language.
I did look for an answer to my problem, without much luck, that is why I post this question. The problem is described quite precisely. There is a probability that others encountered the same issue.)
You need to drag a container on the form first before you can add widgets to it. The VBox container is an example of a place where you can put your widgets.
If you want to place widgets where ever you want you can use the Fixed container. If you want things to align you can use the VBox, HBox or Table containers. Placing in a widget in one of the fields will automatically adjust the size of this field to fit the widget you have dragged into it.
So basically,
Create a form
Drag a container on the form
Drag a widget inside the container.
These widgets are not to be confused with the custom made widgets (in your Solution browser, right click the folder User Interfaces and click Add Widget...). These are like forms. I use these to create GUI's in advance so I can call these while the program is running.
FYI: if you want to create code for a widget (like a button) you can't just double click it like in Visual Studio. You need to select it, the go to the properties pane, and change the tab from Properties to Signals. You can then double click the "signal" to create the event for which you want to create code. For a button this is usually the Clicked event (somewhere at the bottom of the list, you'll need to open the Button Signals)
You can always visit the IRC channel of Monodevelop on irc://irc.gimp.org/monodevelop (IRC.Gimp.org #monodevelop)
I also sit in this channel and can help with smaller problems and I also still use Monodevelop 2.4.