2007 Feb 21 6:26 AM
Hi all
I craeted a screen which contains id,name,city,rating,commercial,retail,other fields.I took these from the database so I got the help values for id,nameand city.But now I want to display the values in name and city automatcally when id is selected from the help values or when name is selected then I have to get values in id and city vice versa.Please give me solution.
Thank You.
Regards
Giri.
2007 Feb 21 6:34 AM
Hi,
Your req is not very much clear.
But as Far i understood if you want to get the corr values of name and city for some id write the code in PBO event of that screen.
And if you want to catch some user action and then do the processing ,
write the code in PAI event of that screen.
Please reward if it helps.
Hi all
I craeted a screen which contains id,name,city,rating,commercial,retail,other fields.I took these from the database so I got the help values for id,nameand city.But now I want to display the values in name and city automatcally when id is selected from the help values or when name is selected then I have to get values in id and city vice versa.Please give me solution.
Thank You.
Regards
Giri.
2007 Feb 21 6:34 AM
Hi,
Your req is not very much clear.
But as Far i understood if you want to get the corr values of name and city for some id write the code in PBO event of that screen.
And if you want to catch some user action and then do the processing ,
write the code in PAI event of that screen.
Please reward if it helps.
2007 Feb 21 6:37 AM
HI,
This is possible only if the search help is directly assigned to the structure( Table) that you are using to create your screen fields. Also you need to see that the search help you are using has these other fields which you want to populate automatically in their list of Export parameters. If this is not the case my advise is to create a search help copying the existing search help and add these new fileds as export parameters. And then copy the structure that you are using for screen filelds into a new structure and then assign the new search help to this new strucutre and map the export parameters of the search help to corresponding fields of the structure.
Regards,
Sesh
2007 Feb 21 6:43 AM
Hi,
Add function code for the id.
When the id is filled with a value, the PAI of the screen is called. Within that,
call the function "VRM_SET_VALUES" and call the function "VRM_REFRESH_VALUES" for refreshing the values.
But here you should make the name and city as drop down lists.
For the "VRM_SET_VALUES" function module, you should pass a table, which contains the list of values that should be available in the dropdown.
If you still need information, i will send the sample code.
Regards,
Prasanth
Reward if helpful