Tags:
create new tag
view all tags

Question

%EDITTABLE{ format="| text, 15, nul | text, 15, nul | text, 15, nul | select, 1, start, not| text, 15, nul  |text, 16, nul |" changerows="add" headerislabel="on" }%
| TWiki version: |  01 Sep 2004 $Rev: 1742 $ | *Build* | *Tests* | *Comment* | *URL* |
| TWiki plugins: |  VERSION = 1.024  | 1119 | start | out | %INCLUDE{"http://X.X.X.X/test/wiki/cherry"}% |
| Server OS: |  Linux ppc64  |  |  |  |  |
| Web server: |  apache2-2.0.49-27.16  |  |  |  |  |
| Perl version: |  my perl5 (revision 5.0 version 8 subversion 3)  |  |  |  |  |
| Client OS: |  !WinXP  |  |  |  |  |
| Web Browser: | Firefox 1.0 |  |  |  |  |
| Categories: | Forms, Missing functionality %EDITCELL{checkbox, 4, Platform, Hosting, Installation, Htaccess, Permissions, Registration, Authentication, Security, Authorisation, Version control, Forms, Search, Javascript, System logs, Statistics, Missing functionality, Performance, Fatal error, Documentation, Contributing code, Contributing time, Paid help, Deployment, Internationalisation, Localisation, Browser issue, Plugins, Add-Ons, Skin, Mail}% |  |  |  |  |

Cherry1 Test 999 start    
Cherry2 Test 999 start    
Cherry3 Test 999 start    
| Cherry04 | Test | 999 | start | out|{X} |

Notice the first 3 line DO NOT have the %INLUDE%, but that the last line does contain the %INCLUDE%, the last cell being the contents of that %INCLUDE% �{X}�. It does not render in the table, and is not editable.

Environment

TWiki version: 01 Sep 2004 $Rev: 1742 $
TWiki plugins: VERSION = 1.024
Server OS: Linux ppc64
Web server: apache2-2.0.49-27.16
Perl version: my perl5 (revision 5.0 version 8 subversion 3)
Client OS: WinXP
Web Browser: Firefox 1.0
Categories:  

-- ScottCarroll - 24 Nov 2004

Answer

Machine Test Build Tests Comment URL
cherry Test 1119 start out {X}

-- FranzJosefSilli - 25 Nov 2004

Thanks for moving my question to the correct location. The example that you have provided shows me the same results:

Machine Test Build Tests Comment URL

| cherry | Test | 1119 | start | out | {X} |

-- ScottCarroll - 29 Nov 2004

Notice that the line does not render as a table. The line reads as such:

%!EDITTABLE{ format="| text, 15, nul | text, 15, nul | text, 15, nul | select, 1, start, not| text, 15, nul  | label, 1, |" changerows="add" headerislabel="on" }%
| *Machine* | *Test* | *Build* | *Tests* | *Comment* | *URL* |
| cherry | Test | 1119 | start | out | %INCLUDE{"http://xx.xx.xx.xx/tmp/junk"}% | 
The URL xx.xx.xx.xx is a valid URL that I�ve masked out for this example. The file /tmp/junk is a text file that contains only the text �{X}�. It is reading the file /tmp/junk from the xx.xx.xx.xx machine. But it does not render it in and editable table format.

-- ScottCarroll - 29 Nov 2004

I guess your problem is with (implicit) line-breaks that break the table. You could try using the RecursiveRenderPlugin to render the included content. It's more interesting that your code above breaks the %COMMENT% below.

-- FranzJosefSilli - 30 Nov 2004

Franz -- This is a big problem for me. I tried the RecursiveRenderPlugin, and I'm seeing the same problem. This is a major headache for me, is there any other method that you can think of that allows me to include the contents of a text file from a remote host, in a table, without breaking? I'm kinnda out on a limb on this, I convinced my department to use this tool -- and this is a major road block.

Thanks again, for the help -- and sorry for the trouble!

-- ScottCarroll - 30 Nov 2004

Hm, you could use ordinary HTML-table tags, but then you lose the edit-part, but I didn't understand why and what you want to edit anyway. smile

You could 'comment' the included stuff on seperate topics and fetch them together in table form via a search. It really depends on what you want to do.

Otherwise I'm on my wits' end and refer the matter to the community. Sorry.

-- FranzJosefSilli - 01 Dec 2004

Franz: Maybe I'm making this to complicated for myself. This is what I'm trying to do: I need a table (editable if possible) that has some editable elements, but the %INCLUDE{http://xxx}% returned result is not editable. I just want to display the Warning: Can't find topic ""."" results in the table (it's pretty that way). The return value of my Warning: Can't find topic ""."" will always be a simple text string. This is an example of what I would like for my editable to show:

Machine Test Build Tests Comment URL
cherry Test 1119 start out {X}

I've inserted '{X}' � that would be the contents of the file, from the %INCLUDE{http://xx.xx.xx}%. As I said up above, the return value of my Warning: Can't find topic ""."" will always be a simple text string.

I've even tried this with a simple table with :

%TABLE{}%
| col1 | col2 | col3|
|X|X| %INCLUDE{"http://xx.xx.xx.xx/tmp/junk"}%|
This does not display the contents of the file 'junk' correctly � junk is a simple text file that contains '{X}' it renders this:

col1 col2 col3
|X|X|{X}

Thanks again � and if this is a limitation, then I can live with that.

-- ScottCarroll - 02 Dec 2004

Have a look at EditTableWithInclude

-- FranzJosefSilli - 03 Dec 2004

Bingo, that fixes it! Thank you so much -- I tried using the plugin the other day, but it did not work. I'll see if I can find my work, and see what I did wrong.

Thanks again,

Scott

-- ScottCarroll - 03 Dec 2004

I'm in the same boat. I need to use =%INCLUDE in a simple table so I can make a front end a little more modular, but obviously =%INCLUDE is breaking the table. Is there anyway to stop =%INCLUDE from doing this?

-- JamesKnevitt - 25 Jul 2006

MultiEditPlugin could be what you're looking for.

-- FranzJosefSilli - 25 Jul 2006

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2006-07-25 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.