31
Views
4
Comments
Solved
Get the name of the block or the client action
Application Type
Traditional Web, Mobile, Reactive, Service

I need to get the name of the block inside of an action because I need to save the name of that.
So I don't know if that is possible or not. If its possible, how can I do it?

Solution

To catch the name it is not possible because we have get the ID on that and directly we can't access webblock we need to enclose in container.


For your scenario, you can add one input parameter on the click of that action and pass your webblock name as a string type than you can access it from any where and save it in the DB.

If any doubt you can send your OML i will check code and correct it.

Hope this will help you.

Thanks 

Ruchi

Thanks so much Ruchi!

Hi,

As per your question what i understand you have to give name that block


You get in the widget Id of that container block.

For more understanding you should give proper description so I can help you again.

Thanks

Ruchi

I need to catch the name of the block in an action

Solution

To catch the name it is not possible because we have get the ID on that and directly we can't access webblock we need to enclose in container.


For your scenario, you can add one input parameter on the click of that action and pass your webblock name as a string type than you can access it from any where and save it in the DB.

If any doubt you can send your OML i will check code and correct it.

Hope this will help you.

Thanks 

Ruchi

Thanks so much Ruchi!

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