Hello,
I have a workflow button that I am hiding on load of a view page this way :
$('a:contains("myText")').css('display', 'none');
When I resize the page the button re appears again. We can work around this by hiding the button on resize of the page in addition to the onload, but we were wondering why is it behaving like that ?
Should we hide the button in a different way maybe?
Thanks,
Meryem
Yes, it should work.
You can try a few things:
1) Add the event handler in a custom header or side bar and see if it gets triggered
2) Could you try this pattern instead: $(document).on ( rb.newui.util.customEvents.rbs_uiResized, function( customEvent ) {
....
});
Hi Thierry,
I guess this is how we catch the resizing event of the page. is that right ?
I was more asking about how to make the button hidden all the time without having to handle the case of page resizing separately, if this is possible ..
And also why is the button re appearing on resize ?
Thanks
Meryem
Hi Meryem,
Why do you want to hide a workflow button client side? My approach would be to set a condition on the workflow action to show or hide the button/action on the page.
Hello [mention:c6ad25f95bb84e839bc6845bc8789e44:e9ed411860ed4f2ba0265705b8793d05],
I tried to use the event handler function you described above to hide the "Save and New" button on an Edit page on resizing, however it doesn't really seem to work. I am on version 4.0.4. Is this supposed to work in this version?
Cheers.
Iram
Yes, it should work.
You can try a few things:
1) Add the event handler in a custom header or side bar and see if it gets triggered
2) Could you try this pattern instead: $(document).on ( rb.newui.util.customEvents.rbs_uiResized, function( customEvent ) {
....
});
Yes, that's fine. $(document).on... does work. Thanks for the solution. Is there going to be a more easier way to control this in the future as I would not want to have Save and New on a lot of pages and its time consuming to keep the code everywhere. Kindly let me know.
Just wondering if you have any particular date for this: community.progress.com/.../the_ability_to_control_the_rollbase_save_savenew_button_on_rollbase_pages
Cheers.
Iram
Thanks murali for confirming.
Cheers.
Iram