MFC : CFileDialog and admin shares - mfc

I force the open file dialog to start with the initial directory as \\servername, once it opens I want it to show all the admin shares(C$, D$). How do I achieve this? Admin shares will always be available on my servers. Eventually the user will select a file from this network path.

Related

How to get the path of any folder I want when I select them in django

I want the user to be able to get the path of any directory so that my code can handle the DICOM images in that directory. Is there any way? I tried using tkinter but its window is always showing out before I get on my web.

Blank applet layout coming in Siebel before OpenUI rendering happens

We are using Siebel citizen portal application (IP 15.12). After login, we reach in to a landing page with 3 applets. These applets have some custom fields etc, but there is no UI customization we did (ie no PM/PR etc).
Now when we login, a blank layout of the applet appears for a few seconds (especially first load or after clearing cache) and then renders the original applet with Open UI layout. Since this is a customer facing application, our client has a lot of concern on appearing the blank layout before the actual rendered applet.
Could anyone throw some light here? Is this an Open UI behavior, if so is there any workaround for this?
With IP 15.18, We had similar issue of the list applets not loading data on initial (home page load) after login. Only the list applet titles were displayed but the form applet loaded elements, showing the busy cursor forever...
We were getting "Error downloading file define:siebel/htmltmplmgr" error in the browser console. we debugged and found that the localeobject.js was not loading, which is the dependency file mentioned in htmltmplmgr.js...So we added preload define parameter in the htmltmplmgr.js in the beginning to load the localeobject.js file before even the main function starts...then it started working...try this...
On first load or after clear cahce, it needs to load all JS files (vanilla) and other required files in Open UI. So, this is the default behavior of OpenUI.
Nothing much we can do with this. Else you can tweak down all unnecessary files from downloading.
I found this blog very useful, you can check.
http://www.askmesiebel.com/category/siebel-8-1-1-10-upgrade-issue/
edit the file htmltmplmgr.js in below folders
$SIEBEL_ROOT/siebsrvr/webmaster/siebel_build/scripts/siebel/
$SIEBEL_ROOT/SWEApp/public/enu/23048/scripts/siebel/
go to define section and add dependency files inside the square brackets
define("siebel/htmltmplmgr",[]
define("siebel/htmltmplmgr",["siebel/siebelconstants.js","siebel/localeobject.js"]
Note that you have to edit the files in both folders you can create a backup before making changes. If you just replace in public folder when you restart siebel server files will be overwritten from webmaster/siebel_build folder to public folder . Hence you have to replace in both folders and restart siebel server and web server.

Open a file dialog over ssh and ftp to save a file remotely in QT

I want to save a file to a network server. Currently, I need to first save it locally, and then copy it to the server. The server supports ssh and ftp.
I would like instead to operate all directories and files in my GUI as if they were local paths, as follows:
Connect to the server, using ssh or ftp or tftp.
Then I click the get file button.
A FileDialog shows, displaying a drop-down list of all servers, while also including the local path.
When I choose a server, then list the server's directory, I can operate it as a local directory.
I know I can use QFileDialog in my QT project to open a file from local disk or save it, but can it do this?
Is there any way, when saving a file, to choose either to put it in the server or the local directory?

Adding FavIcon to Sharepoint 2013 Site

When we upgraded from Sharepoint 2010 to Sharepoint 2013, our favicon was no longer being displayed. An internet search offered a couple of solutions. One method suggested placing the file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\IMAGES and performing an IIS reset.
Not having access to the server and not wanting to disrupt a production site with an IIS reset, I opted to handle this with an upload to a site library and master page change.
I found the following to be an easy change to make.
These are the steps I took:
Upload your .ico file to your site / siteassets library
Make note of the URL to the uploaded .ico file (right click and choose copy shortcut from the menu
In Sharepoint Designer, open your master page file - v4.master or your custom file
Search for this line: SharePoint:SPShortcutIcon.. (if you have a custom master page and this line is missing, copy it from v4.master and place it in the head section.)
Paste the URL of your .ico file from step two into the SPShortcutIcon element on the IconUrl property
Save, checkin, and approve your master page. That's it. Your .ico file will appear in browser tabs and in the URL address bar depending on your browser. If using IE, you may need to clear your cache to get it to display.

Django: How to check admin widget of FilePathField to be file browser?

The default admin widget of FilePathField seems to be just a combo box displaying available files.
How can I make it display a file browser instead?