Default value Blank Title 74446

I meant to respond to this yesterday - but ran out of 'day' ;o

I (think) if you had put an otrans.update() statement after setting FOB to "Origin" the BO method would have populated the FOB description just as if a user had entered the value....

Sometimes you also have to follow that with a refresh to avoid anoying UI form errors.

'This one does not work
OrderHed_Column. Rows(view. Row)("FOB" ) = "Origin"

otrans.update() 'should pull in all related info (like descrip)
otrans.refresh() 'may not be needed... depends on app

End If
End Sub

The business object methods aren't particularly consistent though (app to app) so this may not have worked (and you may still have had to force in the description).

If it was PO Entry, I'd say you HAVE to force write all the related info... Sales Entry seems a little more forgiving though the little bit I've messed with it.

Rob


--- On Thu, 2/19/09, jed.sitzman <jed.sitzman@...> wrote:

From: jed.sitzman <jed.sitzman@...>
Subject: [Vantage] Re: Default value
To: vantage@yahoogroups.com
Date: Thursday, February 19, 2009, 10:12 AM






Just to let everyone know, I have this resolved. I need to set the
FOBDescription field as well as the FOB field.

When the following was added, it worked.
OrderHed_Column. Rows(view. Row)("FOBDescrip tion") = "Origin"

--- In vantage@yahoogroups .com, "jed.sitzman" <jed.sitzman@ ...> wrote:
>
> I'm trying to set a default value on a native combobox control
(cboFOB)
> on the Sales Order Entry Screen (I've tried this on other screens
> without success). I've set the default on custom added comboboxes,
> just can't do it on native controls. Has anyone set the default
value
> on a native combobox before? The following is the code that I have
> used successfully on custom added comboboxes, but will not work on
the
> native controls. I would just delete the control, and add a custom
> added combobox, but I guess you cann't delete native controls. The
> version of vantage that we are using is Vantage 8.03.407. Thanks
in
> advance for your help.
>
> Private Sub OrderHed_EpiRowChan ged(ByVal view As EpiDataView,
ByVal
> args As EpiNotifyArgs) Handles OrderHed_Row. EpiViewNotificat ion
> If args.NotifyType = EpiTransaction. NotifyType. AddRow Then
> 'This one works
> OrderHed_Column. Rows(view. Row)("ShortChar0 3")
= "Domestic"
> 'This one does not work
> OrderHed_Column. Rows(view. Row)("FOB" ) = "Origin"
> End If
> End Sub
>
I'm trying to set a default value on a native combobox control (cboFOB)
on the Sales Order Entry Screen (I've tried this on other screens
without success). I've set the default on custom added comboboxes,
just can't do it on native controls. Has anyone set the default value
on a native combobox before? The following is the code that I have
used successfully on custom added comboboxes, but will not work on the
native controls. I would just delete the control, and add a custom
added combobox, but I guess you cann't delete native controls. The
version of vantage that we are using is Vantage 8.03.407. Thanks in
advance for your help.

Private Sub OrderHed_EpiRowChanged(ByVal view As EpiDataView, ByVal
args As EpiNotifyArgs) Handles OrderHed_Row.EpiViewNotification
If args.NotifyType = EpiTransaction.NotifyType.AddRow Then
'This one works
OrderHed_Column.Rows(view.Row)("ShortChar03") = "Domestic"
'This one does not work
OrderHed_Column.Rows(view.Row)("FOB") = "Origin"
End If
End Sub
Use a BPM to set it rather than a customization.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of jed.sitzman
Sent: Wednesday, February 18, 2009 10:41 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Default value



I'm trying to set a default value on a native combobox control (cboFOB)
on the Sales Order Entry Screen (I've tried this on other screens
without success). I've set the default on custom added comboboxes,
just can't do it on native controls. Has anyone set the default value
on a native combobox before? The following is the code that I have
used successfully on custom added comboboxes, but will not work on the
native controls. I would just delete the control, and add a custom
added combobox, but I guess you cann't delete native controls. The
version of vantage that we are using is Vantage 8.03.407. Thanks in
advance for your help.

Private Sub OrderHed_EpiRowChanged(ByVal view As EpiDataView, ByVal
args As EpiNotifyArgs) Handles OrderHed_Row.EpiViewNotification
If args.NotifyType = EpiTransaction.NotifyType.AddRow Then
'This one works
OrderHed_Column.Rows(view.Row)("ShortChar03") = "Domestic"
'This one does not work
OrderHed_Column.Rows(view.Row)("FOB") = "Origin"
End If
End Sub





[Non-text portions of this message have been removed]
Just to let everyone know, I have this resolved. I need to set the
FOBDescription field as well as the FOB field.

When the following was added, it worked.
OrderHed_Column.Rows(view.Row)("FOBDescription") = "Origin"


--- In vantage@yahoogroups.com, "jed.sitzman" <jed.sitzman@...> wrote:
>
> I'm trying to set a default value on a native combobox control
(cboFOB)
> on the Sales Order Entry Screen (I've tried this on other screens
> without success). I've set the default on custom added comboboxes,
> just can't do it on native controls. Has anyone set the default
value
> on a native combobox before? The following is the code that I have
> used successfully on custom added comboboxes, but will not work on
the
> native controls. I would just delete the control, and add a custom
> added combobox, but I guess you cann't delete native controls. The
> version of vantage that we are using is Vantage 8.03.407. Thanks
in
> advance for your help.
>
> Private Sub OrderHed_EpiRowChanged(ByVal view As EpiDataView,
ByVal
> args As EpiNotifyArgs) Handles OrderHed_Row.EpiViewNotification
> If args.NotifyType = EpiTransaction.NotifyType.AddRow Then
> 'This one works
> OrderHed_Column.Rows(view.Row)("ShortChar03")
= "Domestic"
> 'This one does not work
> OrderHed_Column.Rows(view.Row)("FOB") = "Origin"
> End If
> End Sub
>