I am using an MVC app to integrate Intuit Anywhere and an MVC app. I see there is a server control for the blue dot menu:
<!-- Blue Dot Menu -->
<div runat="server" id="blueDotDiv">
<ipp:bluedot></ipp:bluedot>
</div>
How do I integrate this server control inside of an MVC site?
There is an Azure MVC Web Role template that you can use as a reference:
https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0200_DevKits_for_Intuit_Partner_Platform/0300_Windows_Azure_Program_for_Intuit_Anywhere/0003_Intuit_Anywhere_Azure_Web_Role_Templates
The div that wraps the Blue Dot menu in the ASP.NET WebForms sample project is used to control its visibility on the server side (hidden when user is connected), but you can implement hiding the control any way you want.
When the button is clicked, it calls the server side resource you have specified in the intuit.ipp.anywhere.setup javascript function, which in turn calls the AppMenu API to retrieve the content of the menu:
https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0025_Intuit_Anywhere/0020_Connect/0010_From_Within_Your_App/Add_the_Connect_Button
https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0025_Intuit_Anywhere/0060_Reference/0010_AppMenu_API
Related
I need to a add a button to the navigation or ribbon area of the CRM 2015 on-premise. This button should open an existing Silverlight web resource. Is that possible ?
EDIT:
This MSDN article mentions that the URL holds a value of a URL or an HTML web resource, does that mean that Silverlight webresource is not possible ?
Url
Specifies a URL or HTML Web Resource for a page to display in the main frame of the application when this subarea is selected.
You need to create a page to host the Silverlight control, as specified here:
To display a Silverlight web resource outside an entity form or chart,
create an HTML web resource to be the host page for the Silverlight
web resource. Then use the $webresource: directive to open the HTML
web resource.
Once it is created, make sure you reference the page web resource in your site map/ribbon.
There is a good tutorial here on how to set that up.
I want to create a modal dialog wizard using spring web flow and dojo.
I searched for embedding the flow in a dialog using embedded mode. But I found very few examples related to this. In these examples, they used JSF dialogs and tiles framework to partially render a form.
Can we do this without using JSF and tiles framework but using jsp and dojo?
Can anyone help me to create a wizard embedded in a dojo dialog using spring web flow?
I wouldn't depend on the dojo framework I believe is no longer supported with webflow. Moreover, webflow wasn't really designed (without hacks) to be embedded inside modal dialogs. It was designed as a simple "flow" navigation from html page to page.
To achieve what you want you'll have to use jquery (or some javascript library) to interact with the current flow via ajax calls to predefined transitions/fragments and manually via javascript take the response html fragments returned by webflow contents and change the contents of your modal dialog box. You could argue this is a "hack" but this is how I achieved what you desire using webflow.
A user asked a similar question a few months ago and i provided a thorough answer explaining how to use webflow + ajax + transitions in dialog boxes.
How to include a pop-up dialog box in subflow
In my web project I want to have global silverlight control (music player) common for all web pages in my project. When user click in hyperlink(want change view in web app) I dont want refresh all view with silverlight control but only part of view. Some think like in grooveshark.com. I think that for all views in my project I use PartialViews and load them using ajax(its good idea? Maybe anyone have better idea?) but I have problem. If we call action not from ajax but we write adress in web browser I get only partial view without shared layout. Also after load partial view with ajax and after them click back in browser I have updated adress in browser but not updated view(view not render).
Most important for me it's to have global silverlight object for all pages in my project and during the change view don't reload silverlight control.
Any ideas how do this?
how to use aspx menu functionality in ASP.NET MVC3. So that clicking on the menu item will poplulate the gridview.
ASP.NET MVC Does not have any Server controls like what we have in ASP.NET WebForms. It is all about writing pure HTML code by hand. ( All the server controls in Webforms also generates HTML and render to browser)
What you can do is, Have a tags for your menu item. Then on click, you can call another action method which loads all the data you want to show in the tabular format. If these menus are going to be in all pages, you can keep them inside the _layout.cshtml which will act like a Master page.
IF you want to load some data to the Table(UI) without a page reload, you can do it with jQuery ajax.
Assuming you have some markuplike this for your Menu, The below code loads response from your Action methods using the jQuery load function.
//Don't forget to include jQuery library
<ul>
<li>#Html.ActionLink("Users","List","Users",null,new {#class="ajaXMenu"})</li>
<li>#Html.ActionLink("Jobs","List","Jobs",null,new {#class="ajaXMenu"})</li>
</ul>
<div id="contentDiv"></div>
<script type="text/javascript>
$(function(){
$("a.ajaXMenu").click(function(e){
e.preventDefault();
$("#contentDiv").load($(this).attr("href"));
});
});
</script>
first you'll probably want to look into something like sitemaps for MVC, which there is a really good open source option:
https://github.com/maartenba/MvcSiteMapProvider
Then you'll want the actual menu. There is no MVC menu control, so you'll have to either create one yourself, or use someone else's. Twitter bootstrap has a nav menu that is fairly good:
http://twitter.github.com/bootstrap/components.html#navbar
Additionally, telerik has a menu that you can use as well, but this one you need a license for:
http://demos.kendoui.com/web/menu/index.html
I read that there aren't events in ASP.Net MVC.
However, I added button and when I double click it a buttonClick event was made.
So, are there events in Asp.Net MVC or not?
That is because you are using the webforms view engine. This view engine includes all the page life cycle stuff from the webforms framework. That means that you can, theoretically, use anything from webforms in asp.net mvc if you are using the webforms view engine. However, I'd strongly suggest that you don't do that. You will miss out on all the advantages with asp.net mvc and you'd be better of just using webforms in the first place.
If you are new to asp.net mvc I'd suggest that you'd use another viewengine instead as that will help you learn the framework a lot better and faster. There is a viewengine from Microsoft called Razor that you could start with.
If you're seeing a buttonClick event handler created when you double-click a button, you are likely attempting to use the Button server control. Instead you should simply include an <input type="submit" value="Button Text" /> element within a <form>. The form's action will result in the controller's action method being called on the subsequent post request.
I highly suggest that you do some do some research on ASP.NET MVC. There are several good resources, but here's a short introductory video to start with:
http://www.asp.net/mvc/videos/mvc-2/how-do-i/5-minute-introduction-to-aspnet-mvc
There are not server control events like there are in webforms. There are jQuery and javascript events that can happen in the HTML/DOM though.
If you double clicked a button on a designer canvas in visual studio, and it created a button click method in another file with a signature like public void MyEvent(EventArgs e), then you are not working with an MVC project.