-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attributes problem (inheritance) #58
Comments
Hi @PShumilov, If I could solve this problem then your issue and #41 would be solved. I need to check if there is a way for that. Maybe you have an idea? Cheers |
I tried to fix the bug different ways. In case that instance of grid should be created in PBO event I invented I added new EXPORTING parametr eo_falv like io_falv in FM Z_FALV_DISPLAY and call it in method create for popup:
After create_by_copy in PBO event:
Then replace "old" instance with instance of grid created in PBO:
|
Perfect, I haven't thought about such way! Thanks I will try to implement similar thing inside to get rid of create_by_copy :D I'll keep you informed. |
Please update your FALV, I've used your approach but bit pimped :) I am creating a main GUI container in the screen and then I quit, then I pass it to grid object and now copying of objects is not necessary. :) |
Thanks @fidley! it works |
Hello @fidley!
On zcl_falv inherition I add new methods and attributes.
Before calling
lo_alv->display( ).
I uselo_alv->set_autosave( abap_true ).
.On redefinition method evf_user_command I try to get attribute autosave, but it is empty. It happends if class instance is created as popup screen. If
i_popup = abap_false
evertything is OK.For example:
I figured out that in metod create_by_copy creating new object.
Can you fix it?
The text was updated successfully, but these errors were encountered: