18
Views
8
Comments
Why do I not see the right data when clicking on a name

Hello, 


I have a list of names of a screen. 

and I thougth I could use a popup to edit the screen

So I made a aggerate that only finds the customer im looking

But right now the popup do not show the date of the customer.


What am I doing wrong ?


Roelof


Invoicer.oml

Rank: #90

Hi Roelof,
I have checked your oml.

you should need some changes like below image

1. Take input parameter CustomerId in LinkOnClick Action

2. You need to one aggregate which take data by cutomer ID like GetCusomerById

3.Provide input Parameter for this aggregate and after that open popup



Hope this will help you

Regards 

Rahul Sahu

Rank: #1623

Hello, 


I have already a aggregate GetCustomerById but then on the webblock. 

Maybe it is easier to use two different screens for editing and adding new customers instead of a popup.


Rank: #90

Hi,
But in your oml i am not able to see this aggregate.

yes it is best practice create a Screen / webblock and take input parameter as CustomerID and bind input from GetCustomerById aggregate.

And webblock you can put in popup it esay and useful.


Regards

Rahul Sahu

Rank: #90

Hi,

I have changed your oml . there is missing content

please look at this


Regards

Rahul Sahu

Invoicer1.oml

Rank: #1623

Thanks,


Now I have to find out how to close the popup.

Rank: #90

set showpopup variable false when you want to close .


Regards

Rahul

Rank: #1623

yep, but on the save action of the form I cannot use showpopup because it is not in scope.
I liked the idea of using popups to edit and enter data but it seems that this is very difficult to setup properly. 

Maybe I have to reconsinder my way of solving this and use two different screens.