PDA

View Full Version : Show a cWebCombo have a psPlaceHolder property?



Oscar
6-Apr-2017, 10:38 AM
Hi,

I just tried to setup psPlaceHolder for a cWebCombo and got an error there for realized that the framework does not allow me to set it like I can for a cWebForm.

I think that if working with a mobile application where there is no label there has to be a way to set the placeholder text so the user will know what the combo is form and if it should be selecting an entry there or leave it blank.


Comments? Can it be done for 19.0?

Oscar Mintegui

Harm Wibier
12-Apr-2017, 06:31 AM
We are not planning this for 19.0. Note that the placeholder HTML5 attribute that we are using is not supported on the select element so we would have implement something ourself if we would want this feature. More common is to have an item with a blank value showing a text like 'Please select item..'.

Oscar
12-Apr-2017, 07:29 AM
Harm,

Thank you... I use the following code



Set pbAddEmptyItem to True


Procedure OnFill
Forward Send OnFill
Send AddComboItem "1" "Item One"
Send AddComboItem "2" "Item Two"
Send AddComboItem "" "Select Item..."
End_Procedure




Thanks,
Oscar Mintegui