167
Views
10
Comments
Solved
Change tab title

Hello,

I want to change the tab title on the end user module to be a value from the core widget module

like here I want when I press details button, I want to change the title of the details screen (from externalNewsDetails to first title) based on the selected news.

Thanks.

E

2024-09-17 18-14-33
Miguel Defavari da Silva
Solution

I couldn't publish the modules in my environment due to intellectual property error, but I know what you can do to implement this, I'll send print screens.

In the CW module, create a OnAfterFetch action in the main aggregate:

Create an event with an input parameter and use this event in the OnAfterFetch action sending the NewsTitle:

Then you just need to create a handler in the UI module to this event, get this NewsTitle value and assing to a variable. This variable can be used in the screen property "Title"

I hope this helps you!

2024-09-17 18-14-33
Miguel Defavari da Silva

Hello,

You can change "Title" value in the screen properties. You can also use variables on it:

This is how it looks in the browser:

Best regards,

Miguel

UserImage.jpg
Mohamed Zakaria

Hello Miguel,

The value I want it to be the title is in another module.

basically it's the same value of the title of the news which I want to see its details.

2024-09-17 18-14-33
Miguel Defavari da Silva

You want to use this value?

If yes, then you can just copy and paste the variable being used in this expression (first title) to that property.

UserImage.jpg
Mohamed Zakaria

Yes I want to use that value but it's already in another module (I applied Architecture canvas) so this value is in the core widget not in the end user.

2024-09-17 18-14-33
Miguel Defavari da Silva
UserImage.jpg
Mohamed Zakaria

It's more than 4 MB so I'll share in 2 comments, sorry for that.

this is the end user.

CS&EndUser.rar
UserImage.jpg
Mohamed Zakaria
News_CW.oml
2024-09-17 18-14-33
Miguel Defavari da Silva
Solution

I couldn't publish the modules in my environment due to intellectual property error, but I know what you can do to implement this, I'll send print screens.

In the CW module, create a OnAfterFetch action in the main aggregate:

Create an event with an input parameter and use this event in the OnAfterFetch action sending the NewsTitle:

Then you just need to create a handler in the UI module to this event, get this NewsTitle value and assing to a variable. This variable can be used in the screen property "Title"

I hope this helps you!

2021-01-19 14-07-32
Tom Zhao

Hi

Sorry, I don't understand your question.

Because in your detail webblock you can got the title from aggerate Why do you need  to pass the tile?

Regards,

UserImage.jpg
Mohamed Zakaria

Hi Tom,

To use it as title for my screen.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.