Return current path of PowerBI Workbook - powerbi

Is there a way in a PowerBI Query to return the path of the workbook?
I am looking to create an environment variable that detects whether I am working on the file locally or if it has been deployed to the powerbi.com website.

I'm not aware of a direct way to do this. You might try using the Folder source and see what the difference in result is when you run a refresh in the service (it could be disabled, btw) vs. when you run it on the desktop.
Could you also tell us why you'd like to know this? I'm sure there's a specific problem or scenario you're trying to solve for and maybe there's another way to solve it if not using the technique you're asking about in this question.

Related

How to use different IDE with Netsuite

I'm admittedly new to Netsuite, so this may be obvious, although I've been unable to find anything specific one way or the other. In fact, I don't even attend any training until next week, but I'm trying to get part of my development environment setup with one of the editors/IDEs I prefer. I know that Netsuite offers an Eclipse plugin, but I'm not an Eclipse fan. I'd prefer to use either WebStorm or TextMate. (I'm on MacOS Sierra)
I tried installing the WebStorm plugin, but it's throwing an exception and is not functional. I submitted a bug on GitHub, but what I'd really like to know is if it's possible for me to write my own script to upload/download files to the cabinet, so I could just roll my own feature in TextMate. Is this possible, and if so, how? (Just a link to the docs is perfectly fine)
In other words, is it possible via their API, to submit changes to a script I've been working on in another editor/IDE? Or interact with our cabinet? (Not sure if I'm using the proper NS verbiage, but hopefully you get my intent) I'm thinking about writing a Python script, that accepts a local script path as a parameter, that will then get submitted to our cabinet. Thanks for the help in advance.
I wrote a plugin for JetBrains IDEs (I use WebStorm specifically though) that mimics NetSuite's Eclipse plugin. Feel free to take a look. It is open source and has ~1500 downloads at the current moment.
https://plugins.jetbrains.com/plugin/8305?pr=
If you are the same person that opened this issue (https://github.com/Topher84/NetSuite-Tools-For-WebStorm/issues/7), it has been closed and was due to using an older version of WebStorm.
I don't like eclipse personally, so I just make my scripts in whatever and use Netsuite's script backend to upload the scripts as 'new' when I'm done. If I want to change them, simply use their backend again to 'edit' the script. You'll see a simple editor, where you can change things, or you just copy and paste what you have in there. It's a little more work than something integrated, but it does work..

SharePoint 2013: Consuming query (url) filter in custom webparts

I am building webparts and self hosted apps for sharepoint 2013, I want to consume the Query String filters that the user sets up, the process should be as simple as specified here on this microsft site.
Unfortunately I dont get the option to send values to 'my web part' but I do for other stock webparts that come with sharepoint. Which leads me to believe I need to implement IFilter or equivelent in my webpart, I have found information into IFilterConsumer interface and IFilterProvider interface on msdn which seems to be exactly what I need, however the documentation has one snag:
NOTE: This API is now obsolete.
So My question is, what is Microsofts new intended way of doing this with Sharepoint 2013.
Ultimately I need to read query variables in the HostWeb request inside my AppWeb code.
Edit: Apparently IWebPartParameters is the new interface for this.... trying to implement now.
I have also tried whats suggested here:
Passing parameters through sharepoint sitepage to web part Still not working, at the moment I have implemented IWebPartParameters, IWebPart, IWebPartRow and none of my functions that implement these interfaces are being called. I must be missing something in the manifest or features file maybe?
Thanks in advance
Crash
Ok the answer to this question is simple, firstly you can only do this in a dev environment with sharepoint installed, as you need access to the sharepoint.dll.
Then this thread answers the question http://www.manning-sandbox.com/thread.jspa?threadID=19791, with the following code solution which is here http://www.markitup.com/BookCodeSamples/TestingWebPartConnections.zip

integrating a database with easy manual maintenence

I have some information I want to try to integrate into a project I'm working on. It would be "publically maintained" by volunteers in the community I would be working with.
The idea I had was to keep things simple for the people doing the maintenence: I would give them access to a shared google docs spreadsheet and let them do their thing when stuff needed to be updated. I would update the database using this spreadsheet on some automated daily or weekly interval.
I've never worked with databases before. My project is in C++ and my searching around for a database to use seemed to point to sqlite. The data wouldn't be anything complex, just a unique id with a name. maybe an additional piece of information but unlikely.
I'm mostly concerned about getting the data to be an actual database. I looked around for some conversion tool(I assumed spreadsheet -> database would be trivial?). I'm up for any ideas on how to make this work. Thanks
Using google docs with output as tsv/csv and sticking that in sqlite will work fine for me, thanks.

How do I programmatically (C++) check the code signing date of an EXE in Windows?

Is this possible? How do I go about doing it? Does it require admin rights? (I would not think so)
A pointer to a help page or link is fine - no need to provide code. Given my difficulty with he code signing cert and setting it up in our build environment I am not sure I am googling with the right terms.
EDIT
After some searching I did find some possible sample code
http://support.microsoft.com/kb/323809/en-us
I will try it out.
Use either WinVerifyTrust or SetupScanFileQueue(SPQ_SCAN_USE_CALLBACK_SIGNERINFO)
Have you looked at MSFT's authenticode?

Could not find the ColdFusion Component or Interface Answer.

I sometimes get
Could not find the ColdFusion Component or Interface Answer.
and simply doing a refresh fixes the problem.
This is not case where the program is being refreshed from ftp while I try to browse from it: no development is being done. But every once in a while I'll get it while trying to do a createobject.
Q: Is there a best practice for sleeping and trying again if instantiating a component fails?
Are you using a cluster of servers? If so perhaps you have one server misconfigured - perhaps a missing mapping - and when you get served from that server you see the issue? That might explain the way it seems to only sometimes happen.
By the way, instansiation of CFCs should always work - you should not be trying to code around this issue by sleeping and trying again.
Phillip, any chance this is on cf 9.0.1, and you're using the "import" keyword?
The reason I ask is that I've seen behavior -- and logged a bug report on it -- where if I have two different object creations on the same page (or in another CFC... doesn't matter), both from the same package, and I'm not using the fully qualified CFC name but instead am using import, then the first createObject() will succeed and the second will fail with the "could not find ... " error.
I wonder if something like that could be at work here.