disable control ax in form

hi every 1

i have ComboBox in form by code in button how can i disable

i have feilde chek_NO

in vb.net

if chek_NO =0

ComboBox.enable = True

else

ComboBox.enable = False

how can change this code to X++

i use here some Fun but not give me result

i try to write

ComboBox_Type.allowEdit() == no

the result

if i write this fun ComboBox_Type.allowEdit( here have massege puplic allowEdit (boolean,value)

and when i compile give masseg wrong

this code

if ( nCoun_Check >= 1 )

{ComboBox_Type.allowEdit() == no ;}

if(enum ==1){
box::warning(“This Report Was Print.”,“PRINT”,“Help text”);
}
else
{
box::warning(‘تم طباعة هذا التقرير مسبقاً’,‘الطباعة’);
}
}
else
{
super();
enum =EN_AR.selection() ;
//info(num2str(enum,0,0,0,0));

if(enum ==1)
{
strnum=“EN” ;
}
if(enum !=1)
{
strnum=“AR” ;
}

CustRptMI.run(Args);

Hi Bas,

ComboBox_Type.allowEdit(false)… it wont allow you to edit the fied…

Naresh Kumar Kolli

thanks it work

but ihave other qus

every form in ax have Autma button (first_one - NEXT - PR - LAST_ONE -NEW-update or delete )

how i link this Condition also with this buttons

or if

if chek_NO =0

i can (update or delete )

else

i cant update or delete

i didnt get you…can you explain again…

hi

any form u create after compile u have 8 button

every form in ax have Autma button (first_one - NEXT - PR - LAST_ONE -NEW-update or delete )

i mean button tools forms

can i link its with my function

if chek_NO =0

i can (update or delete )

else

i cant update or delete

and with first_one - NEXT - PR - LAST_ONE

if chek_NO =0

ComboBox_Type.enabled(false)

else

ComboBox_Type.enabled(TRUE)

where i put the function to work

any qus i redy to ans

every form when u create have 8 button (button tools form )

sample have Autma button (first_one - NEXT - PR - LAST_ONE -NEW-update or delete )

if chek_NO =0

i can (update or delete ) in combobox

else

i cant update or delete in combobox

and with first_one - NEXT - PR - LAST_ONE

if chek_NO =0

ComboBox_Type.enabled(false)

else

ComboBox_Type.enabled(true)

any qua redy to an

any qua redy to an

i mean

i want to stop update or delete data

if chek_NO =0

else

update or delete data

thanks for your help Mr. Naresh Kumar Kolli r

what happen Mr.Naresh Kumar Kolli i did’nt explain to u or what \

i hope to ans me

becu this Very important issue for me

if anyone has a bit of information please help me

[H]

Hi Bas,

In the active method of the form datasource write

if check_no = 0
{
Datasource_ds.allowEdit(false);
DataSource_ds.allowDelete(false);
}

Naresh Kolli.

SORY Mr.Naresh Kumar Kolli FOR LATE 2 ANS

I create active method in my Datasource but when i but (.) [:@] after Datasource Name allowEdit function not come

this is my code

public int active()
{
int ret;
int nCoun_Check ;
CHECKISSUE CHECKISSUE1;
CHECK_NUMBER_TABLE CHECK_NUMBER_TABLE1;
ret = super();

while select * from CHECK_NUMBER_TABLE1
where CHECK_NUMBER_TABLE1.CheckNumber == CheckIssue.CheckNumber

nCoun_Check=CHECK_NUMBER_TABLE1.count_check ;

// info(num2str(nCoun_Check,0,0,0,0));

if (nCoun_Check <= 1)
{ CHECKISSUE1.[:@]

}

return ret;
}

pls

show me the wrong in this and write pls the right function

thanks for help i getted

i did’nt add _ds after name datasours

It’s working now…

Naresh Kolli

yes my frind

It’s working now…

thanks