Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select-options in flex

Former Member
0 Likes
627

I'm having a problem, I made a web dynpro application with select-options (using component reuse). But now I need to change the whole lay-out to a flex application. Is there a way to get the select-options in flex?

Regards,

Geert-Jan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
592

Hi Geert-Jan,

There is no such equally matched control component in Flex to replace as is SELECT-OPTION.

But you can give user ComboBox/TextInput controls to specify Operator (e.g. BT,EQ,GT etc as combobox entries), Low and High Values (simple text input fields or Combobox as per requirement).

Then passing parameters to your query according to Operator selected.

switch(Operator)

{

case 'BT':

// use where clause as between Low and high

break;

case 'EQ':

// use where clause as equals Low only

break;

default:

Alert.show("Error in input");

break;

}

It's easy to implement such logic.

Hope this will help..

Regards,

Vivek

Hi Geert-Jan,

There is no such equally matched control component in Flex to replace as is SELECT-OPTION.

But you can give user ComboBox/TextInput controls to specify Operator (e.g. BT,EQ,GT etc as combobox entries), Low and High Values (simple text input fields or Combobox as per requirement).

Then passing parameters to your query according to Operator selected.

switch(Operator)

{

case 'BT':

// use where clause as between Low and high

break;

case 'EQ':

// use where clause as equals Low only

break;

default:

Alert.show("Error in input");

break;

}

It's easy to implement such logic.

Hope this will help..

Regards,

Vivek

2 REPLIES 2
Read only

Former Member
0 Likes
593

Hi Geert-Jan,

There is no such equally matched control component in Flex to replace as is SELECT-OPTION.

But you can give user ComboBox/TextInput controls to specify Operator (e.g. BT,EQ,GT etc as combobox entries), Low and High Values (simple text input fields or Combobox as per requirement).

Then passing parameters to your query according to Operator selected.

switch(Operator)

{

case 'BT':

// use where clause as between Low and high

break;

case 'EQ':

// use where clause as equals Low only

break;

default:

Alert.show("Error in input");

break;

}

It's easy to implement such logic.

Hope this will help..

Regards,

Vivek

Read only

Former Member
0 Likes
592

Thank you Vivek, this helped alot.

Regards,

Geert-Jan