CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Custom Inline Styles

Print topic Send  topic

Author Message
larsg
Posted: 02/06/2006, 5:50 AM

Is it possible to to tell CodeCharge to not change specific lines? I'm doing a style hack to make some colored statusbars in a grid but everytime i do something in design view, it just removes whatever i've written.
mamboBROWN


Posts: 1713
Posted: 02/06/2006, 6:19 AM

larsg
Are you using CSS or are you hard coding the styles??? My suggestion would be to create a CSS file and configure it to your tastes (select it as the default CSS).

Also, if CCS is changing your code you might want to contact support ( http://support.yessoftware.com ) to see if that is what it is suppose to do.
View profile  Send private message
TheunisP

Posts: 342
Posted: 02/06/2006, 9:15 AM

the problem is that the editor tries to be 'intelligent' - in other words it is repairing the HTML without even asking you (and assuming that it knows best) - I absolutely hate the feature; and there is no way of turning it off

report it to support - hopefully if a few of us complain - they'll rethink their strategy on this feature
View profile  Send private message
Walter Kempees
Posted: 02/06/2006, 11:23 AM

> report it to support - hopefully if a few of us complain - they'll rethink
> their strategy on this feature
and will have to answer all the questions about HTML not functioning after
some editing.

@Larsg,
What is it you are trying to accomplish?
I am in the process of fiddling with the CalenderBuilder and have
successfully done:
a/ coloring a cell depending on its event content
b/displaying a colored bar in the event
No style hassle just a techique based on "Tips-and-solution, alternate rows,
the easy way" for solution (a) and
displaying a pre-fabricated bar image in several colours with a small fixed
size, displaying it in the cell.

The Inline style I tried and will solve soon, but I choose the other
approach 'cause it does the job and saves time.
http://forums.codecharge.com/posts.php?post_id=68718
http://forums.codecharge.com/posts.php?post_id=70228

Walter K




"TheunisP" <TheunisP@forum.codecharge> schreef in bericht
news:243e784221c240@news.codecharge.com...
> the problem is that the editor tries to be 'intelligent' - in other words
> it is
> repairing the HTML without even asking you (and assuming that it knows
> best) -
> I absolutely hate the feature; and there is no way of turning it off
>
> report it to support - hopefully if a few of us complain - they'll rethink
> their strategy on this feature
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

larsggu

Posts: 9
Posted: 02/07/2006, 5:41 AM

What i'm trying to do is this: For each row do a check on two values and output a color name to a text box based on the result of the forementioned check. This way i can do style="background-color:{textbox1}" on the textbox itself to change the color based on the first check. This works like a charm as a coloured status system, until i change something in design view and codecharge changes the line back to something else.

I realize this is the only way of making sure the design view doesnt get corrupted, but why bother having the option to edit the html then?
View profile  Send private message
larsggu
Posted: 02/07/2006, 5:41 AM

What i'm trying to do is this: For each row do a check on two values and output
a color name to a text box based on the result of the forementioned check. This
way i can do style="background-color:{textbox1}" on the textbox itself to change
the color based on the first check. This works like a charm as a coloured status
system, until i change something in design view and codecharge changes the line
back to something else.

I realize this is the only way of making sure the design view doesnt get
corrupted, but why bother having the option to edit the html then?
---------------------------------------
Sent from YesSoftware forum
http://forums.codecharge.com/
larsggu

Posts: 9
Posted: 02/07/2006, 5:42 AM

err what the... sorry for the double post
View profile  Send private message
Walter Kempees
Posted: 02/07/2006, 8:31 AM

Did you take a look at the calendar www.dubbellul.nl/calendar ?
That works beautifully, no problems with design/html or whatever.
Now let's be clear You are talking about a Grid and you want to color 1
cell:
Open in Design mode.
Find the <td> of the cell you want to color later.
Insert a space to get <td >, position cursor just before > and in toolbox
choose Forms->A Label
Give the label an appropiate name {rowcolor}
In the source of the Grid Before Show, put
$Container->rowcolor->SetValue(""); to initially clear the Label.
In the Grid's BeforeShowRow depending on your condition put :

if (somecondition)
$Container->rowcolor->SetValue( ' style="backgroundcolor: yellow;" ' );

Nothing to it, works tested, tried and proven.
And if you know where to put the lable it works in Grids, Record Form and so
on.
If I want to know what the coreect syntax is, I just do it hardcoded in the
HTML first, Preview and itterate until I like it.
Then apply this technique.

Walter


"larsggu" <larsggu@forum.codecharge> schreef in bericht
news:243e8a38b2d44b@news.codecharge.com...
> What i'm trying to do is this: For each row do a check on two values and
> output
> a color name to a text box based on the result of the forementioned check.
> This
> way i can do style="background-color:{textbox1}" on the textbox itself to
> change
> the color based on the first check. This works like a charm as a coloured
> status
> system, until i change something in design view and codecharge changes the
> line
> back to something else.
>
> I realize this is the only way of making sure the design view doesnt get
> corrupted, but why bother having the option to edit the html then?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Walter Kempees
Posted: 02/07/2006, 8:34 AM

Did you take a look at the calendar www.dubbellul.nl/calendar ?
That works beautifully, no problems with design/html or whatever.
Now let's be clear You are talking about a Grid and you want to color 1
cell:
Open in Design mode.
Find the <td> of the cell you want to color later.
Insert a space to get <td >, position cursor just before > and in toolbox
choose Forms->A Label
Give the label an appropiate name {rowcolor}
In the Label's properties change Content to HTML.
In the source of the Grid Before Show, put
$Container->rowcolor->SetValue(""); to initially clear the Label.
In the Grid's BeforeShowRow depending on your condition put :

if (somecondition)
$Container->rowcolor->SetValue( ' style="backgroundcolor: yellow;" ' );

Nothing to it, works tested, tried and proven.
And if you know where to put the lable it works in Grids, Record Form and so
on.
If I want to know what the coreect syntax is, I just do it hardcoded in the
HTML first, Preview and itterate until I like it.
Then apply this technique.

Walter



larsggu

Posts: 9
Posted: 02/08/2006, 12:38 AM

Aha, so you put the whole style param inside a label. Genious. I'll try it out now. :-D
View profile  Send private message
Walter Kempees
Posted: 02/08/2006, 2:26 AM

:-0
"larsggu" <larsggu@forum.codecharge> schreef in bericht
news:243e9ae152105e@news.codecharge.com...
> Aha, so you put the whole style param inside a label. Genious. I'll try it
> out
> now. :-D
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.