Comments (5)
Thanks @fidley! it works
from falv.
Hi @PShumilov,
it is the same issue like #41. I don't know why it is this way, but when I want to display grid in the popup, then the instance of grid should be created inside the PBO event of the popup.
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
Łukasz
from falv.
I tried to fix the bug different ways. In case that instance of grid should be created in PBO event I invented horrible bad solution (but it works). Maybe this could lead you to find good solvation.
I added new EXPORTING parametr eo_falv like io_falv in FM Z_FALV_DISPLAY and call it in method create for popup:
rv_falv->layout_save = 'A'.
rv_falv->variant-report = sy-cprog.
rv_falv->variant-username = sy-uname.
rv_falv->grid = cast #( rv_falv ).
if i_popup = abap_true.
call function 'Z_FALV_DISPLAY'
exporting
io_falv = rv_falv
iv_start_row = 1
iv_start_column = 1
importing
eo_falv = rv_falv
endif.
After create_by_copy in PBO event:
falv->pbo( iv_dynnr = iv_dynnr ).
falv->display( iv_force_grid = abap_true ).
LEAVE TO SCREEN 0.
Then replace "old" instance with instance of grid created in PBO:
if io_falv->screen eq io_falv->c_screen_popup.
call screen io_falv->screen starting at iv_start_column iv_start_row
ending at iv_end_column iv_end_row.
eo_falv ?= <out>->falv.
else.
call screen io_falv->screen.
endif.
from falv.
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.
from falv.
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. :)
from falv.
Related Issues (20)
- Search Button in toolbar HOT 4
- Installing FALV into systems w/o SAPlink or abapGIT HOT 12
- program errors in S/4 Hana 2020 HOT 11
- F4 help not working for tables defined using local structures (TYPES: BEGIN OF ..) HOT 1
- Column position HOT 3
- ZDEMO_FALV11 set_editable ABAP_FALSE still can editable HOT 2
- Multiple ALVs Default Layout hiding all columns HOT 3
- Syntax error in class zcl_falv in S4 2021 Feature Pack 1 HOT 2
- Empty screen with simple FALV creation HOT 1
- Set Fixed Header Text is not working HOT 5
- Request for Demo Program: Creating Table Maintenance using FALV HOT 2
- Layout Variant issue HOT 1
- Create simplified class for popup display, which inherits from ZCL_FALV
- Syntax error in program "ZCL_FALV_COLUMN===============CP ". HOT 6
- Syntax Error on Hana 2023 HOT 11
- Dropdown Lists stopped working in Hana 2023 HOT 12
- How to use layout variant? HOT 1
- Missing options in pop-up "Change Layout" HOT 2
- Missed r_falv value at method exclude_function HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falv.