I am using sap.ui.model.odata.v2.ODataModel and at a certain point of time in my app I would like to look into what changes have been made (to be more precise, how many entityset entries have been created). It's quite easy to do when accessing the mChangedEntities property of the model. However this is not "allowed" by the project guidelines. Has somebody an idea how to tackle this issue? I don't quite understand why there is a hasPendingChanges() function, but not a getPendingChanges() function.
Thanks!
Please check the source code. The ODataModel, implementing OData Version 2.0, has a method getPendingChanges, at least in UI5 version 1.34.8. As it has no JSDoc comments it is not shown in the documentation.
Related
Since Typo3 v10, one should use the context API instead of $GLOBALS['TSFE'].
I read this (https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/Context/Index.html), but can not understand how to come from here to GLOBALS['TSFE']->id...
I simply do not understand how...
Can someone post an example how to get $GLOBALS['TSFE']->id?
In all current TYPO3 versions $GLOBALS['TSFE']->id is still available and the way to go in most cases.
There has been a change in where it's initialized though, so it might be it's not available (anymore) in your case. If that's the case you'll have to add more information about where you want to use it.
I have seen Fix messages with a tag name and value like 7804=PSD7
But I couldn't find any reference for tag 7804 on https://www.fixtrading.org/
What could this tag mean? Is it part of a standard fix protocol or a custom tag?
Separately is there any good resource for learning about Fix protocol and its subtlety
How should one go about it? Like, are there any bookish Questions Answer things that one
could practice and learn in-depth or any open source projects that one could start
looking into or some problem one could take up and solve that could automatically lead
to understanding.
In practice, the vanilla FIX data dictionary is merely a suggestion.
The reality is that every counterparty makes custom changes to the message and field definitions ("the data dictionary"). Every single one. In a 10+ years with FIX, I've not met one that doesn't.
When writing an app using one of the QuickFIX engines, the first thing you need to do is to get ahold of their FIX interface specs, read them, and edit your FIXnn.xml data dictionary file to match. Sometimes counterparties will provide this file for you.
I would like to retrieve some properties e.g. jcr:created using Sightly or any related syntax for the panel component in AEM adaptive forms. 1
The previous Sighlty syntaxes that I have attempted to retrieve the crx/de properties include:
${properties.jcr:created}
${pageProperties\[jcr:created\].getTime.toString}
${guidePanel.jcr:created}
${resource.jcr:created}]
I have tried the following syntaxes but unable to retrieve the value from the property and in worst cases, the component may not be rendered on screen.
I have looked up on Adobe forum sites and past stackoverflow questions that other people may have asked. I have tried the solutions and given answers but was unable to achieve the result. I would greatly appreciate for any help or sharing of applicable knowledge if you have encountered similar issues or previously attempted to solve similar problems. Thank you!
You can always create Use class in Java or Javascript to access these properties, it's cleaner and testable. Better than that, you can use Sling Models which are more readable and easier to implement, here is a good presentation about it https://www.slideshare.net/accunitysoft/understanding-sling-models-in-aem
Properties of resources are readable without any extra definitions needed.
So you might want to check what resource is handled in your component by adding this:
${resource.path}
Then you can check the returned path in CRXDE if there really is a jcr:created property available at this path - which should be the case if you are accessing a resource that has a proper sling resource type. Then this call should give a valid return value:
${resource.path} ___ created:
${properties.jcr:created.getTime.toString}
If the path is not displayed as well, then it would help if you could post
the repo path of the content resource you are processing
the sling:resourceType
the path to the component's ht(m)l file that you are using
I'm having a little bit of a hard time getting into mvvm. I'm writing a simple app, Notebook. I have one viewmodel, it's name is actually ViewModel. It has an ObservableCollection of Notes inside and methods to save and load those from Isolated Storage. My only Model is Note.cs, it implements INotifyPropertyChanged and I'm of course RaisingPropertyChanged.
I've also got two view, both of them are user controls. One to display list of notes and one to edit the one chosen from the list.
My questions are:
Where do I create an instance of my vievmodel?
How should I implement going from the page with list of notes to the page with detailed view after choosing one Note to edit? At the
moment I'm saving the index of Note in App.xaml.cs, going to the next page and setting
the DetailedView DataContext to the right Note in OnNavigatedTo, but
I don't think it's actually the perfect solution.
Where should I save my Notes? I guess Application_Closing in App.xaml.cs is the right place to do it, but I'd have to have my viewmodel as a global object there, is this the right approach?
Additional question:
I have to add possibility to group notes. I guess that class Group with dictionary (GroupName, howManyNotes) is going to be allright since I don't have to be able to for example write all notes from selected group. Do you think there's a better approach I should think about?
Thanks for respones,
MichaĆ.
I would suggest you take a look at Calibrun.Micro which is a great framework for MVVM. You can get some sample from the CodePlex.
I have used that in a bunch of Project, and will give you flexibility in case if your project grows in size.
Google for Caliburn.Micro sample and you will find a number of sample for all technologies like WPF, Silverlight, Windows Store, Windows Mobile.
Caliburn.Micro CodePlex
I've been developing simple PHP/MySQL web sites for some years.
Never used a PHP Framework before and I understand I'll need to know OOP, no problem.
I'm about to start a SaaS project of my own.
A)
So far, I've seen Yii generates the CRUD and pages according to the DB.
Is it easy to modify the generated code?, like, adding a new DB field and its form field without not generating again all the stuff every time I change something in the DB and losing other customizations?
I mean, I'm 100% sure the generated DB code and pages are not going to be enough and I'll be constantly adding and correcting fields, and adding more tables etc.
B )
My project will include a Shopping Cart and Calendar(for events, tasks, etc.).
Does Yii has these options or at least an easy way to implement it like the Authentication options or Database listing, etc.?
C) Does documentation has this explained as a tutorial/book or is more like a reference(minimum explanation that only advanced user understand how to integrate it)?
thank you very much
Yiiframework has excelent documentation (you can start from here). Also there is an extensions area in the downloads section where you can find all available yii extensions.
All your questions can be answered if you follow their easy tutorial.
A) Yes, it's easy. You will just add code for new fields not changing it all.
B and C are answered by Stratosgear very well.
Is it easy to modify the generated code?
Yes it is. If you later decide to add more fields to the table, you can do that from your Phpmyadmin using sql commands.
You also need to edit the generated class file adding those new fields to correspond with that on your table.