on 07-14-2006 5:34 PM
I am trying to create an application that has 5 days of the week, and a user needs to enter a numerical value for each of those 5 days (i.e. enter hours) and then submit. When submit button is pressed, it takes whatever was entered last and displays that for all 5 days. Each of these input fields is bound to
Bapi_Ptmgrattabs_Mngcreation_Input.Hrabsatt_In.Abs_Att_Hours
How do I go about distinguishing each of the 5 days, so they can each have separate and distinct data entered into them?
Thanks!
(as always, points will be awarded)
Hi Kathleen,
What kind of UI are you trying to build? table with one row where columns are days? Or something else? Anyway, I think you need create 5 instances of Abs_Att_Hours and add them to Hrabsatt_In structure before BAPI call.
Best regards, Maksim Rashchynksi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I simply have a group that contains 5 input fields, where the user can enter the hours. I am not using a table.
I figured I need to somehow creat multiple instances, but I am not sure exactly how or where to do this. I'm not sure I understood what you said, either. How would I go about creating 5 instances of Abs_Att_Hours?
Any more help would be greatly appreciated. Thanks!
Hi Kathleen,
1) You can crate 5 aatributes and bind them to input fileds. By submit clicking you can copy last value to all other. And also you need to copy context attributes to appropriate fields of model class.
2) You should have some generated mode classes and structures like Abs_Att_Hour. So, code can looks like (from scratch, don`t k now exactly your model structure):
wdContext.currentBapi_Ptmgrattabs_Mngcreation_InputElement().curerntHrabsatt_InEleemnt().modelObject().addAbs_Att_Hours(new Abs_Att_Hour());
Best regards, Maksim Rashchynksi.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.