on 2022 Oct 07 11:08 PM
Request clarification before answering.
You would use the SAME generic service (which is a BaDI) idea that you normally use for custom "services". However, you will take advantage of a "special" field that HCM P&F framework provides for form scenario step. If you add this field in your "fields" config and then map this to your custom generic service, the framework will fill it in for you for which "step" the process is on at any point.
Within your custom generic service, you would read your "form scenario step" field from the dataset and then simply have some code like....
IF fscn_step = 'TEST'.
Do this stuff.
ELSEIF fscn_step = 'DEFAULT'.
Do this other stuff.
ELSE.
Do generic stuff.
ENDIF.
Make sense? I will let you find the name of the "form scenario step" field that the framework uses. You MUST name it exactly the same in your "fields" config in order to have the framework fill it in for you with the value.
I actually use this a LOT in my own services in order to set the UI for form fields (for example, one step might have a field as editable while on another form step, I might make it read-only or hidden).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
I tried to insert rows into that UI_ATTRIBUTES table at the Initialization event (method IF_HRASR00GEN_SERVICE~INITIALIZE) expecting it would take care of it in the Adobe Form but it ignores it.
For Adobe Forms do we still have to write some Scripts at client side after filling UI_ATTRIBUTES or the Subform needs a binding to UI_ATTRIBUTES context? Hoping you could throw some light on this subject.
I tried with in the BAdI level which did not work so did a workaround to read the FORM_SCENARIO_STAGE value then making some Subforms "readOnly" depending on its value but I don't like doing it on the client side; it should be ideally automatic from the server, I guess I'm going wrong somewhere with my bindings.
Fyi, I have "readonly" and "editable" properties set at the Form Scenario Step levels in the Design Time but the system for some reason ignores them. Could you provide an example how you achieved it with only server side context mapping?
many thanks in advance,
Sougata.
User | Count |
---|---|
96 | |
15 | |
10 | |
8 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.