Tags:
create new tag
, view all tags

Question

Where I work, there is a PHP script that accesses data in Bugzilla. Given the appropriate parameters, it will emit this data as HTML text.

I can present the results in a TWiki page, using INCLUDE or an iframe. However, I'd like to access the results as data in my TWiki page (e.g., set a TWiki variable to the contents).

Is this possible (without admin access to the server)?

To try to be more specific, what I have now is the following:

For example, given:

<iframe src="http://foo.host.domain/fieldinfo.php?projectid=%FORMFIELD{"ProjectID" }%&fieldids=1,12,7"></iframe>

I get this (screenshot)
screenshot.jpg

What I would like is to be able to hand the php script the correct parameters to have it return, say, the date value "4/30/2007" without the surrounding table chrome. I want to be able to use that value in my TWiki page, e.g. set a variable to the returned data and then use that variable, push it into a form field, display it in my own table cell with my own formatting, etc. I want to be able to control the presentation of the data.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- VickiBrown - 02 May 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

although neither of these plugins have been ported to twiki-4, you might like to look at BugzillaQueryPlugin and BugzillaLinkPlugin.

I don't think there is a pattern() (from FormattedSearch) like syntax for INCLUDE, Peter will probably have a way to get a value using a combination of INCLUDE and SpreadSheetPlugin smile

-- SvenDowideit - 02 May 2007

Actually, there is a pattern syntax on INCLUDE, and it appears to be in the 4.0 series: TWiki04.TWikiVariables#INCLUDE_page_include_other_topic I used it to drop the page framework from our ISP's network status page, since their external connection has hiccups now and then.

-- JustinLove - 04 May 2007

Vicki - I presume you've found a way? re-open if not - though I would like to hear how you solved this.

-- SvenDowideit - 02 Jun 2007

Couldn't you use something like this:

  • Set FILECONTENTS = %INCLUDE{"http://foo.host.domain/fieldinfo.php?projectid=%FORMFIELD{"ProjectID" }%&fieldids=1,12,7"}%

-- JosephCrawford - 2011-11-03

 
Change status to:

Topic attachments
I Attachment Action Size Date Who Comment
JPEGjpg screenshot.jpg manage 12.1 K 2007-05-02 - 01:45 VickiBrown screenshot
Topic revision: r5 - 2011-11-03 - JosephCrawford
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.