F4 help in BSP
i successfully able to provide F4 help in BSP with selecting all data from DB table .
But my requirement is like there are 2 fields on initial screen
(PLANT, STOREAGE LOCATION) and user will enter PLANT first then based on PLANT , In F4 help list only STORAGE LOCATION corresponding to PLANT entered by user should come .
please help me , and guide me .
For passing the data from the parent to child window we need to do some work around where the user has to click a button.
2 ways we can do it.
1. Once the user has entered the plant using F4 help then a server event has to be triggerd by the user like clicking a button after inserting the value so that we can capture the value from the plant field to a Global field and then pass the parameter to the child page via the URL like this
Where the gv_plant is a global and "auto" attribute in the storage.htm bsp page.
2. Using a java script. Even here after the user enter the plant data, we need a some action from him. Please see this link for more information(for passing data from parent page to child window).
I know only these ways where user has to do some thing after using the first f4 help and filling the data. Hope these things help you in some way.
I have done some sample example and was working.
Please award point if use ful.
I just now got one more idea which is very simple then the above one sachin
1 Create a global class with static attribute gv_plant.
2 In the first help page(plant.htm) of plant set the static attribute of the class in the oninput processing event.
3. Then in the second help page of the storage help page get the static attribute of the page from the class. Then based on it, set the where condition in your second page(in oninitialization event) I guess this is very easy method which does not require and user interaction as said above.
Edited by: vijaya musti on Sep 17, 2008 3:03 PM