on 2008 Jan 31 11:06 AM
Hi folks,
theres a pretty complex issue we are facing.
The application should be able to show a certain amount of views, defined at runtime.
for example: you enter the application, enter a number and show as much components as stated.
Of course you would try it with component usages, but I haven't figured out how it is possible to use a dnyamic amount of component usages (I do not mean component usage instances, I mean usages as in "used web dynpro components").
The used components may be filled with instances generated at runtime, that's easy, but how can I define that I want to use n components of the same type.
I can also imagine to define lets say 30 component usages and show as much as I need, but thats horrible work...
would the alternative be dynamic layouting and context binding?
please no help.sap.com links
cheers
Stefan
Hi,
I did something similar.
You can create a Web Dynpro Component Interface for your component.
The interface of your component (whisch is not the same!) must implement this.
Then, in your code, you can create as many instances of your component dynamically:
IWDComponentUsage comp1 = wdThis.wdGet);
etc. for comp2..n
Check out the API, there are other methods for creating the component from it´s usage.
Good luck, Roelof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
I'm not sure that what you are trying to do is possible. As far a I have figured out it is impossible to create a (dynamic) array of component usages.
I guess the only way to do this to create the component usages dynamically and use each component one after another.
Jeschael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.