In MY Form 1 BaseEnum Have 2 elements(K,P) And 4 fields

Hi friends,

In MY Form 1 BaseEnum Have 2 elements(K,P) And 4 fields

My Question is When i m selecting K element At that Time I Want display only 3 fields It’s possible Or not Please help me.

hi,

Its possible. you can write code in executequery() of data source method and call the executeQuery() in selectionchange() method of that enum form control .

hi ,

Hope this helps u http://parimalajyothijp.blogspot.in/2012/01/how-to-filter-data-based-on-combo.html

thank you

Can U send any sample coding

write this code in executequery

// Temporary Variable = str2enum(yourEnumType, enumformcontrolName.valuestr());

baseEnumVar = str2enum(BaseEnum,BaseEnum.valueStr());

if(baseEnumVar == BaseEnum::K)

{

Field4.visible(false); //Field name of that form control

}

call this method in selection change() of that enumformcontrol.

Note:Set AutoDeclarartion yes to specified fields.

thank you

My Field : export date This is not directly In table This field Called through display Method from another table

Tablename : EximIncentiveSchemeData_IN

Form name : EximIncentiveSchemeGroup_IN

Enum type : EximAuthorizationType_IN :: AA

FPS

K

COULD PLEASE TELL ME AND TEMPORARY VARIABLE MEAN I M UNDERSTOOD PLEASE clear reviews

Hello Nagulu,

Write code in active method of form datasource like this,

if(BaseEnum::K)

{

fieldcontrol.visible(false);

}

Thank u Rajkumar ,

In My Form alredy using Acitvite Method For another one

I m wrote ur code in modified method working wel Wt is that When I m selected "K "element date filed is hide ok that 's fine But small problema i when i m select "A " Element date filed is nt visble stil hide please give me any other way ?

Hello Nagulu,

write my code in active method also that u olny it will work properly ,

and write these line

if(BaseEnum::P)

{

control.visible(true);

}

You have to write code active and modified method .it will work properly .