Change font depending of Treetype
Thijs Geeris
In a salesorder I have a sales bill of material. The sales Item font (mainitem) needs to be bold comparing to the childs on the layout.I defined a code in the itemdescription field:
IIf(DocumentRow("TreeType") = "I","RowContent","SalesItem").
This means for the childitems the rowcontent stylesheet will be used and for salesitem the SalesItem stylesheet will be used.
When you define for example a border in the SalesItem Stylesheet this will appear on the layout for the salesitem, so this is fine. But when you define a larger fontsize or Bold in this stylesheet it doesn't appear on the layout. So it seems that doesn't work. How can I do this easily without using an advanced textbox?
see also related topic that I found:
http://www.coresuite.ch/index.php?id=48&L=1&tx_mmforum_pi1[action]=list_post&tx_mmforum_pi1[tid]=1220
Thanks Thijs
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/tgeeris/stylesheet.JPG]stylesheet.JPG[/url]
Philipp Knecht
Hi ThijsIt should work like that.
I've just seen that you defined a VerkoopArt Style but don't use it in the script.
If you write:
IIf(DocumentRow("TreeType") = "I","VerkoopArt","RowContent")in the style property (bindings) it should work.
hth
Thijs Geeris
Hello Philipp,In the code you see the SalesItem style. I translated this, that's why this confusion.
I also put the code in the binding Stylename, as you told me (see also screenshot). Although only Fill, TextFill, Border seems to work. Not the property's of the font.
Regards Thijs
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-image-uploads/tgeeris/Bindings_Style.JPG]Bindings_Style.JPG[/url]
Philipp Knecht
Hi ThijsMaybe the Font Property is overwritten in your textbox.
Got to the Font property of the Textbox, Rightclick and select Reset.
hth
Thijs Geeris
Thanks Philipp, this solved the problem.Regards Thijs
0
Please sign in to leave a comment.
Comments
0 comments