Been learning Salesforce for a month now and this is the first weird stuff I have encountered and not a single documentation was able to help me
I have imported the wire from lwc properly
But whenever I'm deploying it, it says that a wire variable is NOT a known adapter, can anyone kindly help me out to resolve this please?
So dumb of me, the official documentation wasn't able to tell that I need to import some important tools
Aside from importing wire, we'll need the following:
import { publish, MessageContext } from 'lightning/messageService';
take note of this, especially those who want to use the LMS, or to communicate their component to another component that's not related at all
Related
Does somebody have somewhere a simple Component example of Algolia Places used with react-instantsearch ?
I am desperately trying to mix the two of them, but I can't figure out what to use : ? how ?
It's written in the docs that we should have a HTMLInputElement as a required container option, so how do you deal with React where you shouldn't be able to touch the DOM ?
Cheers
Arnaud
There is no sample available yet; However you can take a look at a few non-official implementations:
https://www.npmjs.com/package/react-places-autocomplete
https://www.npmjs.com/package/algolia-places-react
https://www.npmjs.com/package/react-algolia-places
We'll be building an official one soon.
While waiting for Algolia to develop their own stuff, a simple solution exists, built here :
Go to https://www.algolia.com/users/sign_up/places to get an API Key and an API Id (it's the most difficult part actually, as getting to this URL naturally on Algolia's website is so difficult that I didn't succeed yet).
Get algolia-places-react, which is the package most customisable.
Fill in your options as per the Read Me, and you're good to go !
I import it in the index.js like below.
import Perf from 'react-addons-perf'; // ES6
window.Perf = Perf;
But when I run it in the console like below, it shows me the 'undefined'.
I just want to try it and learn it, but the offical doc seems not to tell it in detail. Thanks.
There are a bunch of possible explanations here.
There is no indication in the docs that Perf.start() returns anything - it's just a signal to the package that it should start recording performance data. You need to then call Perf.stop() to stop recording and Perf.getLastMeasurements() to report the results.
You also need to be using the minified production build of React. The normal development build does not include the code required for performance measurement.
There are a couple of articles linked in the documentation that go into more detail on how to use the library. Have a look at those & your problems will probably be solved.
Without hopefully having to go into all the options and issues, does anyone have or know of a solid routing solution that is simple and just works for a React Redux combination? If so can you please provide a complete working reference including history, transitions, params, and so on?
Not sure how we ended up with 10 or more solutions to something that should be a core need for any real application, but the sheer number and constant flux (no pun intended) of the solutions out there make it seems like a nearly impossible task to zero in on anything in any timely manner. They seem to be growing in complexity as well and almost battling against each other in some cases.
If Dan or anyone else is going to link to the Redux real world example, please comment on the plan to address this issue/discussion. For simple router (or whatever we're calling it this week), or any of the other like Tiny, or the plethora of others, please clarify where history should come from (history lib router, your lib...) and why as well as how to handle params and such.
TIA
I've had good success using react-router-redux to bridge React Router and Redux. The examples on the main page shows exactly where history should come from. You get the history object from React Router and you give it to react-router-redux (via syncHistoryWithStore).
react-redux-starter-kit is a very good starter repo that has React+Redux+Router(+alot of other stuff) all configured and working. Even if you do not start your work from their repo, you can browse the code to see how it is all put together.
We are trying to implement in page editing for our cake app. We would like to use create.js for the frontend and createphp to handle the connection between create.js and cakephp. I have been doing a lot of research on RDFa and I am generally baffled by how all this links together.
What I have:
Editable interface
Endpoints via actions in cakephp
What I need:
A way to convert the data sent by create.js to my database structure and a way to send data to create.js for rendering.
I have gotten to the point in createphp where you are supposed to create your own mapper. I don't know what the mapper should contain. It mentions that is has built-in mappers (Midgard\CreatePHP\Mapper ?) but I don't know how to load those either.
I have read the documentation but it doesn't give details on how to accomplish these tasks.
Thank you for your help on the two following questions.
1. How can I convert my data from create.js to cake and then back again for the views? (possible solution createPHP but doesn't have to be)
2. How do I create a mapper for createPHP or where could I find information to learn how to create a mapper for my instance?
Yeah, the documentation is unfortunately rather sparse. I will create an issue on createphp linking to this post, to give some hints how the documentation could be improved.
I try to explain how things work:
To convert the data from the REST call to your model, you indeed need a RdfMapper instance. See the setup section of the tutorial how you bootstrap that. the bundle comes with mappers for doctrine, which you can read for inspiration if you do not use doctrine. I recommend to extend AbstractRdfMapper in that case.
To render the rdfa, you need to configure what fields of your class should be what rdf type. You can either use the array mapper as in the tutorial, or use the xml mapping, or your own RdfDriver
The whole process is working fine in the symfony2 CreateBundle.
Does anyone know of a way to import Google Calendar entries into a database using SSIS. I know I can export Calendars using the ICal format - but there is no native way to parse these files in SSIS. The only way I can think of doing it is to write a script component to parse the file. I'm wondering if anyone has any experience doing something like this what would be the best way to get the information.
I know this question was asked a long time ago, but hopefully it helps someone. You can also export your calendar as xml. Then you might be able to use SSIS with an XML source without the need to come up with script/ parser. Good Luck.
References:
http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=37648
http://msdn.microsoft.com/en-us/library/ms141093.aspx