Hi members,
I have some action items with icons in the child block which is set as disabled according to the condition, but I want to make that enabled whenever user hit a specific button from the parent screen.Kindly help if is there any possible workaround to perform this.
Regards,
Sandip Saha
Hi
You can use input parameter like IsEnable and change the value of input parameter from parent
Set enable condition of action items based on the input parameter(IsEnable)
Hi Krishnanand,
Thanks for your reply,
I had already tried with that but somehow its not affecting.So I'm looking for another possible ways.
It should work.
Please share oml if possible.
@Sandip Saha I think @Krishnanand Pathak has given the proper solution , its better to do with input parameters as because it will not change the other business logics . The important point to be noted that you have write proper conditions in enable property of that widget.
Hi Sohel,yea! I agreed.thanks.
hi,
you were right.actually I had made some mistakes with code which preventing the process.
Hello sandip
Inside a blcok there is on parameter change event you can use that event to get changes reflect
Thanks Regards
Mohd Rizwan
Hi Sandip Saha,
please check this documentation and get ideas to solve.
Notify something from child to parent.
https://success.outsystems.com/documentation/11/developing_an_application/design_ui/reuse_ui/use_events_to_propagate_changes_from_a_block_to_the_parent/?_gl=1*1aawb7m*_ga*MTc1NTIyNDYwNC4xNjc1MDY4NTQ5*_ga_ZD4DTMHWR2*MTY4MTk3MDM2OS4yNDQuMS4xNjgxOTczMzg2LjYwLjAuMA..
Notify something from parent to child
use parameter change event
Thanks,
Ramesh
Hi @Sandip Saha
Outsystems web blocks provided us some events, One of them is onParameterChanged, This event is triggered when any input parameter value of the block has changed,
So you can put your further logic inside onParameterChanged event handler which is a client action.
I hope it'll help you,
ThanksDeep
Hi all, appreciate all of your ideas.According to my requirement the best way would be that which is suggested by @Krishnanand Pathak .Thanks & Regards,Sandip Saha