PDA

View Full Version : DF19: WebCombo



raveens
26-Apr-2017, 01:47 AM
Hi,

Manual WebCombo does not respect psValue - always shows first item on the list instead.

To Test:
1. Fill a manual WebCombo with values
2. WebSet the psValue to a value that is NOT the first value on the list.

WebCombo shows first item irrespective.

Issue only in DF19. Tested in DF18.2 OK

Harm Wibier
26-Apr-2017, 03:29 AM
I tested this and did not see a problem. Can you provide a sample that shows this?



Object oWebCombo1 is a cWebCombo
Set piColumnSpan to 8
Set psLabel to "combo"
Set psValue to "V3"
Procedure OnFill
Forward Send OnFill

Send AddComboItem "V1" "Value 1"
Send AddComboItem "V2" "Value 2"
Send AddComboItem "V3" "Value 3"
Send AddComboItem "V4" "Value 4"
End_Procedure
End_Object

Object oWebButton1 is a cWebButton
Set piColumnSpan to 4
Set psCaption to "Change to V2"
Set piColumnIndex to 8

Procedure OnClick
WebSet psValue of oWebCombo1 to "V2"
End_Procedure
End_Object

Marco
26-Apr-2017, 07:19 AM
Hi Raveen
If you are filling from a table make sure you trim the values. If the number of trailing spaces differs, it will NOT find it. I think this is a bug and should be fixed.
See my earlier post.
Cheers
Marco

raveens
26-Apr-2017, 05:25 PM
Hi Harm,

The easier way to demonstrate this is use the WebOrder workspace in 18.2 vs 19.0

In 18.2

Load WebOrder ws
Add WebDD_Debug.wo to the project
Compile & Run
Find Order Numer 105
Press Ctrl-D to load the DD debugger
Notice the "DD" combo shows "oOrderHea_DD" which is correct.


Now, in 19.0 repeat the same steps as above:


Load WebOrder ws
Add WebDD_Debug.wo to the project
Compile & Run
Find Order Numer 105
Press Ctrl-D to load the DD debugger
Notice the "DD" combo shows "oVendor_DD" instead!!! Which is first item in the list
BUT: if you click and drop-down the list, it then refreshes itself and displays the correct "oOrderHea_DD"



Thanks.

Harm Wibier
1-May-2017, 03:33 AM
Thanks, I can reproduce it now. Will look into it!