Auto Complete Box and two entities
-
Thursday, July 05, 2012 5:20 PM
There is a Auto Complete Box linked to an entity.
How can I get another value from the entity (same entity row), after select the auto complete box, and put it on a Money Viewer and save it on another entity?
Important: only at "add" event.
Something like that...?
Private Sub PRONT_EXAMS_Changed(e As System.Collections.Specialized.NotifyCollectionChangedEventArgs)
If e.Action = Collections.Specialized.NotifyCollectionChangedAction.Add Then...
Many thanks in advance.
All Replies
-
Thursday, July 05, 2012 8:37 PM
Ok, ok, sorry about that. Very easy.
Namespace LightSwitchApplication
Public Class PRONT_MEDICACAO
Me.VALOR = result
Private Sub VALOR_MEDICAMENTO_Compute(ByRef result As Decimal)
' Set result to the desired field value
Dim nValor As Double = 0.0
result = Me.MEDICAMENTO.VALOR
End Sub
End Class
End Namespace
Thanks anyway.
- Marked As Answer by antoniobrito Thursday, July 05, 2012 8:38 PM
-
Friday, July 06, 2012 2:20 AMModeratorNo need to apologise! It's great that you found the answer, & it's even better than you came back & posted it, so now anyone else who has the same question can find your answer.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster.

