Table of contents for a specific section of google doc? - google-docs

A section of a google doc is getting difficult to navigate via any means other than control + f.
Is there a way to add a table of contents at at the start of a specific section of a google doc such that it contains only the contents of that section?
Notes
The section starts with a level 1 heading
Subsections are level 2 headings (and sub-sub sections are level 3)

The best I found for you is to use "Table of Contents" or "Document Outline"
https://support.google.com/docs/answer/116338?co=GENIE.Platform%3DDesktop&hl=en
https://support.google.com/docs/answer/6367684
I hope that helps.

Related

Sharepoint or PowerApps - how add multiple doc links in a List to a document list

I have different document types that need to go in different columns of my Sharepoint List. How do I add multiple links per column/row to specific documents in their list?
My Main List looks like this:
ProductType ProductPart Country RegDocTypeA RegDocTypeB OtherDoc
Cabinet PartA USA;DEU DocA1URL;DocA2URL DocB1URL;DocB2URL Note1URL
...
DocLibraries:
*RegulatoryDocTypesA*
Title Attachment Expiration
DocA1 DocA1(Attached) 12/1/2023
DocA2 DocA2(Attached) 12/2/2024
*RegulatoryDocTypesB*
Title Attachment Expiration
DocB1 DocB1(Attached) 12/1/2025
DocB2 DocB2(Attached) 12/3/2026
*OtherDocList*
Title Attachment Expiration
Note1 Note1(Attached)
Note2 Note2(Attached)
How do I get these links attached in my Main List, that point to each document in the DocumentLists? I can't have just one Attachment column in my Main List, because the documents are categorized and have different expirations. I think the best way to do this is a live link to the document in the separate document libraries from the main list. But I can't find a good example or video how to do it. I'd like to populate the title automatically with the document name in the document library so it's visible in the selection combo.
I was looking at multiple attachments, and attachments, and multiple attachment columns, and file title with filename, and title with name.
This is with sharepoint 365. Thanks!
This works now. Sorry I can't add pictures, since I'm only 100/new member.
Added in Power Apps, a new field . Deleted the input field, added combo box input. This has been set up in sharepoint as a column of lookup type, with the source list as the doc library RegulatoryDocTypeA, and allows multiple selections.
The doc library needed these changes:
Add title in doc library through all documents menu, edit current view, chooose title...
a. In doc library, choose integrate->power automate->see your flows.
b. New flow+, automated cloud flow, give it a flow name, when a file is created or modified (properties) sharepoint.
c. site address: your link, library: regulatoryDocTypesA, last one blank for folder (+new step)
d. control; condition; choose value first one: title, is equal to: name
e. in the "if no" box: add action; search for: update file properties; sharepoint; update file properties.
f. Address: your link; library: RegulatoryDocTypeA; id:id; title: search - filename with extension; save.
g. ctrl f5; delete files if already in doc library. Drag files in again. It takes a while to populate title with name.
h. This doesn't link to the file yet. Just gives a choice.
Add link to doc library for RegulatoryDocTypeA doc added, so it's in main list and can see doc if select it.
a. In RegulatoryDocTypeA doc library, go to settings; library settings; form settings; modify in power apps.
b. Add button with insert at the top (make sure it's on form screen 1, which is outer form selected)
c. select button so it's highlighted. In formula field, add Launch(SharePointIntegration.Selected.'Link to item')

QTP row and column count is always 1

I am writing a piece of code to copy data from a web table to an excel sheet. I don't understand why I am getting row count and column count 1. Is there something else that I need to add?
Here is my code:
Dim XL
Set XL=createobject("Excel.Application")
XL.Workbooks.Open "D:\QTP\RailwaysforSurat.xlsx"
Set nsheet = XL.Sheets.Item(1)
row=Browser("title:=.*").Page("title:=.*").WebTable("html tag:=TABLE", "index:=0").GetROProperty("rows")
msgbox row
cols=Browser("title:=.*").Page("title:=.*").WebTable("html tag:=TABLE", "index:=1").GetROProperty("cols")
msgbox cols
This not complete code. I have trouble getting rows and columns count. Please help!
P.S. I am using this website for the testing "http://www.indianrail.gov.in/cgi_bin/inet_trnnum_cgi.cgi"
I noticed that you are using Descriptive Programming techniques to identify the WebTable, but you're using extremely generic descriptions for everything. Perhaps that's just scrubbed for the sake of posting publicly, but the important thing that I notice is that your code to read Rows is trying to find a table with Index of 0 and your code to read Cols is trying to find a table with index of 1...
This means you are accessing two different tables. Are you sure that your descriptions are finding the table that you think you want?
My suggestion is to:
1) bring up the page in your browser so that you can see the table.
2) Bring up QTP and open the GuiSPY
3) Click the pointing hand over a cube button to begin spying
4) Click on something inside the table you are trying to work with.
GuiSPY will snap back and show a hierarchy of objects that it found. Next, you want to positively identify what level in that hierarchy is the table at... I would...
5) starting at the top (Browser), select the top row and click "Highlight in Application" and watch what gets lit up.
6) go down the hierarchy list clicking the next item in the hierarchy and clicking "Highlight in Application" until you see it flash on the exact table you're trying to target.
7) Once you have isolated the table, click the button for "Copy the identification properties to the clipboard" button, then close GuiSPY.
8) Open a notepad, or just use QTP's editor window itself and paste in what GuiSPY copied to clipboard.
Ok, you now have a complete list of everything QTP was able to see about the specific table you want to detect. From here, you want to look through the list of properties and find one (or two) that would positively identify that table every time.. For example, on this very page, the table that holds your question could be identified as:
WebTable("text:=I am writing a piece of code to copy data")... (*note I've shaved it down because it's automatically a Regex string... With some cleanup, it could be:
Browser("StackOverFlow.Com").Page("Question 36663629").WebTable("text:=I am writing a piece of code to copy data"))
Now replace your .WebTable("html tag:=TABLE", "index:=0") with that data you've selected, and try it again. Hopefully you can lock in on the exact table you're expecting and get the info you need.
The indianrail page did not open so cannot see the table you are testing. But QTP provides default methods for rows and columns, try using that and see if it works.
NumRows = Browser("Mercury Tours").Page("Search Results").WebTable("OutboundFlights").RowCount
NumColumns = Browser("Mercury Tours").Page("Search Results").WebTable("OutboundFlights").ColumnCount(1)
ColumnCount takes row number as parameter
Not sure what tables you are looking at, but if it is Services and information then the rows/cols value for those table is 1.The whole web page is consisted of concatenated web tables. So its going to be little tricky to capture that information. Try using a child object method and count the number of links within the web table, its going to look something like this -
Set oWebEdit=Description.Create
oWebLink("micclass").value="Link"
Set olink = Browser("title:=.*").Page("title:=.*").WebTable("").childobjects(oWebLink)
olink.count
msgbox olink.count
'Then initiate a for loop
For i = 0 to olink.count-1
' Get the link name
olink. count(i).GetRoproperty("name")
'Initiate an array and save the link names
If get link name does not work then you can use childitem method.
Also make sure you are using the correct index for the tables or define some other properties as well.
P.S. If you are going to use DP in future and haven't already then read about Childitems/childobjects methods.They come in real handy while using DP.

Creating custom view in SharePoint 2010 with new column and row headings

I have a simple list where I am entering a name, a timeframe, and a tag. I'd like to create a custom view of this data where timeframe becomes column heading and tag is the row definition and the name is displayed in grid. What's the simplest way to accomplish this?
Use a Content Query Web Part to display the list.
You can add a custom item template to the ITEMSTYLE.XSL file in Style Library/XSL Style Sheets directory. With a simple structure like you are describing you can easily pivot and format the data.
For general syntax and an overview take a look at Heather Solomon's post: http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx
Another good link with relevant info:
http://kyleschaeffer.com/sharepoint/sharepoint-2010-item-styles-and-ddwrt/

Retrieving a sharepoint list in Infopath only shows first 100 records

I am retrieving a list of values from a sharepoint list, which works well but my problem is that it only retrieves the first 100 records. there are currently 500 records that should be available.
Scenario: I have two comboboxes on an infopath form:
A List of Locations
A list of areas within the locations
the list of locations will filter the list of areas but as infopath seems to only retrieve the first 100 records so most of the locations do not show any areas as there is nothing to filter.
By design, the query will only return the first page of results from the default view for the list. Change the item limit for the default view in SharePoint, and you'll change the returned values for InfoPath.
EDIT (links from my comments, here for greater readability):
Here are sources describing this fix in MSDN forum (scroll to the bottom), a blog comment that describes the SharePoint setting step-by-step, one with a screen cap of the somewhat counter-intuitive interface, and another describing performance implications on the server side.
Hope this helps.
Just documenting what I have discovered trying to resolve the problem. I have not been able to change the default view as yet as I dont have the permission to. That should change though.
One possible workaround I have found is that you can export the list to Excel which contains all the data that I was looking for. the file that sharepoint produces is an Excel Query file like "export.iqy". You can save and open the file in notepad. which will look something like the following
WEB
1
http://SharepointSite/_vti_bin/owssvr.dll?XMLDATA=1&List={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}&View={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}&RowLimit=0&RootFolder=%2fLists%2fSharepoint%20Sites
Selection={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}-{8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}
EditWebPage=
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
SharePointApplication=http://SharepointSite/_vti_bin
SharePointListView={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}
SharePointListName={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}
RootFolder=/Lists/My list
You can take the third line which is -
http://SharepointSite/_vti_bin/owssvr.dll?XMLDATA=1&List={14C4ED2B-3050-4C47-B5F3-6333C3B0FB28}&View={8E6124E0-23F2-4BA2-86E7-96E7F36BAEC8}&RowLimit=0&RootFolder=%2fLists%2fSharepoint%20Sites
And use that to retrieve the complete list. I added an new receive data connection, selected an xml document and added the above URL.
It is not formated particullary nice but it will return all the data that I was expecting.
I think that Argalatyr solution is much simpler at this point, but it depends on if i am able to get the default view changed.
there is yet one workaround of this without such hardcoding. If you open Query editor, then you have there available ribbon with menu items. Open "Home" -> "Select top rows" and enter there some realy high number (I have in my list 596 rows, so I entered there as limit of top rows 20000 and I got whole list).
Sorry, I don't have available English version of Excel, so I cannot add screenshots.
enter image description here

Creating "Append-Only" Comment Field in Custom SharePoint List

I am relatively new to SharePoint, working with WSS SharePoint 2.0. The "Issues" list template contains an "append-only" comment column. The great thing about this append-only comment column is that it saves a history of the comments entered every time you save, and it clears out the comment field for the next time you edit the item.
I would like to add this column to a custom list. However, when I add a new column, it does not give me an option to add this type of comment column - it only gives options for single or multiple lines of text. Is there a way to do this?
You can create an append-only column by choosing the Multiple Lines of Text option and selecting "Append Changes to Existing Text". I believe this only applies to lists, not document libraries. Other kinds of lists may restrict this, too.
if you're using SharePoint 2007, In the List/Library Settings click Add from existing site columns. Under Base Columns Append-Only Comments should be there. In order for the "tracking" to work Versioning must be enabled for that list/library.
Not having an append-only field in a document library made me pretty sad. But this template made me happy again:
http://www.microsoft.com/downloads/details.aspx?FamilyId=02C4D1B4-7D53-4B72-B577-3DA23F86EC17&displaylang=en
It's the Document Library and Review template and allows each document to have a "Discuss" button and related discussion thread.

Resources