on 04-16-2012 5:39 PM
Hi,
I had a requirement. I have to display a table in new window on the action of button. but I am having a lot of data which I can not pass to url.
So someone please help me to know how can I pass data to new window, because data can not be passed through context.
Thanks in advance
Hi Suchender,
As per my understanding, you can create a Table Type with your required structure, and create an attribute at ComponentController / Assistance Class level, and set the values at Current Window level, and use the same at your New Window level, all set of values will be reflected as it is.
Hope you understood.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you able to open window now?... if yes, so follow the below steps..
1. let your node structure is ID, NAME, ADDRESS...
2. create a structure same as at SE11 level... zst_sample
3. create a table type using above structure.. ztt_sample
4. double click on Component Controller, and attributes.. create an attribute gt_sample type ztt_sample.
5. on button click.. fetch the values.. and assign those to gt_sample..
6. on External Window.. you can directly access gt_sample like this.. wd_comp_controller->gt_sample..
7. now you will be able to use all the values.
hope you understood well.
Hi Suchender,
You can fetch data in the component controller as it is global throughout the WDA Component and display to the another window as per the requirements.
Or you can also use Plugs to transfer data from one window to another.
Create Inbound and Outbound Plugs. Define the Parameters while creating outbound plug and create the respective inbound plug on the another which can accept the parameter from the outbound plug of the another window.
-Regards,
Ketan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use component controller's context. It is global and available to all the windows of a component.
Regards,
Fareez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suchender
As Fareez says you can share the Nodes from the COMPONENTCOTROLLER to all the views in a WDA Component , so you can call window (view) from the same WDA .
If you need to call a window from other WDA component, you can share NODES between differents WDA Components by seeting the INTEFACE NODE attribute to the Node, then you can share that Node from the caller WDA to the called WDA .
Regards
Frank
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.