on 09-23-2008 3:29 PM
Hello everybody,
I have a a request to have a dynamic smart form. What I mean by dynamic is that certain fields will appear on the smart form based on settings in config. The settings in config would be in the HR module for employee appraisals. The transaction that we use for setting up the appraisal I beleive is phap_admin. In the future as more fields are added to the config, those fields should show up on the smart form as well.
This issue right now for us is not so much the HR config, just really wanting to know if you can add fields to a smart form dynamically, and maybe a hint or 2 on how to do that.
Hi William,
As and when you add fields in your transaction, you need to add corresponding code in the layout with necessary conditions so that the new fields appear on the form output. The form output we get is as good as the layout and the logic that triggers it. All configuration updates in transaction need to be replicated in the form layout.
Hope this helps.
warm regards,
Amar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi william,
You cannot do like that in smartform. Smartform can display only whatever layout you have defined and what are all the fields you added.
If you really want to have some fields in the future based on some condition, then it should also be included now and restricted using appropriate conditions so that they will show up in the future.
But anyhow you may require to change the smartform in future to change layout and logic based on the upcoming requirements.
Hope i have cleared your query.
Regards
Karthik D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is possible when you want to generate a horizontal (row-centric) output.
Like:
apprisal 1 ... 123
apprisal 2 ... 234
apprisal 6 ...789
In this type of output you can create as many as text elements and give the condition to print it. This condition must be derived from your config tables.
It is also possible when you want to generate a Vertical (Column-centric) output. In this case you have to fix some number of columns say 10. Now you need to create an internal table with 10 columns and fill the values in the appropriate column as per the config. But I think this would require a significant amout of work.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.