2 ALVs in a single view
How to use 2 ALVs in a Single view.
I need to take refernce of them individually, so that i can confgure them, independant of each other
Thanks,
Selvakumar M.
Hi,
i have developed the same way only.
I was able to get the reference of the first ALV with following code
*Create component usage for alv component
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
*Get config model
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
DATA: l_value TYPE REF TO cl_salv_wd_config_table.
l_value = l_ref_interfacecontroller->get_model( ).
l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
l_value->if_salv_wd_std_functions~SET_VIEW_LIST_ALLOWED( abap_false ).
l_value->if_salv_wd_std_functions~SET_FILTER_FILTERLINE_ALLOWED( abap_false ).
l_value->if_salv_wd_std_functions~SET_FILTER_FILTERLINE_ALLOWED( abap_false ).
l_value->if_salv_wd_std_functions~SET_EXPORT_ALLOWED( abap_false ).
l_value->if_salv_wd_std_functions~SET_DIALOG_SETTINGS_ALLOWED( abap_false ).
I was not able to do the same for the second ALV..
The component name i have used for the ALVs is
1. ALV(i am able to config this)..
2, ALV1(help me for this)
Similar Messages
-
Multiple ALVs in a single view - dropdown not populated
Hi,
I have a web dynpro window in which I am having 2 ALVs. I have created 2 refernces to the class "CL_SALV_WD_CONFIG_TABLE" for each ALV (MR_ALV_1 and MR_ALV_2). The data to the ALVs comes from a node (MR_NODE_ALV).
Now in the ALvs I have a column which is a "dropDownByKey". I am filling the values by getting the NODE_INFO of MR_NODE_ALV. The NODE_INFO is populated correctly with required entries for both ALVs in the same way.
In the respective column of ALV1 I am able to see the dropdown entries. However in ALV2, I am not able to see any entries in the dropdown.
Could you please tell why?
Thanks,
Shalini.Hi
Can any of you help on this?
Thanks
Shalini -
I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
I have two tables:
1 - Bloggers: - bloggerID (int);
- bloggerName (string)
2 - Blogs: - blogID (int);
bloggerID (int);
- blogTitle (string);
- blogImage (string)
A blogger can have one or more blogs while one blog must be related to only one blogger.
I would like to have a view table on my webpage as the following:
Blogger Name
Blog Title
Blog Image
Noris Gang
Virus
virus.jpg
Noris Gang
Desktops
desktop.jpg
Gauthier
Books
books.png
John Leon
NNNMHJhjdhj
Nmbj.jpg
I'm using MVC 4 (or at least 3).
Thanks for your help.Hello,
From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
Create view
as
Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
http://forums.asp.net/1146.aspx
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Displaying views from different componets in a single view
HI gurus,
I want to assemble all the views in a single view by using layout
1. i have 2 DC's, DC1 has 3 components and each component has 4 views
2. DC2 has 5 Components each has some 6 views
My requirement is to display all these views in one view of DC1, depends on the condition
I displayed all DC1 views successfully by using plugs to interface views
but i want disable this entire viewcontainer and display other view container to display DC2 views at same place
I thought by doing this when user clicks on that view every time all the views will load, is it the bestprectice to work, if not please suggest me best solution
Thanks in advance
AnuDear Anusha,
Use the component interface > interface view to integrate other DC2 view in the DC1.
then use the Viewset or Viewcontainer to embed the DC2 view using interface view.
Search for the communication between dcs.
Best Regards
Arun Jaiswal -
Multiple TableExtension/Tableview in a single view...
Hi,
I'm facing a problem creating multiple TableExtension elements in a single view. The relationship between the business objects is like this.
Header--->Order(s)--
>Item(s)
As you can see, each header can have multiple orders and each order can have multiple items.
The number of orders is known only during runtime..
In the last page of my bsp application, created using component workbench, I should allow the user to view/edit item list of all orders found under a particular header. That is to say, the view should contain multiple EditList tables for editing items.
But, I have only one context node for Item and I'm able to show only one table at a time. One solution that works, but not usable in my case is to use navigation buttons to change the Order focus entity. When the focus changes, the Item table shows relevant child entities of that particular order. But, only single table in that view and so, useless.
Classic BSP application is a big NO. The table should allow customizing viewable columns and have toolbar buttons. The Chtmlb:tableExtension is very suitable and convenient while working with BOL objects, but how to generate multiple tables that are independent of each other?
Please provide some pointers...
Thanks,
Arun Prakash
Edited by: Arun Prakash Karuppanan on Jun 21, 2008 11:49 PMHi,
Got it. I used field symbol for specifying the table and looped the tableview tag the number of times I wanted. Each time, the tableview and configtable IDs are also generated uniquely, as I would need them later. Each time, the field symbol is assigned by a method implemented in the controller. This controller method, creates a internal table dynamically and populates it with relevant data fetched from my BOL collection. Ofcourse, I need to implement a separate iterator class for the ConfigTable and use appropriate events to make changes to my BOL collection. It's a little bit complicated, but not impossible.
Regards,
Arun Prakash. -
How to create a single view like report ?
Hello,
basic task is to present a user with 2 versions of the record from the DB. User then will decide either to "approve" the newer version or disregard the changes.
I'm thinking of presenting these rows in a 2 single view report forms.
how do i create this type of report ?
Thank you
AndrewAndrew:
You can create the report query as
select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
from table tab where record_id=<record id of old record>
UNION
select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
from table tab where record_id=<record id of new record>You then add a 'Submit' button and a post-submit process to update the database based on the user's selection. The user's selection will be available in the 'f01' array.
Varad -
The single view is the only setting I need and I find it cumbersome to dig inside menues for every single document. It would be great if there was an option or maybe a property that can be set.
Thanks!And another comment: The save trick does not work for documents you cannot write. For instance I have a latex documentation on my machine and I cannot save these documents since they belong to root. So it would be great to make this configurable for the user.
Thanks! -
3 ALV on a single screen.
Hi,
I need to display 3 alv on a single screen.
There is a FM called 'REUSE_ALV_BLOCK_LIST_APPEND' which can do it but in the documentation its advised not to use it,since it has still not been released.
Is there some other way to display 3 alvs on a screenhai chitrantan,
check out whether this satisfies your condition.
EXAMPLE:
DEFINE m_fieldcat.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
append ls_sort to lt_sort.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
gs_layout TYPE slis_layout_alv,
1st Table
BEGIN OF gt_kna1 OCCURS 0, " Data displayed
kunnr LIKE kna1-kunnr, " Customer number
ernam LIKE kna1-ernam, " Name of Person who Created
erdat LIKE kna1-erdat, " Creation date
name1 LIKE kna1-name1, " Name 1
END OF gt_kna1,
2nd Table
BEGIN OF gt_mara OCCURS 0,
ernam LIKE mara-ernam, " Name of Person who Created
matnr LIKE mara-matnr, " Material number
ersda LIKE mara-ersda, " Creation date
brgew LIKE mara-brgew, " Gross weight
END OF gt_mara,
3rd Table
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " SD document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
Read data
SELECT * FROM kna1
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
SELECT * FROM mara
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_mara.
SELECT * FROM vbak
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
PERFORM f_display_data.
FORM USER_COMMAND *
FORM user_command USING i_ucomm LIKE sy-ucomm
is_selfield TYPE slis_selfield. "#EC CALLED
CASE i_ucomm.
WHEN '&IC1'. " Pick
CASE is_selfield-sel_tab_field(7).
WHEN 'GT_MARA'.
WHEN 'GT_KNA1'.
WHEN 'GT_VBAK'.
READ TABLE gt_vbak INDEX is_selfield-tabindex.
IF sy-subrc EQ 0.
SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. " USER_COMMAND
Form f_display_data
FORM f_display_data.
DATA :
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_sort TYPE slis_sortinfo_alv,
lt_sort TYPE slis_t_sortinfo_alv, " Sort table
lt_events TYPE slis_t_event,
ls_event TYPE slis_alv_event.
gs_layout-group_change_edit = 'X'.
gs_layout-colwidth_optimize = 'X'.
gs_layout-zebra = 'X'.
gs_layout-detail_popup = 'X'.
gs_layout-get_selinfos = 'X'.
Build field catalog and sort table
m_fieldcat 'KUNNR' 'KNA1'.
m_fieldcat 'ERNAM' 'KNA1'.
m_fieldcat 'ERDAT' 'KNA1'.
m_fieldcat 'NAME1' 'KNA1'.
m_sort 'KUNNR'.
Build Event Table
MOVE 'TOP_OF_PAGE' TO ls_event-name.
MOVE 'TOP_OF_PAGE' TO ls_event-form.
APPEND ls_event TO lt_events.
MOVE 'END_OF_LIST' TO ls_event-name.
MOVE 'END_OF_LIST' TO ls_event-form.
APPEND ls_event TO lt_events.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
is_layout = gs_layout
it_events = lt_events
it_sort = lt_sort
TABLES
t_outtab = gt_kna1.
ENDFORM. " F_DISPLAY_DATA
FORM top_of_page *
FORM top_of_page. "#EC CALLED
ULINE.
WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
ULINE.
ENDFORM. " TOP_OF_PAGE
FORM End_of_list *
FORM end_of_list. "#EC CALLED
DATA :
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_sort TYPE slis_sortinfo_alv,
lt_sort TYPE slis_t_sortinfo_alv, " Sort table
lt_events TYPE slis_t_event,
ls_event TYPE slis_alv_event.
Build field catalog and sort table
m_fieldcat 'MATNR' 'MARA'.
m_fieldcat 'ERNAM' 'MARA'.
m_fieldcat 'ERSDA' 'MARA'.
m_fieldcat 'BRGEW' 'MARA'.
m_sort 'MATNR'.
Build Event Table
MOVE 'END_OF_LIST' TO ls_event-name.
MOVE 'END_OF_LIST_2' TO ls_event-form.
APPEND ls_event TO lt_events.
gs_layout-list_append = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
it_fieldcat = lt_fieldcat
is_layout = gs_layout
it_sort = lt_sort
it_events = lt_events
TABLES
t_outtab = gt_mara.
ENDFORM. " END_OF_LIST
FORM End_of_list_2 *
FORM end_of_list_2. "#EC CALLED
DATA :
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_sort TYPE slis_sortinfo_alv,
lt_sort TYPE slis_t_sortinfo_alv, " Sort table
lt_events TYPE slis_t_event,
ls_event TYPE slis_alv_event.
Build field catalog and sort table
m_fieldcat 'VBELN' 'VBAK'.
m_fieldcat 'VKORG' 'VBAK'.
m_fieldcat 'KUNNR' 'VBAK'.
m_fieldcat 'NETWR' 'VBAK'.
m_fieldcat 'WAERK' 'VBAK'.
m_sort 'VBELN'.
Build Event Table
MOVE 'TOP_OF_PAGE' TO ls_event-name.
MOVE 'TOP_OF_PAGE' TO ls_event-form.
APPEND ls_event TO lt_events.
gs_layout-list_append = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
it_fieldcat = lt_fieldcat
is_layout = gs_layout
it_sort = lt_sort
it_events = lt_events
TABLES
t_outtab = gt_vbak.
ENDFORM.
HOPE THIS IS HELPFUL.
regards,
praba. -
I have been working on a book and have 418 photos already in my book. All of a sudden I cannot access the book module and clicking on the multiple view, spread view, or single view does not take me back to the book I have been working on. I can no longer see my book although I still see the collection with 418 photos under collections. What I do see is a blank template for a new book and I can't find the unfinished book I started with 418 photos. It is like the new empty template is somehow covering it up. How do I get back to the book I have been working on?
Is it possible you mistakenly clicked on a [Clear Layout] button?
But a great hint is- Always click on the [Create a Saved Book] button, early in your new book design.
Then you have a permanent link to the book in the Collections panel. (In addition to the standard collection of your selected images)
Note: a Book Collection shows an icon that looks like a book.
Every time you come back to edit the book, open the Book Module by clicking on the white arrow that appears on the end of your Book Collection title. (The title as saved)
Re-opening a book without using the "Saved Book" option can have unpredictable results.
A "Book" Collection is like a "Smart Collection" because anything you do to the book design, change pages, change images, etc, is automatically updated in the Saved Book collection. -
How-to synchronize edit forms for a single View Object tree node entrie
Hi all,
I created a tree from a single View Object,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf]
then i want to create and synchronize edit forms for tree node entries,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/50-synchromize-form-treeselection-169192.pdf]
but it not working when i click child node!!
i found the latter tree from many View Object ,but the former tree from single View Object.
what should i do?
Thanks in advanceHi,
say the tree is built from ViewObject1. In the AM model, create a second View Object instance for this. Say ViewObject2. Create the form from ViewObject2 and the tree from ViewObject1. When creating the tree, use the"Target Data Source" option at the bottom to reference the iterator of ViewObject2. Then create a PartialTrigger on the paneFormLayout that holds the synch form. In the partial trigger property, reference the tree so that when the tree selection changes, the form is updated. Then create a PartialTrigger property on the tree and point it to the submit button of the form so you can show updated values in the tree.
Frank -
Global Variable in Single View
Hello All,
Can anyone help me out .
How to decalre a variable which can be available in all methods in a same view,without using context attribute .As I have a view and I have to pass value between methods of a single view.
Thanks in Advance
Regards,
KiranHi ,
Instead of context attribute , you can declare the variable in the the ' Attributes ' tab
suppose
a variable LV_CLASSIFICATION1 and you can give the type associated with it .
You can acess the variable in methods of view like this
lv_classification = wd_this->lv_classification1.
where lv_classification is a variable used in the method .
Hope this would sort your problem. -
Multiple views in single View Container
Hi Experts,
Is it possible to display multiple views in single view container.!! . I want to display 2 views in a view container based on condition. Please suggest me how to achieve this.
Thanks,
Regards,
Ram.Hi.,
Yes it is possible to embed views in one view container.
Embed all views in one View Container . Assign plugs based on condition navigate through them.
Create an attribute and bind the visibility property and play with show or hide.
hope this helps.,
revert if u need some more clarifications.,
Thanks & regards
Kiran -
Creating multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005
How to create multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005?
I need to use Crystal XI and create a dashboard which shows some sales data and stuff, multiple graphs on a single screen.
My tech team says they can display one graph per page but not 4 graphs on the same page as it uses a common view from SQL Server 2005.
How to manage this? Can we call in multiple views / graphs in the same page? Say 4 graphs on the same page?
We use ASP or .NET for calling crystal reports into the App.
Regards,
Akshay.
INDIAHave you tried creating multiple sections, putting each graph in a separate section and then underlaying the sections so they appear next to each other?
-
Import a single view from a full export
Good Morning
How can I extract a single view from a export file?
I can restore a single table no problem
or the whole export file, but i just need one
view out of it
Thanks
DavidHi David & Reza,
There is a way where you can extract a single view from the export file.
01. Do the import process with show=y, that will show all the DDL syntaxes including views.
02 Spool or redirect the output to a file.
03.Get the view syntax and recreate it.
Cheers,
Kamalesh JK -
Putting several single view apps together into 'a suite'
I have a few single view apps that I want to combine into a suite. This would be in the format of having an initial menu screen with an icon for each of the apps, and the user would select the app he wants and the single view app would launch.
What is a recommended approach here? I have not tried anything like this before.
Should be simple, I guess! Multiple linked targets?
Any pointers in the right direction would be appreciated.Create a menu view.
Create a view for each function (app).
When an option (function/app) is selected, push that fuction's view onto the navigation stack.
When the user presses the back button, there's your menu!
(You can use Storyboards for the same thing but I've no experience with them, yet.)
Maybe you are looking for
-
Error connecting UWL EP7.0 with SAP R/3 4.7
Hello, We're trying to connect UWL of EP 7.0 with SAP R/3 4.7 Kernel 6.40 patch 247(ST-PI 2005_1_620) and we get the following error: "(Connector) :javax.resource.ResourceException:Failed getting the following function metadata from repository: URL_
-
How to make individual tabs on a JTabbedPane, a different colour?
Hi, Is there a way to set the background colour to INDIVIDUAL tabs on a tabbed pane so that I can have a nice range of colours across my tabs? DLawton.
-
Hi all, I just have a quick question regarding iCloud photo library size. What happens when the iCloud photo library is larger than the space on my iPhone? My iCloud photo library size is 4gb (I am still within the free 5gb) however, the space on my
-
we have an application server(proc) that dequeues messages. If the application server stops or is killed the database session still remains active.(in v$session) Is there something that I missed in order to free up these sessions.
-
How to lock the rows in a transaction so others cant modify the rows
Hi, I want few suggestion in the following scenario . I have a few records ( say 100 ) in a table which Im sending to the client over a network and are populated in a swing GUI...Now the client selects few of them ( say 3 ) and submits to the server.