cancel
Showing results for 
Search instead for 
Did you mean: 

copy its content to show on onother window

Former Member
0 Kudos

Hello!

The Problem I'm having is:

A list of all orders is shown on a view which is defined

for. Click on a special button opens a new Window

(external window) and this window should show the same list like the privious view once more.

With other words it must contain the same content. To do this is

it necessary to perform the whole program again or can I copy

its content for showing on the external window. I'm very confused.

This external window acts as kind of preview of the list.

Or do you have other suggestions?

Thanks

Sas Erdem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Siva, thanks a lot for this hint.

It sounds very well, but its a bit muddled especially for me. I'm not experienced

as well.

Now Copy this node to View2 and map them both.

How can I map two views to eachother?

Open context tab of View1

Do you mean context tab from external window ?

Copy all the values into this node from respective nodes or attributes.

When I copy all this values from respective nodes or attributes why

copying this node to View2 again ??

Pls can you explain it more detailed !

Regards

Sas

Former Member
0 Kudos

Open the Navigation modeler.Create two views one which is going to hold the actual data(means the first view)and the second view(which is going to act as a pop up window).

Open the Data modeler create navigation links between the 1st view>component controller>result view(popup window).(this is to duplicate the context of the first view to the controller then to the 2nd view.As for sharing the data we need a comp.controller).

Now create a button in the first view to navigate to the second view.There in the action of the button try to create the pop up window.

Let me know if u want to close the pop up window in the external window itself then i will help out through coding.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

is it necessary to choose the right cardinality if so please tell me

which one is correct ?

Thanks

sas

former_member197348
Active Contributor
0 Kudos

Hi Sas,

It is better to have 0..n if there is any table or else better to have 0..1;

Say View1--is your first view

View2 --is your print view in external window

your first doubt:Now Copy this node to View2 and map them both.

How can I map two views to eachother?

List-- newly created context node 0..n;

Procedure:

Select and right click the node List in View1 -> Select Copy

Open context tab of Controller-> Paste the node (If it is not there already)

Open data modeler .Map View2 to Controller. Wizard appears. Copy and map the node(just drag and drop from right to left)

Open context tab of View1

Do you mean context tab from external window ?

I guess it is clear now.

Copy all the values into this node from respective nodes or attributes.

When I copy all this values from respective nodes or attributes why

copying this node to View2 again ??

I mean to say: "What ever values you want to display in print view you need to copy to node List. These values are stored in this List you can display them in print"

regards,

Siva

Edited by: Siva Rama Krushna on Feb 6, 2008 1:57 PM

Former Member
0 Kudos

Hi All!

because the customer needs an additional window which acts as kind of preview of the list

before printing via right click(contex menu -> print)

Regards

sas

former_member197348
Active Contributor
0 Kudos

Hi Sas,

Why don't you use context mapping then?

Open context tab of View1. Create a new Context node (say List).Create all the attributes which you want to show in this external window.Copy all the values into this node from respective nodes or attributes. If it is a table use wdCopyService or single field directly set to this node.

Now Copy this node to View2 and map them both.

Select and right click the node-> Select Copy

Open context tab of Controller-> Paste the node (If it is not there already)

Open context tab of View2(of external window) -> Paste the node

Map the node View1 to Controller and map the node View2 to Controller (using data modeler).

regards,

Siva

Former Member
0 Kudos

Hi!

Thank you for this hint but it is not working. If the list has been shown, the

some variables and objects are empty beceause this part of program has already

been executed. To show the same output there must be another solution

or I execute the exactly prg again.

Regards

sas

Former Member
0 Kudos

Can you tell me which records you are going to populate making use of which type of model.Also provide me the code then im going to guide you.

Former Member
0 Kudos

If I understand your use case correctly you want to display the result of a certain query in an external window (another session)? Why do you need it in an external window?

Armin

Former Member
0 Kudos

Hey sas replicate the CONTEXT of the current view in to the component controller and the pop up window too.Then with out any coding the data will be available in the pop up window view too.With out any coding the data will be available in the pop up window too.Make use of the same UI elements that are used in the 1st view in the pop window view too.

For opening the pop up window you need to write the code.