Answered

Select Combo Value from Code

I have an Combo (Entity) on my Form and want select a Value from this combo in an Expression in the OnEnter Event from the Form. But i have no solution Found.

My Example DataModel Attached

I think is not so difficult but i stand on the hose ;-)

Thanks for all the help

Adrian

Best Answer
photo

Dear Adrian,

Thank you for your interest in Bizagi.

You can set a default value in different places. Please check these articles where explain how to implement it:

Best Regards.

photo
0

Dear Adrian,

Thank you for your interest in Bizagi.

You can set a default value in different places. Please check these articles where explain how to implement it:

Best Regards.

photo
0

Thanks vor Help.One more, i have an Entity with Name "atrCountry", how can i find out what ist the ID for the Value bsp. "Spain" ?Best RegardsAdrian

photo
0

Dear Adrian,

It is an example:

Int i=0; Object EntityList=null;

EntityList= CEntityManager.GetEntity("atrCountry").GetEntityList("", "", "", "");

//Loop to the atrCountry

for(i=0; i< EntityList.Length; i++)

{

//key has the id of each value

var key=EntityList [ i ].SurrogateKeyValue;

}

Check this help: http://wiki.bizagi.com/en/index.php?title=Other_Rules

Regards

photo
0

Dear JuanThanks for Help!Best RegardsAdrian