Bind ViewModel command to MvxCollectionViewCell - mvvmcross

I'm working on MvvxCross clone of iOS AppStore
and I want to bind click on an individual app cell to my ViewModel command.
Does anyone can point me to a sample of code how this can be done?
Here is the source code of the clone app
https://github.com/L3xer/MvvmCross-AppStore

Related

PHPstorm console input not working during debug sessions

I'm using a PHP script which expects user input from a command like fgets(STDIN). The problem is it no longer works in the newest version of PHPStorm (10).
The same works when I run it directly (without debugger enabled) and anything I enter in the console is sent to the script (on direct run).
But during a debug session, when I try to input text at the script's prompt, it does not go to the script. My best guess is that the new REPL feature is overriding user input in console during debugging. I say this because pressing the UP/DOWN arrows opens up a popup with all PHP function names.
It used to work correctly with last version.
How can I send user input to my PHP script with this new version? Am I missing something here?
I'm not sure if this is the same thing, but I was running into this same problem, and I was able to get it working by deselecting the "Use Console Input" checkbox in the PHPStorm Console.
John's answer is perfect.
I want to mention that the Use Console Input is a tiny icon in sidebar of the debug console. I provide you by this image

SAP HANA: not able to call xsjs file in HTML

I had an SAP UI5 application project in which one of the pages is product.html and a xsjs file getProductCat.xsjs.
Now I made some changes in HTMl page from notepad. When I try to open in HANA's web browser the changes are there but it is not able to connect to xsjs file. However, if I try to open through browser it connects to xsjs but the changes are not there, it seems it's opening the old file.
As I am new to SAP UI5 so I think I am missing some basic step.
Go to HANA client installation folder, run the following command line to get the help for HANA content activation:
C:\Program Files\sap\hdbclient>regi help activate
Action:
activate
What:
inactiveObjects (all inactive objects in the current workspace)
package (all objects in a package)
packages (all objects in a package and its sub-packages)
trackedPackages (all objects in all tracked packages and their sub-packages)
object (specific objects)
Call "regi help activate <WHAT>" for more information.
after you changed the xsjs file, did you activate it? You need to setup your workspace for the xs app. Did you?
Actually, this is not sapui5 question. This is a HANA XS application related question.
-D

Create new specified folder with AS3 and AIR

I am relatively new to the AIR world and need some help (on Windows 7 operating system). I tried searching for help, but I am dumbfounded as what to do. My knowledge of ActionScript 3 is fundamental and I am completely new to working with Adobe AIR. I will keep this thread short and not go into great detail about the rest of my application.
Any help is appreciated, I am completely lost.
Steps:
The user runs my Adobe Air application.
(and it does open, just the buttons don't work yet)
User clicks the "Save As" button and is prompted with a window to choose the desired directory.
After they choose the directory the directory path is stored in a String variable.
Then the user clicks the "OK" button. This will grab the path directory variable and create a new folder. The folder will have the name from a variable string.
Here is a sample code for selecting a directory
protected function browseBtn_clickHandler(event:MouseEvent):void
{
var browseFile:File = FileUtils.documentsDirectory();
browseFile.addEventListener(Event.SELECT, fileSelected);
browseFile.browseForDirectory("Select Local Folder");
function fileSelected(e:Event):void {
browseFile.removeEventListener(Event.SELECT, fileSelected);
if(localDirPath.text != browseFile.nativePath){
localDirPath.text = browseFile.nativePath;
changed=true;
}
}
}
this is a sample, localDirPath is a TextInput where I display the selected path, changed is a flag, so you use the File class in AIR for Desktop.Check the documentation File Class Reference check the methods that contain "browse" like browseForOpen, browseForSave, createDirectory

How can i back to the previous folder in a cloud app ? WP8

I'm doing a Cloud application. I have 2 VIews (RootView,FolderView)
I can navigate through multiple layers of folders (folder inside another folder).I used the same view to display the content of each folder.Only the properties of my element binded to the view are changing when the user click on a folder.
The problem I encountered is that im not able to back to the previous folder with the "back" button...Because the user doesn't navigate to a different view when he click on a folder...
When I click on the back button I come back to the root.(The rootView).
I tried to used the Navigate() function to reload the same view on the click on a folder but it seems that the OnNavigatedTo event is not called ...
What can I do to be able to back to the previous folder ?
I had to use this line of code to create a new instance of a view...Then I was able to navigate as I wanted with the back stack...
NavigationService.Navigate(new Uri(String.Format("/Views/BDocs/FolderView.xaml?id={0}", Guid.NewGuid().ToString()), UriKind.Relative));

Script Task - Add existing file as link

I've been looking for an answer to this for a bit now but couldn't find anything. I was wondering if it is possible to add an existing file to the project created under the script task in an SSIS package. What I want to be able to do is to add one file called Helper or Utility to the solution and then add that file to all the script tasks for common functions. This is so if I change the class, it gets pushed through to all script tasks.
I know that I can add a reference to a DLL and add it to the GAC. I have tried this and it works. I've also tried adding the file to the projects and that works too.
This is just another solution that I'm trying, just in case I'm not able to deploy the DLL in prod. Any help will be appreciated. Thanks.
Firstly you need a master copy of your classes, you can copy them from an existing Script Task using the same process below but in reverse.
Open the Editor for the Script Task and on the Property Explorer click on the Project File (the st_[Guid] ), in the Properties window you’ll see the Project Folder location. (This location gets recreated every time you edit the script task)
In explorer, copy your classes to this folder
On the Project Explorer, click on the “Show All Files” icon
Right click on your files and add to Project
You can use regular VS functionality for linking files:
Right click your script project
Add > Existing item...
Select files to be included in your project
In the bottom right corner of the Open file dialog box you have a drop-down with 2 options: "Add" or "Add As Link" - select the latter one and you are done (see image below)
We can not use relative path after adding pages using Add link. Each user need to correct the path before running the project. The script task uses its own path.it doesn't run from package path which is the problem.