Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1828 Lượt xem

Hello everyone again,

I have another request for help here, if you guys can lend a hand....
Basically I have a button that connects between two views 'Receipts' and 'Subcontrating Delivery', what I want, and I have not yet figured out how, is that when I am inside the 'Receipts' view the name that appears on the button is for example "OUTsub" and when I am in the 'Subcontrating Delivery' view it appears "IN", just an example...
How do I create this condition in the xml, can anyone give me a hand? 
This is my XML with the necessary settings
Thanks



Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you very much for your help! :)

Câu trả lời hay nhất

Hi

Try the code below,

<button name='<action_name' string="OUTsub" attrs="{'invisible':<condition>}"/>


<button name='<action_name' string="IN" attrs="{'invisible':<condition>}"/>

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 23
2509
1
thg 6 23
1791
1
thg 6 23
3047
2
thg 8 23
2135
1
thg 6 23
2339