Topic: About set_marker - That's Overdue Color

Hi all,

Can i have multiple set_marker - That's Overdue Color with different function ?.

I want a page where i have 2 function one is overdue as per date required and second one is as per User  with different color ( one is red and second one is green ).

Admin please let me know .

Thanks
Tester

Re: About set_marker - That's Overdue Color

any one here ? .pls let me know

Re: About set_marker - That's Overdue Color

State sequence of menu choices that lead to the target page where you want your feature. Screenshots would be useful too.

Re: About set_marker - That's Overdue Color

Dear,

Thanks for reply , dude thats my own code page , what i am looking is :

$table->set_marker('check_overdue', _("Marked area are not completed / Over Date."));
$table->set_marker('testaa', _("Markfed orders are overdue."));
$table->width = "95%";

but only One function testaa  is working .. cant i have multiple set maker ?

Re: About set_marker - That's Overdue Color

If it is your own page, how can the community help you?

What page in FA are you using as the basis for your page?

Unless we know the context and what includes are available at the point of usage, how can we help you?

Re: About set_marker - That's Overdue Color

dude,

? am saying i have use all include file ..and if i am using only one set_maker with one function then its working properly , but iam using 2 set_maker which i have mention above then only below one is working ..

7 (edited by apmuthu 11/08/2013 04:57:08 pm)

Re: About set_marker - That's Overdue Color

set_marker() is a method of class db_pager defined in includes/db_pager.inc. This function marks the rows in a specific way. You may need to extend this class and have one more method say set_marker2() to achieve what you want or modify the functionality of the existing method with an additional argument to flag it differently.

The sample code you are after are in files like:
Line 318 in sales/inquiry/sales_orders_view.php
and
Line 244 in sales/inquiry/customer_inquiry.php

The colors are provided as arguments to the set_marker() function as seen in lines 390-398 of includes/db_pager.inc:

    //    Set check function to mark some rows.
    //    
    function set_marker($func, $notice='', $markercl='overduebg', $msgclass='overduefg' )
    {
        $this->marker = $func;
        $this->marker_txt = $notice;
        $this->marker_class = $markercl;
        $this->notice_class = $msgclass;
    }

The color values of overduebg (background color) and overduefg (text color) for marking purposes are available in the various theme css like in lines 320-326 of themes/default/default.css :

.overduebg {
    background-color: #dd7777;
}

.overduefg {
    color: #dd7777;
}

Re: About set_marker - That's Overdue Color

thanks for reply buddy , i will try this one..