Intel AppFramework $.mvc.route and transition - intel

I'm making an app using the Intel Appframework MVC but I can't find a way to use transition with $.mvc.route.
I tried to combine:
$.ui.loadContent("mydiv",false,false,"pop"); //from the documentation
with the mvc in this way:
$.ui.loadContent($.mvc.route("controller/action/"+var,false,false,"pop");
The result is that the controllor run and do his job, no transition showup and from console I get this error:
Uncaught TypeError: Object #<error> has no method 'indexOf'
Does anyone have suggestion? or can you advice me about a community somewhere for this framework?
Thank you in advance

Solution from gitHub... Maybe usefull to somebody:
Call the route in this way:
$.mvc.route("controller/action/"+var+"/false/false/pop");
and then in the controller:
action:function(var1,var2,var3,var4){ $.ui.loadContent(var1,var2,var3,var4) }.
Hope could be usefull, it worked for me.

Related

Why I can't access to RunCommandLineApplicationAsync?

I'm trying to build CLI. I took an example here
And in Program class author use return await builder.RunCommandLineApplicationAsync<TestCmd>(args);
Like a start point of program, but when i'm trying to do the same i have an error:
How can I solve this issue?
I figured out why, because i thougth that it's from Microsoft.Hosting, but i need to intall this package: McMaster.Extensions.Hosting.CommandLine.
Close please this topic

The type 'foo.Info.AgentDetails' exists in both 'foo.dll' and 'foo.dll'

In my asp.net web application, one of my page, I am storing a list of objects(List<AgentDetails>) to ViewState. After that when I try to get it back as (List<AgentDetails>)ViewState["ViewStateAgentDetails"], i gets an error like
The type 'foo.Info.AgentDetails' exists in both 'foo.dll' and 'foo.dll'
I can't understand what is happening here.
I got stuck with this issue.
Could anybody help me out of this?
Thanks in advance.
If i interpret it correctly from answer to my comment, i can see that there might be some other DLL , that can have different dll name says bar.dll, but ultimately has same namespace and class name. So to fix this , find that second DLL, and use extern or change namespace to solve this error.
More explanation - http://blogs.msdn.com/b/abhinaba/archive/2005/11/30/498278.aspx
How do you allow two DLL's with same namespace.class to exist in the same application?

UI.Component Issue in Meteor?

I am using latest version of Meteor is 0.83 and iron-router is 0.82.I got one error as shown below the code:
if (!UI.Component.get('itemImage'))
helpers();
Error : Undefined UI.Component
I am new to meteor.So i didn't get any idea about this.Please suggest me how to do?
Thanks in Advance.
There's no such thing as UI.Component anymore. It got replaced by Blaze.View, but the API is a little different, so you need to be extremely careful and try to resist the temptation to simply replace all the occurrences of UI.Component with Blaze.View.

Can't access PFObject as dictionary

I am starting to use Parse and in the documentation it has examples to use the PFObject as an NSDitionary like this:
// Create the post
PFObject *myPost = [PFObject objectWithClassName:#"Post"];
myPost[#"title"] = #"I'm Hungry";
but i am getting a compiler error:
"Expected method to write dictionary element not found on object of type "PFObject"
But if I access the myPost PFObject like this, it works:
[myPost setObject:#"I'm Hungry" forKey:#"title"];
What is the problem?
I though that PFObject could be accesses as a dictionary?
thanks
I would check that you are using the latest version of the Parse SDK. This is new functionality and my guess is you haven't downloaded the SDK since this feature was introduced.
when i try your code at my side it gives me success message. I think you are using old parse library.
Thanks.
Downloading latest XCode should help. Subscript syntax is available from Xcode 4.4+

Flex: errors in generated *WatcherSetupUtil?

If the planets are not correctly aligned when I run a Flex 3.5 build, the .swf produced immidiatly throws a null-object error from the _MyAppWatercherSetupUtil:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at _MyAppWatcherSetupUtil/setup()
at MyApp/initialize()[/Users/wolever/my_app/MyApp.mxml:0]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2131]
at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3400]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3223]
at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3069]
Is there anything I can do about this?
I've tried debugging it, but it seems like the Flex framework goes out of its way to make sure it's impossible to debug into the generated codeā€¦
I just upgraded an old Flex 3 app to Flex 4.6 and had the same problem. What worked for me was a project clean. So far so good.
--Keith
I was struggeling today with a WatcherSetupUil/setup() TypeError: Error #1009: Cannot access a property or method of a null object reference.
For me it looks there is a strong connection to databinding. For me it looks this happens if you do not take care of the rules that Flex asks for. I found a resource online I upload here: "Flex data binding pitfalls: 10 common misuses and mistakes." After changing - in my case especially error 6 - Using the wrong bindable event name - took the WatcherSetupUtil away.
Perhaps this is helpful for you too :-).
http://www.adobe.com/devnet/flex/articles/databinding_pitfalls.html
It would be interesting to have a glimpse at generated code for "setup" method for your MyAppWatcherSetupUtil class
Just an idea - did you try to set the compiler flag -keep? Like this you may have a look how your class looks like.

Resources