Disable and enable

Hi Crate combox throught display method

itemtype

based on tiemtype buttoun will disable and enable how do it any help me

Hi,

1 . In the button properties make autodeclaration as “yes”

  1. Go to click method of ur button write condition like

if(itemType == ur item type value)

{

buttonname.enable();

}

else

{

buttonname.disable();

}

ok thank you

Hi jyothi

at packingslip form when was create yesno button

when i will create check box at that time numbersquence generateing if not check not numbersquence generateing how i wil do it

What does it mean?

Can you elaborate?

I was create custinvoicejour form and 3 buttouns SRN And GRN

when i am selected

ItemNo itemtype

Sht100 BOM BUTTON (SRN) " I WANT DISABLE THIS

Sht100 ITEM BUTTON (GRN) " I WANT DISABLE THIS

Note: Itemtype Not in my Table field this called From InventTable throught display Method

Write a method like this and call this in the active method of the form data source

void enableButtons()
{
;

SalesCopyAllLines.enabled(InventTable::find(salesLine.ItemId).ItemType == ItemType::BOM);
}

thank you kranthi