Dynamically Embed View in ViewContainer
Hi all,
Iam trying to create a ViewContainerUI element at runtime and want to add an existing view to the ViewContainer dynamically.
Please let me know how can I embed a view dynamically in a view container.
Component Controller :
//Dynamic view container
final IWDWindowInfo myWindow = wdComponentAPI.getComponentInfo().findInWindows("DemoWin");
final IWDViewUsageInfo vuiMain = myWindow.getViewUsageByID("DemoView");
final IWDViewContainerAssignmentInfo vcaiMainArea = vuiMain.createViewContainerAssignment();
final IWDViewInfo viMain= (IWDViewInfo)vuiMain.getView();
final IWDViewContainerInfo vciViewContainer = viMain.createViewContainer();
/* Transfer the name to view controller to setup UI element */
wdContext.currentContextElement().setViewId( vciViewContainer.getName() );
vcaiMainArea.setViewContainer( vciViewContainer );
In the DemoView :
IWDViewContainerUIElement theViewContainer = (IWDViewContainerUIElement) view.createElement(IWDViewContainerUIElement.class, fld.getFieldID());
theViewContainer.setViewContainer("TableView");
theViewContainer.createLayoutData(IWDMatrixHeadData.class);
theViewContainer.setViewContainer(wdContext.currentContextElement().getViewId());
theGroup.addChild(theViewContainer);
This is working fine. I am not getting exceptions.
But a empty container is added to the view. Instead I want to add a existing view into DEMOVIew view container.
Please help me......Thanks in advance.
Try this..........
//Dynamic view container
final IWDWindowInfo myWindow = wdComponentAPI.getComponentInfo().findInWindows("MyWin");
final IWDViewUsageInfo vuiMain = myWindow.getViewUsageByID("MainView");
final IWDViewContainerAssignmentInfo vcaiMainArea = vuiMain.createViewContainerAssignment();
final IWDViewInfo viMain= (IWDViewInfo)vuiMain.getView();
final IWDViewContainerInfo vciViewContainer = viMain.createViewContainer();
/* Transfer the name to view controller to setup UI element */
vcaiMainArea.setViewContainer( vciViewContainer );
//EMbed View dynamically in the View Container //
final IWDViewUsageInfo vuiInner = vcaiMainArea.createEmbeddedViewUsage();
final IWDViewUsageInfo myViewMain = myWindow.getViewUsageByID("MyView");
final IWDViewInfo myView= (IWDViewInfo)myViewMain .getView();
myViewMain.setView( myView);
/* Mark view usage as default */
vcaiMainArea.setDefaultViewUsage( vuiInner );
Let me know if it works.........
Similar Messages
-
Dynamically embed View in ViewContainerUIElement
Hi all,
Iam trying to create a ViewContainerUI element at runtime and want to add an existing view to the ViewContainer dynamically.
Please let me know how can I embed a view dynamically in a view container.
Component Controller :
//Dynamic view container
final IWDWindowInfo myWindow = wdComponentAPI.getComponentInfo().findInWindows("DemoWin");
final IWDViewUsageInfo vuiMain = myWindow.getViewUsageByID("DemoView");
final IWDViewContainerAssignmentInfo vcaiMainArea = vuiMain.createViewContainerAssignment();
final IWDViewInfo viMain= (IWDViewInfo)vuiMain.getView();
final IWDViewContainerInfo vciViewContainer = viMain.createViewContainer();
/* Transfer the name to view controller to setup UI element */
wdContext.currentContextElement().setViewId( vciViewContainer.getName() );
vcaiMainArea.setViewContainer( vciViewContainer );
In the DemoView :
IWDViewContainerUIElement theViewContainer = (IWDViewContainerUIElement) view.createElement(IWDViewContainerUIElement.class, fld.getFieldID());
theViewContainer.createLayoutData(IWDMatrixHeadData.class);
theViewContainer.setViewContainer(wdContext.currentContextElement().getViewId());
theGroup.addChild(theViewContainer);
This is working fine. I am not getting exceptions.
But a empty container is added to the view. Instead I want to add a existing view into viewcontainer dynamically.
Please help me......Thanks in advance.Try this..........
//Dynamic view container
final IWDWindowInfo myWindow = wdComponentAPI.getComponentInfo().findInWindows("MyWin");
final IWDViewUsageInfo vuiMain = myWindow.getViewUsageByID("MainView");
final IWDViewContainerAssignmentInfo vcaiMainArea = vuiMain.createViewContainerAssignment();
final IWDViewInfo viMain= (IWDViewInfo)vuiMain.getView();
final IWDViewContainerInfo vciViewContainer = viMain.createViewContainer();
/* Transfer the name to view controller to setup UI element */
vcaiMainArea.setViewContainer( vciViewContainer );
//EMbed View dynamically in the View Container //
final IWDViewUsageInfo vuiInner = vcaiMainArea.createEmbeddedViewUsage();
final IWDViewUsageInfo myViewMain = myWindow.getViewUsageByID("MyView");
final IWDViewInfo myView= (IWDViewInfo)myViewMain .getView();
myViewMain.setView( myView);
/* Mark view usage as default */
vcaiMainArea.setDefaultViewUsage( vuiInner );
Let me know if it works......... -
Dynamically embed View into View Container UI Element
Hi all,
I'm searching for a possibility to embed a view into a dynamically created View container element.
I want to do this out of another view, where a tabstrip is contained. So I have a button on this view for generation of a new tab with an view container element in it. Now I got to the point where I have to set the view to this container within the tab strip.
I read several blogs and articles, where this is done via the window manager within an method of the window, but non how to do this within a view.
Any ideas?
Thanks
OlliHI,
that's nit what I wanted. What I want to do is a kind of table maintenance. There is a button under the tabstrip for creating a new row. If the user klicks on that button a new tab should be created for the new row. Therefore the view on the tabs are always the same.
I have created the tabstrib. dynamically add a tab to this strip on button press is no problem. Also a ViewContainerElement is created. But now I have to set the statically created view for the row maintenance into the container.
Thanks
Ragards
Olli -
Embed dynamic smart view report into power point
Hello All.
can amyone help with How to Embed dynamic smart view report into power point
Thanks.Have you tried dragging and dropping onto a ppt slide? I just did and showed up sheet one of the workbook. If you have many sheets in the workbook and want to show a particular sheet/data, you may want to save workbook with that sheet visible when you reopen. One thing I have not checked is dynamic content of the worksheet.
Venu -
Problem with embeding the same view in dynamically created view container
Hello Experts,
I am getiing a dump when i try to embed the same view inside the dynamically created view container of
dynamically created tabs of a tabstrip
The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
I have put the below mentioned code in HANDLEIN,
DATA: lref_vcntlr TYPE REF TO if_wd_view_controller,
lref_comp TYPE REF TO if_wd_component_usage,
lv_embed_pos TYPE string.
lref_vcntlr = wd_this->wd_get_api( ).
lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
TRY.
CALL METHOD lref_vcntlr->do_dynamic_navigation
EXPORTING
source_window_name = 'FILE_PERSISTENCE_WND' " Window
source_vusage_name = 'FILE_PERS_EDIT_USAGE_1' " Source View usage
source_plug_name = 'TO_EDIT_LAYOUT' " Outbound plug
target_view_name = 'PERS_EDIT_LAYOUT' " Second view to be embedded
target_plug_name = 'IN' " Second view inboun plug
target_embedding_position = lv_embed_pos
RECEIVING
component_usage = lref_comp.
CATCH cx_wd_runtime_repository .
ENDTRY.
wd_this->fire_to_edit_layout_plg( ).
This works fine for the first time.
However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
I think, the view2 embediing has to be removed before i add the view2 in a different tab
Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
means to handle this problem?
Thanks & Best Regards,
Srini.Hello Srini,
I found a solution to your problem, because I had a similar task.
In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
DATA:
l_view_controller_api TYPE REF TO if_wd_view_controller.
l_view_controller_api = wd_this->wd_get_api( ).
TRY.
CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
EXPORTING
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_VW_CONTENT'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'VW_CONTENT'
target_plug_name = 'DEFAULT'
target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
RECEIVING
repository_handle = wd_this->g_rep_handle.
CATCH cx_wd_runtime_repository .
ENDTRY.
wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
DATA:
lv_position TYPE string,
l_view_controller_api TYPE REF TO if_wd_view_controller,
lr_view_usage TYPE REF TO if_wd_rr_view_usage,
lr_view_***_t TYPE wdrr_vca_objects,
lr_view_*** LIKE LINE OF lr_view_***_t.
l_view_controller_api = wd_this->wd_get_api( ).
lr_view_usage = wd_this->g_view->get_view_usage( ).
lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
CLEAR lv_position.
CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
TRY.
l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_EMPTYVIEW'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'EMPTYVIEW'
target_plug_name = 'DEFAULT'
target_embedding_position = lv_position ).
CATCH cx_wd_runtime_repository.
ENDTRY.
CLEAR lv_position.
CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
TRY.
wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
source_window_name = 'WDW_MAIN'
source_vusage_name = 'VW_SUB_USAGE_1'
source_plug_name = 'TO_VW_CONTENT'
target_component_name = 'ZTEST_DYNAMIC'
target_view_name = 'VW_CONTENT'
target_plug_name = 'DEFAULT'
target_embedding_position = lv_position ).
CATCH cx_wd_runtime_repository.
ENDTRY.
wd_this->fire_to_vw_content_plg( param1 = tab ).
Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
BR,
Roland -
ALV not appear in a embed view
Hi Gurus,
Initialy I have two differents views:The first one with some fields and a filter button and the second one with an ALV list and buttons.
The requirement is join the two view in one. I create in the first one view a ViewcontainerUIElement that embed view2(with ALV list). The problem is when I test the view1 appear all buttons of view2 but without ALV list.
Is a restriction of viewcontainer that don't appear alv component in embed view, or I do anything wrong?
A lot of thanks,
JordiHi,
Is the ALV table displayed with no data OR the ALV itself is not displayed?
If alv table is not at all displayed, Check if you have embedded the view TABLE of component SALV_WD_TABLE into the viewcontainer of View 1.
If you are getting empty ALV table, check if the node is populated correclty.
Still if you face the issue, let us know exactly how you are implementing(details about window, view and viewcontainers used ).
Regards,
Srilatha -
Is it even possible to dynamically apply view criteria in an ADF Web App?
This is one of those situations where something that should take an hour ends up taking days.
* I have a view.
* The view has Bind Variables associated with it.
* The view has View Criteria associated with it.
* Each of the View Criteria use different Bind Variables.
* I have a search criteria input page that receives from the user what will ultimately be used to set the bind variables.
* I have a search results page that uses the view to display a table.
* I have the code that dynamically sets view criteria and parameters. It is based on the following:
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#BCGFHAGA
* This code works great, until the iterator associated with the table binding to the view is initialized. At that time, the view is reset to its defaults, and all of my code's doings are discarded. How do I know this? Because I have gone so far as to run my code that sets view criteria and binding variables dynamically in a phase event handler for the search results page in the render response phase. There is no other point at which to dynamically modify the view.
This is turning into a situation where it seems I will need 5 different views and 5 different pages in order to show a single set of query results. I cannot get dynamically applied view criteria to work in an ADF web app. Has anyone else done it? Can anyone relate to this? Are there any other suggestions before I conclude that it's not possible for this framework to handle this simple scenario?
ThanksThere must be a setting or something that I am still missing here. If I write code just like this and make sure it is executed, I still only see the results of my view executed without the view criteria applied using the default bind variable values that I supplied in the view object.
It's like the fact that I set the bind variables, the view criteria, and executed the view query programmatically is lost on the iterator -- it's like it never happened. What setting is used to ensure that the iterator uses the outcome of what I executed programmatically? There has to be a critical set or setting that I am missing.
Here is the iterator and search region definitions defined in the page def "executables" section:
<executables>
<iterator Binds="CustomSearchView1" RangeSize="25"
DataControl="AppModuleDataControl"
id="CustomSearchView1Iterator"/>
<searchRegion Binds="CustomSearchView1Iterator"
Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
id="CustomSearchView1Query"/>
</executables>Here's the "tree" binding in the page def file:
<bindings>
<tree IterBinding="CustomSearchView1Iterator" id="CustomSearchView1">
<nodeDefinition DefName="Model.CustomSearchView" Name="CustomSearchView10">
<AttrNames>
<Item Value="CustomId"/>
<Item Value="CustomProjectNumber"/>
<Item Value="CustomName"/>
<Item Value="CustomStatus"/>
<Item Value="CustomStatusDate"/>
</AttrNames>
</nodeDefinition>
</tree>
</bindings>In an effort to take page flow out of this mess, I had modified this to include the search criteria and search results on a single page. So, I now have a "Search" button. When the "Search" button is clicked, the action method does the following:
public String searchActionListener ()
// Get search criteria from select one choice and text input controls.
AppModule appModule =
( AppModule ) Configuration.createRootApplicationModule (
"Model.AppModule",
"AppModuleLocal");
appModule.customSearch( searchCriteria1,
searchCriteria2,
searchCriteria3 );
}In my application module this translates to:
public void customNoticeSearch ( String searchCriteria1, String searchCriteria2, String searchCriteria3)
CustomSearchViewImpl searchViewImp =
( CustomSearchViewImpl ) this.getCustomSearchView1 ();
searchViewImp.customExecuteQuery ( searchCriteria1, searchCriteria2, searchCriteria3);
}Finally, in my custom view object implementation code:
public void customExecuteQuery ( String searchCriteria1, String searchCriteria2, String searchCriteria3 )
// Set-up the parameters that are part of the core query.
this.setp_searchCriteria1( searchCriteria1);
this.setp_searchCriteria2( searchCriteria2);
if ( searchCriteria3 != null )
ViewCriteriaManager vcm = this.getViewCriteriaManager();
ViewCriteria vc = vcm.getViewCriteria ( "WithLastCriteria" );
this.setp_searchCriteria3( new Number ( searchCriteria3 ) );
this.applyViewCriteria( vc );
System.out.println ("This is fun.");
this.executeQuery();
}This code executes, but the results table is empty, and I know that there are results, because I can execute use execute with params to execute the base query and get the correct results back.
Thanks for taking a look at this. -
Dynamic Performance View question
So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
V$DATAFILE is a synonym that references a view named V_$DATAFILE:
SQL> select dbms_metadata.get_ddl('SYNONYM', 'V$DATAFILE', 'PUBLIC') from dual;
DBMS_METADATA.GET_DDL('SYNONYM','V$DATAFILE','PUBLIC')
CREATE OR REPLACE PUBLIC SYNONYM "V$DATAFILE" FOR "SYS"."V_$DATAFILE"
SQL> select object_type from dba_objects where object_name='V_$DATAFILE';
OBJECT_TYPE
VIEW
But the definition of the view references the.... synonym itself?
SQL> select dbms_metadata.get_ddl('VIEW', 'V_$DATAFILE', 'SYS') from dual;
DBMS_METADATA.GET_DDL('VIEW','V_$DATAFILE','SYS')
CREATE OR REPLACE FORCE VIEW "SYS"."V_$DATAFILE" ("FILE#", "CREATION_CHANGE#",
"CREATION_TIME", "TS#", "RFILE#", "STATUS", "ENABLED", "CHECKPOINT_CHANGE#", "C
HECKPOINT_TIME", "UNRECOVERABLE_CHANGE#", "UNRECOVERABLE_TIME", "LAST_CHANGE#",
"LAST_TIME", "OFFLINE_CHANGE#", "ONLINE_CHANGE#", "ONLINE_TIME", "BYTES", "BLOCK
S", "CREATE_BYTES", "BLOCK_SIZE", "NAME", "PLUGGED_IN", "BLOCK1_OFFSET", "AUX_NA
ME", "FIRST_NONLOGGED_SCN", "FIRST_NONLOGGED_TIME", "FOREIGN_DBID", "FOREIGN_CRE
ATION_CHANGE#", "FOREIGN_CREATION_TIME", "PLUGGED_READONLY", "PLUGIN_CHANGE#", "
PLUGIN_RESETLOGS_CHANGE#", "PLUGIN_RESETLOGS_TIME") AS
select "FILE#","CREATION_CHANGE#","CREATION_TIME","TS#","RFILE#","STATUS","ENA
BLED","CHECKPOINT_CHANGE#","CHECKPOINT_TIME","UNRECOVERABLE_CHANGE#","UNRECOVERA
BLE_TIME","LAST_CHANGE#","LAST_TIME","OFFLINE_CHANGE#","ONLINE_CHANGE#","ONLINE_
TIME","BYTES","BLOCKS","CREATE_BYTES","BLOCK_SIZE","NAME","PLUGGED_IN","BLOCK1_O
FFSET","AUX_NAME","FIRST_NONLOGGED_SCN","FIRST_NONLOGGED_TIME","FOREIGN_DBID","F
OREIGN_CREATION_CHANGE#","FOREIGN_CREATION_TIME","PLUGGED_READONLY","PLUGIN_CHAN
GE#","PLUGIN_RESETLOGS_CHANGE#","PLUGIN_RESETLOGS_TIME" from v$datafile
So the view definition references a synonym, and the synonym references the same view... seems circular. Is this Oracle Corp's way of telling me to bugger off? I just wanted to look up the name of the dynamic performance table out of curiosity.DBjanitor_old wrote:
So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
The synonyms is owned by PUBLIC, not by SYS - so when SYS references v$XXX they access the underlying object, when anyone else references v$XXX they access the synomym, which points to the view owned by SYS, and the view accesses the underlying object owned by SYS.
The point of this is that SYS is the only schema allowed to use the code that interprets the dynamic performance views properly, so any end user that wants to access them has to go through an object owned by sys, which then accesses them with the privileges of sys (i.e. the equivalent of authid owner). The apparent loop in the chain simply means that SYS, SYSTEM, DBSNMP etc. can all use the same queries to access the dynamic performance views, but only one of them is accessing the special code directly.
See what happens if you try to grant access to the raw objects to non-SYS schemas (logged on as SYS)
SQL> grant select on v$session to test_user;
grant select on v$session to test_user
ERROR at line 1:
ORA-02030: can only select from fixed tables/viewsReagrds
Jonathan Lewis -
Which table the dynamic selection view will be stored
Dear Freinds,
I have created a dynamic selections view form Se80 > Editobject>Selection view > Created by adding the required tables pa0002,pa006,pa0009 . But the transport request we have saved it locally
now i want to create a transport request for the dynamic view . Could any please let me know how to create transport reqest for the Dynamic selection
View which has been created.
regards
divyaHiDivya,
yo have saved the changes into local object and now you want to generate the TRN and for the save you have to change the attribute > GOTO > Other object Entry and changed the package and TRN will generate .
Regards
Sheetal -
Dynamically Binding to Dynamically Create View
I tried to copy the code of Dynamically Binding to Dynamically Create View object but something is wrong because when I am debbuging it doesnt work after the sentence vo.executeQuery();
I suspect that the reason could be how I created the view..
Your code is running well but not mine.
It shows this error
JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
null
I dont know why because the code is the same.
How did you create the objet view ?
Could you help me?I'd recommend checking out this article on Debugging ADF Applications:
http://www.oracle.com/technology/products/jdev/tips/muench/debugger/index.html
and then reporting here the full stack trace using the tips described in that article. -
Dynamic picture viewer.
Please check out this url,
http://www.discrete-properties.com/imageView/picView.htm
it has the swf of the picture viewer, that I am trying to
create, it also has alink to the source code, for anyone that is
interested in helping.. thanks.
problem 1... I want to speed up the animation, however to do
this I would need to use +=20 instead of ++, however that causes
problems for the animation of the picture border as it does not
know when to stop the animation, as it is incrementing in 20, not
by 1.
problem 2... The masking image animation starts before the
image has loaded that needs to be masked.
problem 3... The masking animation does not always play.
If you could take a look that would be great.. I am still
fairly new to this and self taught so I apologies for how dirty the
actionscripting is!!!!
http://www.discrete-properties.com/imageView/picView.htm
Thanks in advance.Make the FPS go up, that solves problem 1
I don't know what you mean by problem 2 and 3...
If you want the mast image animation to start before the
image has loaded, I would suggest to make it "play()" as soon as
the item is clicked, but you need to know how big to resize it. If
you mean that there's a problem because it plays before it's
loaded, then... there is no problem :/. I looked at it and it
didn't play when it was loading.
Mask animation is always playing :/, solves problem 3 xD
(yay, another self-taught actionscript person!) -
How to create transport request of Dynamic Selection view.
Dear Freinds,
I have created a dynamic selections view form Se80 > Editobject>Selection view > Created by adding the required tables pa0002,pa006,pa0009 . But the transport request saved it locally now i want to create a transport request for the dynamic view . Could any please let me know how to create transport request for the Dynamic selection View which has been created or could any please let me know where this dynamic selection gets stored?
regards
divyaHi Kalyan,
In se80> editobjects > selection view .........i have created the selection view . Now i have went into se80 and i dont find the one you have told me . could you please let me know little bit clear where i have to see .
regards
divya. -
Are all V$ views (Dynamic Perf views) available in Mount Mode?
DB version: 10.2.0.1, 11.2.0.1
I remember querying
v$datafilewhen the database was only mounted. Just curios if all dynamic performance views are available in mounted mode?
Edited by: Max on Dec 16, 2010 1:41 AMMax wrote:
DB version: 10.2.0.1, 11.2.0.1
I remember querying
v$datafilewhen the database was only mounted. Just curios if all dynamic performance views are available in mounted mode?Read the doc:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1001.htm#i1398692
After an instance is started, the V$ views that read from memory are accessible. Views that read data from disk require that the database be mounted, and some require that the database be open.
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/ -
Dynamically embed interface view in window
Hi,
I am reusing the same WD ALV component in different tabs on the same view
of my application. The WD framework does not allow to embed the same interface view of the same component usage more than once on the same view -> error message '... is already embedded in your view...'
So as I don't want to slow down the application and create 5 component usages of the ALV reuse component because of this, I would like to dynamically assign the same
instance interface view to the currently viewed tab. In each tab, there would be a view
container to embed the interface view. I tried calling the method below in both wdDoInit and on the plug handler of the default inbound plug, but no success so far
I implemented the method as far as I understood the saphelp correctly:
http://aiokeh.wdf.sap.corp:1080/SAPIKS2/contentShow.sap?_CLASS=IWB_EXTHLP&TMP_IWB_TASK=DISPLAY&_LOIO=4C60154219FCE12CE10000000A1550B0&_SLOIO=7C3545415EA6F523E10000000A155106&RELEASE=700&LANGUAGE=EN&_SEQNUM=71&_SCLASS=IWB_STRUCT
method EMBED_ALV_VIEW .
data: L_VIEW_CONTROLLER_API type ref to IF_WD_VIEW_CONTROLLER,
L_VIEW_CONTROLLER_API = WD_THIS->WD_GET_API( ).
L_VIEW_CONTROLLER_API->PREPARE_DYNAMIC_NAVIGATION(
source_window_name = 'RPM_DASHBOARD_WINDOW' "embedding app window
source_vusage_name = 'RPM_DASHBOARD_VIEW_USAGE_1' "own local view containing all those tabs
source_plug_name = 'DEFAULT' " inbound plug for the window above
target_component_name = 'SALV_WD_TABLE' "alv reuse component
target_component_usage = 'SALV_WD_TABLE' "usage name of this component
target_view_name = 'TABLE' "interface view name of embedded component
target_plug_name = 'DEFAULT' "startup plug for this interface view
target_embedding_position = 'CNT1' ). "own view container on view.
Thank you for your help!
CHeers, RobertHi Robert,
Check out the following:
In the Wiki they have added a feature about inputfields/dropdownboxes.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/dynamicuseof+Dictionary&
you can also check the weblogs by Thomas:
/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
/people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements
You could use MultiPane or RowRepeater. WDR_TEST_EVENTS contains an example for both.
Hope this will help you.
Cheers,
Darshna. -
How to embed views dynamically in a view container ?
Hi ,
Can you please guide me how to embed a view dynamically in a view container ?
Thanks & Regards
Gaurav JainHello,
Please read this [/people/rajagopal.vemuri/blog/2006/09/19/web-dynpro-for-abap-creating-dynamic-ui-elements-and-context-step-by-step].
Regards.
Maybe you are looking for
-
How to use skype for interviewing on GB3
Hey everyone I was wondering if skype can be used for interview through GB3? If it can be done how do I go about it? Thanks Bevan
-
A folder was deleted without me doing anything.
Good morning.I am the only user of my imac and yesterday i found out that one of my folders, that i was using for my downloads, deleted without me doing anything.How is this possible?Is there a way to see me ''action history'' in order to see what ha
-
Hi All, Help please... Using Adobe Photoshop CC (CS6) but when I go into image details it does not show Image Focal Distance. Previously it used to show distance given in metres using CS4. Kind Regards Nikki
-
Battery fail in iPod 5 after iOS update to 8.1.2
Battery level in my iPod 5 ran out from 100% to 0% in 6-8 hours without using it after update new iOS 8.1.2. Then the device automatic shutting down completely and can't recharge it with a normal apple adapter. I have to recharge it using computer. I
-
I am attempting to download 2 films from itunes one states download in 54 minute and is 2.01 Gb and the other states 1.64gb and will take 4 hours to download any advice?