What happens in my BO???


Author
Message
Thomas Holste
Thomas Holste
StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi there,




who can explain this BO-Behaviour to me?



If cmbbkz.Text.Trim.Length = 0 Then

  bbo.BKZ = " "

End If

If cmbrgls.Text.Trim.Length = 0 Then

  bbo.RGLS = " "

End If






Within the form I delete a vakue from the cmbrgls-combobox and want to save my BO. When I reach this snippet, the value of cmbrgls.text is "" , when I reach the second line (bbo.BKZ = " "), the text-property changes back to ist value before deletion.

It Looks like the BO sets back ist original value before editing to the control, but why? Because I request the value of another Combobox?

Can anyone explain this to me?

Thanks in advance

Thomas









Edhy Rijo
E
StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Thomas,
It may be difficult to fully understand your issue without a video, but I will try.

Couple of questions about your combobox:
  1. Is the cmbbkz combobox binded to the bbo.BKZ?
  2. What is the PopulationType used?
If the cmbbkz is binded to the bbo, then you don't need to do any testing or assignment, the SF combobox is binded via the "SelectedValue" property, not the cmbbkz.Text.



Edhy Rijo

Thomas Holste
Thomas Holste
StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi Edhy,

all combo-bpxes are populated by a BO. The main question is, why the text-property of one Combo changes back to its original value  when the value of another  bo-field bound to a another combo-box is assigned.

Funny enough this does not happen if I assign a value to a bo-field not used by a combo-box.

Best regards

Thomas
Edhy Rijo
E
StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)StrataFrame VIP (3.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Thomas,

Thomas Holste (12/4/2014)
The main question is, why the text-property of one Combo changes back to its original value  when the value of another  bo-field bound to a another combo-box is assigned.

Well, it is very difficult to answer that without seeing your code or a video of your form with the issue.  In cases like this with weird behaviors I tend to go to the basics of how the combobox is defined and see if something may have been missed, that is the reason I asked those questions before.

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thomas, what are you trying to accomplish?  More than likely the text is being trimmed since there is no other text other than a space.
Thomas Holste
Thomas Holste
StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi Trent, Hi Edhy,

I noticed this behaviour and was curious why this happens. As I solved my problem in a different way, it is not too important for me. When I have a little bit more time I'll write a Little test-app and come nack with this.

Thanks ro you all for your help

Thomas
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search