Disable Ribbon button based on Order being opened

Discussions related to custom development with Select.
Post Reply
danny.little
Posts: 21
Joined: Fri May 14, 2010 10:18 am

Disable Ribbon button based on Order being opened

Post by danny.little »

How do I Disable a Ribbon button or the Group based on an Order being opened. I looked through the samples and the forum and could only find the _QueryStatus which didn't work for what I need. Thanks in advance.

Danny Little
Pulte Financial Services
Thanks
Danny Little
danny.little
Posts: 21
Joined: Fri May 14, 2010 10:18 am

Re: Disable Ribbon button based on Order being opened

Post by danny.little »

I may not have been clear. I want the button to enable when any order is opened. I suppose like the "Apply Template" button in the orders ribbon. Let me apologize in advance if I have missed something.

Thanks
Danny Little
Thanks
Danny Little
Hadi Chemaly

Re: Disable Ribbon button based on Order being opened

Post by Hadi Chemaly »

Hi Danny,

Use something like this to achieve what you're asking for:

Code: Select all

  <Using alias="pf" href="C:\Program Files\SoftPro\Select SDK\Include\ProForm.cts" />
  .
  .
  .
  <Contexts>
    <Context guid="pf:OrderEditorGuid">
      <ContextItem id="RibbonButton1" />
    </Context>
  </Contexts>
This will enable your button only in the context of an OrderEditor, i.e. when you have an Order open.
Post Reply