Forum Post: Re: New Ui: Why Back To Previous Page Button Not Working?

Status
Not open for further replies.
S

Sri Harsha

Guest
Hi Marat, I am assuming you are trying to add a new button to a record edit page. To achive this, one way is to add the below script on page load in edit page properties. // get the toolbar instance to which the new button should be added to. var pageActionToolBar = $('.rbs-pageheader-toolbar').data('kendoToolBar'); // add a new button configuration to the page toolbar pageActionToolBar.add({ type: 'button', text : 'MyNewButton', click: function(e) { document.location.href = " www.progress.com" }, overflow: 'never', spriteCssClass: 'marker-pageToolbar-action myButton' }); This should add a new button to the toolbar programatically. (images below. before and after adding a button using above code) (ofcourse you can style the button using the class 'myButton' that is added through the button configuration). Altenatively, there is one more direct way to add custom buttons to edit pages in Rollbase. You can add a new button in obect definition page. The target URL can be dynamically generated too. See if that suits your needs. Please let us know if the above approach works for you. Regards, Harsha.

Continue reading...
 
Status
Not open for further replies.
Top