I'm searching for a way to fetch some data from a website using LibreOffice Calc.
The website URL is: https://www.foresteu.com/termekeink//34653258430-abs-elzaro-kronospan-1543mm-k105-fp-raw-endgrain-oak
Treid to fetch the H3 Title already =FILTERXML(WEBSERVICE("https://www.foresteu.com/termekeink//34653258430-abs-elzaro-kronospan-1543mm-k105-fp-raw-endgrain-oak"),"//h3") but i get #VALUE!as result.
I would love to get h3 title and product properties: Cikkszám: 34653258430 Anyag: MŰANYAG Szélesség: 43 Szín: FAUTÁNZAT Vastagság: 1,5 separated into cells like: Cikkszám: 34653258430 Anyag: MŰANYAG Szélesség: 43 Szín: FAUTÁNZAT Vastagság: 1,5
I am using latest version of LibreOffice Calc. Thank you!
FILTERXML is only for XML not HTML.
Even xpath=//h3 won't work.
But you can try the following, use the menu item :
Insert
Link to external data
Type in or paste the URL of the Web page hit ENTER, wait a few seconds, set the parameters in the appeared small panel, then choose a tab from the resulting table, Click on OK.
If the Web table is HTML based, the data will appeared. But when the table was made with other technology, the data link will not work.
Related
I'm wondering if it's doable to insert a clickable link into a table. I'm acutely aware that one can insert a link which will be clickable in SSMS but that's not what I want to accomplish. I'd like the link to be clickable in application. I've searched the Internet but I've only come across the articles about adding HTML tags to the INSERT statement which enables to open the link in SSMS.
create table #link (a varchar(max))
INSERT into #link
VALUES ('Y'
)
You can insert whatever you want into the database columns. But the action "Open this link on a click event!" is something your application has to do.
To put it even closer: The action "Take this string, paint just the text on the screen, let it look like a hyper link and navigate to the hidden URL on a click!" is something bound to a HTML engine. Pass HTML to any browser and the browser will do all this implicitly. But your database is just a container for data...
I would either use a column typed XML and treat the HTML as XHTML, or - this would be much! better - use two columns and create the link either within a query or - again better - in your application.
Assume a table like this:
DECLARE #TheLinkTable TABLE(ID INT IDENTITY,LinkText NVARCHAR(1000),LinkAddress NVARCHAR(1000));
INSERT INTO #TheLinkTable VALUES('Y','http://www.google.com/');
You can use a query like this
SELECT LinkAddress AS [a/#href]
,LinkText AS [a]
FROM #TheLinkTable
FOR XML PATH('');
And you might read into this answer, if you'd need a HTML-table actually.
But - as said above - I'd just read both values from separated columns and build the clickable link in the application.
I have some tabular data about users. I would like to have a Confluence page generated based on it. But I don't want to show the data as it is but instead have a nice table made of it.
For example data includes user identifier. But on the page I would like to have it used for few things. For example make an anchor to the user entry/row, show the identifier in a column and generate link (in another column) to some other tools where the identifier is an argument in URL.
This goes in obvious direction of data vs. presentation separation with all its benefits.
Now the problem is that I don't know how to do that while I feel that it should be somehow possible with all that Confluence offers.
There are various reporting macros. But the problem is how to get the initial tabular data. I tried using Excel (or CSV) attachment. But I failed to extract data from it (otherwise than just showing a simple table based on it).
Any advice? I'm using Confluence 5.4.
I have asked about it previously on Atlassian Answers in question Reporting on spreadsheet data from attachment but there are no answers so far and I think there will be none. While I think Stack Overflow is more popular so I hope that maybe here someone will have any advices.
For the 'display table information on the page' part: This could be achieved with a user macro. The CSV macro and HTML macro can be used to pull data in from an attachment or other locations to display on a wiki page.
There are other ways to display this kind of data. This be done with information extracted from a database using the SQL macro. Confluence can read in from its own database or from external databases.
For example, let's say you wanted to list all pages in a space with hyperlinks using the key page information to edit, view, delete the target page. The information being extracted in this example is in the Confluence table.
{sql-query:dataSource=wiki|output=wiki}
SELECT
'['||B.spacename||'|'||B.spacekey||':]' "Space Name",
'['||A.parentid ||'|///pages/viewpage.action?pageId='||A.parentid||']' "Page Parent",
'['||A.contentid||'|///pages/viewpage.action?pageId='||A.contentid||']' "Page Id",
'['||A.title ||'|///viewpage.action?pageId='||A.contentid||']' "Page Title",
'[View Page |///pages/viewpage.action?pageId='||A.contentid||']' "View Page",
'[Edit Page |///pages/editpage.action?pageId='||A.contentid||']' "Edit Page",
'[Delete Page |///pages/removepage.action?pageId='||A.contentid||']' "Delete Page"
FROM wiki.CONTENT A, SPACES B
WHERE B.SPACEKEY = 'sp' -- Put the spacekey here
AND B.SPACEID = A.SPACEID
AND A.TITLE like '%this%' -- Optionally, only return results for pages with the word 'this' in them
-- AND A.CONTENTID = 125999877 -- optionally, only return results for a single page by id
ORDER BY A.TITLE
{sql-query}
Once you have the content on the page it is possible to post-render wiki content using a JavaScript via the html macro.
{html}
<script type="text/javascript">
AJS.$(document).ready(function() {
AJS.$('#tableid').find('tr > td').contents().html('Hello world'); // or whatever to find and change the html or text
});
</script>
{html}
I presume your Confluence is version 4 or later. The default editor is WISIWYG, but you can also enable Source Editor (read Confluence doc on how to do this).
You can create source of a page in external editor and then copy/paste it in to Confluence Source Editor (or use Confluence REST API if you need to import multiple files).
Create a page with sample table, then view source of this page. Copy/paste elements of this page to your tabular data. Use search and replace patterns to insert tags in right places.
For example, if you have CSV file:
- replace commas with </th><th>
- put <tr><th> at the start of each line
- put </th><tr> at the end of each line
This should create nice table in Confluence.
I want to find which page has installed this extension: jc_register, I can check every page, but it takes too much time since there are many pages, so I wonder if there is any fast way to find it instead of checking every page?
If you mean you want to find a content record of type "Insert Plugin" set to a particular extension, you can use "Admin tools".
Open "Admin Tools -> DB check".
Select "Full search" from the drop-down list.
Select "Advanced query".
Tick "Use formatted strings, labels and dates instead of original values for results". This will give you page titles in the results when pid is displayed.
Set the query so that it finds your plugin and lists the page IDs (which means that the "Select fields" must contain pid).
Note: Tested in TYPO3 4.5 LTS and might not work in later versions.
Hi the extension name is located in "tt_content.list_type" field. So something like this should help you:
SELECT tt_content.pid,pages.title
FROM tt_content JOIN pages ON tt_content.pid = pages.uid
WHERE tt_content.list_type LIKE '%register%'
ORDER BY tt_content.uid DESC
gl
If you need to do it more often, you might consider the extension backendtools: http://typo3.org/extensions/repository/view/backendtools
It offers an extension listing with search functionality and links to the according page.
I have a custom object known as "Companies".I have created a lookup field in a Visual Force page which gives me the list of companies name from the custom object " Companies".I have written a code which makes this lookup field auto-complete like what you have seen in the image attached.(First pic)
The problem: I don't know how to make the lookup field (which takes the list of companies name from custom object" Companies" in "Opportunities" standard object) auto-complete as done in the visual force page. Basically want the field highlighted in yellow in the second picture to auto-complete or give relevant suggestion when I type the first few characters.
Any help on this matter would be appreciated. Thank you
Have you tied enabling Auto Complete for your custom object the search page?
Click Your Name | Setup | Customize | Search | Search Settings.
Check the Lookup Auto-completion check box for your object.
This will give you auto-complete options for recently used items.
http://help.salesforce.com/help/doc/en/search_lookupdialog.htm#auto_complete
You will not be able to embed this customization into a standard page layout like you're using for the Opportunity object in your second screenshot. If that auto-complete is a must-have, then you really only have two options:
Replace the entire Opportunity page layout with a custom VF page
Write a VF component with just the Company lookup field in it and embed it into your Opportunity page layout (this will have to be in its own section, which probably won't look as nice)
This is what you want - http://tapp.ly/autocomplete/
Autocomplete Lookups for Salesforce enables any Salesforce Lookup field to support autocomplete suggestions. Autocomplete Lookups helps your users enter lookup fields reducing data entry tasks and error rates.
Salesforce records suggested as you start typing
Search All fields (Standard Salesforce Lookups only let you search by the Name field)
Results can show any field (E.g. Case Subject rather than Case Number)
Is there a way to display {children} in a table in a way that they all sit withing a column, one per row?
Say, I have subpages a, b and c, and want them show in a table with page name, author and something else:
|a|Denis|40|
|b|Alex|43|
|c|Unknown|2|
Did you try the reporting plugin
checkout
http://wiki.customware.net/repository/display/AtlassianPlugins/Reporting+Plugin
for instance use following config
{report-table}
{local-reporter:page:children}
{text-sort:page:title}
{local-reporter}
{report-column:title=Title}{report-info:page:title}{report-column}
{report-column:title=Author}{report-info:page:creator}{report-column}
{report-table}
Quite a bit of fun using it, once that you get going.
Francis
You could also use {metadata-report}
{metadata-report:Page,Author}
{metadata-report} is used to display metadata stored on pages using the Metadata plugin and can also be used to dislay content properties including: Page,Author,Last Changed By,Last Time Changed,Date,Time,Time Created,Posted,Space,Parent
You can also set the root page to start from and pull all of the basic page metadata out into a table. Example:
{metadata-report:Page,Author,Last Changed By,Last Time Changed,Date,Time,Time Created,Posted,Space,Parent|root=somepagewithchildren|pages=#descendants}
This can be wrapped in {table-filter} and {table-plus} macros for sorting.
{table-filter:userfilter=Page,Author,Time Created}
{table-plus:columnTypes=S,S,D"dd MMM, yyyy hh:mm"}
{metadata-report:Page,Author,Time Created}
{table-plus}
{table-filter}