V8 - simple VB help

bwalker,

With your help I have been making some progress. The
"oTrans_adapter_AfterAdapterMethod" method did work for disabling and
enabling my objects (Button, Combo) as needed on the
"Quote\Line\Detail" sheet - Update and GetNewQuoteDtl events.

I have also added another Button and Combo to another sheet -
"Quote\Line\Mfg Details\Quote Details\Materials\Detail" but have yet
been able to handle the events like I did for the Quote\Line\Detail
sheet. The same "afteradapter" method does not seem to work.
Is there a way to determine what adapter is be used at any particular
point?
I guess I don't understand how the "oTrans_adapter_AfterAdapterMethod"
relates to the whole Quote module.
Am I explaining the situation correctly... do you have a suggestion?

Thanks,

Bill

--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
>
> >
> > Can I ask what event you would use to "disable" the button after the
> > line is saved OR deleted before saving?
> >
> > Thanks again...
> >
> afteradapter method - use the example the wizard gives for the case
> statement and add "Update" and "Delete" and possibly "DeleteById"
> cases and then button.enabled = false in each of those....
>
Any VB experts to answer a simple question or two?

1) Need example of how to disable a custom button (or any control) that
was added to a Vantage form/sheet.

2) I have code on a button event to update the partnum field on the
Vantage quote entry form (line sheet) BUT I need to determine if NEW
LINE has been executed first. Is there a easy way to determine this?

I am slowly learning but still have a long way to go...

Thanks,

Bill
--- In vantage@yahoogroups.com, "hoomail4me" <hoomail4me@...> wrote:
>
> Any VB experts to answer a simple question or two?
>
> 1) Need example of how to disable a custom button (or any control)
that
> was added to a Vantage form/sheet.
>
> 2) I have code on a button event to update the partnum field on the
> Vantage quote entry form (line sheet) BUT I need to determine if
NEW
> LINE has been executed first. Is there a easy way to determine
this?
>
> I am slowly learning but still have a long way to go...
>
> Thanks,
>
> Bill
>

button.enabled = false in control properties window

In the newline event set the button.enabled = true

??
> button.enabled = false in control properties window
>
> In the newline event set the button.enabled = true
>
> ??

>In the newline event set...

I will admit that I am completely green... You must assume that I know
how to define the "newline event" - Rule, Form, Event Wizard? And
there is nothing that sticks out as "newline" event -
AfterAdapterMethod, AfterRowChange, etc.??? Sorry if I SHOULD know
where this event can be defined.

Any additional direction?

Note: I do have programming experience, just the whole V8 customization
and .NET is new to me.

Thanks
--- In vantage@yahoogroups.com, "hoomail4me" <hoomail4me@...> wrote:
>
> > button.enabled = false in control properties window
> >
> > In the newline event set the button.enabled = true
> >
> > ??
>
> >In the newline event set...
>
> I will admit that I am completely green... You must assume that I
know
> how to define the "newline event" - Rule, Form, Event Wizard? And
> there is nothing that sticks out as "newline" event -
> AfterAdapterMethod, AfterRowChange, etc.??? Sorry if I SHOULD know
> where this event can be defined.
>
> Any additional direction?
>
> Note: I do have programming experience, just the whole V8
customization
> and .NET is new to me.
>
> Thanks
>
Sorry, the way you defined what you needed led me to believe you
already had a way to tell when a new line was added :-(

How about the EpiViewNotification addrow method?
> Sorry, the way you defined what you needed led me to believe you
> already had a way to tell when a new line was added :-(
>
> How about the EpiViewNotification addrow method?
>

>led me to believe you already had a way to tell when a new line was
>added

Visually, yes, programatically, no :~)

Your suggestion worked - thanks.

Can I ask what event you would use to "disable" the button after the
line is saved OR deleted before saving?

Thanks again...
>
> Can I ask what event you would use to "disable" the button after the
> line is saved OR deleted before saving?
>
> Thanks again...
>
afteradapter method - use the example the wizard gives for the case
statement and add "Update" and "Delete" and possibly "DeleteById"
cases and then button.enabled = false in each of those....