Categories > [old] TbsOoo & TinyDoc >

block=begin in tbsooo

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: dubbelpunt
Date: 2006-04-10
Time: 14:15

block=begin in tbsooo

Hi,

I have a problem with block=begin. When a certain variable has some value, the block's display must be false.

I found a similar problem in previous threads (on the "programmaing with TBS" forum), I used this solution, but I have an overloop when starting openoffice.

I also get the folowing error,
TinyButStrong Error (Array value): Can't merge [blkname.$] because sub-item '$' is not an existing key in the array.

Here's the code:
[onshow;blkname;block=begin;when [var.blkname_data] = 1]
...
[onshow;blokname;block=end]

The variable [var.blkname_data] is allways set, I've checked this.

I'm using tbs-version 2.05.1 and tbsoo version 0.7.8.
By: Olivier Loynet
Date: 2006-04-10
Time: 15:09

Re: block=begin in tbsooo

I can see a problem of the name of the block on the last line of your code :
[onshow;blkname;block=begin;when [var.blkname_data] = 1]
...
[onshow;blokname;block=end]

It could be better this....
[onshow;blkname;block=begin;when [var.blkname_data] = 1]
...
[onshow;blkname;block=end]

Olivier
By: dubbelpunt
Date: 2006-04-10
Time: 16:29

Re: block=begin in tbsooo

Oh

"blkname" is just an example for here, the real name is something else. The problem isn't in a syntax-error, because when i do it without the onshow and when-clause, it works.

I just want the block to disappear when there is nothing to merge in.

thx,
andries
By: Olivier Loynet
Date: 2006-04-10
Time: 18:50

Re: block=begin in tbsooo

Hello,

Can you try your code without OpenOffice, just TinyBuStrong and a HTML template to test if is possible to write your code, because I not sure the 'onshow' command is a block parameter.

http://www.tinybutstrong.com/manual.php#appendix_block

Regards,
Olivier
By: dubbelpunt
Date: 2006-04-11
Time: 16:49

Re: block=begin in tbsooo

I've checked and onshow is possible with blocks:
http://www.tinybutstrong.com/manual.php#html_automatic

But I just need an example how to let a block disappear when some parameter has a certain value. I tried the example I gave, but it won't work.

I'm asking an example on somebody who knows it much better than me :$.