TOAD "Never include" option doesn't work? - toad

My TOAD version is 13.3.0.181.
I set "object loading"->"Owner name" option to "Never include" BUT the schema name is still prefixes all objects I load!
Is it a bug? Or is there another option to configure?

I'm on 13.2.0.258 and it works properly.
Did you, by any chance, load objects from files stored on your hard disk?
Because, this option is related to objects stored in the database, e.g. when you navigate to procedures node (in the Schema Browser), double-click the procedure, and its source is then opened in the Editor.
Doing so, and having the "Owner name" option set to "Never include", will omit owner name from the source code.
As you want to exclude schema name from the "Script" tab, then:
while in Schema Browser, on the right-hand side, when you navigate to the "Script" tab ...
... click the first icon in the toolbar - its name is View/Edit Script Options
the very first checkbox under "Create and Drop" block is Schema name - uncheck it
That should do.

Related

How can you rename a wiki page in Fossil SCM?

How can I rename a wiki page in Fossil SCM?
In my particular case, I'd like to rename my project (in Admin, Configuration, Project Name), but if I do that then when I click Home in the main menu nothing is displayed, because there's not yet a wiki page whose name matches my new Project Name. I'd like to rename my project, and rename my (sole) wiki page to match.
You can’t rename a wiki page, because wiki pages are identified by their name; that would be tantamount to deleting the old page. And you can’t delete a wiki page; Fossil never deletes an existing artifact.
But you can create a new wiki page (with your project's new name), and copy the old page's contents to the new one. If you remove all the text from the old wiki page, that old page will disappear from the list of wiki pages.
There's something to be said for a wiki rename command that would implement this sequence of actions automatically, but that hasn't been done so far. You can post a request on the fossil forum, and see if one of the developers picks it up. :-)
In principle it can be renamed by running the following in a SQLite file editor (if you try it from the "Raw SQL Commands" page, only the first UPDATE is successful):
UPDATE attachment SET target='new name' WHERE target='old name';
UPDATE event SET comment=':new name' WHERE comment=':old name';
UPDATE event SET comment='+new name' WHERE comment='+old name';
UPDATE event SET comment=replace(comment, '[old name]', '[new name]') WHERE comment like '%[old name]%';
UPDATE tag SET tagname='wiki-new name' WHERE tagname='wiki-old name';
At first glance it works but then you will not be able to update the content (which in fact can be useful to protect an article).
For the renaming to be effective you also have to modify the binary blob that contains the article, as well as update the deltas in case you have made previous edits.
I was working on this script that does the above automatically. To use it you have to execute the following in a console:
fossil_editor.py oldname newname repo.fossil
If everything goes well, something like this should appear:
This is fossil version 2.16 [7aedd56758] 2021-07-02 12:46:01 UTC
Artifact 61e7cc32f7 updated to 84b8195fe6
Artifact c2290869ad updated to 3ff4f96773
Artifact e993cd0331 updated to bc7e8d52df
References updated

SharePoint Designer - edit content type column (e.g. rename)

This should be possible. But it isn't. Rename is greyed out.
Here is what I did.
I added columns.
I added a content type and added the columns to the content type.
Next I assigned the content type to a list.
If I go to Content Types -> my content type -> edit columns -> I can see all my columns but I cannot change them to required/optional or even change their display name.
If I click on "Administration Web Page" I'm being redirected to the ManageContentType.aspx page where I can indeed change a field from optional to required (for example). I cannot rename the display name though... but there's simply no such option in the web interface. But I'm pretty sure I have done that multiple times with declaratively deployed content types :)
Any ideas? SP Designer 2013 SP1.
Can't tell about SPD, but in webeditor (sp2013) you can go to ribbon->list->list settings and there rename any column.
Edit: ok, i've found how to do it in SPD: go to your list, on ribbon click Edit columns; then right click on any column and select Rename

Sitecore how to hide/disable HTML tab from your Rich Text Editor

Could someone suggest how to hide/disable HTML tab from your Rich Text Editor on sitecore?
I had a look at this, but requires a change on Sitecore core rich text XML.
Problem with this solution is we need to modify the XML for each instance and what about upgrades?
Thanks.
In the Core database (you can switch using the icon in the bottom right next to the clock) you can go to /sitecore/system/Settings/Html Editor Profiles/*profile you want*/buttons/HTML view and deny read-access on that for your users. Alternatively, at least in Sitecore 6.5, there's a profile without the HTML view. It's called Rich Text IDE. You can set the datasource field of a Rich Text field to that one, and not have the HTML view.
That's only removing the HTML option on the bottom left though, I'm not sure how to remove the Edit HTML option you have before you've opened the RTE itself (where you have Show Editor/ Suggest Fix / Edit Html). Looking at This question it might be you'll have to change the XML anyway.
The way we've got upgrades and different instances handled is by having the changed file in source control, and making sure we include it when building a deployment package.
Adding onto Trayek's great answer - you can remove access to the "Edit HTML" as outlined by Alex Shyba below:
Go to the core database, locate the field definition item:
/sitecore/system/Field types/Simple Types/Rich Text/Menu/Edit Html
On the Security Tab, click “Assign” and select the role you don’t want this option to be available to. Deny inheritance of this item or specify other security settings that make sense for your needs.
I added "Everyone" and then selected the "X" by Inheritance for Items, and the "Edit HTML" option was removed.
Taken from:
http://sitecoreblog.alexshyba.com/2009/10/quick-tip-remove-edit-html-option-for.html

How can you edit Sitecore desktop shortcuts?

Anyone know how to edit the name of the Sitecore desktop shortcuts? I'm using the Advanced System Reporter module, and creating a desktop shortcut from there, but now I can't change the name of the item.
I know that you can right click on the Sitecore desktop shortcut and choose properties so change the information of the link....but how can I change the name of the shortcut?
The properties have a field 'Name', that even when I change it, the shortcut doesn't change (even after a desktop refresh).
I tried changing the 'Link' field on the properties as well, but then the link disappeared.
Do these exist in the core database somewhere? Can I get back the one that I just lost (by changing the Link field)?
Through further research, I found that for normal links, the name can be edited by right clicking the link, selecting 'Properties' and changing the 'Name' field.
Unfortunately, Links generated through the Advanced System Reporter don't update on the desktop when this Name property is changed.
It seems that the links for these desktop shortcuts are a combination of items in the core database and values in the User profile in the aspnet_profile DB table (also in core, but only viewable through SQL).
This value is stored in the PropertyValueBinary field, which, as the name suggests, is all in binary, and can't (or shouldn't) be edited.
One way around this is to:-
Create the desktop link, which will be called something by default (i.e 'SalesReport').
Open up the core database in Sitecore, and navigate to /sitecore/content/Applications/Advanced System Reporter/Links. Then find the folder for your username.
Find the item that was created for the link (in this case it'll be 'SalesReport'), and change the value of the field 'Display name' to whatever you want the link called (i.e 'Sales Report for May'.
Note: You may want to change the name of the item as well, so that it won't get lost in other desktop links created in the future and will be easier to find later. In this case you will need to:-
Go back to the desktop, right click the shortcut and choose Properties.
Manually change the end of the 'Link' field to the name you want to call the item (i.e change it from 'SalesReport' to 'Sales Report for May'.)
When you click OK, the shortcut will disappear. This is expected.
Open up the core database in Sitecore again, and find the item you're changing. (i.e /sitecore/content/Applications/Advanced System Reporter/Links/SalesReport
Change the name to exactly what you changed it to in step 2.
The link will reappear on the desktop, it'll have the correct name, and will be easy to locate in the Sitecore DB in the future.

TextMate Django Tab trigger failure

I just installed the Python Django and Django Templates bundles in Textmate. However, the tag triggers dont seem to work. I opened up a .py file and wrote manytomany and pressed tab and it didnt autocomplete.
When i click on it manually from the menu bar it works fine. Am I forgetting something? Do bundles need to be activated somehow?
You might have a scope mismatch--i.e., the scope you're in when you invoke that snippet has to match the scope(s) in which it was defined.
In your case, the default scope selector for the 'many-to-many' snippet is source.python.django, yet the scope you were probably in at the time you invoked the snippet was source.python, which is the pre-set scope when you open/create a python file.
There's two ways to deal with this, both are easy. The first is to change the document's scope; the second is to change the function/snippet's scope.
To do the first, just change the language associated with the document you are in via the pop-up menu in second panel (from the left) of the control bar (at the very bottom of the TM document window). When you open a python (.py) document, it should be set to "Python" by default. Click the triangles just to the right of "Python" and select "Python Django". Once you've done that, then typing "manytomany" in the text area then hitting TAB, will do what you want.
Alternatively you can change the snippet's scope. To do this, open the Bundle Editor ("ctrl-option-cmd B"), then select "Python Django" then the "ManytoMany" snippet. Click the "settings" button at the upper right of the Bundle Editor window, then change the text in the Scope Selector text box to read "source python" (by default it should read "source.python.django").
Are you sure the shorthand is manytomany? in my bundle, it's mtm. Try editing the bundle to see what the shorthadn trigger strings are.