When creating a new control procedure and template for a program object, such as a default or a layout, these are the general steps:
- create control proc
- assign placeholder template to prog_object_item
- which creates a template automatically
- generate the prog_object
- copy the parameters of the program object
- paste it in the template.
- Write your code and delete the pasted signature.
These are a lot of steps, which imho can be done in one flow after creating your control proc and assignment. It will save a lot of clicks and screen switching.
Hi Dave,
I would like to point out 2 things.
Would the combination of these 2 features be sufficient in your situation?
Jeroen
All the votes have been transferred into this idea.
to be clear, with parameters from the signature I meant the parameters of the prog object.
Hi Dave,
That's how I interpreted it . For clarity for other users, I changed point 4 in your original text a bit.
What I meant was, if you already have the parameters in the program object code, and you are also able to directly edit the program object code, wouldn't that suffice in your situation? You can easily copy the desired parameters to the code-part below, write your code and then save it. The SF does the rest for you.
To clarify:
My idea is particular of interest in the process of creating a new template and assigning it. (or vice versa)
There are two ways to accomplish that
You follow the order of tabs/screens given in the software factory:
You don’t follow the order of tabs/screens:
I suggest a flow a long the lines of this:
We will go from 6 steps to only 2 steps/clicks/screens.
Alternatively, since you can also code in the program object it self, maybe that should be the second tab page, and leave templates as an advanced option. But as it is now, the order of tabs suggests another workflow and doesn’t reduce the amount of steps.
Although we also use the copying of the signature into remarks of the control procedure, we were thinking about a slightly different solution. There is a lot of white space on the right side of the editors frame. Wouldn’t it be possible to show the signature of the controle procedure there instead of pasting it into the code. This would then always show the actual signature and there would be no need to copy it at all (unless you want to ofcourse).
And if you put a declare before it, you can actually use it in the code to let intellisense recognize the parameters.