|
| PO Receipt Entry |
 |
Tue, 8 Apr 2008 13:19:40 -0700 |
Is there a function in VBA / Customization Manager that that allows
you to disable the NEW, SAVE OR DELETE on the Solomon toolbar?
I am trying to turn off the INSERT LEVEL message that you get for
example when on the Receipt/Invoice Entry in Purchasing. WHen you
click NEW you are presented with a dialogue box. I want to turn this
off and only allow batch entry and not multiple documents in one
batch.
|
| Post Reply
|
| Re: PO Receipt Entry |
 |
Wed, 9 Apr 2008 10:51:20 +1200 |
Kambiz
There is a SetButton call which can be used, in VBTools, to enable/disable
the various buttons at various Levels.
I don't think it is available in VBA.
Even if it was, I'm not sure that it would help much, because if you did
manage to disable the button, that would prevent you from entering any
documents - unless you managed to toggle it on or off, depending on whether
the current batch already contains a document.
I know of no way to suppress the message (from the kernel) about what sort
of Insert you want to do.
A slightly cumbersome alternative approach might be to allow the buttons to
remain enabled, but catch unwanted actions in the Upgrade Control's OnInsert
event.
You could do something like
if (Level = 1) and (there's already a document in this batch) then
call messbox("Sorry - only one doc per batch", mb_ok, "VBA
Editing")
retval = errnomess
exit sub
end if
That does not suppress the kernel's message (that you wanted to suppress...)
but it does prevent them selecting to insert a Document.
Of course, it relies on your code reliably being able to detect when a
document is allowed to be inserted...
Just a few thoughts...
Barry
--
Barry Flynn
Complete Solutions DG
"Kambiz Ghassemy - Hitachi Consulting" <KamDman@gmail.com> wrote
in message
news:439a7487-640b-4897-a51a-856647420a11@t36g2000prm.googlegroups.com...
> Is there a function in VBA / Customization Manager that that allows
> you to disable the NEW, SAVE OR DELETE on the Solomon toolbar?
>
> I am trying to turn off the INSERT LEVEL message that you get for
> example when on the Receipt/Invoice Entry in Purchasing. WHen you
> click NEW you are presented with a dialogue box. I want to turn this
> off and only allow batch entry and not multiple documents in one
> batch.
>
> Thanks for the help.
|
| Post Reply
|
| Re: PO Receipt Entry |
 |
Thu, 10 Apr 2008 14:45:18 -070 |
On Apr 8, 3:51 pm, "Barry Flynn" <Anonymouse> wrote:
> Kambiz
>
> There is a SetButton call which can be used, in VBTools, to enable/disable
> the various buttons at various Levels.
> I don't think it is available in VBA.
> Even if it was, I'm not sure that it would help much, because if you did
> manage to disable the button, that would prevent you from entering any
> documents - unless you managed to toggle it on or off, depending on
whether
> the current batch already contains a document.
>
> I know of no way to suppress the message (from the kernel) about what sort
> of Insert you want to do.
>
> A slightly cumbersome alternative approach might be to allow the buttons
to
> remain enabled, but catch unwanted actions in the Upgrade Control's
OnInsert
> event.
>
> You could do something like
> if (Level = 1) and (there's already a document in this batch) then
> call messbox("Sorry - only one doc per batch", mb_ok,
"VBA Editing")
> retval = errnomess
> exit sub
> end if
>
> That does not suppress the kernel's message (that you wanted to
suppress...)
> but it does prevent them selecting to insert a Document.
>
> Of course, it relies on your code reliably being able to detect when a
> document is allowed to be inserted...
>
> Just a few thoughts...
>
> Barry
>
> --
> Barry Flynn
> Complete Solutions DG
>
> "Kambiz Ghassemy - Hitachi Consulting" <KamD...@gmail.com>
wrote in
messagenews:439a7487-640b-4897-a51a-856647420a11@t36g2000prm.googlegroups.com...
>
>
>
> > Is there a function in VBA / Customization Manager that that allows
> > you to disable the NEW, SAVE OR DELETE on the Solomon toolbar?
>
> > I am trying to turn off the INSERT LEVEL message that you get for
> > example when on the Receipt/Invoice Entry in Purchasing. WHen you
> > click NEW you are presented with a dialogue box. I want to turn this
> > off and only allow batch entry and not multiple documents in one
> > batch.
>
> > Thanks for the help.- Hide quoted text -
>
> - Show quoted text -
|
| Post Reply
|
|
|
|
|
|
|
|
|
|