Don't know if you could control it by tab page somehow, but you can specify controls using the FormRowDisplayOption.affectedElementsByControl():
 
        _options.affectedElementsByControl(CustTable_AccountNum.id());
        _options.affectedElementsByControl(control::CustTable_Name);
 
So you could add that for all the controls in your grid. I did try to specify the control id for a tab page and a grid, it didn't work. That would have been nice.
 
Best regards,
 
Jesper Dybdahl
keyZONE Solutions
 
 


From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: 7. april 2004 10:36
To: [EMAIL PROTECTED]
Subject: [development-axapta] tabpage

Hi all,

Some time ago I saw some emails about the tab-control.
It talked about the property: isActivePage().

Now I have the following:
A tab control with two tabpages[Overview, General].
In the overview I show a grid with a colored background for a row
that meets the specification. I did this in the "displayOption" of
the form.

But when I click to the second tabpage (General) I do not want to
have the background colored. But in the displayOption method the
value of isActivePage() does not seem toe work...

How can I stop seeing colors in when I am in the second tabpage?

To be complete, I have added the displayOption method below:

public void displayOption(Common _record, FormRowDisplayOption
_options)
{
    int colorGrey  = winapi::RGB2int( 221, 221, 221 ); //Grey
    MyTable table;
    ;

    if (tpOverview.isActivePage() ) // only for tabpage 1
    {
        table = _record;

        if (table.active == NoYes::Yes)
        {
            _options.backColor( colorGrey );
        }
    }
}



Is it some method I forget to override?
Any help is welcome.

/b




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to