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

I need to make quick changes to the Scheduled Date of my Inventory Transfers.

I'd like to be able to click a button to move the date forward or back quickly.

How would this be possible?

The View that is most useful for me to manage the Transfers is the Kanban.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

First, create a Server Action to change the date BACK:


When you save this, take note of the ID that it gets by looking in the URL:


Create a second Server Action to change the date FORWARD, and take a note of the ID of that one. For this Server Action you use the same code but PLUS instead of MINUS.


Then, create an inherited View that adds a button before and after the date field, like this:

View the XML via GIST 


Note:  In the above example, the NAME of each button (lines 5 and 12) are the same as the ID of each Server Action.

This is what you would then see in the Kanban:


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 20
2127
2
thg 3 16
3676
2
thg 3 24
8115
1
thg 1 17
4094
0
thg 8 15
4313