panelCommand

Phạm vi áp dụng

✅ Bravo 8 · ✅ Bravo 10

Ý nghĩa

Dùng để khai báo hiển thị các control ở phần summary — thực tế là dải nút lệnh ở dòng cuối cùng của Editor.

Cú pháp

<panelCommand>
  <Items>
    <Ten_Commandkey />
    <Ten_Control>
      <!-- Khai báo control -->
    </Ten_Control>
  </Items>
</panelCommand>

Ví dụ

Trên Editor các phiếu chứng từ:

<panelCommand>
  <Items>
    <SaveAndNew />
    <SaveAndClose />
    <SaveLocal />
    <CloseWindow />
    <chkAutoPrintVoucher>
      <ClassName>BravoCheckBox</ClassName>
      <DataMember>AutoPrintVoucher</DataMember>
      <Text>
        <Vietnamese>In sau khi lưu</Vietnamese>
        <English>Print after saving successfully</English>
      </Text>
    </chkAutoPrintVoucher>
  </Items>
</panelCommand>

Đồng thời khai báo trong thẻ <root>:

<showCommandButtons>Custom</showCommandButtons>

→ Tất cả các Item sẽ được hiển thị ở dòng cuối cùng của Editor.

Ghi chú

  • Các đối tượng trong <Items> có thể là:
    • Chức năng được khai báo trong B00Command → chỉ cần khai báo tên CommandKey của nút đó
    • Control tự định nghĩa → khai báo đầy đủ như một control

Phải kết hợp showCommandButtons

Khai báo panelCommand mà không đặt showCommandButtons = Custom thì các Item tự định nghĩa sẽ không hiển thị.

Liên quan

showCommandButtons · zDefaultCommandButton · panelEditor · B00 - Bảng hệ thống · BravoCheckBox