on 11-10-2011 6:17 AM
Hi Experts,
Iam New to the Web dynpro for java.i am doing one assignment. That assignment is like this
1. Create a form with 4 text boxes
Plant, material, UOM, altBOM
2. Using webservices
3. Populate plant textbox with list of plants as input help
4. Once a plant is selected the respective list of materials have to be populated as input help to materials text box
5. Once material is selected UOM and Altbom to be populated
i have created view and also web servies imported.
i am not able to do that populate plant textbox with list of plants as input help and
Once a plant is selected the respective list of materials have to be populated as input help to materials text box
and remain
please help me regarding this.
Thanks and Regards,
Neelima.
Edited by: Neelima Yadla on Nov 10, 2011 7:18 AM
Hi Neelima,
Instead of using input field(or textbox) for materials, UOM, altBOM, you can use dropdown by index. That will be easy to do compared to input help for input field.When user gives Plant and press enter key, the corresponding list of materials will be loaded in Materials dropdown. Simillarly when he selects the material, the correponding list of UOM will be populated.
First create adaptive webservice model and use that particular model in your component.
Create an action onEnter event of Plant input field and on its event handler, send the plant value to the model and fetch the corresponding list of materials. Make sure to bound the material dropdown by material of model. This will return the material.
Simillarly create an action on onSelect event of dropdown of material and on its implementation , write logic to send the material value to the model and fetch the UOM values.
Do this for altBOM also.
Hope this will be helpful for you.
Regards,
Jithin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
thank you very much.
but i have done all these things. i am having doubt in backend (Java)
(Populate plant textbox with list of plants as input help
Once a plant is selected the respective list of materials have to be populated as input help to materials text box
Once material is selected UOM and Altbom to be populated)
how to write logic that i am not understanding.
can u help me Please.....
Thanks and Regards,
Neelima.
Edited by: Neelima Yadla on Nov 10, 2011 10:59 AM
Hi Neelima,
You can refer the following link inorder to provide input help in textbox.
Regards,
Jithin
Hi Neelima,
You will not be able to achieve this functionality using value / input help as per my knowledge.
Instead you can have a button with the corresponding input filed (Plants,material & UOM), open a new popup view and dispaly the plants in a table.
On action of the table(plants) trigger an event and try to catch the event in the parent window and load the corresponding matrials as well.
or
Create your own Value Help UI
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/401975e3-e2ee-2b10-e191-a8140aabe9d6
Hope this gives you some idea.
Regards,
Saleem Mohammad.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.