I just spent a few hours trying to access a newly created form on the client side.
My aim is to extend the
Generate Shipments (manual) process with a few additional options. So here is what I tried as a first step:
- Log in as System, open Form Window
- Create a copy of the original form Generate Shipments (manual)
- rename to myGenerateShipmentsForm and save new form
- open Menu window, create copy of Generate Shipments (manual) menu entry as myGenerateShipmentsMenu
- replace special form with myGenerateShipmentsForm and save
I then logged in as client admin and found that the new menu entry is not available.
I then spent a while comparing the original form and menu entry with my newly created ones but could not find any differences.
Only when I looked at the table ad_form_access in the DB manager it became clear that the original form has a number of access rules that I wasn't able to viewed or edit from the webui.
If there is a way to do it I will be happy to know.
I then copied the existing access rules for the original form and pointed these to my own form. Only then the new menu entry appeared in the list.
Question: What is the purpose of the Access tab in the Form window?
It might be more useful to introduce a dedicated Form Access window that is also available to the client as a replacement or as an addition.
Now that my Menu entry is accessible I am ready for the next step - create my own class as an extension of the original class and use that instead.
Here is where the next trouble starts: Looking at the existing special form classes it seems these are all swing ui classes.
How does this work when the web client is used? Obviously it does but I have no Idea how. How would I have to set up my own plugin to fit that interface?
Is there any documentation or example that illustrates what is going on behind the scenes?
Thanks for any helpful comments.
Andreas